reflect
CRITICAL learning capture. Extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes and preserve what works. Use PROACTIVELY after user corrections ("no", "wrong"), after praise ("perfect", "exactly"), when discovering edge cases, or when skills are heavily used. Without reflection, valuable learnings are LOST forever. Acts as continuous improvement engine for all skills. Invoke EARLY and OFTEN - every correction is a learning opportunity.
- License 许可
- MIT
- 最近更新
- 2026-03-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- reflect
- model
- claude-sonnet-4-6
- agents
- [ "analyst", "architect", "skillbook" ]
- license
- MIT
- metadata
- { "version": "1.0.0", "timelessness": "8/10" }
- description
- CRITICAL learning capture. Extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes and preserve what works. Use PROACTIVELY after user corrections ("no", "wrong"), after praise ("perfect", "exactly"), when discovering edge cases, or when skills are heavily used. Without reflection, valuable learnings are LOST forever. Acts as continuous improvement engine for all skills. Invoke EARLY and OFTEN - every correction is a learning opportunity.
02 资源文件 103
- 其他.build-trigger24 B
- 其他articles/.gitkeep—
- 参考文档articles/290-million-year-old-reptile-reveals-oldest-fossilized-anus.md5.0 KB
- 参考文档articles/3i-atlas-unusual-interstellar-object-sparks-fascination-not-fear.md3.9 KB
- 参考文档articles/4-diets-proven-to-cut-dementia-risk-by-28.md5.3 KB
- 参考文档articles/ai-deer-management-scotland-cairngorms-recovery.md4.5 KB
- 参考文档articles/ai-weather-tool-surpasses-global-forecasting-centers-accuracy.md4.4 KB
- 参考文档articles/algae-biofuels-australia-clean-diesel-aviation-fuel.md5.7 KB
- 参考文档articles/amazonian-scorpion-venom-destroys-breast-cancer-cells.md3.9 KB
- 参考文档articles/ancient-clues-reveal-why-most-humans-are-right-handed.md9.4 KB
- 参考文档articles/ancient-dna-uncovers-beachy-head-womans-true-identity.md4.3 KB
- 参考文档articles/ancient-egyptian-tomb-burial-evolution.md4.4 KB
- 参考文档articles/antarctic-expedition-sea-creatures-cancer-fighting-potential.md5.6 KB
- 参考文档articles/antarctica-climate-mystery-solved-regional-temperature-changes.md5.3 KB
- 参考文档articles/asteroid-bombardment-cracked-earth-crust-life-origins.md5.8 KB
- 参考文档articles/astronomers-discover-record-breaking-space-laser-8-billion-light-years-away.md3.5 KB
- 参考文档articles/astronomical-forecast-confirmed-rare-star-set-for-explosive-demise.md3.3 KB
- 参考文档articles/biscayne-bay-climate-change-warming-acidification-study.md5.8 KB
- 参考文档articles/boost-green-messaging-problem-solution.md5.4 KB
- 参考文档articles/brazilian-psychedelic-plant-new-hope-for-depression-treatment.md5.7 KB
- 参考文档articles/breakthrough-sleep-apnea-procedure-achieves-93-success-rate.md5.1 KB
- 参考文档articles/cannabis-compounds-could-reverse-fatty-liver-disease.md4.0 KB
- 参考文档articles/celtic-coin-hoard-germany-europe-before-rome.md5.7 KB
- 参考文档articles/century-old-viral-treatment-solution-to-superbug-crisis.md5.2 KB
- 参考文档articles/chronic-back-pain-treatment-linked-to-increased-dementia-risk.md4.5 KB
- 参考文档articles/coastal-squeeze-rising-seas-migratory-shorebirds.md5.3 KB
- 参考文档articles/cobalt-catalyst-revolution-sustainable-chemistry.md4.5 KB
- 参考文档articles/common-blood-pressure-drug-may-fight-deadly-superbugs.md8.9 KB
- 参考文档articles/covid-connection-to-alzheimers-like-plaques-in-eyes-and-brain.md4.8 KB
- 参考文档articles/cutting-ultra-processed-foods-improve-mood.md4.6 KB
- 参考文档articles/deepest-gas-hydrate-with-abundant-life-found-near-greenland.md4.0 KB
- 参考文档articles/detecting-black-hole-footprints-gravitational-waves.md5.2 KB
- 参考文档articles/discover-the-intriguing-new-phase-of-matter-the-half-ice-half-fire-magnet-phenomenon.md3.6 KB
- 参考文档articles/discover-the-rapid-spin-of-our-galaxys-black-hole.md5.0 KB
- 参考文档articles/dna-mutations-cap-human-lifespan-194-years-study.md6.8 KB
- 参考文档articles/early-galaxies-illuminate-universe.md4.2 KB
- 参考文档articles/endangered-mice-pass-learned-fear-snakes-female-offspring.md5.5 KB
- 参考文档articles/exploring-charged-excitons-nanocorral-quantum-light.md5.1 KB
- 参考文档articles/fairness-climate-action-emissions-pathways.md4.8 KB
- 参考文档articles/food-packaging-microplastics-how-they-contaminate-your-meals.md4.3 KB
- 参考文档articles/forever-chemicals-accelerate-aging-in-middle-aged-men-study.md4.0 KB
- 参考文档articles/forgotten-heavy-neutrino-why-universe-exists.md5.3 KB
- 参考文档articles/galapagos-yellow-sea-turtles-stay-local-migration.md7.9 KB
- 参考文档articles/global-sea-levels-rise-greenlands-expected-to-decrease.md4.5 KB
- 参考文档articles/golf-ball-sized-blue-octopus-discovered-galapagos-deep-sea.md4.7 KB
- 参考文档articles/gravitational-lensing-dark-matter-secrets.md4.6 KB
- 参考文档articles/great-apes-human-like-curiosity-social-intelligence.md5.9 KB
- 参考文档articles/how-surgeons-sustained-life-without-lungs-for-48-hours.md4.1 KB
- 参考文档articles/how-to-read-hurricane-tracker-spaghetti-models.md5.9 KB
- 参考文档articles/hydrogens-distant-glow-dark-energy.md4.1 KB
- 参考文档articles/insect-remains-burial-practices-canary-islands.md5.1 KB
- 参考文档articles/jwst-birthplace-ancient-star-clusters.md4.1 KB
- 参考文档articles/jwst-discovers-planet-with-unprecedented-two-massive-tails.md4.4 KB
- 参考文档articles/jwst-reveals-hidden-structure-at-squid-galaxys-heart.md8.6 KB
- 参考文档articles/jwst-uncovers-potential-evidence-of-primordial-black-hole.md4.9 KB
- 参考文档articles/langobard-woman-violence-archaeological-discovery.md5.8 KB
- 参考文档articles/lidar-reveals-ancient-amazonian-civilization-urban-landscape.md5.6 KB
- 参考文档articles/lonely-sun-star-census-reveals-companions.md4.9 KB
- 参考文档articles/luxury-hotels-green-roofs-climate-assets.md4.7 KB
- 参考文档articles/marine-heat-waves-dangerous.md4.5 KB
- 参考文档articles/microplastics-remain-in-drinking-water-despite-treatment-upgrades.md5.4 KB
- 参考文档articles/mosquitoes-learn-associate-deet-food-study.md4.9 KB
- 参考文档articles/nasa-hip-fracture-rates-astronauts.md4.5 KB
- 参考文档articles/nasa-study-suggests-mars-organics-may-indicate-life.md4.4 KB
- 参考文档articles/new-discoveries-reveal-life-after-pompeiis-eruption.md5.1 KB
- 参考文档articles/new-quantum-materials-revolutionize-dark-matter-detection.md4.5 KB
- 参考文档articles/newark-kala-pilates-guide.md4.9 KB
- 参考文档articles/perseverance-rover-finds-strongest-evidence-of-life-on-mars.md4.0 KB
- 参考文档articles/plants-dna-repair-protein-yaf9b-stem-cells.md5.3 KB
- 参考文档articles/post-growth-architecture-asia.md5.5 KB
- 参考文档articles/psychedelics-may-transform-brain-to-lower-alcohol-intake.md4.3 KB
- 参考文档articles/revolutionary-neutrino-laser-concept-emerges-from-physicists-research.md4.1 KB
- 参考文档articles/revolutionizing-monarch-conservation-tracking-technology.md5.1 KB
- 参考文档articles/rising-sea-levels-threaten-baltic-bird-nests-critical-40cm-mark.md5.4 KB
- 参考文档articles/scientists-listen-sun-discover-hidden-solar-cycle-changes.md5.6 KB
- 参考文档articles/scientists-rejuvenate-aging-blood-stem-cells-in-mice-study.md4.1 KB
- 参考文档articles/scientists-uncover-1700-hidden-dark-proteins-in-human-cells.md9.7 KB
- 参考文档articles/scientists-warn-against-unsafe-impractical-sun-dimming-methods.md4.4 KB
- 参考文档articles/self-driving-labs-revolutionize-semiconductor-discovery.md4.7 KB
- 参考文档articles/shark-conservation-international-teamwork.md4.5 KB
- 参考文档articles/storm-conditions-doubling-sandy-hook-coastal-erosion.md5.3 KB
- 参考文档articles/striped-wind-turbines-bird-deaths-bird-vision.md6.1 KB
- 参考文档articles/study-reveals-common-viruses-activate-dormant-breast-cancer-cells.md4.0 KB
- 参考文档articles/sugary-diets-may-harm-memory-major-review-finds.md10.8 KB
- 参考文档articles/super-el-nino-winter-impacts.md4.9 KB
- 参考文档articles/superflares-shaped-earth-climate-habitability.md4.2 KB
- 参考文档articles/swiss-high-altitude-forests-drought-crisis.md5.4 KB
- 参考文档articles/temporary-carbon-removal-climate-goals-study.md5.8 KB
- 参考文档articles/this-exercise-type-delivers-better-results-with-less-effort.md9.3 KB
- 参考文档articles/titans-lakes-crystals-challenge-chemistrys-fundamental-rules.md4.3 KB
- 参考文档articles/top-lifestyle-habits-linked-to-preventable-cancers.md4.2 KB
- 参考文档articles/ultra-processed-foods-insulin-response-same-nutrients.md5.3 KB
- 参考文档articles/uncovering-the-moons-water-imbalance-indications-of-a-past-collision.md3.8 KB
- 参考文档articles/understanding-air-quality-wildfire-smoke.md4.7 KB
- 参考文档articles/unravelling-uranus-new-research-sheds-light-on-planets-puzzling-mysteries.md3.3 KB
- 参考文档articles/why-62000-penguins-died-off-south-africas-coast.md4.5 KB
- 参考文档articles/why-universe-may-be-locked-into-current-energy-state.md6.0 KB
- 参考文档articles/women-hunters-mental-wellness-community.md5.0 KB
- 参考文档articles/young-blood-found-to-reverse-aging-in-human-skin-cells.md4.3 KB
- 资产文件assets/.gitkeep—
- 参考文档dedup-index.json6.9 KB
- 参考文档site.yaml4.2 KB
- 参考文档templates/skill-observations-template.md638 B
03 SKILL.md 正文
Reflect Skill
Critical learning capture system that prevents repeating mistakes and preserves successful patterns across sessions.
Analyze the current conversation and propose improvements to skill-based memories based on what worked, what didn't, and edge cases discovered. Every correction is a learning opportunity - invoke proactively to build institutional knowledge.
Triggers
| Trigger Phrase | Operation |
|---|---|
reflect on this session |
Extract learnings from conversation |
learn from this mistake |
Capture correction patterns |
capture what we learned |
Document session insights |
improve skill {name} |
Target specific skill memory |
what did we learn |
Review and store patterns |
Also monitor user phrasing such as "what if...", "ensure", or "don't forget". These phrases should immediately route into the MEDIUM trigger tables below.
HIGH Priority Triggers (Invoke Immediately)
| Trigger | Example | Why Critical |
|---|---|---|
| User correction | "no", "wrong", "not like that", "never do" | Captures mistakes to prevent repetition |
| Chesterton's Fence | "you removed that without understanding" | Documents architectural decisions |
| Immediate fixes | "debug", "root cause", "fix all" | Learns from errors in real-time |
MEDIUM Priority Triggers (Invoke After Multiple)
| Trigger | Example | Why Important |
|---|---|---|
| User praise | "perfect", "exactly", "great" | Reinforces successful patterns |
| Tool preferences | "use X instead of Y", "prefer", "rather than" | Builds workflow preferences |
| Edge cases | "what if X happens?", "don't forget", "ensure" | Captures scenarios to handle |
| Questions | Short questions after output | May indicate confusion or gaps |
LOW Priority Triggers (Invoke at Session End)
| Trigger | Example | Why Useful |
|---|---|---|
| Repeated patterns | Frequent use of specific commands/tools | Identifies workflow preferences |
| Session end | After skill-heavy work | Consolidates all session learnings |
Original Triggers (Still Supported)
| Phrase | Action |
|---|---|
| "reflect" | Full analysis of current session |
| "improve skill" | Target specific skill for improvement |
| "learn from this" | Extract learnings from recent interaction |
| "what did we learn" | Summarize accumulated learnings |
When to Use
Use this skill when:
- User corrects your output ("no", "wrong", "not like that")
- User praises specific output ("perfect", "exactly")
- Edge cases are discovered during work
- Session end after skill-heavy work
- Want to capture learnings before they are lost
Use retrospective instead when:
- Conducting a full session retrospective (broader scope)
- Analyzing multi-session patterns across the project
Proactive Invocation Reminder
Don't wait for users to ask! Invoke reflect immediately when you detect:
- User says "no" - Invoke reflect NOW (captures correction)
- User says "perfect" - Invoke reflect NOW (captures success pattern)
- User asks "what if" - Invoke reflect NOW (captures edge case)
- You used multiple skills - Invoke reflect at END (captures all learnings)
- User corrected your output - Invoke reflect IMMEDIATELY (critical learning)
Why this matters: Without proactive reflection, learnings are LOST. The Stop hook captures some patterns, but manual reflection is MORE ACCURATE because you have full conversation context.
Cost: ~30 seconds of analysis. Benefit: Prevents repeating mistakes forever.
Process
Phase 1: Identify the Target Skill
Locate the skill-based memory to update:
- Check Brain memories: Search for observation notes via
mcp__plugin____brain__search({ query: "{skill-name} observations" }) - Infer from context: Identify which skill(s) were used in the conversation
- Create if needed: If missing, propose
{skill-name}-observationsnote in theskills/folder
Storage: Brain MCP (canonical) via mcp__plugin____brain__write_note to the skills/ folder
Phase 2: Analyze the Conversation
Scan the conversation for learning signals with confidence levels:
HIGH Confidence: Corrections
User actively steered or corrected output. These are the most valuable signals.
Detection patterns:
- Explicit rejection: "no", "not like that", "that's wrong", "I meant"
- Strong directives: "never do", "always do", "don't ever"
- Immediate requests for changes after generation
- User provided alternative implementation
- User explicitly corrected output format/structure
Example:
User: "No, use the PowerShell skill script instead of raw gh commands"
> [HIGH] + Add constraint: "Use PowerShell skill scripts, never raw gh commands"
MEDIUM Confidence: Success Patterns
Output was accepted or praised. Good signals but may be context-specific.
Detection patterns:
- Explicit praise: "perfect", "great", "yes", "exactly", "that's it"
- Implicit acceptance: User built on top of output without modification
- User proceeded to next step without corrections
- Output was committed/merged without changes
Example:
User: "Perfect, that's exactly what I needed"
> [MED] + Add preference: "Include example usage in script headers"
MEDIUM Confidence: Edge Cases
Scenarios the skill didn't anticipate. Opportunities for improvement.
Detection patterns:
- Questions skill didn't answer
- Workarounds user had to apply
- Features user asked for that weren't covered
- Error handling gaps discovered
Example:
User: "What if the file doesn't exist?"
> [MED] ~ Add edge case: "Handle missing file scenario"
LOW Confidence: Preferences
Accumulated patterns over time. Need more evidence before formalizing.
Detection patterns:
- Repeated choices in similar situations
- Style preferences shown implicitly (formatting, naming)
- Tool/framework preferences
- Workflow preferences
Example:
User consistently uses `-Force` flag
> [LOW] ~ Note for review: "User prefers -Force flag for overwrites"
Confidence Threshold
Only propose changes when sufficient evidence exists:
| 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), note for next session |
Phase 3: Propose Learnings
Present findings using WCAG AA accessible colors (4.5:1 contrast ratio):
+-------------------------------------------------------------+
| SKILL REFLECTION: {skill-name} |
+-------------------------------------------------------------+
| |
| [HIGH] + Add constraint: "{specific constraint}" |
| Source: "{quoted user correction}" |
| |
| [MED] + Add preference: "{specific preference}" |
| Source: "{evidence from conversation}" |
| |
| [MED] + Add edge case: "{scenario}" |
| Source: "{question or workaround}" |
| |
| [LOW] ~ Note for review: "{observation}" |
| Source: "{pattern observed}" |
| |
+-------------------------------------------------------------+
| Apply changes? [Y/n/edit] |
+-------------------------------------------------------------+
Color Key (accessible):
[HIGH]- Red/bold: Mandatory corrections (user explicitly said "no")[MED]- Yellow/amber: Recommended additions[LOW]- Blue/dim: Notes for later review
User Response Handling:
| Response | Action |
|---|---|
| Y (yes) | Proceed to Step 4 (update memory) |
| n (no) | Abort update, ask "What would you like to change or was this not useful?" |
| edit | Present each finding individually, allow user to modify/reject each one |
On rejection (n):
- Log that reflection was declined (for future pattern analysis)
- Ask user if they want to revise the analysis or skip entirely
- If skip, end workflow without memory update
On edit:
- Present first finding with options: [keep/modify/remove]
- If modify, accept user's revised text
- Repeat for each finding
- Confirm final list before applying
Phase 4: Persist Learnings to Memory
ALWAYS show changes before applying.
After user approval:
- Read existing memory (if exists) via
mcp__plugin____brain__read_note - Append new learnings with timestamp and session reference
- Preserve existing content - never remove without explicit request
- Extract code citations (Phase 4 Enhancement - see below)
- Write to Brain:
mcp__plugin____brain__write_noteormcp__plugin____brain__edit_note
Storage: Brain MCP (canonical) - write observation notes to the skills/ folder with the naming pattern SKILL-{NNN}-{skill-name}-observations.md
Memory Format:
# Skill Sidecar Learnings: {Skill Name}
**Last Updated**: {ISO date}
**Sessions Analyzed**: {count}
## Constraints (HIGH confidence)
- {constraint 1} (Session {N}, {date})
- {constraint 2} (Session {N}, {date})
## Preferences (MED confidence)
- {preference 1} (Session {N}, {date})
- {preference 2} (Session {N}, {date})
## Edge Cases (MED confidence)
- {edge case 1} (Session {N}, {date})
- {edge case 2} (Session {N}, {date})
## Notes for Review (LOW confidence)
- {note 1} (Session {N}, {date})
- {note 2} (Session {N}, {date})
Phase 4 Enhancement: Auto-Citation Capture
When persisting learnings that reference specific code locations, automatically capture citations:
-
Detect code references in learning text:
- Inline code references:
`path/to/file.ext` line N - Function references:
`functionName()` in `file.ext` - Explicit citations: "See: file.ext:42"
- Inline code references:
-
Extract citation metadata: file path, line number, snippet (if available)
-
Add citations to Brain note as observations with
[fact]category -
Update confidence score based on initial verification
Detection Patterns:
| Pattern | Example | Extraction |
|---|---|---|
| Inline code + line | In `src/client/constants.ts` line 42 |
file=src/client/constants.ts, line=42 |
| Function in file | `handleError()` in `src/utils.ts` |
file=src/utils.ts (file-level) |
| Explicit citation | See: src/api.py:100 | file=src/api.py, line=100 |
Decision Tree
User says "reflect" or similar?
|
+--> YES
| |
| +--> Identify skill(s) used in conversation
| | |
| | +--> Skill identified?
| | |
| | +--> YES -> Analyze conversation for signals
| | | |
| | | +--> Meets confidence threshold?
| | | |
| | | +--> YES -> Present findings, await approval
| | | | |
| | | | +--> User says Y -> Update Brain memory
| | | | |
| | | | +--> User says n -> Ask for feedback
| | | | | |
| | | | | +--> User wants revision -> Re-analyze
| | | | | +--> User skips -> End workflow
| | | | |
| | | | +--> User says edit -> Interactive review
| | | | |
| | | | +--> Per-finding [keep/modify/remove]
| | | |
| | | +--> NO -> Report "Insufficient evidence. Note for next session."
| | |
| | +--> NO -> Ask user which skill to reflect on
| | |
| | +--> User specifies skill -> Continue with that skill
| | +--> User says "none" -> End workflow
| |
| +--> Multiple skills?
| |
| +--> Analyze each, group findings by skill, present together
|
+--> NO -> This skill not invoked
Examples
Example 1: Correction Detected
Conversation:
User: "Create a PR for this change"
Agent: [runs gh pr create directly]
User: "No, use the github skill script!"
Analysis:
[HIGH] + Add constraint: "Always use .claude/skills/github/ scripts for PR operations"
Source: User correction - "No, use the github skill script!"
Example 2: Success Pattern
Conversation:
User: "Add error handling"
Agent: [adds try/catch with specific error types]
User: "Perfect! That's exactly what I wanted"
Analysis:
[MED] + Add preference: "Use specific error types in catch blocks, not generic [Exception]"
Source: User approval after seeing specific error types
Example 3: Edge Case Discovery
Conversation:
User: "Run the build"
Agent: [runs build command]
User: "Wait, what if the node_modules folder doesn't exist?"
Analysis:
[MED] + Add edge case: "Check for node_modules existence before build"
Source: User question about missing dependencies
Use Cases
1. Code Review Skills
Capture learnings about code review patterns:
- Style guide rules: User corrections on formatting, naming, structure
- Security patterns: Security vulnerabilities caught, OWASP patterns enforced
- Severity levels: When issues are P0 vs P1 vs P2
- False positives: Patterns that look like issues but aren't
2. API Design Skills
Track API design decisions:
- Naming conventions: REST endpoint patterns, verb choices
- Error formats: HTTP status codes, error response structure
- Auth patterns: OAuth, JWT, API key patterns
- Versioning style: URL versioning, header versioning
3. Testing Skills
Remember testing preferences:
- Coverage targets: Minimum % required, critical paths
- Mocking patterns: When to mock vs integration test
- Assertion styles: Preferred assertion libraries, patterns
- Test naming: Convention for test method names
4. Documentation Skills
Learn documentation patterns:
- Structure/format: Section order, heading levels
- Code examples: Real vs pseudo-code, language choice
- Tone preferences: Formal vs casual, active vs passive voice
- Diagram styles: Mermaid vs ASCII, detail level
Anti-Patterns
| Avoid | Why | Instead |
|---|---|---|
| Applying without showing | User loses visibility | Always preview changes |
| Overwriting existing learnings | Loses history | Append with timestamps |
| Generic observations | Not actionable | Be specific and contextual |
| Ignoring LOW confidence | Lose valuable patterns | Track for future validation |
| Creating memory for one-off | Noise | Wait for repeated patterns |
Integration
With Session Protocol
Run reflection at session end as part of retrospective:
## Session End Checklist
- [ ] Complete session log
- [ ] Run skill reflection (if skills were used)
- [ ] Update Brain memory
- [ ] Commit changes
With Brain Memory
Skill memories integrate with the Brain memory system:
# Search skill sidecar learnings
mcp__plugin____brain__search({ query: "github observations constraints" })
# Read specific skill sidecar
mcp__plugin____brain__read_note({ identifier: "SKILL-001-github-observations" })
Verification
| Action | Verification |
|---|---|
| Analysis complete | Signals categorized by confidence |
| User approved | Explicit Y or approval statement |
| Memory updated | Note written to Brain via MCP |
| Changes preserved | Existing content not lost |
| Commit ready | Changes staged, message drafted |
Design Decisions
Agent Sidecar Naming: {skill-name}-observations
Decision: Skill memories follow the Brain note pattern (e.g., SKILL-001-github-observations.md).
Rationale:
- Reuses the Brain entity type convention instead of inventing a parallel structure
- Keeps
{domain}-{description}format while making "skill-sidecar" explicit - Discovery via Brain search prevents orphaned learnings
- Single Canonical Store: Brain MCP writes to the knowledge graph, eliminating dual-governance ambiguity
Relationship to curating-memories
curating-memories= general-purpose maintenance of any memory artifact (linking, pruning, marking obsolete).reflect= targeted retrospective that feeds those artifacts with new learnings.- When a sidecar accumulates conflicting guidance, route the file to
curating-memoriesfor cleanup.
Session Protocol Integration
- Add "Run skill reflection if >=3 distinct skills used" to the Session End checklist.
- Document any manual edits in the session log before completion.
- Invoke reflect immediately after the Stop hook highlights high-confidence learnings so the session log and sidecar stay in sync.
Extension Points
- Curating memories - route conflicting or stale learnings to
curating-memoriesfor consolidation. - Memory skill - use
memoryskill for search/recall before proposing redundant learnings. - Session log fixer - after reflection, ensure the session log captures the learning summary via
session-log-fixer.
Related
| Skill | Relationship |
|---|---|
memory |
Skill memories are part of Tier 1 |
curating-memories |
For maintaining/pruning skill memories |
retrospective |
Full session retrospective (this is mini version) |
Commit Convention
When committing skill observation updates:
chore(memory): update {skill-name} skill sidecar learnings (session {N})
- Added {count} constraints (HIGH confidence)
- Added {count} preferences (MED confidence)
- Added {count} edge cases (MED confidence)
- Added {count} notes (LOW confidence)
Session: {session-id}
04 同仓库更多 Skills
validation-authority
Treat upstream validators as authoritative. Align local config to them. Use when validation fails unexpectedly, before modifying validator behavior, or when tempted to change upstream tool code.
using-brain-memory
Guidance for using Brain semantic memory effectively. Applies Zettelkasten atomic note principles with observations and relations. Use when deciding whether to query or create notes, structuring note content, or understanding the semantic knowledge graph.
threat-modeling
Structured security analysis using OWASP Four-Question Framework and STRIDE methodology. Generates threat matrices with risk ratings, mitigations, and prioritization. Use for attack surface analysis, security architecture review, or when asking what can go wrong.
taste-lints
Custom lints with agent-readable remediation instructions. Enforces taste invariants (file size, naming conventions, structured logging, complexity) and surfaces errors that agents can act on directly. Use when writing or reviewing code to catch style violations early.
style-enforcement
Validate code against style rules from .editorconfig, StyleCop.json, and Directory.Build.props. Detects line ending violations, naming convention issues, indentation problems, and charset mismatches across C#, Python, TypeScript, and JavaScript. Produces JSON reports for pre-commit hooks and CI pipelines.
steering-matcher
Match file paths against steering file glob patterns to determine applicable steering guidance. Use when orchestrator needs to inject context-aware guidance based on files being modified.