ワンクリックで
claude-md-template
Use on every write to a file named CLAUDE.md -- create or modify, even a one-line tweak, in any repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use on every write to a file named CLAUDE.md -- create or modify, even a one-line tweak, in any repository.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use when creating or editing a task -- in TASKS.md, an external issue tracker, or anywhere. Not for read-only task lookups or simple status toggles.
Use on every markdown write under memory/ -- create, rename, move, or delete, at any depth. Patches ancestor CLAUDE.md navigation. Not for files outside memory/.
Use when the user wants to ingest sources into the wiki, query existing knowledge, or lint the knowledge base for issues. Manages a persistent, interlinked knowledge base (LLM Wiki) with three operations: ingest, query, lint.
Use when the user asks about their plan, agenda, to-do list, schedule, what's on their plate, what they should work on, morning briefing, or any synonym. Builds the complete daily picture — calendar events, pull requests awaiting review or assigned, and every task from TASKS.md.
Use when the user mentions Google Drive, Google Docs, Sheets, Slides, Gmail, Calendar, Google files, shared drives, or wants to search, read, create, or edit any Google Workspace content. Accesses Google Workspace via the `gws` CLI.
SOC 職業分類に基づく
| name | claude-md-template |
| description | Use on every write to a file named CLAUDE.md -- create or modify, even a one-line tweak, in any repository. |
| tags | ["claude-md","template","documentation","structure","hierarchy"] |
Enforces a consistent shape across every CLAUDE.md in a project. Three variants exist — Root, Intermediate, Leaf — picked by filesystem position. The skill auto-fixes missing required sections without asking for confirmation, and preserves anything the user added on top.
The goal is a coherent, navigable hierarchy of CLAUDE.md files where each level explains itself and points to the next. The templates capture the minimum spine that makes that hierarchy work; on top of that, any project is free to add custom sections (Role, Preferences, Knowledge Areas, Operating Rules, etc.).
Scope: this skill applies only to files named exactly CLAUDE.md. Other agent-instruction filenames (AGENTS.md, GEMINI.md, .cursorrules, etc.) are out of scope — surface the mismatch but do not auto-apply this template. If multiple CLAUDE.md files are being touched in a single turn, run the skill for each.
Given the path of the CLAUDE.md being edited (call it P):
P contains a CLAUDE.md file (within the same repo or workspace). P is the entry-point map for the whole project.P's parent contains its own CLAUDE.md. P is a navigation node.P is a terminal node.Walk the filesystem to decide. A useful pattern:
P's parent and the repo root contains a CLAUDE.md.P's parent and check for CLAUDE.md inside each (and one level deeper if needed).Parent: [...](...) line directly under the H1 is never Root.## Deep-Dive Navigation table linking to existing child CLAUDE.md files is at least Intermediate, even if those children are sparse.For Leaf files, decide whether this directory represents a code project by checking for a build/runtime manifest in the directory or any descendant:
package.json, pyproject.toml, requirements.txt, Pipfile, setup.py, Cargo.toml, go.mod, Gemfile, pom.xml, build.gradle, composer.json, Makefile (with build/test targets).
## Key Files & People, ## Conventions, ## Links).The three reference templates are bundled under templates/. Each is the original AGENTS-style template with AGENTS.md swapped to CLAUDE.md everywhere. Use them as authoritative reference, not as full file rewrites — extras the user added are protected.
# [Project Name] — H1.## How to Use This File — the mandatory protocol for using the hierarchy.## What Is This Project (or ## What Is This Workspace / ## What Is This Repository — any equivalent overview heading).## Deep-Dive Navigation — table with columns Path | Description | Keywords listing child CLAUDE.md files.Full reference: templates/root.md.
# [Module/Domain Name] — H1.Parent: [../CLAUDE.md](../CLAUDE.md) — line directly under the title.## What Lives Here — directory overview. Ideally followed by a sub-modules table with columns Directory | Role | Status.## Deep-Dive Navigation — table with columns Path | Description | Keywords listing child CLAUDE.md files.Full reference: templates/intermediate.md.
Always required:
# [App/Service/Package Name] — H1.Parent: [../CLAUDE.md](../CLAUDE.md) — line directly under the title.## What This [App/Service] Does (or ## What Lives Here for knowledge leaves) — concise overview.Additionally required for code leaves:
## Stack — table with columns Concern | Technology.## Architecture / Directory Layout — ASCII tree or diagram of the directory.## Key Files & Components — table with columns File / Component | Purpose.## Conventions — local conventions for file naming, styling, patterns.## Running — exact commands to run, build, or test the app/service.Full reference: templates/leaf.md.
Apply fixes automatically, without asking for confirmation. The three cases:
Brand new or empty file. Generate it from the appropriate template. Substitute placeholders with real values where you have them (project name, parent path, child CLAUDE.md links you can discover from the filesystem). Leave the remaining [bracketed instructions] so the user knows what to fill in.
File exists but is missing required sections. Insert each missing section at its natural position, using [bracketed placeholders] for the body. Natural positions:
Parent: line → immediately under the H1 (intermediate/leaf only).How to Use This File, What Is This Project, What Lives Here, What This X Does) → right after the H1 / Parent line.Deep-Dive Navigation → after the overview, before any custom sections.Stack, Architecture, etc.) → after the overview, in the order shown in templates/leaf.md.File already satisfies the spine. Do nothing structural. Just make the user's requested edit.
## Role, ## Preferences, ## Knowledge Areas, ## Operating Rules, ## Management Lenses, ## Key Files & People, ## Links, ## Local Conventions, etc. are valid extras and must be preserved verbatim.Parent: line even if filesystem detection suggests Root — that signal is intentional.After auto-fix, briefly tell the user which sections were inserted, e.g. "Added a missing ## Deep-Dive Navigation skeleton with a placeholder row — fill it in with the child CLAUDE.md links."
The bundled templates already use CLAUDE.md everywhere. Do not paste content from the templates that still references AGENTS.md; that swap is the whole point of bundling them.
If the user's project happens to use a different filename convention (AGENTS.md, GEMINI.md, …), flag the mismatch and stop:
This skill targets
CLAUDE.md. Your repo appears to useAGENTS.md— let me know if you want me to apply the same shape there, but I won't auto-rewrite without confirmation.
Any content the skill inserts must follow these rules:
[label](relative/path.md#anchor). Never Obsidian-style [[wikilinks]].#kebab-case-of-the-heading.Path | Description | Keywords, Directory | Role | Status, Concern | Technology, etc.) so downstream tooling can rely on them.CLAUDE.md links (memory/CLAUDE.md, not absolute paths).CLAUDE.md files.