cwoodruff/htmxrazor/reflect
Claude Code and agent skill by cwoodruff/htmxrazor
- community
Checking that the SKILL.md file is still in the repository.
Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.
Install
npx vskill@latest install cwoodruff/htmxrazor/reflectSKILL.md
The same SKILL.md was published earlier as dmauser/azure-virtualwan/reflect.
Reflect Skill
Critical learning capture system for Squad. Prevents repeating mistakes and preserves successful patterns across sessions.
Analyze conversations and propose improvements to squad knowledge based on what worked, what didn't, and edge cases discovered. Every correction is a learning opportunity.
Integration with Squad Architecture
Reflect complements existing Squad knowledge systems:
- `.squad/agents/{agent}/history.md` — Permanent learnings from completed work (append-only; each agent updates their own file; Scribe propagates cross-agent updates)
- `.squad/decisions.md` — Team-wide decisions that all agents respect
- `reflect` skill — Captures in-flight learnings from conversations that may graduate to history.md or decisions.md
Workflow:
- Use
reflectduring work to capture learnings - At session end, review captured learnings
- Promote HIGH confidence patterns → lead agent for decision.md review
- Promote agent-specific patterns →
{agent}/history.mdupdates
Triggers
🔴 HIGH Priority (Invoke Immediately)
| Trigger | Example | Why Critical | |
|---|---|---|---|
| User correction | "no", "wrong", "not like that", "never do" | Captures mistakes to prevent repetition | |
| Architectural insight | "you removed that without understanding why" | Documents design decisions (Chesterton's Fence) | |
| Immediate fixes | "debug", "root cause", "fix all" | Learns from errors in real-time |
🟡 MEDIUM Priority (Invoke After Multiple)
| Trigger | Example | Why Important | |
|---|---|---|---|
| User praise | "perfect", "exactly", "great" | Reinforces successful patterns | |
| Tool preferences | "use X instead of Y", "prefer" | Builds workflow preferences | |
| Edge cases | "what if X happens?", "don't forget", "ensure" | Captures scenarios to handle |
🟢 LOW Priority (Invoke at Session End)
| Trigger | Example | Why Useful | |
|---|---|---|---|
| Repeated patterns | Frequent use of specific commands/tools | Identifies workflow preferences | |
| Session end | After complex work | Consolidates all session learnings |
Process
Phase 1: Identify Learning Target
Determine what knowledge system should be updated:
- Agent-specific learning →
.squad/agents/{agent}/history.md - Team-wide decision →
.squad/decisions/inbox/{agent}-{topic}.md - Skill-specific improvement → Document in session, recommend to skill owner
Phase 2: Analyze Conversation
Scan for learning signals with confidence levels:
HIGH Confidence: Corrections
User actively steered or corrected output.
Detection patterns:
- Explicit rejection: "no", "not like that", "that's wrong"
- Strong directives: "never do", "always do", "don't ever"
- User provided alternative implementation
Example:
MEDIUM Confidence: Success Patterns
Output was accepted or praised.
Detection patterns:
- Explicit praise: "perfect", "great", "yes", "exactly"
- User built on output without modification
- Output was committed without changes
Example:
MEDIUM Confidence: Edge Cases
Scenarios not anticipated.
Detection patterns:
- Questions not answered
- Workarounds user had to apply
- Error handling gaps discovered
LOW Confidence: Preferences
Accumulated patterns over time.
Phase 3: Propose Learnings
Present findings:
Confidence Threshold:
| Threshold | Action | |
|---|---|---|
| ≥1 HIGH signal | Always propose (user explicitly corrected) | |
| ≥2 MED signals | Propose (sufficient pattern) | |
| ≥3 LOW signals | Propose (accumulated evidence) | |
| 1-2 LOW only | Skip (insufficient evidence) |
Phase 4: Persist Learnings
ALWAYS show changes before applying.
After user approval:
- For Agent History:
- Append to
.squad/agents/{agent}/history.mdunder## Learningssection - Format: Date, assignment context, key learning
- For Team Decisions:
- Create
.squad/decisions/inbox/{agent}-{topic}.md - Lead agent reviews and merges to
decisions.mdif appropriate
- For Skills:
- Document recommendation in session notes
- Squad lead reviews and routes to skill owner
Usage Examples
Example 1: User Correction
Conversation:
Reflection Output:
Example 2: Success Pattern
Conversation:
Reflection Output:
When to Use
✅ Use reflect when:
- User says "no", "wrong", "not like that" (HIGH priority)
- User says "perfect", "exactly", "great" (MED priority)
- You discover edge cases or gaps
- Complex work session with multiple learnings
- At end of sprint/milestone to consolidate patterns
❌ Don't use reflect when:
- Simple one-off questions with no pattern
- User is just exploring ideas (no concrete decisions)
- Learning is already captured in history.md/decisions.md
See Also
.squad/decisions.md— Team-wide decisions.squad/agents/*/history.md— Agent-specific learnings.squad/routing.md— Work assignment patterns
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/templates/skills/reflect/SKILL.md
Popularity
- Repository stars
- 116
- Repository forks
- 3
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cwoodruff/htmxrazor/reflect)