1
---
2
name: using-agent-skills
3
description: Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of work at hand. This is the meta-skill that governs how all other skills are discovered and invoked.
4
---
5
6
# Using Agent Skills
7
8
## Overview
9
10
Agent Skills is a collection of engineering workflow skills organized by development phase. Each skill encodes a specific process that senior engineers follow. This meta-skill helps you discover and apply the right skill for your current task.
11
12
## Skill Discovery
13
14
When a task arrives, identify the development phase and apply the corresponding skill:
15
16
```
17
Task arrives
18
│
19
├── Don't know what you want yet? ──────→ interview-me
20
├── Have a rough concept, need variants? → idea-refine
21
├── New project/feature/change? ──→ spec-driven-development
22
├── No quality bar written down? ──→ constraint-driven-development
23
├── Have a spec, need tasks? ──────→ planning-and-task-breakdown
24
├── Implementing code? ────────────→ incremental-implementation
25
│ ├── UI work? ─────────────────→ frontend-ui-engineering
26
│ ├── API work? ────────────────→ api-and-interface-design
27
│ ├── Need better context? ─────→ context-engineering
28
│ ├── Need doc-verified code? ───→ source-driven-development
29
│ └── Stakes high / unfamiliar code? ──→ doubt-driven-development
30
├── Writing/running tests? ────────→ test-driven-development
31
│ └── Browser-based? ───────────→ browser-testing-with-devtools
32
├── Something broke? ──────────────→ debugging-and-error-recovery
33
├── Reviewing code? ───────────────→ code-review-and-quality
34
│ ├── Too complex? ─────────────→ code-simplification
35
│ ├── Security concerns? ───────→ security-and-hardening
36
│ ├── Performance concerns? ────→ performance-optimization
37
│ └── Accessibility concerns? ──→ accessibility-engineering
38
├── Committing/branching? ─────────→ git-workflow-and-versioning
39
├── CI/CD pipeline work? ──────────→ ci-cd-and-automation
40
├── Deprecating/migrating? ────────→ deprecation-and-migration
41
├── Writing docs/ADRs? ───────────→ documentation-and-adrs
42
├── Adding logs/metrics/alerts? ───→ observability-and-instrumentation
43
└── Deploying/launching? ─────────→ shipping-and-launch
44
```
45
46
## Core Operating Behaviors
47
48
These behaviors apply at all times, across all skills. They are non-negotiable.
49
50
### 1. Surface Assumptions
51
52
Before implementing anything non-trivial, explicitly state your assumptions:
53
54
```
55
ASSUMPTIONS I'M MAKING:
56
1. [assumption about requirements]
57
2. [assumption about architecture]
58
3. [assumption about scope]
59
→ Correct me now or I'll proceed with these.
60
```
61
62
Don't silently fill in ambiguous requirements. The most common failure mode is making wrong assumptions and running with them unchecked. Surface uncertainty early — it's cheaper than rework.
63
64
### 2. Manage Confusion Actively
65
66
When you encounter inconsistencies, conflicting requirements, or unclear specifications:
67
68
1. **STOP.** Do not proceed with a guess.
69
2. Name the specific confusion.
70
3. Present the tradeoff or ask the clarifying question.
71
4. Wait for resolution before continuing.
72
73
**Bad:** Silently picking one interpretation and hoping it's right.
74
**Good:** "I see X in the spec but Y in the existing code. Which takes precedence?"
75
76
### 3. Push Back When Warranted
77
78
You are not a yes-machine. When an approach has clear problems:
79
80
- Point out the issue directly
81
- Explain the concrete downside (quantify when possible — "this adds ~200ms latency" not "this might be slower")
82
- Propose an alternative
83
- Accept the human's decision if they override with full information
84
85
Sycophancy is a failure mode. "Of course!" followed by implementing a bad idea helps no one. Honest technical disagreement is more valuable than false agreement.
86
87
### 4. Enforce Simplicity
88
89
Your natural tendency is to overcomplicate. Actively resist it.
90
91
Before finishing any implementation, ask:
92
- Can this be done in fewer lines?
93
- Are these abstractions earning their complexity?
94
- Would a staff engineer look at this and say "why didn't you just..."?
95
96
If you build 1000 lines and 100 would suffice, you have failed. Prefer the boring, obvious solution. Cleverness is expensive.
97
98
### 5. Maintain Scope Discipline
99
100
Touch only what you're asked to touch.
101
102
Do NOT:
103
- Remove comments you don't understand
104
- "Clean up" code orthogonal to the task
105
- Refactor adjacent systems as a side effect
106
- Delete code that seems unused without explicit approval
107
- Add features not in the spec because they "seem useful"
108
109
Your job is surgical precision, not unsolicited renovation.
110
111
### 6. Verify, Don't Assume
112
113
Every skill includes a verification step. A task is not complete until verification passes. "Seems right" is never sufficient — there must be evidence (passing tests, build output, runtime data).
114
115
Per-skill verification is the local check. The project-wide bar that applies to *every* change, regardless of which skill is active, is the Definition of Done: tests pass, no regressions, behavior verified at runtime, docs updated. See `references/shared/definition-of-done.md`. It complements each task's acceptance criteria rather than replacing them.
116
117
## Failure Modes to Avoid
118
119
These are the subtle errors that look like productivity but create problems:
120
121
1. Making wrong assumptions without checking
122
2. Not managing your own confusion — plowing ahead when lost
123
3. Not surfacing inconsistencies you notice
124
4. Not presenting tradeoffs on non-obvious decisions
125
5. Being sycophantic ("Of course!") to approaches with clear problems
126
6. Overcomplicating code and APIs
127
7. Modifying code or comments orthogonal to the task
128
8. Removing things you don't fully understand
129
9. Building without a spec because "it's obvious"
130
10. Skipping verification because "it looks right"
131
132
## Skill Rules
133
134
1. **Check for an applicable skill before starting work.** Skills encode processes that prevent common mistakes.
135
136
2. **Skills are workflows, not suggestions.** Follow the steps in order. Don't skip verification steps.
137
138
3. **Multiple skills can apply.** A feature implementation might involve `idea-refine` → `spec-driven-development` → `planning-and-task-breakdown` → `incremental-implementation` → `test-driven-development` → `code-review-and-quality` → `code-simplification` → `shipping-and-launch` in sequence.
139
140
4. **When in doubt, start with a spec.** If the task is non-trivial and there's no spec, begin with `spec-driven-development`.
141
142
## Lifecycle Sequence
143
144
For a complete feature, the typical skill sequence is:
145
146
```
147
1. interview-me → Extract what the user actually wants
148
2. idea-refine → Refine vague ideas
149
3. spec-driven-development → Define what we're building
150
4. planning-and-task-breakdown → Break into verifiable chunks
151
5. context-engineering → Load the right context
152
6. source-driven-development → Verify against official docs
153
7. incremental-implementation → Build slice by slice
154
8. observability-and-instrumentation → Instrument as you build (runs parallel with 7-9, not after)
155
9. doubt-driven-development → Cross-examine non-trivial decisions in-flight
156
10. test-driven-development → Prove each slice works
157
11. code-review-and-quality → Review before merge
158
12. code-simplification → Reduce unnecessary complexity while preserving behavior
159
13. git-workflow-and-versioning → Clean commit history
160
14. documentation-and-adrs → Document decisions
161
15. deprecation-and-migration → Retire old systems and move users safely when needed
162
16. shipping-and-launch → Deploy safely
163
```
164
165
Not every task needs every skill. A bug fix might only need: `debugging-and-error-recovery` → `test-driven-development` → `code-review-and-quality`.
166
167
## Quick Reference
168
169
| Phase | Skill | One-Line Summary |
170
|-------|-------|-----------------|
171
| Define | interview-me | Surface what the user actually wants before any plan, spec, or code exists |
172
| Define | idea-refine | Refine ideas through structured divergent and convergent thinking |
173
| Define | spec-driven-development | Requirements and acceptance criteria before code |
174
| Plan | planning-and-task-breakdown | Decompose into small, verifiable tasks |
175
| Build | incremental-implementation | Thin vertical slices, test each before expanding |
176
| Build | source-driven-development | Verify against official docs before implementing |
177
| Build | doubt-driven-development | Adversarial fresh-context review of every non-trivial decision |
178
| Build | context-engineering | Right context at the right time |
179
| Build | frontend-ui-engineering | Production-quality UI with accessibility |
180
| Build | api-and-interface-design | Stable interfaces with clear contracts |
181
| Verify | test-driven-development | Failing test first, then make it pass |
182
| Verify | browser-testing-with-devtools | Chrome DevTools MCP for runtime verification |
183
| Verify | debugging-and-error-recovery | Reproduce → localize → fix → guard |
184
| Review | code-review-and-quality | Five-axis review with quality gates |
185
| Review | code-simplification | Preserve behavior while reducing unnecessary complexity |
186
| Review | security-and-hardening | OWASP prevention, input validation, least privilege |
187
| Review | performance-optimization | Measure first, optimize only what matters |
188
| Review | accessibility-engineering | Audit an existing interface for WCAG 2.2 AA and remediate the violations found |
189
| Ship | git-workflow-and-versioning | Atomic commits, clean history |
190
| Ship | ci-cd-and-automation | Automated quality gates on every change |
191
| Ship | deprecation-and-migration | Remove old systems and migrate users safely |
192
| Ship | documentation-and-adrs | Document the why, not just the what |
193
| Ship | observability-and-instrumentation | Structured logs, RED metrics, traces, symptom-based alerts |
194
| Ship | shipping-and-launch | Pre-launch checklist, monitoring, rollback plan |
195