From rcc
Analyzes conversations after significant work or 'reflect' triggers to extract learnings, classify them, and integrate into laws, skills, rules, or documentation via structured tasks.
npx claudepluginhub wayne930242/reflexive-claude-codeThis skill uses the workspace's default tool permissions.
**Reflecting IS converting experience into reusable knowledge.**
Captures high/medium/low confidence patterns from conversations to prevent repeating mistakes and preserve successes. Invoke proactively after corrections, praise, edge cases, or skill-heavy sessions.
Captures high/medium/low confidence learnings from conversations via triggers like corrections, praise, edge cases. Improves skills by preventing mistakes and preserving successes. Invoke proactively after 'no/wrong', 'perfect', or session ends.
Extracts patterns, templates, and preferences from completed knowledge work to store learnings and improve future tasks. Activates on reflection requests like 'what did we learn' or after high-stakes work.
Share bugs, ideas, or general feedback.
Reflecting IS converting experience into reusable knowledge.
Analyze what worked, what failed, and encode learnings into the appropriate component (law, skill, rule, or documentation).
Core principle: Experience without reflection is wasted. Capture it before context is lost.
Violating the letter of the rules is violating the spirit of the rules.
Pattern: Tree
Handoff: auto-invoke (per classification)
Next: writing-claude-md | writing-skills | writing-rules
Before ANY action, create task list using TaskCreate:
TaskCreate for EACH task below:
- Subject: "[reflecting] Task N: <action>"
- ActiveForm: "<doing action>"
Tasks:
Announce: "Created 7 tasks. Starting execution..."
Execution rules:
TaskUpdate status="in_progress" BEFORE starting each taskTaskUpdate status="completed" ONLY after verification passesTaskList to confirm all completedGoal: Review the conversation to identify significant events.
Look for:
Document each event:
Event: [What happened]
Context: [When/where it occurred]
Outcome: [Success/failure/discovery]
Verification: Listed at least 3 significant events.
Goal: Extract actionable learnings from events.
For each event, ask:
Learning format:
Learning:
context: [When this applies]
insight: [What was learned]
evidence: [Specific event that taught this]
Verification: Each event has at least one learning.
Goal: Determine where each learning belongs.
Is it true across ALL projects?
├─ Yes → USER ROOT (~/.claude/)
│ ├─ Universal behavior → ~/.claude/CLAUDE.md
│ └─ Convention/pattern → ~/.claude/rules/*.md
└─ No → PROJECT LEVEL (.claude/)
├─ Is it IMMUTABLE (must enforce every response)?
│ ├─ Yes → LAW in .claude/CLAUDE.md
│ └─ No → Is it a CAPABILITY (how to do)?
│ ├─ Yes → SKILL
│ │ └─ Is it SHARED across multiple skills?
│ │ ├─ Yes → Also extract to RULE
│ │ └─ No → Keep in Skill only
│ └─ No → Is it a CONVENTION (what to do)?
│ ├─ Yes → RULE in .claude/rules/
│ └─ No → DOCUMENTATION only
| Signal | Scope |
|---|---|
| "This applies regardless of language or framework" | User root |
| "This is about how I work, not what I'm building" | User root |
| "This mistake could happen in any project" | User root |
| "This is specific to this codebase's architecture" | Project |
| "This convention only makes sense here" | Project |
| Type | Characteristics | Example |
|---|---|---|
| User-root law | Universal, every project | "Show reasoning for decisions" |
| User-root rule | Cross-project convention | "Go edits must combine imports" |
| Project law | Immutable, this project only | "Always display laws" |
| Skill | How to do something, reusable | "How to write tests" |
| Rule | Convention, path-scoped | "API responses use { data, error }" |
| Documentation | Reference, not actionable | "Architecture overview" |
Verification: Each learning has a classification.
Goal: Add learnings to the appropriate components.
~/.claude/CLAUDE.md and relevant ~/.claude/rules/*.md~/.claude/rules/ directly (user-root has no writing-* skill chain)Invoke writing-claude-md skill or edit CLAUDE.md directly.
Invoke writing-skills skill to create/update skill.
Invoke writing-rules skill to create rule file.
Add to appropriate references/ or docs/ location.
CRITICAL: Invoke the appropriate skill for project-level components—don't create them directly.
Verification: All learnings integrated into components.
Goal: Run reviewer agents on all newly created/modified components.
For each component created in Task 4, invoke its reviewer:
| Component Type | Reviewer Agent |
|---|---|
| CLAUDE.md (law) | claudemd-reviewer |
| Skill | skill-reviewer |
| Rule | rule-reviewer |
| Hook | hook-reviewer |
| Subagent | subagent-reviewer |
Agent tool:
- subagent_type: "rcc:[reviewer-name]"
- prompt: "Review [component type] at [path]"
If reviewer returns "Needs Fix" or "Fail": Fix the issues before proceeding.
Verification: All new/modified components pass their reviewer.
Goal: Confirm learnings are correctly integrated.
Check:
paths: scopeTest:
Verification: All integrated components work correctly.
Goal: Document what was captured.
## Reflection Summary
### Session Context
[What work was done]
### Learnings Captured
| Learning | Classification | Location |
|----------|----------------|----------|
| [insight] | law/skill/rule/doc | [path] |
### Components Modified
- Laws: [new/updated laws]
- Skills: [new/updated skills]
- Rules: [new/updated rules]
### Recommendations
- [Future improvements]
Verification: Summary accurately reflects all changes.
Trigger reflection after:
Don't wait for "later"—context fades quickly.
These thoughts mean you're rationalizing. STOP and reconsider:
All of these mean: You're about to lose valuable learnings. Follow the process.
| Excuse | Reality |
|---|---|
| "Nothing learned" | Every session has learnings. Look harder. |
| "I'll remember" | You won't. Context fades. Capture now. |
| "Too small" | Small learnings compound. Capture them. |
| "Overhead" | 10 minutes now saves hours later. |
| "Skip classification" | Wrong location = unfindable. Classify properly. |
digraph reflecting {
rankdir=TB;
start [label="Reflect on work", shape=doublecircle];
analyze [label="Task 1: Analyze\nconversation", shape=box];
identify [label="Task 2: Identify\nlearnings", shape=box];
classify [label="Task 3: Classify\neach learning", shape=box];
integrate [label="Task 4: Integrate into\ncomponents", shape=box];
review [label="Task 5: Review\ncomponents", shape=box, style=filled, fillcolor="#e8e8ff"];
review_pass [label="All\npassed?", shape=diamond];
verify [label="Task 6: Verify\nintegration", shape=box];
works [label="All\nworking?", shape=diamond];
summary [label="Task 7: Generate\nsummary", shape=box];
done [label="Reflection complete", shape=doublecircle];
start -> analyze;
analyze -> identify;
identify -> classify;
classify -> integrate;
integrate -> review;
review -> review_pass;
review_pass -> verify [label="yes"];
review_pass -> integrate [label="no\nfix"];
verify -> works;
works -> summary [label="yes"];
works -> integrate [label="no\nfix"];
summary -> done;
}
writing-claude-md for lawswriting-skills for capabilitieswriting-rules for conventionsagent-architect for classification help