How this skill is triggered — by the user, by Claude, or both
Slash command
/xxthunder-dev-skills:retrospectiveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
This skill helps capture lessons when work doesn't meet expectations and encodes them into project guidelines to prevent future issues.
Use this skill whenever the user indicates dissatisfaction or unmet expectations:
When triggered, immediately:
Example:
I understand this didn't meet your expectations. To help me learn:
- What specifically about [X] was problematic?
- What would have been the correct approach?
- Is this a one-time issue or a pattern you've noticed?
Review the context to identify the root cause:
git log -5 --oneline to see recent changesAGENTS.md, CLAUDE.md, development principles, or equivalent)Ask yourself:
Classify the issue into one of these categories:
A. Guideline Violation: Existing rule was not followed
B. Unclear Guideline: Rule exists but is ambiguous or incomplete
C. Missing Guideline: No rule exists for this scenario
D. Conflicting Guidelines: Multiple rules give contradictory guidance
Based on the root cause, identify the appropriate file to update. Look for:
AGENTS.md, CLAUDE.md) - for agent-specific workflows, tool usage, project-specific patternsdocs/development-principles.md, CONTRIBUTING.md) - for general development principlesUpdate Principles:
Template for new guideline:
### [Category]: [Brief Title]
**Issue**: [What problem this addresses]
**Guideline**: [Clear, actionable rule]
**Example**:
[Good example]
**Anti-pattern**:
[What to avoid]
**When to apply**: [Context or conditions]
Show the proposed change:
Get user approval:
Apply the update:
docs: add guideline for [topic] based on retrospectiveConfirm learning:
User: "I'm not happy that you didn't write tests for the new function."
Claude Response:
I understand - test coverage is important. Let me analyze what happened:
Looking at the recent commit, I added a new function but only wrote tests
after you prompted me.
Checking project guidelines... I see "All code must include tests" but I
violated this by committing code without tests first.
Root cause: Guideline violation (I didn't follow TDD)
I should strengthen the TDD guideline to emphasize NEVER committing code
without tests. Should I add:
"### Test-Driven Development: Mandatory Test-First Workflow
**Guideline**: NEVER commit implementation code without corresponding tests.
Tests must be written BEFORE implementation (Red-Green-Refactor).
**Workflow**:
1. Write failing test
2. Run test to confirm it fails
3. Implement minimum code to pass
4. Run test to confirm it passes
5. Commit test and implementation together"
Does this capture the lesson correctly?
User: "Why did you use Grep directly instead of the Task tool?"
Claude Response:
You're right to question this. Let me review the guidance:
The guidelines say "use Task tool with subagent_type=Explore for open-ended
searches" but you asked "find files handling authentication" which felt
specific enough for Grep.
Root cause: Unclear guideline (boundary between "specific" and "open-ended"
search is ambiguous)
I should clarify the guideline with concrete examples:
"### When to Use Task Tool vs. Direct Search
**Use Task tool (Explore agent)** when:
- Question requires understanding code patterns: 'How does authentication work?'
- Multiple search rounds likely needed: 'Where are errors handled?'
- Need to connect information across files
**Use Grep/Glob directly** when:
- Searching for specific string/pattern: 'Find all uses of MyFunction'
- Single search likely sufficient: 'Find config files'
- You know exactly what to search for
**When in doubt**: Use Task tool - better to over-explore than miss context."
Should I add this clarification?
Update agent instructions (e.g., AGENTS.md, CLAUDE.md) for:
Update development principles (e.g., docs/development-principles.md, CONTRIBUTING.md) for:
Update both when:
npx claudepluginhub xxthunder/xxthunder-agentic-skills --plugin xxthunder-dev-skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.