BosskuAI CLAUDE.md Management
Configured memory location
Run bossku memory-path --project <project-root> to resolve <memory-dir> before reading or writing memory. Automatically save verified durable notes with bossku remember without waiting for the user to ask. When memory_storage is obsidian, all memory including handoffs lives directly in the vault; never create .bossku/memory in a code repo.
Use this skill when the task is to audit or improve Claude instructions: CLAUDE.md, .claude/rules/, Claude commands, session learnings, or Claude-specific entry-point drift.
How this differs from nearby skills
bosskuai-rules-distill: promotes repeated lessons into shared rules; this skill maintains Claude-facing rule surfaces.
bosskuai-continuous-learning: triages durable learning; this skill captures learning into Claude instruction artifacts when that is the right destination.
bosskuai-prompt-injection-defense: reviews agent trust boundaries; this skill applies those concerns to Claude configuration and instructions.
cofounder: routes work across domains and tools; this skill focuses on Claude-specific instruction hygiene.
Mindset
CLAUDE.md should be useful at session start, not an archive of every decision ever made.
- Instruction overlap is allowed only when it is intentional and short.
- Claude-specific guidance must not contradict root
AGENTS.md or shared memory.
- Session learnings should become durable artifacts only when they are stable, recurring, and actionable.
- The best rule is short enough to be followed under pressure.
Surfaces to check
Root CLAUDE.md
- Startup protocol, Definition of Done, model split, memory behavior, and links to deeper references.
- Keep concise enough that a new Claude session can absorb it quickly.
.claude/rules/
- Domain-specific rules that should load reliably for Claude Code.
- Check for stale mirrors of root rules and missing links back to shared references.
.claude/commands/
- Repeatable workflows that benefit from explicit command prompts.
- Check inputs, outputs, verification steps, and whether the command duplicates a skill.
Shared BosskuAI files
AGENTS.md remains the tool-neutral contract.
<memory-dir>/ remains the durable cross-tool coordination layer (written via bossku remember).
- BosskuAI
references/ (checklists, playbooks, pitfalls) holds longer guidance that skills link to.
Quality checks
- Actionability: each rule tells the agent what to do or avoid.
- Placement: shared rules live in shared files; Claude-only details live in Claude files.
- Freshness: model names, commands, paths, and tool assumptions still match the repo.
- Brevity: repeated or explanatory prose is collapsed into links where possible.
- Safety: secret handling, approvals, and untrusted content behavior remain explicit.
- Continuity: session learnings route through shared memory before tool-specific mirrors.
Workflow
Phase 1 - Inventory Claude surfaces
- Read root
AGENTS.md, CLAUDE.md, .claude/rules/, .claude/commands/, and relevant shared memory.
- Identify which file is canonical for each behavior: tool-neutral contract, Claude-specific startup, rule mirror, command workflow, or memory.
- Note duplicated rules and whether the duplication helps local startup or creates drift.
Phase 2 - Audit instruction quality
- Check whether instructions are specific, actionable, and testable.
- Remove or rewrite vague directives like "be better" unless they encode a concrete behavior.
- Check for stale model names, tool references, obsolete workflows, or contradictory priorities.
- Check for instruction bloat: long narrative, repeated definitions, and rules that should be references instead.
- Check safety: no secrets, no unsafe auto-mutation, no trust of external content without verification.
Phase 3 - Capture session learnings
- Extract only durable lessons from chat history, diffs, failures, or repeated friction.
- Decide the right destination:
<memory-dir>/learnings.md for a durable note
CLAUDE.md for Claude startup behavior
.claude/rules/*.md for persistent Claude rule surfaces
- a BosskuAI
references/ checklist or playbook for longer guidance
- no change for one-off chatter
- Preserve cross-tool consistency: shared behavior should live in shared files first, then be mirrored lightly in Claude-specific files if needed.
Phase 4 - Apply and verify
- Make the smallest edit that improves behavior.
- Re-read nearby sections to ensure no contradictions were introduced.
- Verify links, headings, and references still resolve.
- Summarize what changed, why it belongs there, and what was intentionally not promoted.
Guardrails
- Do not make Claude-specific files the only source of a rule that must apply to Codex or Cursor too.
- Do not promote private session details, secrets, tokens, or user-sensitive facts.
- Do not duplicate large blocks from
AGENTS.md into CLAUDE.md; use concise mirrors and links.
- Do not delete existing rules just because they overlap; confirm whether overlap is intentional first.
- Do not update model names or tool requirements without checking current project conventions or user intent.
Gotchas
- Audit loaded context, not just the small
CLAUDE.md stub: imports and unconditional rules load too. Aim for concise startup instructions, with long task-only procedures in references or skills.
- Ancestor instructions load at startup; nested instructions load when Claude works in that component. Verify from the actual launch directory rather than assuming sibling instructions apply.
- An import in a code span or fenced example documents activation without activating it. Preserve the live bare
@AGENTS.md adapter and check with bossku doctor --project <project>.
- Prose rules guide behavior; host settings, permissions, and scoped hooks enforce it. Do not describe a prompt instruction as a permission boundary.
- Promote a repeated, verified correction with its reason; do not append every session event to startup instructions.
Output format
CLAUDE.md management summary:
Surfaces read: [files]
Canonical source: [what owns the rule]
Drift found: [yes/no + details]
Recommended or applied changes:
[file] - [change] - [reason]
Learning promotion:
Promoted: [artifact/path]
Deferred: [reason]
Not promoted: [reason]
Verification:
Links/headings: [checked / not checked]
Cross-tool consistency: [checked / risk]
References
../../references/checklists/claude-md-management-checklist.md
../../references/playbooks/claude-code-practices-playbook.md
../../references/checklists/learning-promotion-checklist.md
../../references/memory-first-handoff-protocol.md
1---2name: bosskuai-claude-md-management3description: Use when auditing or maintaining CLAUDE.md and Claude rule files, instruction scope, imports, overlap, or session learning.4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-claude-md-management6---78# BosskuAI CLAUDE.md Management910## Configured memory location1112Run `bossku memory-path --project <project-root>` to resolve `<memory-dir>` before reading or writing memory. Automatically save verified durable notes with `bossku remember` without waiting for the user to ask. When memory_storage is obsidian, all memory including handoffs lives directly in the vault; never create .bossku/memory in a code repo.1314Use this skill when the task is to **audit or improve Claude instructions**: `CLAUDE.md`, `.claude/rules/`, Claude commands, session learnings, or Claude-specific entry-point drift.1516## How this differs from nearby skills1718- **`bosskuai-rules-distill`**: promotes repeated lessons into shared rules; this skill maintains Claude-facing rule surfaces.19- **`bosskuai-continuous-learning`**: triages durable learning; this skill captures learning into Claude instruction artifacts when that is the right destination.20- **`bosskuai-prompt-injection-defense`**: reviews agent trust boundaries; this skill applies those concerns to Claude configuration and instructions.21- **`cofounder`**: routes work across domains and tools; this skill focuses on Claude-specific instruction hygiene.2223## Mindset2425- `CLAUDE.md` should be useful at session start, not an archive of every decision ever made.26- Instruction overlap is allowed only when it is intentional and short.27- Claude-specific guidance must not contradict root `AGENTS.md` or shared memory.28- Session learnings should become durable artifacts only when they are stable, recurring, and actionable.29- The best rule is short enough to be followed under pressure.3031## Surfaces to check3233**Root `CLAUDE.md`**34- Startup protocol, Definition of Done, model split, memory behavior, and links to deeper references.35- Keep concise enough that a new Claude session can absorb it quickly.3637**`.claude/rules/`**38- Domain-specific rules that should load reliably for Claude Code.39- Check for stale mirrors of root rules and missing links back to shared references.4041**`.claude/commands/`**42- Repeatable workflows that benefit from explicit command prompts.43- Check inputs, outputs, verification steps, and whether the command duplicates a skill.4445**Shared BosskuAI files**46- `AGENTS.md` remains the tool-neutral contract.47- `<memory-dir>/` remains the durable cross-tool coordination layer (written via `bossku remember`).48- BosskuAI `references/` (checklists, playbooks, pitfalls) holds longer guidance that skills link to.4950## Quality checks5152- **Actionability**: each rule tells the agent what to do or avoid.53- **Placement**: shared rules live in shared files; Claude-only details live in Claude files.54- **Freshness**: model names, commands, paths, and tool assumptions still match the repo.55- **Brevity**: repeated or explanatory prose is collapsed into links where possible.56- **Safety**: secret handling, approvals, and untrusted content behavior remain explicit.57- **Continuity**: session learnings route through shared memory before tool-specific mirrors.5859## Workflow6061### Phase 1 - Inventory Claude surfaces62631. Read root `AGENTS.md`, `CLAUDE.md`, `.claude/rules/`, `.claude/commands/`, and relevant shared memory.642. Identify which file is canonical for each behavior: tool-neutral contract, Claude-specific startup, rule mirror, command workflow, or memory.653. Note duplicated rules and whether the duplication helps local startup or creates drift.6667### Phase 2 - Audit instruction quality68694. Check whether instructions are specific, actionable, and testable.705. Remove or rewrite vague directives like "be better" unless they encode a concrete behavior.716. Check for stale model names, tool references, obsolete workflows, or contradictory priorities.727. Check for instruction bloat: long narrative, repeated definitions, and rules that should be references instead.738. Check safety: no secrets, no unsafe auto-mutation, no trust of external content without verification.7475### Phase 3 - Capture session learnings76779. Extract only durable lessons from chat history, diffs, failures, or repeated friction.7810. Decide the right destination:79 - `<memory-dir>/learnings.md` for a durable note80 - `CLAUDE.md` for Claude startup behavior81 - `.claude/rules/*.md` for persistent Claude rule surfaces82 - a BosskuAI `references/` checklist or playbook for longer guidance83 - no change for one-off chatter8411. Preserve cross-tool consistency: shared behavior should live in shared files first, then be mirrored lightly in Claude-specific files if needed.8586### Phase 4 - Apply and verify878812. Make the smallest edit that improves behavior.8913. Re-read nearby sections to ensure no contradictions were introduced.9014. Verify links, headings, and references still resolve.9115. Summarize what changed, why it belongs there, and what was intentionally not promoted.9293## Guardrails9495- Do not make Claude-specific files the only source of a rule that must apply to Codex or Cursor too.96- Do not promote private session details, secrets, tokens, or user-sensitive facts.97- Do not duplicate large blocks from `AGENTS.md` into `CLAUDE.md`; use concise mirrors and links.98- Do not delete existing rules just because they overlap; confirm whether overlap is intentional first.99- Do not update model names or tool requirements without checking current project conventions or user intent.100101## Gotchas102103- Audit loaded context, not just the small `CLAUDE.md` stub: imports and unconditional rules load too. Aim for concise startup instructions, with long task-only procedures in references or skills.104- Ancestor instructions load at startup; nested instructions load when Claude works in that component. Verify from the actual launch directory rather than assuming sibling instructions apply.105- An import in a code span or fenced example documents activation without activating it. Preserve the live bare `@AGENTS.md` adapter and check with `bossku doctor --project <project>`.106- Prose rules guide behavior; host settings, permissions, and scoped hooks enforce it. Do not describe a prompt instruction as a permission boundary.107- Promote a repeated, verified correction with its reason; do not append every session event to startup instructions.108109110## Output format111112```text113CLAUDE.md management summary:114 Surfaces read: [files]115 Canonical source: [what owns the rule]116 Drift found: [yes/no + details]117118Recommended or applied changes:119 [file] - [change] - [reason]120121Learning promotion:122 Promoted: [artifact/path]123 Deferred: [reason]124 Not promoted: [reason]125126Verification:127 Links/headings: [checked / not checked]128 Cross-tool consistency: [checked / risk]129```130131## References132133- `../../references/checklists/claude-md-management-checklist.md`134- `../../references/playbooks/claude-code-practices-playbook.md`135- `../../references/checklists/learning-promotion-checklist.md`136- `../../references/memory-first-handoff-protocol.md`