create-agent-skills
Expert guidance for creating Claude Code skills and slash commands.
Skill by seflless
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/seflless-create-agent-skills
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
create-agent-skills- Description
- Expert guidance for creating Claude Code skills and slash commands. Use when working with SKILL.md files, authoring new skills, improving existing skills, creating slash commands, or understanding skill structure and best practices.
- License
- MIT
- Instructions
- 272 lines in SKILL.md · view on GitHub
Files (26)
- SKILL.md
- api-security.md · references/
- be-clear-and-direct.md · references/
- best-practices.md · references/
- common-patterns.md · references/
- core-principles.md · references/
- executable-code.md · references/
- iteration-and-testing.md · references/
- official-spec.md · references/
- recommended-structure.md · references/
- skill-structure.md · references/
- using-scripts.md · references/
- using-templates.md · references/
- workflows-and-validation.md · references/
- router-skill.md · templates/
- simple-skill.md · templates/
- add-reference.md · workflows/
- add-script.md · workflows/
- add-template.md · workflows/
- add-workflow.md · workflows/
- audit-skill.md · workflows/
- create-domain-expertise-skill.md · workflows/
- create-new-skill.md · workflows/
- get-guidance.md · workflows/
- upgrade-to-router.md · workflows/
- verify-skill.md · workflows/
SKILL.md (first lines)
# Creating Skills & Commands This skill teaches how to create effective Claude Code skills following the official specification from [code.claude.com/docs/en/skills](https://code.claude.com/docs/en/skills). ## Commands and Skills Are Now The Same Thing Custom slash commands have been merged into skills. A file at `.claude/commands/review.md` and a skill at `.claude/skills/review/SKILL.md` both create `/review` and work the same way. Existing `.claude/commands/` files keep working. Skills add optional features: a directory for supporting files, frontmatter to control invocation, and automatic context loading. **If a skill and a command share the same name, the skill takes precedence.** ## When To Create What **Use a command file** (`commands/name.md`) when: - Simple, single-file workflow - No supporting files needed - Task-oriented action (deploy, commit, triage) **Use a skill directory** (`skills/name/SKILL.md`) when: - Need supporting reference files, scripts, or templates - Background knowledge Claude should auto-load - Complex enough to benefit from progressive disclosure Both use identical YAML frontmatter and markdown content format. ## Standard Markdown Format Use YAML frontmatter + markdown body with **standard markdown headings**. Keep it clean and direct. ```markdown --- name: my-skill-name description: What it does and when to use it --- # My Skill Name ## Quick Start Immediate actionable guidance... ## Instructions Step-by-step procedures... ## Examples Concrete usage examples... ``` ## Frontmatter Reference All fields are optional. Only `description` is recommended. | Field | Required | Description | |-------|----------|-------------| | `name` | No | Display name. Lowercase letters, numbers, hyphens (max 64 chars). Defaults to directory name. | | `description` | Recommended | What it does AND when to use it. Claude uses this for auto-discovery. Max 1024 chars. | | `argument-hint` | No | Hint shown during autocomplete. Example: `[issue-number]` | | `disable-model-invocation` | No | Set `true` to prevent Claude auto-loading. Use for manual workflows like `/deploy`, `/commit`. Default: `false`. | | `user-invocable` | No | Set `false` to hide from `/` menu. Use for background knowledge. Default: `true`. | | `allowed-tools` | No | Tools Claude can use without permission prompts. Example: `Read, Bash(git *)` | | `model` | No | Model to use. Options: `haiku`, `sonnet`, `opus`. | | `context` | No | Set `fork` to run in isolated subagent context. | | `agent` | No | Subagent type when `context: fork`. Options: `Explore`, `Plan`, `general-purpose`, or custom agent name. | ### Invocation Control | Frontmatter | User can invoke | Claude can invoke | When loaded | |-------------|----------------|-------------------|-------------| | (default) | Yes | Yes | Description always in context, full content loads when invoked | | `disable-model-invocation: true` | Yes | No | Description not in context, loads only when user invokes | | `user-invocable: false` | No | Yes | Description always in context, loads when relevant | **Use `disable-model-invocation: true`** for workflows with side effects: `/deploy`, `/commit`, `/triage-prs`, `/send-slack-message`. You don't want Claude deciding to deploy because your code looks ready. **Use `user-invocable: false`** for background knowledge that isn't a meaningful user action: coding conventions, domain context, legacy system docs. ## Dynamic Features ### Arguments Use `$ARGUMENTS` placeholder for user input. If not present in content, arguments are appended automatically. ```yaml --- name: fix-issue description: Fix a GitHub issue disable-model-invocation: true --- Fix GitHub issue $ARGUMENTS following our coding standards. ``` Access individual args: `$ARGUMENTS[0]` or shorthand `$0`, `$1`, `$2`. ### Dynamic Context Injection The `` !`command` `` syntax runs shell commands before content is sent to Claude: ```yaml --- name: pr-summary description: Summarize changes in a pull request context: fork agent: Explore --- ## Context - PR diff: !`gh pr diff` - Changed files: !`gh pr diff --name-only` Summarize this pull request... ``` ### Running in a Subagent Add `context: fork` to run in isolation. The skill content becomes the subagent's prompt. It won't have conversation history. ```yaml --- name: deep-research description: Research a topic thoroughly
From seflless/dot-agents, MIT.
More from seflless/dot-agents
- 0.414score
agent-dx
seflless
Audit a repo's tooling for coding agent self-verification.
SkillDFreshness: DClaude Code +9 - 0.414score
agent-sync
seflless
Syncs coding agent config files so AGENTS.md is source of truth and CLAUDE.md/instructions.md are symlinks.
SkillDFreshness: DClaude Code +9 - 0.406score
ask-repo
seflless
Learn from any GitHub repo with generated walkthroughs.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 11, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/seflless/dot-agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.414score
create-agent-skills
CuriousCrow123
Expert guidance for creating Claude Code skills and slash commands.
SkillDFreshness: DClaude Code +9 - 0.249score
create-agent-skills
sammyjoyce
Expert guidance for creating Claude Code skills and slash commands.
SkillDFreshness: DClaude Code +9 - 0.246score
create-agent-skills
danfrdn
Expert guidance for creating Claude Code skills and slash commands.
SkillDFreshness: DClaude Code +9
More from seflless
- 0.414score
agent-dx
seflless
Audit a repo's tooling for coding agent self-verification.
SkillDFreshness: DClaude Code +9 - 0.414score
agent-sync
seflless
Syncs coding agent config files so AGENTS.md is source of truth and CLAUDE.md/instructions.md are symlinks.
SkillDFreshness: DClaude Code +9 - 0.406score
ask-repo
seflless
Learn from any GitHub repo with generated walkthroughs.
SkillDFreshness: DClaude Code +9
Cite this page
create-agent-skills. Agent Mart. https://agentmart.dev/skills/seflless-create-agent-skills (last updated 2026-10-24)