Default output: return only the result, blockers, and required evidence. Omit preambles, process narration, repeated context, confidence scores, and follow-up offers. Use at most five bullets unless a required artifact or schema needs more.
Using Agent Skills
Overview
This is the meta-skill for discovering and invoking the right skill, command, or agent for any task. It includes a decision tree for task-to-skill mapping and core operating behaviors that all agents should follow.
When to Use
- Starting a new session and unsure which skill applies
- Task doesn't clearly match a single skill
- Need to understand the full capability landscape
- Debugging why an agent isn't following expected workflows
Decision Tree: Task to Skill Mapping
What are you trying to do?
DEFINE (understand the problem)
→ Writing requirements before coding?
→ spec-driven-development
PLAN (break down the work)
→ Decomposing a spec into implementable tasks?
→ planning-and-task-breakdown
→ Researching before planning?
→ comprehensive-research
→ Stress-testing a plan or design before committing?
→ grill-me
→ Grilling a plan and persisting the decisions as a document?
→ grill-with-docs
LEARN (teach and grow)
→ Interactive lessons over multiple sessions with a file-backed workspace?
→ teach
→ Week-by-week roadmap and milestones without lesson artifacts?
→ create-learning-path
→ Team knowledge base or domain map (not personal tutoring)?
→ knowledge-architecture
BUILD (write the code)
→ Implementing a feature across multiple files?
→ incremental-implementation
→ Writing tests first?
→ test-driven-development
→ Need the right documentation?
→ source-driven-development
VERIFY (prove it works)
→ Testing in the browser?
→ browser-testing-with-devtools
→ Something is broken?
→ debugging-and-error-recovery
REVIEW (improve code health)
→ Reviewing code before merge?
→ code-review-and-quality
→ Full repo health check or improvement plan?
→ repo-audit (or /ai-eng/repo-audit)
→ Code works but is hard to read?
→ code-simplification
→ Security concerns?
→ security-and-hardening
SHIP (deploy safely)
→ Preparing for production?
→ shipping-and-launch
→ Setting up CI/CD?
→ ci-cd-and-automation
SPECIALIZED
→ Building knowledge graphs?
→ graph-rag
→ Creating plugins/commands/skills?
→ plugin-dev
→ Building a harness workflow runner (Cursor, Claude, OpenCode, OpenAI, Pi)?
→ agents-sdk-dev (unified — specify harness)
→ See agents/research-runner/ for reference implementations
→ Gemini workflow adapter (not shipped yet)?
→ gemini-agent-sdk
→ Large cloud multi-agent tree (/orchestrate)?
→ orchestrate (planned; use agents-sdk-dev with harness=cursor until scripts/cli.ts exists)
→ Optimizing prompts?
→ prompt-refinement
→ Cleaning up AI verbosity?
→ text-cleanup
→ Managing git worktrees?
→ git-worktree
→ Deploying to Coolify?
→ coolify-deploy
Core Operating Behaviors
1. Surface Assumptions
Before acting, state what you're assuming:
- "I'm assuming this is a new feature, not a bug fix"
- "I'm assuming we're using the existing auth pattern"
- "I'm assuming the database schema doesn't need changes"
2. Manage Confusion
When uncertain, say so explicitly:
- "I'm not sure which pattern applies here"
- "This could be interpreted two ways"
- "I need more context about the expected behavior"
3. Push Back
Challenge requirements when needed:
- "This approach will create tight coupling. Consider..."
- "The spec says X, but the existing code does Y. Which is correct?"
- "This change is too large for one commit. Should we split it?"
4. Enforce Simplicity
Prefer simple solutions:
- "Can we solve this with a function instead of a class?"
- "Do we need a new dependency, or can we use what we have?"
- "Is there a simpler way to handle this edge case?"
5. Scope Discipline
Stay within boundaries:
- "This is out of scope for the current task"
- "I'll note this as a follow-up, not implement it now"
- "The spec covers A and B, but not C. Should I expand scope?"
6. Verify
Always prove correctness:
- "Seems right" is never sufficient
- Run tests, check build output, verify runtime behavior
- Provide evidence: passing tests, screenshots, logs
Anti-Rationalization Table
| Excuse |
Counter |
| "I'll add tests later" |
Tests are proof. Without them, you have no evidence it works. Write tests first or alongside. |
| "This is simple enough to skip the spec" |
Simple now, complex later. A 5-minute spec prevents 5-hour rewrites. |
| "I know this pattern, no need to check docs" |
Frameworks change. Source-driven development prevents subtle bugs from outdated knowledge. |
| "The code works, no need to simplify" |
Working code that's hard to read is technical debt. Future you (or teammates) will pay the cost. |
| "I'll fix the security issue in the next PR" |
Security issues are stop-the-line. Fix now or create a tracked issue with severity. |
| "This only affects one file, no review needed" |
Every change deserves review. Even small changes can have cascading effects. |
| "I'll document it later" |
Undocumented code is a time bomb. Document the why, not the what, while it's fresh. |
Composition Rules
- Agents do NOT invoke other agents — enforced by platform constraint
- Agents MAY invoke skills — skills are instructions, not agents
- The user or a slash command is the orchestrator — no router agents
- Skills auto-activate based on context — no manual skill selection needed
- Teams cannot nest — flat hierarchy only
References
references/orchestration-patterns.md — Endorsed and anti-pattern orchestration approaches
references/testing-patterns.md — Test structure, naming, mocking, examples
references/security-checklist.md — Pre-commit checks, OWASP Top 10, secrets management
references/performance-checklist.md — Core Web Vitals, frontend/backend checklists
references/accessibility-checklist.md — Keyboard nav, screen readers, WCAG 2.1 AA
1---2name: using-agent-skills3description: Discovery and invocation of all skills, commands, and agents. Decision tree for task-to-skill mapping. Core operating behaviors for agents. Use when unsure which skill or agent to use.4metadata:5 category: model-invoked6---78Default output: return only the result, blockers, and required evidence. Omit preambles, process narration, repeated context, confidence scores, and follow-up offers. Use at most five bullets unless a required artifact or schema needs more.910# Using Agent Skills1112## Overview1314This is the meta-skill for discovering and invoking the right skill, command, or agent for any task. It includes a decision tree for task-to-skill mapping and core operating behaviors that all agents should follow.1516## When to Use1718- Starting a new session and unsure which skill applies19- Task doesn't clearly match a single skill20- Need to understand the full capability landscape21- Debugging why an agent isn't following expected workflows2223## Decision Tree: Task to Skill Mapping2425```26What are you trying to do?2728DEFINE (understand the problem)29 → Writing requirements before coding?30 → spec-driven-development3132PLAN (break down the work)33 → Decomposing a spec into implementable tasks?34 → planning-and-task-breakdown35 → Researching before planning?36 → comprehensive-research37 → Stress-testing a plan or design before committing?38 → grill-me39 → Grilling a plan and persisting the decisions as a document?40 → grill-with-docs4142LEARN (teach and grow)43 → Interactive lessons over multiple sessions with a file-backed workspace?44 → teach45 → Week-by-week roadmap and milestones without lesson artifacts?46 → create-learning-path47 → Team knowledge base or domain map (not personal tutoring)?48 → knowledge-architecture4950BUILD (write the code)51 → Implementing a feature across multiple files?52 → incremental-implementation53 → Writing tests first?54 → test-driven-development55 → Need the right documentation?56 → source-driven-development5758VERIFY (prove it works)59 → Testing in the browser?60 → browser-testing-with-devtools61 → Something is broken?62 → debugging-and-error-recovery6364REVIEW (improve code health)65 → Reviewing code before merge?66 → code-review-and-quality67 → Full repo health check or improvement plan?68 → repo-audit (or /ai-eng/repo-audit)69 → Code works but is hard to read?70 → code-simplification71 → Security concerns?72 → security-and-hardening7374SHIP (deploy safely)75 → Preparing for production?76 → shipping-and-launch77 → Setting up CI/CD?78 → ci-cd-and-automation7980SPECIALIZED81 → Building knowledge graphs?82 → graph-rag83 → Creating plugins/commands/skills?84 → plugin-dev85 → Building a harness workflow runner (Cursor, Claude, OpenCode, OpenAI, Pi)?86 → agents-sdk-dev (unified — specify harness)87 → See agents/research-runner/ for reference implementations88 → Gemini workflow adapter (not shipped yet)?89 → gemini-agent-sdk90 → Large cloud multi-agent tree (/orchestrate)?91 → orchestrate (planned; use agents-sdk-dev with harness=cursor until scripts/cli.ts exists)92 → Optimizing prompts?93 → prompt-refinement94 → Cleaning up AI verbosity?95 → text-cleanup96 → Managing git worktrees?97 → git-worktree98 → Deploying to Coolify?99 → coolify-deploy100```101102## Core Operating Behaviors103104### 1. Surface Assumptions105Before acting, state what you're assuming:106- "I'm assuming this is a new feature, not a bug fix"107- "I'm assuming we're using the existing auth pattern"108- "I'm assuming the database schema doesn't need changes"109110### 2. Manage Confusion111When uncertain, say so explicitly:112- "I'm not sure which pattern applies here"113- "This could be interpreted two ways"114- "I need more context about the expected behavior"115116### 3. Push Back117Challenge requirements when needed:118- "This approach will create tight coupling. Consider..."119- "The spec says X, but the existing code does Y. Which is correct?"120- "This change is too large for one commit. Should we split it?"121122### 4. Enforce Simplicity123Prefer simple solutions:124- "Can we solve this with a function instead of a class?"125- "Do we need a new dependency, or can we use what we have?"126- "Is there a simpler way to handle this edge case?"127128### 5. Scope Discipline129Stay within boundaries:130- "This is out of scope for the current task"131- "I'll note this as a follow-up, not implement it now"132- "The spec covers A and B, but not C. Should I expand scope?"133134### 6. Verify135Always prove correctness:136- "Seems right" is never sufficient137- Run tests, check build output, verify runtime behavior138- Provide evidence: passing tests, screenshots, logs139140## Anti-Rationalization Table141142| Excuse | Counter |143|--------|---------|144| "I'll add tests later" | Tests are proof. Without them, you have no evidence it works. Write tests first or alongside. |145| "This is simple enough to skip the spec" | Simple now, complex later. A 5-minute spec prevents 5-hour rewrites. |146| "I know this pattern, no need to check docs" | Frameworks change. Source-driven development prevents subtle bugs from outdated knowledge. |147| "The code works, no need to simplify" | Working code that's hard to read is technical debt. Future you (or teammates) will pay the cost. |148| "I'll fix the security issue in the next PR" | Security issues are stop-the-line. Fix now or create a tracked issue with severity. |149| "This only affects one file, no review needed" | Every change deserves review. Even small changes can have cascading effects. |150| "I'll document it later" | Undocumented code is a time bomb. Document the why, not the what, while it's fresh. |151152## Composition Rules1531541. **Agents do NOT invoke other agents** — enforced by platform constraint1552. **Agents MAY invoke skills** — skills are instructions, not agents1563. **The user or a slash command is the orchestrator** — no router agents1574. **Skills auto-activate based on context** — no manual skill selection needed1585. **Teams cannot nest** — flat hierarchy only159160## References161162- `references/orchestration-patterns.md` — Endorsed and anti-pattern orchestration approaches163- `references/testing-patterns.md` — Test structure, naming, mocking, examples164- `references/security-checklist.md` — Pre-commit checks, OWASP Top 10, secrets management165- `references/performance-checklist.md` — Core Web Vitals, frontend/backend checklists166- `references/accessibility-checklist.md` — Keyboard nav, screen readers, WCAG 2.1 AA