Skip to content

Commit 161e309

Browse files
committed
feat(skill): update red flags
1 parent 2d9440a commit 161e309

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

skills/agent-orchestration/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ You are the **team lead**. You own the orchestration loop. You do NOT ask the us
1515
- **Track what you sent.** Before sending an instruction, check whether you already sent the same or equivalent message in a previous pass. Never re-send duplicate instructions.
1616
- **Escalate to user ONLY when**: you can't resolve an agent's error after 2 attempts, a decision requires product/business judgment, agents have conflicting outputs you can't resolve, or an agent is stuck after corrective attempts. Include: which agent, what happened, your recommendation, what you need. After the user responds, **resume the loop immediately**.
1717

18+
## Red Flags and Rationalizations
19+
20+
| Rationalization | Why It's Wrong | Do Instead |
21+
|---|---|---|
22+
| "The agent said it's done" | Agents claim done without evidence | Check the diff and run tests |
23+
| "I'll check on it later" | You are the loop — no one else will | Check now, act now |
24+
| "Both agents can edit that file" | Parallel edits cause conflicts | Sequence or assign non-overlapping scopes |
25+
1826
## Approval Guardrails
1927

2028
You may approve autonomously: code style changes, test results, routine clarifications, and non-destructive progress steps.

skills/capture-knowledge/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ Build structured understanding of code entry points with an analysis-first workf
3737
- Create `docs/ai/implementation/knowledge-{name}.md` using the Output Template.
3838
- Include mermaid diagrams when they clarify flows or relationships.
3939

40+
## Red Flags and Rationalizations
41+
42+
| Rationalization | Why It's Wrong | Do Instead |
43+
|---|---|---|
44+
| "I already understand this code" | Understanding ≠ documented understanding | Write it down, then verify |
45+
| "The code is self-documenting" | Future readers lack your current context | Capture the why, not just the what |
46+
| "Dependencies are obvious" | Implicit dependencies cause surprises | Map them explicitly to depth 3 |
47+
4048
## Validation
4149
- Documentation covers all Output Template sections.
4250
- Summarize key insights, open questions, and related areas for deeper dives.

skills/debug/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ For each hypothesis, include:
3636
- Confirm post-fix success using the `verify` skill — including regression verification for bug fixes.
3737
- Summarize remaining risks and follow-ups.
3838

39+
## Red Flags and Rationalizations
40+
41+
| Rationalization | Why It's Wrong | Do Instead |
42+
|---|---|---|
43+
| "I already know the cause" | Assumptions skip evidence | Reproduce and prove it first |
44+
| "This is urgent, just fix it" | A wrong fix wastes more time | 10 minutes of diagnosis saves hours |
45+
| "The fix is obvious from the stack trace" | Stack traces show symptoms, not causes | Trace backward to the root cause |
46+
3947
## Output Template
4048
Use this response structure:
4149
- Observed vs Expected

skills/dev-lifecycle/SKILL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ Use `npx ai-devkit@latest memory` CLI in any phase that involves clarification q
7575
1. **Before asking questions**: `npx ai-devkit@latest memory search --query "<topic>"`. Apply matches; only ask about uncovered gaps.
7676
2. **After clarification**: `npx ai-devkit@latest memory store --title "<title>" --content "<knowledge>" --tags "<tags>"`.
7777

78+
## Red Flags and Rationalizations
79+
80+
| Rationalization | Why It's Wrong | Do Instead |
81+
|---|---|---|
82+
| "Skip to coding, requirements are clear" | Ambiguity hides in assumptions | Run Phase 1-3 first |
83+
| "Design hasn't changed, skip Phase 6" | Code drifts from design during implementation | Check implementation against design |
84+
| "Tests slow us down, ship first" | Bugs in production are slower | Write tests in Phase 4 and 7 |
85+
| "Just a small change, no review needed" | Small changes cause big outages | Phase 8 applies to all changes |
86+
7887
## Rules
7988

8089
- Read existing `docs/ai/` before changes. Keep diffs minimal.

skills/simplify-implementation/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ For each issue, apply a pattern:
3636
5. Prioritize and Plan
3737
- Rank by impact/risk. Present plan with before/after snippets. Request approval.
3838

39+
## Red Flags and Rationalizations
40+
41+
| Rationalization | Why It's Wrong | Do Instead |
42+
|---|---|---|
43+
| "While I'm here, let me refactor this too" | Scope creep breaks things | Only simplify what was requested |
44+
| "This abstraction will help later" | Predicted reuse rarely materializes | Remove it unless used twice today |
45+
| "Shorter is simpler" | Brevity can hide complexity | Optimize for readability, not line count |
46+
3947
## Validation
4048
- Verify no regressions, add tests for new helpers, update docs if interfaces changed.
4149

skills/technical-writer/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ Review documentation as a novice would experience it. Suggest concrete improveme
2222
- **Medium**: Causes confusion but workaround exists.
2323
- **Low**: Polish and nice-to-have.
2424

25+
## Red Flags and Rationalizations
26+
27+
| Rationalization | Why It's Wrong | Do Instead |
28+
|---|---|---|
29+
| "Developers will figure it out" | Novice users won't | Write for the least experienced reader |
30+
| "The code example speaks for itself" | Examples without context confuse | Add what it does and when to use it |
31+
| "Too much detail clutters the doc" | Missing detail blocks users | Include prerequisites and edge cases |
32+
2533
## Output Template
2634

2735
```

0 commit comments

Comments
 (0)