Agent skill

using-skills

System skill loaded at session start to initialize skill routing. Not invoked directly by users. Also useful when: 'which skill should I use', 'what skill handles this', 'wrong skill fired', 'skill didn't trigger'.

Stars 5
Forks 2

Install this agent skill to your Project

npx add-skill https://github.com/axiomantic/spellbook/tree/main/skills/using-skills

SKILL.md

Invariant Principles

  1. Skill invocation precedes all action. Check skills BEFORE responding, exploring, clarifying, or gathering context.
  2. 25% probability threshold triggers invocation. High applicability required. Wrong skills waste tokens; missed high-signal skills degrade quality.
  3. Ignore low-signal turns. Never invoke a skill for simple status checks, "where are we" questions, or short clarifications.
  4. Skills encode institutional knowledge. They evolve. Never rely on memory of skill content.
  5. Process determines approach; implementation guides execution.

Inputs

Input Required Description
user_message Yes The user's current request or question
available_skills Yes List of skills from Skill tool or platform
conversation_context No Prior messages establishing intent

Outputs

Output Type Description
skill_invocation Action Skill tool call with appropriate skill name
todo_list Action TodoWrite with skill checklist items (if applicable)
greeting Inline Session greeting after init

Session Init

On first message, call spellbook_session_init MCP tool:

Response Action
fun_mode: "unset" Ask preference, set via spellbook_config_set(key="fun_mode", value=true/false)
fun_mode: "yes" Load fun-mode skill, announce persona+context+undertow
fun_mode: "no" Proceed normally
MCP unavailable Ask mode preference manually; proceed without waiting

Greet: "Welcome to spellbook-enhanced Claude."

Decision Flow

Message received
    ↓
<analysis>
Could ANY skill apply? (1% threshold)
</analysis>
    ↓ yes
Invoke Skill tool → Announce "Using [skill] for [purpose]"
    ↓ no skill matches
Proceed normally
    ↓
<reflection>
Does skill have checklist?
</reflection>
    ↓ yes → TodoWrite per item
    ↓
Follow skill exactly → Respond

Correct: "fix the login bug" → <analysis> finds debugging skill → invoke debugging skill BEFORE reading any files. Incorrect: "fix the login bug" → read login.py "to understand" → rationalization. Skill check comes first.

Rationalization Red Flags

Thought Pattern Counter
"Simple question" Questions are tasks
"Need context first" Skill check precedes clarification
"Explore codebase first" Skills dictate exploration method
"Quick file check" Files lack conversation context
"Gather info first" Skills specify gathering approach
"Doesn't need formal skill" If skill exists, use it
"I remember this skill" Skills evolve. Read current.
"Skill is overkill" Simple → complex. Use it.
"Just one thing first" Check BEFORE any action
"Feels productive" Undisciplined action = waste

Skill Priority

  1. Process skills (brainstorming, debugging): Determine approach
  2. Implementation skills (frontend-design, mcp-builder): Guide execution

Skill Types

Type Behavior
Rigid (TDD, debugging) Follow exactly. No adaptation.
Flexible (patterns) Adapt principles to context.

Skill content specifies which type applies.

Access Method

Claude Code: Use Skill tool. Never read skill files directly. Other platforms: Consult platform documentation.

User Instructions

Instructions specify WHAT to do, not HOW to do it. "Add X" or "Fix Y" does not bypass skill workflow.

Self-Check

Before responding to user:

  • Called spellbook_session_init on first message
  • Performed <analysis> for skill applicability (1% threshold)
  • Invoked matching skill BEFORE any other action
  • Created TodoWrite for skill checklist (if applicable)
  • Did not rationalize skipping a skill

If ANY unchecked: STOP and fix.

<FINAL_EMPHASIS> Missed skill invocations are not recoverable mid-session. Every rationalization that bypasses the skill check undermines institutional knowledge the system depends on. Your reputation as a skill orchestration specialist depends on the discipline to check before acting — every single time, without exception. </FINAL_EMPHASIS>

Expand your agent's capabilities with these related and highly-rated skills.

axiomantic/spellbook

spellbook-auditing

Meta-audit skill for spellbook development. Spawns parallel subagents to factcheck docs, optimize instructions, find token savings, and identify MCP candidates. Produces actionable report.

5 2
Explore
axiomantic/spellbook

documentation-updates

Use after modifying library skills, library commands, or agents to ensure CHANGELOG, README, and docs are updated

5 2
Explore
axiomantic/spellbook

project-encyclopedia

[DEPRECATED] Use project-level AGENTS.md files instead. Previously used for first-session codebase onboarding and persistent glossary creation.

5 2
Explore
axiomantic/spellbook

reviewing-impl-plans

Use when reviewing implementation plans before execution. Triggers: 'is this plan solid', 'review the plan', 'check before I start building', 'anything missing from this plan', 'will this plan work', 'audit the implementation plan'. NOT for: reviewing design documents (use reviewing-design-docs) or creating plans (use writing-plans).

5 2
Explore
axiomantic/spellbook

session-resume

Session resume protocol and session repairs handling. Loaded when spellbook_session_init returns resume_available: true, or when session_init returns a repairs array. Triggers: 'resume', 'continue', 'where were we', session resume, session repairs.

5 2
Explore
axiomantic/spellbook

brainstorming

Use when exploring design approaches, generating ideas, or making architectural decisions. Triggers: 'explore options', 'what are the tradeoffs', 'how should I approach', 'let's think through', 'sketch out an approach', 'I need ideas for', 'how would you structure', 'what are my options'. Also invoked by develop when design decisions are needed.

5 2
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results