skill-creator-primer

Note: If your environment does not have the skill-creator skill: Stop and ask the user to run /plugin marketplace add anthropics/skills then skill-creator@claude-plugins-official before proceeding.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skill-creator-primer" with this command: npx skills add sammcj/agentic-coding/sammcj-agentic-coding-skill-creator-primer

Skill Creator Primer

Note: If your environment does not have the skill-creator skill: Stop and ask the user to run /plugin marketplace add anthropics/skills then skill-creator@claude-plugins-official before proceeding.

How Skills Actually Work

Understanding these mechanics helps you design more effective skills.

Skills are prompt-based context modifiers, not executable code. When invoked, a skill:

  • Injects instructions into the conversation context (via hidden messages to Claude)

  • Modifies execution context by changing tool permissions and optionally switching models

  • Guides Claude's behaviour through detailed instructions

Skill selection happens through pure LLM reasoning. No algorithmic matching, keyword search, or intent classification. Claude reads skill descriptions in the Skill tool's prompt and uses language model reasoning to decide which skill matches. This makes the description field the single most critical element.

Claude tends to under-trigger skills. To combat this, make descriptions slightly assertive about when to activate. Instead of "Build dashboards for data", write "Build dashboards for data. Use this skill whenever the user mentions dashboards, data visualisation, metrics, or wants to display any kind of data."

Progressive disclosure keeps context lean. Three-level loading:

  • Metadata (name + description) - Always in context (~20-100 words)

  • SKILL.md body - Loaded only after triggering (<5k words)

  • Bundled resources - Loaded by Claude as needed (unlimited, scripts execute without reading)

The description must be both concise (to fit token budgets shared with all other skills) and comprehensive (to enable accurate selection).

Degrees of Freedom

Match specificity to the task's fragility and variability:

High freedom (text instructions): Multiple approaches valid, decisions depend on context, heuristics guide approach.

Medium freedom (pseudocode/parameterised scripts): Preferred pattern exists, some variation acceptable, configuration affects behaviour.

Low freedom (specific scripts, few parameters): Operations fragile and error-prone, consistency critical, specific sequence required.

Think of Claude exploring a path: a narrow bridge with cliffs needs guardrails (low freedom), an open field allows many routes (high freedom).

Claude Code Frontmatter Extensions

These are Claude Code-specific fields not covered by the Agent Skills spec. Only include when specifically needed:

  • model : Override the model. Set to "inherit" (default) or a specific model ID like "claude-sonnet-4-6" . Only include if the user requests it

  • context : Set to "fork" to run in a forked sub-agent context. Useful for skills with extensive exploration or large outputs. Only include if the user requests it

  • user-invocable : Skills appear as slash commands by default. Set to false to hide from the menu. Only include if the user requests it

  • agent : Specify agent type (e.g., "task" ). When omitted, runs in current agent context. Only include if the user requests it

  • allowed-tools : Space-delimited pre-approved tools. Scope where possible, e.g. "Read Write Bash(uv run scripts/*.py *) Grep"

Token Budget Guidance

The context window is a shared resource. Only add context Claude doesn't already have. Challenge each piece: "Does Claude really need this?" and "Does this justify its token cost?"

If the ingest CLI tool is available, use ingest *.md to estimate token usage:

Rating Tokens

Great 1k-5k

Good 5k-9k

OK 9k-12k

Poor 12k+

Aim for <4k tokens in the main SKILL.md. Move detailed content to reference files.

What to Not Include in a Skill

Skills should only contain files that directly support functionality. Do NOT create:

  • README.md, CHANGELOG.md, INSTALLATION_GUIDE.md, QUICK_START.md, SUMMARY.md

  • User-facing documentation or setup procedures

  • Context about the creation process itself

The skill is for an AI agent to do the job. Auxiliary documentation adds clutter and wastes context.

Capture Intent from Conversation

When a user says "turn this into a skill", extract the workflow from the current conversation before asking questions. Look for:

  • Tools used and the sequence of steps taken

  • Corrections the user made along the way

  • Input/output formats observed

  • Patterns that repeated across the conversation

Fill gaps with the user, then proceed to skill creation.

Self-Review Protocol

After creating or updating a skill, always perform a critical self-review:

  • Check for duplicated information across SKILL.md and reference files

  • Remove low-value prose, filler, and fluff

  • Thin the language - make important information prominent while reducing word count

  • Verify the description is comprehensive enough for triggering

  • Ensure no extraneous files were created

Verbosity is not rewarded - knowledge quality is.

Validating a Skill

Validate against the official Agent Skills specification:

uv run scripts/validate_skill.py <skill-directory>

Reference agent skills specification (only use if required): https://agentskills.io/specification

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

critical-thinking-logical-reasoning

No summary provided by upstream source.

Repository SourceNeeds Review
-295
sammcj
Automation

writing-documentation-with-diataxis

No summary provided by upstream source.

Repository SourceNeeds Review
-159
sammcj
Automation

ghostty-config

No summary provided by upstream source.

Repository SourceNeeds Review