[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71EX9XHWX1GXR5PGM9EMVGM":3,"skill-same:01M71EX9XHWX1GXR5PGM9EMVGM":132},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":31,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M71EX9XHWX1GXR5PGM9EMVGM","claude-md",null,"Create, audit or update CLAUDE.md and .claude\u002Frules\u002F instructions for Claude Code. Use for instruction ownership, imports, path-scoped rules or memory configuration; use agent-creator for subagent definitions.","coroboros\u002Fagent-skills","coroboros","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F276246903?v=4","01M71EW9FC462PB6BEAC5P9JK1","Coroboros","01M71EW9G1KB3SQM769D2JMXXZ",5,"MIT","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"claude md","cleanup","optimize","create","subagent","learnings","code","Bash","when","free","auto","files","main","init","clean","up","loading","memory","official","deep","2026-11-10 10:12:30",false,"---\nname: claude-md\ndescription: Create, audit or update CLAUDE.md and .claude\u002Frules\u002F instructions for Claude Code. Use for instruction ownership, imports, path-scoped rules or memory configuration; use agent-creator for subagent definitions.\nwhen_to_use: When the user wants to create, clean up, or update Claude Code memory files. Routes via `$ARGUMENTS` — `init` (scaffold minimal CLAUDE.md), `optimize` (deep cleanup of bloat), `revise` (capture session learnings). Keywords — CLAUDE.md, memory file, instructions file, .claude\u002Frules, optimize CLAUDE, init CLAUDE, revise CLAUDE, auto memory, MEMORY.md, subagent memory. Without a subcommand, treat the argument as free-form guidance about memory files. Skip for subagent system prompts and .claude\u002Fagents\u002F configs — use \u002Fagent-creator.\nargument-hint: \"[init | optimize | revise | task description]\"\nlicense: MIT\ncompatibility: \"Authors Claude Code instruction and memory files. Python 3 and bash are required for bundled checks; runtime loading behavior must be verified in the target Claude Code version.\"\nmetadata:\n  author: coroboros\n  sources: \"code.claude.com\u002Fdocs\u002Fen\u002Fmemory; github.com\u002Fanthropics\u002Fclaude-plugins-official\u002Ftree\u002Fmain\u002Fplugins\u002Fclaude-md-management; github.com\u002FMelvynx\u002Faiblueprint\"\n---\n\n# CLAUDE.md\n\n\u003C!-- canonical:writing-rules:start -->\n## Important — Writing rules\n\nApply these rules to emitted prose: docs, comments, commit messages, PR bodies, and release notes.\n\n- Match surrounding punctuation, capitalization, and formatting.\n- Every sentence changes the reader's understanding. Cut it otherwise.\n- Lead with the action or outcome.\n- Use concrete language and lists when they improve comparison or sequence.\n- Assert positively. Reserve negation for real constraints (`NEVER commit secrets`).\n- No marketing words: powerful, robust, seamlessly, leverage, unlock, comprehensive, delightful.\n- No AI tells: delve, tapestry, intricate, pivotal, testament, underscore, crucial, garner, showcase, additionally, moreover, furthermore, indeed.\n- For substantive English prose, use `\u002Fhumanize-en` if installed with the existing scope and authorization. It adds no approval stage; skip redundant passes over short status text.\n\u003C!-- canonical:writing-rules:end -->\n\n## Core Principle\n\nMemory files consume tokens every session. Keep high-value project conventions, commands and boundaries concise. Discoverability alone is not a reason to delete guidance that prevents a demonstrated mistake.\n\nThree mechanisms carry knowledge across sessions:\n\n- **CLAUDE.md** — single-file instructions you write. Always loaded.\n- **`.claude\u002Frules\u002F`** — modular rule files, optionally path-scoped. Load alongside CLAUDE.md.\n- **Auto memory** — notes Claude writes itself per project. See *Auto Memory* below.\n\nFor most projects, CLAUDE.md and rules combine (hybrid pattern). See *Workflow > Storage Strategy* for the pick-which decision.\n\n## Quick Start\n\nRun `\u002Finit` to auto-generate a CLAUDE.md. Or create manually:\n\n```markdown\n# Project Name\n\n## Tech Stack\n- [Primary framework]\n- [Key non-obvious libraries]\n\n## Commands\n- `npm run dev` - Dev server\n- `npm test` - Run tests\n- `npm run build` - Build\n\n## Rules\n- [2-3 critical project-specific rules]\n```\n\n- Run `\u002Fmemory` to view all loaded files (CLAUDE.md, CLAUDE.local.md, rules), toggle auto memory, and open any file in your editor\n\n## File Hierarchy\n\n| Location | Scope | Notes |\n|----------|-------|-------|\n| Managed policy (OS-specific path managed by IT) | All org users | Cannot be excluded by individual settings |\n| `.\u002FCLAUDE.md` or `.\u002F.claude\u002FCLAUDE.md` | Team via git | Project-wide |\n| `.\u002F.claude\u002Frules\u002F*.md` | Team via git | Modular, optionally path-scoped |\n| `~\u002F.claude\u002FCLAUDE.md` | All your projects | Personal, applies everywhere |\n| `~\u002F.claude\u002Frules\u002F*.md` | All your projects | Personal rules, loaded before project rules |\n| `.\u002FCLAUDE.local.md` | Just you (this project) | Add to `.gitignore` yourself (or use `\u002Finit` personal option) |\n\nAll discovered files are concatenated, not overridden. More specific locations take precedence in conflicts. Within a directory, `CLAUDE.local.md` loads after `CLAUDE.md`, so personal notes win over team instructions at the same level.\n\nClaude recurses UP from the CWD, loading all files found. Subtree `CLAUDE.md` files load on-demand when Claude reads files in those directories.\n\n`AGENTS.md` is **not** read directly. If your repo uses it for other agents, import it from CLAUDE.md with `@AGENTS.md` so both tools share one source.\n\n**Managed CLAUDE.md ≠ managed settings.** Enterprise deployments can push both, and they serve different purposes. Settings enforce (blocked tools, sandbox, auth, env); CLAUDE.md guides (coding standards, compliance reminders, behavioral instructions). Security-critical rules belong in settings — CLAUDE.md shapes Claude's behavior but is *not* a hard enforcement layer.\n\n**Monorepo strategy:** Root file defines WHEN; subtree files define HOW.\n\n```\nroot\u002FCLAUDE.md           # Universal: tech stack, git workflow\napps\u002Fweb\u002FCLAUDE.md       # Frontend-specific\napps\u002Fapi\u002FCLAUDE.md       # Backend-specific\n```\n\n## Rules Directory\n\nThe `.claude\u002Frules\u002F` directory splits instructions into focused markdown files.\n\n- **Use `.claude\u002Frules\u002F` when:** many concerns, different rules for different file types, team maintains different areas\n- **Use CLAUDE.md when:** tiny project, universal rules, single source of truth\n- **Combine both (hybrid)** for most projects — CLAUDE.md stays slim and indexes conditional rules with ordinary links; use eager `@` imports only for universal content. See *Workflow > Storage Strategy* below for when to pick which.\n\nPath-scoped rules use YAML frontmatter:\n\n```yaml\n---\npaths:\n  - \"src\u002Fapi\u002F**\u002F*.ts\"\n---\n# API Rules\n- All endpoints must include input validation\n```\n\nSupported patterns: `**\u002F*.ts`, `src\u002F**\u002F*`, `src\u002F**\u002F*.{ts,tsx}`, `{src,lib}\u002F**\u002F*.ts`\n\nRules without `paths` frontmatter load unconditionally.\n\nSee [references\u002Frules-directory-guide.md](references\u002Frules-directory-guide.md) for the complete guide including symlinks, user-level rules, and migration.\n\n## Content Structure\n\nOptional sections and six candidate bloat categories to review (linter rules, agent-discoverable, marketing\u002Fvision, redundant specs, verbose prose, generic best-practices): [references\u002Foptimize-guide.md](references\u002Foptimize-guide.md).\n\n## CLAUDE.md-specific writing rules\n\nThe canonical *Writing rules* block above carries the universal prose rules. The rules below add what is specific to authoring CLAUDE.md and `.claude\u002Frules\u002F` files — directive phrasing, emphasis discipline, HTML-comment behavior under context injection.\n\n**Golden rule:** If someone with zero project context reads your CLAUDE.md and gets confused, Claude will too.\n\n**Be specific, never vague:**\n\n```\n❌ \"Format code properly\" \u002F \"Write good tests\" \u002F \"Follow best practices\"\n✅ \"Run `pnpm lint` before committing\" \u002F \"Tests in `__tests__\u002F` using Vitest\"\n```\n\n**Be directive; reserve prohibitions for real constraints:**\n\n```\n❌ \"Try to use TanStack Form for forms\"\n✅ \"Use TanStack Form for all forms (not native form\u002FuseState)\"\n```\n\nLead with the action. Keep `NEVER` for genuine constraints — secrets, data loss, breaking changes — not ordinary preferences.\n\n**Show, don't tell:** When format matters, show a concrete example (3–5 lines max).\n\n**HTML comments:** Block-level `\u003C!-- comments -->` are stripped from CLAUDE.md before injection into context. Use them for human-only maintainer notes without spending tokens. Comments inside code blocks are preserved.\n\n**Emphasis, sparingly:** Reserve **bold + a single keyword** for non-negotiable rules (`**Never commit secrets**`).\n\n- Put critical rules **first** in each section — placement beats emphasis.\n- Don't stack `CRITICAL`\u002F`MUST`\u002F`ALWAYS` on ordinary guidance. Current models follow instructions literally, so over-emphasis dilutes the rules that matter and can overtrigger.\n\nSee [references\u002Fprompting-techniques.md](references\u002Fprompting-techniques.md) for advanced techniques.\n\n## Size Limits\n\nTarget **under 200 lines** per file. This official guideline is a review signal, not a measured universal adherence threshold.\n\nWhen exceeding, split via `@path` imports or `.claude\u002Frules\u002F`:\n\n```markdown\n# API patterns\n@docs\u002Fapi-patterns.md\n\n# Testing\n@docs\u002Ftesting-guide.md\n```\n\nImports load eagerly at launch alongside the referencing file. Relative and absolute paths work, `~` expands to home, maximum depth is four hops. External imports (outside the project) trigger a one-time approval dialog on first encounter.\n\n## Auto Memory\n\nAuto memory layout, loading caps, settings keys, env overrides, and subagent memory: [references\u002Fauto-memory.md](references\u002Fauto-memory.md).\n\n## Workflow\n\n**Storage strategy:** Preserve the established owner and layout for an authorized update. For a new file, use the simplest layout that fits the brief: a single file for universal guidance, or a slim index plus `.claude\u002Frules\u002F` for conditional concerns. Ask only when a material storage migration or user-owned decision is unresolved. An audit request remains read-only; explicit memory permissions still apply.\n\nUse ordinary links for path-scoped rules so they remain conditional. Eager `@` imports load universal content and do not provide progressive disclosure.\n\n*CLAUDE.md and non-path-scoped `.claude\u002Frules\u002F*.md` load at launch; path-scoped rules (`paths:` frontmatter) load on-demand when Claude reads matching files. Either way the slim-hub pattern doesn't lose content, it places it in focused files instead of one long CLAUDE.md.*\n\n**Creating new memory:**\n\n1. Start with `\u002Finit` or minimal template\n2. Add tech stack and commands first\n3. Add rules only as you encounter friction\n4. Test with real tasks, iterate based on Claude's behavior\n\n**Maintaining:**\n\n1. Review quarterly or when project changes significantly\n2. Remove outdated instructions\n3. Add patterns that required repeated explanation\n4. Ask Claude to edit CLAUDE.md directly, or open it via `\u002Fmemory`\n\n**Troubleshooting:**\n\n| Problem | Solution |\n|---------|----------|\n| Claude ignores instructions | Check specificity and placement first — move the rule to the top of its section; add one emphatic marker only for a genuine constraint |\n| Context overflow | Use host compaction and recover task state; split conditional guidance into `.claude\u002Frules\u002F` |\n| Instructions conflict | Consolidate, use hierarchy (root vs subtree) |\n| Path rules not applying | Verify glob pattern matches target files |\n| Debug which instructions load | Use the `InstructionsLoaded` hook to log files, timing, and reasons |\n| Monorepo picks up irrelevant files | Add `claudeMdExcludes` glob patterns in `.claude\u002Fsettings.local.json` |\n| Memory files not loading from `--add-dir` | Set `CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1` — `--add-dir` alone gives file access, this env var adds CLAUDE.md\u002Frules loading |\n| CLAUDE.md guidance ignored for security-critical rules | CLAUDE.md is guidance, not enforcement. Use applicable permission, sandbox or hook enforcement; adding system-prompt text does not enforce a security boundary |\n\n**Tips:**\n\n- Set `CLAUDE_CODE_NEW_INIT=1` before `\u002Finit` for an interactive multi-phase flow (explores codebase with subagent, asks follow-up questions, presents reviewable proposal)\n- Instructions survive `\u002Fcompact` — **project-root** CLAUDE.md is re-read from disk and re-injected. Nested CLAUDE.md files reload on-demand the next time Claude reads a file in that subdirectory.\n\n## Subcommands\n\nThe skill supports three argument-driven workflows via `$ARGUMENTS`. `$SKILL_DIR` = this skill's folder — `${CLAUDE_SKILL_DIR}` in Claude Code, the directory containing this SKILL.md elsewhere. Load the matching step file when the argument is present:\n\n- **`init`** — Scaffold a minimal CLAUDE.md: detect the project, preserve established rules, then draft and write within the user's authorized scope. See [steps\u002Finit.md](steps\u002Finit.md). Optional layout scaffold: `bash \"$SKILL_DIR\"\u002Fscripts\u002Finit_structure.sh \u003Cmode>` writes starter rule stubs — use only when the user asks for a pre-seeded layout.\n- **`optimize`** — Deep cleanup of a bloated CLAUDE.md. See [steps\u002Foptimize.md](steps\u002Foptimize.md). Always start with `python3 \"$SKILL_DIR\"\u002Fscripts\u002Faudit_claude_md.py \u003Cpath>` — the JSON report contains candidates requiring semantic review. Read `references\u002Foptimize-guide.md` for the WHY behind each category.\n- **`revise`** — Capture session learnings into CLAUDE.md. See [steps\u002Frevise.md](steps\u002Frevise.md).\n\nWithout a subcommand, treat the argument as free-form guidance about memory files and answer from the sections above.\n\n## Reference Guides\n\n- **Optimization guide**: [references\u002Foptimize-guide.md](references\u002Foptimize-guide.md) — evidence-guided bloat review, 6 removal categories, before\u002Fafter examples\n- **Rules directory**: [references\u002Frules-directory-guide.md](references\u002Frules-directory-guide.md) — complete `.claude\u002Frules\u002F` guide with path-scoping, YAML syntax, symlinks, migration\n- **Prompting techniques**: [references\u002Fprompting-techniques.md](references\u002Fprompting-techniques.md) — emphasis strategies, clarity techniques, constraint patterns\n- **Section templates**: [references\u002Fsection-templates.md](references\u002Fsection-templates.md) — copy-paste templates for each section type\n- **Full example**: [references\u002Ffull-example.md](references\u002Ffull-example.md) — compact project-specific CLAUDE.md example\n- **Project patterns**: [references\u002Fproject-patterns.md](references\u002Fproject-patterns.md) — Next.js, Express, Python, Monorepo patterns\n- **Auto memory**: [references\u002Fauto-memory.md](references\u002Fauto-memory.md) — layout, loading caps, settings keys, env overrides, subagent memory\n- **Script schemas**: [references\u002Fschemas.md](references\u002Fschemas.md) — JSON \u002F RESULT shapes for the three deterministic scripts (audit, validate, init)\n\n## Deterministic scripts\n\n- `scripts\u002Faudit_claude_md.py` — line-count + 6-category bloat scan + `@import` resolver. Run first for optimize — the JSON output proposes review candidates; revise consults it when drift is suspected. Python 3.7+.\n- `scripts\u002Fvalidate_rule_file.py` — frontmatter delimiter + supported YAML `paths:` glob subset validator for `.claude\u002Frules\u002F*.md`; other YAML keys are not validated. Quote globs beginning with `*`, `!` or other YAML indicators. Python 3.7+.\n- `scripts\u002Finit_structure.sh` — idempotent scaffold for the three storage strategies (`single`, `hybrid`, `rules-only`). Preserves existing files by default; `--force` replaces them and requires applicable authorization.\n\n## See also\n\n- **`\u002Fagent-creator`** — subagent configuration and orchestration. A CLAUDE.md that defines project-wide instructions often pairs with `.claude\u002Fagents\u002F*.md` files; use `\u002Fagent-creator` to author those.\n\n## About\n\n`claude-md` contains the substring `claude`, reserved by this repository's naming policy. The local exception covers first-party filename conventions: this skill operates directly on `CLAUDE.md`. The restriction and exception are repository policy, not agentskills.io requirements.\n","# CLAUDE.md\n\n\u003C!-- canonical:writing-rules:start -->\n## Important — Writing rules\n\nApply these rules to emitted prose: docs, comments, commit messages, PR bodies, and release notes.\n\n- Match surrounding punctuation, capitalization, and formatting.\n- Every sentence changes the reader's understanding. Cut it otherwise.\n- Lead with the action or outcome.\n- Use concrete language and lists when they improve comparison or sequence.\n- Assert positively. Reserve negation for real constraints (`NEVER commit secrets`).\n- No marketing words: powerful, robust, seamlessly, leverage, unlock, comprehensive, delightful.\n- No AI tells: delve, tapestry, intricate, pivotal, testament, underscore, crucial, garner, showcase, additionally, moreover, furthermore, indeed.\n- For substantive English prose, use `\u002Fhumanize-en` if installed with the existing scope and authorization. It adds no approval stage; skip redundant passes over short status text.\n\u003C!-- canonical:writing-rules:end -->\n\n## Core Principle\n\nMemory files consume tokens every session. Keep high-value project conventions, commands and boundaries concise. Discoverability alone is not a reason to delete guidance that prevents a demonstrated mistake.\n\nThree mechanisms carry knowledge across sessions:\n\n- **CLAUDE.md** — single-file instructions you write. Always loaded.\n- **`.claude\u002Frules\u002F`** — modular rule files, optionally path-scoped. Load alongside CLAUDE.md.\n- **Auto memory** — notes Claude writes itself per project. See *Auto Memory* below.\n\nFor most projects, CLAUDE.md and rules combine (hybrid pattern). See *Workflow > Storage Strategy* for the pick-which decision.\n\n## Quick Start\n\nRun `\u002Finit` to auto-generate a CLAUDE.md. Or create manually:\n\n```markdown\n# Project Name\n\n## Tech Stack\n- [Primary framework]\n- [Key non-obvious libraries]\n\n## Commands\n- `npm run dev` - Dev server\n- `npm test` - Run tests\n- `npm run build` - Build\n\n## Rules\n- [2-3 critical project-specific rules]\n```\n\n- Run `\u002Fmemory` to view all loaded files (CLAUDE.md, CLAUDE.local.md, rules), toggle auto memory, and open any file in your editor\n\n## File Hierarchy\n\n| Location | Scope | Notes |\n|----------|-------|-------|\n| Managed policy (OS-specific path managed by IT) | All org users | Cannot be excluded by individual settings |\n| `.\u002FCLAUDE.md` or `.\u002F.claude\u002FCLAUDE.md` | Team via git | Project-wide |\n| `.\u002F.claude\u002Frules\u002F*.md` | Team via git | Modular, optionally path-scoped |\n| `~\u002F.claude\u002FCLAUDE.md` | All your projects | Personal, applies everywhere |\n| `~\u002F.claude\u002Frules\u002F*.md` | All your projects | Personal rules, loaded before project rules |\n| `.\u002FCLAUDE.local.md` | Just you (this project) | Add to `.gitignore` yourself (or use `\u002Finit` personal option) |\n\nAll discovered files are concatenated, not overridden. More specific locations take precedence in conflicts. Within a directory, `CLAUDE.local.md` loads after `CLAUDE.md`, so personal notes win over team instructions at the same level.\n\nClaude recurses UP from the CWD, loading all files found. Subtree `CLAUDE.md` files load on-demand when Claude reads files in those directories.\n\n`AGENTS.md` is **not** read directly. If your repo uses it for other agents, import it from CLAUDE.md with `@AGENTS.md` so both tools share one source.\n\n**Managed CLAUDE.md ≠ managed settings.** Enterprise deployments can push both, and they serve different purposes. Settings enforce (blocked tools, sandbox, auth, env); CLAUDE.md guides (coding standards, compliance reminders, behavioral instructions). Security-critical rules belong in settings — CLAUDE.md shapes Claude's behavior but is *not* a hard enforcement layer.\n\n**Monorepo strategy:** Root file defines WHEN; subtree files define HOW.\n\n```\nroot\u002FCLAUDE.md           # Universal: tech stack, git workflow\napps\u002Fweb\u002FCLAUDE.md       # Frontend-specific\napps\u002Fapi\u002FCLAUDE.md       # Backend-specific\n```\n\n## Rules Directory\n\nThe `.claude\u002Frules\u002F` directory splits instructions into focused markdown files.\n\n- **Use `.claude\u002Frules\u002F` when:** many concerns, different rules for different file types, team maintains different areas\n- **Use CLAUDE.md when:** tiny project, universal rules, single source of truth\n- **Combine both (hybrid)** for most projects — CLAUDE.md stays slim and indexes conditional rules with ordinary links; use eager `@` imports only for universal content. See *Workflow > Storage Strategy* below for when to pick which.\n\nPath-scoped rules use YAML frontmatter:\n\n```yaml\n---\npaths:\n  - \"src\u002Fapi\u002F**\u002F*.ts\"\n---\n# API Rules\n- All endpoints must include input validation\n```\n\nSupported patterns: `**\u002F*.ts`, `src\u002F**\u002F*`, `src\u002F**\u002F*.{ts,tsx}`, `{src,lib}\u002F**\u002F*.ts`\n\nRules without `paths` frontmatter load unconditionally.\n\nSee [references\u002Frules-directory-guide.md](references\u002Frules-directory-guide.md) for the complete guide including symlinks, user-level rules, and migration.\n\n## Content Structure\n\nOptional sections and six candidate bloat categories to review (linter rules, agent-discoverable, marketing\u002Fvision, redundant specs, verbose prose, generic best-practices): [references\u002Foptimize-guide.md](references\u002Foptimize-guide.md).\n\n## CLAUDE.md-specific writing rules\n\nThe canonical *Writing rules* block above carries the universal prose rules. The rules below add what is specific to authoring CLAUDE.md and `.claude\u002Frules\u002F` files — directive phrasing, emphasis discipline, HTML-comment behavior under context injection.\n\n**Golden rule:** If someone with zero project context reads your CLAUDE.md and gets confused, Claude will too.\n\n**Be specific, never vague:**\n\n```\n❌ \"Format code properly\" \u002F \"Write good tests\" \u002F \"Follow best practices\"\n✅ \"Run `pnpm lint` before committing\" \u002F \"Tests in `__tests__\u002F` using Vitest\"\n```\n\n**Be directive; reserve prohibitions for real constraints:**\n\n```\n❌ \"Try to use TanStack Form for forms\"\n✅ \"Use TanStack Form for all forms (not native form\u002FuseState)\"\n```\n\nLead with the action. Keep `NEVER` for genuine constraints — secrets, data loss, breaking changes — not ordinary preferences.\n\n**Show, don't tell:** When format matters, show a concrete example (3–5 lines max).\n\n**HTML comments:** Block-level `\u003C!-- comments -->` are stripped from CLAUDE.md before injection into context. Use them for human-only maintainer notes without spending tokens. Comments inside code blocks are preserved.\n\n**Emphasis, sparingly:** Reserve **bold + a single keyword** for non-negotiable rules (`**Never commit secrets**`).\n\n- Put critical rules **first** in each section — placement beats emphasis.\n- Don't stack `CRITICAL`\u002F`MUST`\u002F`ALWAYS` on ordinary guidance. Current models follow instructions literally, so over-emphasis dilutes the rules that matter and can overtrigger.\n\nSee [references\u002Fprompting-techniques.md](references\u002Fprompting-techniques.md) for advanced techniques.\n\n## Size Limits\n\nTarget **under 200 lines** per file. This official guideline is a review signal, not a measured universal adherence threshold.\n\nWhen exceeding, split via `@path` imports or `.claude\u002Frules\u002F`:\n\n```markdown\n# API patterns\n@docs\u002Fapi-patterns.md\n\n# Testing\n@docs\u002Ftesting-guide.md\n```\n\nImports load eagerly at launch alongside the referencing file. Relative and absolute paths work, `~` expands to home, maximum depth is four hops. External imports (outside the project) trigger a one-time approval dialog on first encounter.\n\n## Auto Memory\n\nAuto memory layout, loading caps, settings keys, env overrides, and subagent memory: [references\u002Fauto-memory.md](references\u002Fauto-memory.md).\n\n## Workflow\n\n**Storage strategy:** Preserve the established owner and layout for an authorized update. For a new file, use the simplest layout that fits the brief: a single file for universal guidance, or a slim index plus `.claude\u002Frules\u002F` for conditional concerns. Ask only when a material storage migration or user-owned decision is unresolved. An audit request remains read-only; explicit memory permissions still apply.\n\nUse ordinary links for path-scoped rules so they remain conditional. Eager `@` imports load universal content and do not provide progressive disclosure.\n\n*CLAUDE.md and non-path-scoped `.claude\u002Frules\u002F*.md` load at launch; path-scoped rules (`paths:` frontmatter) load on-demand when Claude reads matching files. Either way the slim-hub pattern doesn't lose content, it places it in focused files instead of one long CLAUDE.md.*\n\n**Creating new memory:**\n\n1. Start with `\u002Finit` or minimal template\n2. Add tech stack and commands first\n3. Add rules only as you encounter friction\n4. Test with real tasks, iterate based on Claude's behavior\n\n**Maintaining:**\n\n1. Review quarterly or when project changes significantly\n2. Remove outdated instructions\n3. Add patterns that required repeated explanation\n4. Ask Claude to edit CLAUDE.md directly, or open it via `\u002Fmemory`\n\n**Troubleshooting:**\n\n| Problem | Solution |\n|---------|----------|\n| Claude ignores instructions | Check specificity and placement first — move the rule to the top of its section; add one emphatic marker only for a genuine constraint |\n| Context overflow | Use host compaction and recover task state; split conditional guidance into `.claude\u002Frules\u002F` |\n| Instructions conflict | Consolidate, use hierarchy (root vs subtree) |\n| Path rules not applying | Verify glob pattern matches target files |\n| Debug which instructions load | Use the `InstructionsLoaded` hook to log files, timing, and reasons |\n| Monorepo picks up irrelevant files | Add `claudeMdExcludes` glob patterns in `.claude\u002Fsettings.local.json` |\n| Memory files not loading from `--add-dir` | Set `CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1` — `--add-dir` alone gives file access, this env var adds CLAUDE.md\u002Frules loading |\n| CLAUDE.md guidance ignored for security-critical rules | CLAUDE.md is guidance, not enforcement. Use applicable permission, sandbox or hook enforcement; adding system-prompt text does not enforce a security boundary |\n\n**Tips:**\n\n- Set `CLAUDE_CODE_NEW_INIT=1` before `\u002Finit` for an interactive multi-phase flow (explores codebase with subagent, asks follow-up questions, presents reviewable proposal)\n- Instructions survive `\u002Fcompact` — **project-root** CLAUDE.md is re-read from disk and re-injected. Nested CLAUDE.md files reload on-demand the next time Claude reads a file in that subdirectory.\n\n## Subcommands\n\nThe skill supports three argument-driven workflows via `$ARGUMENTS`. `$SKILL_DIR` = this skill's folder — `${CLAUDE_SKILL_DIR}` in Claude Code, the directory containing this SKILL.md elsewhere. Load the matching step file when the argument is present:\n\n- **`init`** — Scaffold a minimal CLAUDE.md: detect the project, preserve established rules, then draft and write within the user's authorized scope. See [steps\u002Finit.md](steps\u002Finit.md). Optional layout scaffold: `bash \"$SKILL_DIR\"\u002Fscripts\u002Finit_structure.sh \u003Cmode>` writes starter rule stubs — use only when the user asks for a pre-seeded layout.\n- **`optimize`** — Deep cleanup of a bloated CLAUDE.md. See [steps\u002Foptimize.md](steps\u002Foptimize.md). Always start with `python3 \"$SKILL_DIR\"\u002Fscripts\u002Faudit_claude_md.py \u003Cpath>` — the JSON report contains candidates requiring semantic review. Read `references\u002Foptimize-guide.md` for the WHY behind each category.\n- **`revise`** — Capture session learnings into CLAUDE.md. See [steps\u002Frevise.md](steps\u002Frevise.md).\n\nWithout a subcommand, treat the argument as free-form guidance about memory files and answer from the sections above.\n\n## Reference Guides\n\n- **Optimization guide**: [references\u002Foptimize-guide.md](references\u002Foptimize-guide.md) — evidence-guided bloat review, 6 removal categories, before\u002Fafter examples\n- **Rules directory**: [references\u002Frules-directory-guide.md](references\u002Frules-directory-guide.md) — complete `.claude\u002Frules\u002F` guide with path-scoping, YAML syntax, symlinks, migration\n- **Prompting techniques**: [references\u002Fprompting-techniques.md](references\u002Fprompting-techniques.md) — emphasis strategies, clarity techniques, constraint patterns\n- **Section templates**: [references\u002Fsection-templates.md](references\u002Fsection-templates.md) — copy-paste templates for each section type\n- **Full example**: [references\u002Ffull-example.md](references\u002Ffull-example.md) — compact project-specific CLAUDE.md example\n- **Project patterns**: [references\u002Fproject-patterns.md](references\u002Fproject-patterns.md) — Next.js, Express, Python, Monorepo patterns\n- **Auto memory**: [references\u002Fauto-memory.md](references\u002Fauto-memory.md) — layout, loading caps, settings keys, env overrides, subagent memory\n- **Script schemas**: [references\u002Fschemas.md](references\u002Fschemas.md) — JSON \u002F RESULT shapes for the three deterministic scripts (audit, validate, init)\n\n## Deterministic scripts\n\n- `scripts\u002Faudit_claude_md.py` — line-count + 6-category bloat scan + `@import` resolver. Run first for optimize — the JSON output proposes review candidates; revise consults it when drift is suspected. Python 3.7+.\n- `scripts\u002Fvalidate_rule_file.py` — frontmatter delimiter + supported YAML `paths:` glob subset validator for `.claude\u002Frules\u002F*.md`; other YAML keys are not validated. Quote globs beginning with `*`, `!` or other YAML indicators. Python 3.7+.\n- `scripts\u002Finit_structure.sh` — idempotent scaffold for the three storage strategies (`single`, `hybrid`, `rules-only`). Preserves existing files by default; `--force` replaces them and requires applicable authorization.\n\n## See also\n\n- **`\u002Fagent-creator`** — subagent configuration and orchestration. A CLAUDE.md that defines project-wide instructions often pairs with `.claude\u002Fagents\u002F*.md` files; use `\u002Fagent-creator` to author those.\n\n## About\n\n`claude-md` contains the substring `claude`, reserved by this repository's naming policy. The local exception covers first-party filename conventions: this skill operates directly on `CLAUDE.md`. The restriction and exception are repository policy, not agentskills.io requirements.\n",{"name":5,"license":15,"metadata":44,"description":7,"when_to_use":46,"argument-hint":47,"compatibility":48},{"author":9,"sources":45},"code.claude.com\u002Fdocs\u002Fen\u002Fmemory; github.com\u002Fanthropics\u002Fclaude-plugins-official\u002Ftree\u002Fmain\u002Fplugins\u002Fclaude-md-management; github.com\u002FMelvynx\u002Faiblueprint","When the user wants to create, clean up, or update Claude Code memory files. Routes via `$ARGUMENTS` — `init` (scaffold minimal CLAUDE.md), `optimize` (deep cleanup of bloat), `revise` (capture session learnings). Keywords — CLAUDE.md, memory file, instructions file, .claude\u002Frules, optimize CLAUDE, init CLAUDE, revise CLAUDE, auto memory, MEMORY.md, subagent memory. Without a subcommand, treat the argument as free-form guidance about memory files. Skip for subagent system prompts and .claude\u002Fagents\u002F configs — use \u002Fagent-creator.","[init | optimize | revise | task description]","Authors Claude Code instruction and memory files. Python 3 and bash are required for bundled checks; runtime loading behavior must be verified in the target Claude Code version.","5ff268fdc77fdf345ffe3ba808e74c82023839f8","skills\u002Fclaude-md",0,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills","https:\u002F\u002Fcoroboros.com","https:\u002F\u002Fgithub.com\u002Fcoroboros","https:\u002F\u002Fcoroboros.com\u002F","Branch-stable systems.","2026-11-11 14:33:57",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add coroboros\u002Fagent-skills --skill claude-md",{"tool":64,"command":65},"bunx","bunx skills add coroboros\u002Fagent-skills --skill claude-md",{"tool":67,"command":68},"pnpm","pnpm dlx skills add coroboros\u002Fagent-skills --skill claude-md","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002FSKILL.md",true,[72,78,82,86,90,94,98,102,106,112,116,120,124,128],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fauto-memory.md","REFERENCE","参考文档",1838,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Fauto-memory.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Ffull-example.md",1228,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Ffull-example.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Foptimize-guide.md",3170,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Foptimize-guide.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fproject-patterns.md",1488,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Fproject-patterns.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fprompting-techniques.md",1828,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Fprompting-techniques.md",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Frules-directory-guide.md",8086,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Frules-directory-guide.md",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fschemas.md",4039,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Fschemas.md",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fsection-templates.md",1603,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Freferences\u002Fsection-templates.md",{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Faudit_claude_md.py","SCRIPT","脚本",5256,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Fscripts\u002Faudit_claude_md.py",{"path":113,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Finit_structure.sh",3427,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Fscripts\u002Finit_structure.sh",{"path":117,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fvalidate_rule_file.py",6500,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Fscripts\u002Fvalidate_rule_file.py",{"path":121,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":122,"sourceHtmlUrl":123},"steps\u002Finit.md",1257,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Fsteps\u002Finit.md",{"path":125,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":126,"sourceHtmlUrl":127},"steps\u002Foptimize.md",1424,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Fsteps\u002Foptimize.md",{"path":129,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":130,"sourceHtmlUrl":131},"steps\u002Frevise.md",1199,"https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fclaude-md\u002Fsteps\u002Frevise.md",[133,147,157,182,205,227],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":39},"01M71EZVB829YQPX3AM9ETPJYE","foo","Fixture skill for repo-kind classifier tests.","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Fcode-ultrareview\u002Ffixtures\u002Fclassify\u002Fskills\u002Fskills\u002Ffoo\u002FSKILL.md",[],[135,140,141,142,143,144,145,146],"fixture skill","repo","classifier","for","kind","tests","fixture",{"skillNo":148,"name":135,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":39},"01M71EZSPGWRBJ9JGT0Y5F7YGX","Fixture for compound skills + npm tooling detection.","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Fcode-ultrareview\u002Ffixtures\u002Fclassify\u002Fmixed-skills-npm\u002Fskills\u002Ffoo\u002FSKILL.md",[],[135,153,154,143,155,156,146],"detection","tooling","compound","npm",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":39},"01M71EZN3JR87PJ1BBHRG24M39","write-clear-readme","Author, restructure, audit or polish a project README for clarity and scannability. Reads repository truth, preserves anchors and code, and verifies rendering. Explicit author\u002Fpolish requests apply local changes; audit\u002Fpropose stays read-only. Use for README creation, wording, structure and navigation, including skill collections and CLI\u002FSDK docs.","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-clear-readme\u002FSKILL.md",[],[164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,25,180,26,181],"clear","README","write clear readme","write","writing","only","local","project","creation","ls","access","verification","references","libraries","project readme","browser","preview","markdown preview",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":39},"01M71EZGFF8C081XJVPGJ11AG7","video-loop","Prepare a background video loop for a website with optional crossfade, MP4\u002FWebM encoding and poster extraction. Use for loop joins or web delivery of an existing clip.","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-loop\u002FSKILL.md",[],[189,190,191,192,26,193,194,175,195,21,196,197,198,199,200,201,202,203,204,27],"Video","loop","video loop","hero","architecture","command","loops","transition","work","inspection","continuity","fix","end","crossfade","Audio","processing",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":39},"01M71EZCS60P8DK9Y34PHGK1R3","ultrapex","Adaptive implementation when the user explicitly selects \u002Fultrapex or asks for this adaptive workflow. Establish accepted outcomes, implement, and verify the final result. Generic implementation requests use \u002Fapex; use \u002Fforge for decisions only and \u002Foneshot for small focused changes.","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fultrapex\u002FSKILL.md",[],[207,212,213,171,214,201,215,216,217,218,219,220,221,222,223,27,224,225,169,226],"ponytail","select","model","apex","capability","context","Tools","at","result","self","review","workflow","forge","host","delegation",{"skillNo":228,"name":229,"nameZh":6,"description":230,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":231,"categories":232,"keywords":233,"publishedAt":39},"01M71EZ5Y1QZWEV5K69JT7QK1D","suno-produce","Create and revise Suno v5.5 prompt artifacts from a song, track or album brief. Produces TRACK.md, ALBUM.md for explicit multi-track work, and optional ARTIST.md identity. Validates prompt fields and preserves supplied lyrics. Artifact-only; audio generation stays in Suno. Pure lyric writing and audio post-production use other skills.","https:\u002F\u002Fgithub.com\u002Fcoroboros\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsuno-produce\u002FSKILL.md",[],[234,235,236,237,238,239,240,241,22,242,243,244,224,190,168,225,245,170,246,203],"produce","suno","suno produce","lyric","website","mv","artifact","track","guides","information","song","question","Meta"]