Skip to content

selfauth skill install ​

The skill teaches a coding agent to use the SelfAuth CLI instead of inventing its own authentication code. It's optional. The CLI and the generated code work fine without any AI.

text
selfauth skill install [dir] [options]
OptionValuesDefaultMeaning
--agent <list>claude, codex, cursor, all (comma-separated)claudeWhich agents to install for
-g, --global––Install into your home folder instead of a project, so every project has the skill. Don't pass [dir] with it
--update––Replace skill files that differ from this CLI's version
--dry-run––Show what would be written

Where files go ​

AgentFolder
Claude Code.claude/skills/selfauth/
Codex.agents/skills/selfauth/
Cursor.cursor/skills/selfauth/
bash
npx selfauth skill install --agent claude

With --global, the same folders are created under your home folder (~/.claude/skills/selfauth/, ~/.agents/skills/selfauth/, ~/.cursor/skills/selfauth/), and only your machine gets the skill. For a project install, commit the folder so your whole team's agents use it. After upgrading the CLI, run selfauth skill install --agent … --update to keep the skill in step with the new commands.

Use the AI skill explains what the skill makes the agent do and how to prompt it.

SelfAuth is MIT licensed. Generated code is also offered under 0BSD.