rea-ci-tests-audit
MOmorluto/rea485k近 7 天新增 9,215 个 star
Update project CLAUDE.md with strategic knowledge discovered during this session — or CLAUDE.local.md when the discovery is per-developer/per-checkout and that file already exists. Defers to any project- or user-defined memory-placement guidance instead of overriding it. Use when user says "learn", "save knowledge", "update claude.md", "capture learnings", or at end of significant work sessions. Also used by commit skill for pre-commit knowledge capture.
Review the current conversation history and identify strategic, reusable project knowledge that should be captured in the project CLAUDE.md file. When the project has opted into Claude Code's three-tier memory convention by creating CLAUDE.local.md, route genuinely personal or environment-specific discoveries there instead.
Review Session History
Extract Strategic Knowledge
Categorize Findings
This skill writes to one of two files in the project root:
CLAUDE.md (project memory, committed, team-shared) — the default destination. Use for architecture, conventions, integration patterns, and any other knowledge useful to the whole team.
CLAUDE.local.md (local memory, gitignored personal overrides) — used only when both conditions hold:
CLAUDE.local.md already exists in the project (the project has opted into the three-tier memory convention).Counter-example: "We keep credentials in ~/.aws/credentials" mentions a user-home path but describes a team-wide convention — the path is illustrative, not per-developer state. Such notes belong in project CLAUDE.md. When in doubt about whether a discovery is genuinely personal, default to project CLAUDE.md.
This skill never writes to the user's global ~/.claude/CLAUDE.md (user memory) — only reads it to avoid duplicating cross-project knowledge.
Default for ambiguous cases: project CLAUDE.md. Leaking personal config into a committed file is a loud error that reviewers catch quickly; hiding project-wide knowledge in a gitignored personal file is a silent error that rots over time.
INCLUDE - Strategic discoveries from this session:
EXCLUDE - Session-specific tactical work:
Ask yourself for each discovery:
Before applying the routing rules below, scan the project's root CLAUDE.md, any .claude/rules/*.md files, the user's global ~/.claude/CLAUDE.md, and any ~/.claude/rules/*.md files for documented memory-placement guidance — for example, a placement decision tree, an instruction to use a project-specific triage command, or specific destinations beyond CLAUDE.md / CLAUDE.local.md. If such guidance exists, defer to it: follow the documented workflow or place each discovery according to its rules instead of using this skill's defaults. The remaining steps apply only when no such guidance is found.
Read the current content of project CLAUDE.md, CLAUDE.local.md (if present), and the user's global ~/.claude/CLAUDE.md to avoid duplication — including cross-project entries already captured in user memory.
If no new strategic knowledge was discovered during this session:
For each discovery, determine its destination per the Destinations rules: default to project CLAUDE.md, and route to CLAUDE.local.md only when both file-exists and personal-content criteria are met (and the counter-example caveat doesn't apply).
Present discovered knowledge formatted for the chosen destination, tagging each block with its inferred file:
## [Section Name] → project CLAUDE.md
- Discovery 1
- Discovery 2
CRITICAL: Use AskUserQuestion tool for granular selection of what to save.
Build options dynamically based on discoveries:
Example with 3 discoveries (2 project, 1 personal):
question: "Which knowledge should I save?"
options:
- label: "All (3 items)"
description: "Save all discovered patterns to their inferred destinations"
- label: "Service discovery pattern → project CLAUDE.md"
description: "Project-wide convention for how modules find each other"
- label: "Local toolchain variant → CLAUDE.local.md"
description: "Per-checkout build runner override (only relevant on this machine)"
- label: "None"
description: "Skip saving, nothing worth keeping"
Example with 1 discovery:
question: "Save this knowledge?"
options:
- label: "Yes → project CLAUDE.md"
description: "Save: [brief description of the discovery]"
- label: "No"
description: "Skip saving"
After user selection:
"Other" does NOT redirect a destination to an arbitrary path. To override a routing decision, the user should decline the auto-classification, edit the destination file manually, or re-invoke the skill with explicit instructions.CLAUDE.local.md, or user CLAUDE.md contentMOmorluto/rea485k近 7 天新增 9,215 个 star
MOmorluto/rea485k近 7 天新增 9,215 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star