init-agent-config
Use if creating, auditing, or migrating CLAUDE.md/AGENTS.md/REVIEW.md instruction files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use if creating, auditing, or migrating CLAUDE.md/AGENTS.md/REVIEW.md instruction files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use skill if you are exhaustively testing or release-gating martool CLI commands in a source checkout or deployed Coolify container over SSH, without local Docker or provider spend.
Use if driving agent-browser for Chrome/CDP automation, @ref snapshots, tabs, or verification.
Use if testing or debugging an iOS app via agent-device CLI — simulator flows, evidence, bug triage.
Use if supervising Jean agents through MCP and Computer Use for monitoring, recovery, or closure.
Use if auditing or designing a CLI for agent/LLM use — JSON output, exit codes, non-interactive.
Use if auditing or designing an MCP server for agent-readiness — framework, security, context.
| name | init-agent-config |
| description | Use if creating, auditing, or migrating CLAUDE.md/AGENTS.md/REVIEW.md instruction files. |
AGENTS-first instruction hierarchies, built from real repo evidence. AGENTS.md is the source of truth for how agents work. CLAUDE.md is its sibling companion. REVIEW.md is the optional review-standardization layer. Native review adapters (Copilot, Devin, Greptile) are configurable last-stage outputs.
Default Claude compatibility: every finalized AGENTS.md gets a sibling CLAUDE.md symlink. If symlinks are impossible in the target environment, fall back to a one-line @AGENTS.md wrapper and call out the exception in your response.
build-skillaudit-completionrun-review Mode AKeep the split clear. One file = one purpose.
| Surface | Purpose | Default status |
|---|---|---|
AGENTS.md | How agents should work, where code lives, what local boundaries exist | Required |
CLAUDE.md | Compatibility companion for each finalized AGENTS.md | Required symlink or @AGENTS.md wrapper |
REVIEW.md | What diffs should be flagged, protected, or held to a higher bar | Default when in scope or evidence warrants |
Folder AGENTS.md | Local delta only — never restate root | Conditional on Wave 2 evidence |
.github/copilot-instructions.md | Copilot review adapter | Configurable final step |
| Devin review files | Devin Bug Catcher adapters | Configurable final step |
.greptile/config.json | Greptile review adapter | Configurable final step |
Quick boundary:
AGENTS.md = how to workREVIEW.md = what to scrutinize in changesRead these every run. They are the hard guardrails.
CLAUDE.md, GEMINI.md, .cursor/rules/*) come after the AGENTS hierarchy exists.CLAUDE.md after each finalized AGENTS.md. Symlink by default; @AGENTS.md wrapper only when symlinks are unsupported (call it out).REVIEW.md decision comes after AGENTS+CLAUDE. Generate by default for review-standardization runs or when discovery exposes repo-specific risks; otherwise document why it was skipped.src/*, apps/*, packages/*, services/* folder as a local AGENTS.md candidate. Skip only when Wave 2 proves the local delta is empty.[unverified] when you cannot confirm.Always, Ask, Never, WARNING, CRITICAL, DO NOT rules unless the repo proves them obsolete.| Derail | Correction |
|---|---|
| Writing from templates before discovery is complete | Run Wave 1 + Wave 2; templates load only after the file plan exists |
| Skipping Wave 2 because Wave 1 found the stack | Wave 2 is mandatory before folder files |
| Writers start from partial findings | Merge both waves before writer dispatch |
Child AGENTS.md repeats root rules | Keep child files lean — local delta only |
REVIEW.md becomes a second copy of AGENTS.md | Operating guidance vs diff scrutiny — separate concerns |
CLAUDE.md grows into a second source of truth | Symlink to AGENTS.md; Claude-only behavior lives in .claude/ |
Universal content trapped in CLAUDE.md or GEMINI.md | Promote it to AGENTS.md |
| Native adapter generated as the default deliverable | Adapters are configurable last-step outputs only |
Shared defaults written into AGENTS.override.md or CLAUDE.local.md | Those are override/personal layers — not for shared defaults |
| Existing config is mostly correct and you rewrote it anyway | Switch to audit/tighten mode |
Resolve script paths relative to this skill directory.
| Script | Use when | Mutates |
|---|---|---|
scripts/audit-agents-md.sh | Step 1 audit of existing instruction surfaces, line counts, companion status, native adapters, duplicate-source risks. See scripts/audit-agents-md.sh.md. | No |
scripts/scaffold-agents-md.sh | After discovery and file planning, emit one minimal root/folder AGENTS.md or REVIEW.md skeleton. See scripts/scaffold-agents-md.sh.md. | Only with explicit --write |
Classify before reading deeply.
| Request type | Output contract |
|---|---|
| New setup | Root + evidence-gated folder AGENTS.md hierarchy, sibling CLAUDE.md companions, review-context decision/output, then optional adapter question |
| Audit | Quality report first, then targeted edits to unstable files, companion status, review-context gaps |
| Migration | Extract shared rules into AGENTS.md, move agent-native behavior out, preserve critical warnings, repair companions, decide review context |
| Extension | Add missing folder files or entrypoints without rewriting stable root files; touch review context only if new scope warrants |
Inventory existing instruction surfaces:
AGENTS.md, nested AGENTS.md, AGENTS.override.mdREVIEW.md, nested REVIEW.mdCLAUDE.md, .claude/, GEMINI.md, .gemini/.cursor/rules/, .cursorrules, .windsurfrules.github/copilot-instructions.md.greptile/, greptile.jsonREADME.md, CONTRIBUTING.md, architecture docsRun scripts/audit-agents-md.sh (or equivalent read-only checks) before editing anything.
Use the filesystem before dispatching explorers.
tree -d . or tree -dL 2 . to map top-level and src folders.src/*, each app/package/service root, any docs/standards subtree with separate workflows.Goal: identify architecture shape, command sources, critical workflows, major boundaries, and existing instruction debt.
AGENTS.md, candidate folders for scoped REVIEW.md, risks and unknowns to resolve in Wave 2.references/discovery-prompts.md. Fill placeholders with repo path, tree snapshot, and existing instruction surfaces before dispatch.Wait for all Wave 1 findings. Compare overlap, contradictions, gaps before moving on.
Trigger only after Wave 1 is merged.
tree -dL 2 . plus Wave 1. Give each explorer one folder or one tightly-related cluster. Default coverage: every meaningful src/ first-level subfolder.AGENTS.md, exact recommendation for whether the folder needs scoped review guidance, whether it needs additional native files beyond the default CLAUDE.md symlink.references/discovery-prompts.md.Wait for all Wave 2 findings. Merge overlaps and resolve contradictions before writing.
Translate findings into a file plan:
AGENTS.md carries repo-wide commands, architecture, shared conventions, and top-level boundaries.AGENTS.md carries only what is local to that subtree.scripts/scaffold-agents-md.sh only after the plan is set; never to invent structure.When the repo already has agent instructions, output the audit before edits.
Use references/audit-and-migration.md. Output structure:
## Agent Instructions Quality ReportTop-down. Use the WHAT / WHY / HOW filter from references/agents-md-format.md.
After the AGENTS hierarchy is stable:
CLAUDE.md as a symlink to the corresponding AGENTS.md.@AGENTS.md..claude/, never expand CLAUDE.md into a second source of truth.See references/agent-entrypoints.md for the full support matrix and per-agent rules.
After both discovery waves are merged, dispatch writers if the file plan is wide.
references/discovery-prompts.md.After AGENTS is written, decide whether the same evidence warrants REVIEW.md.
REVIEW.md for review-standardization work or when discovery finds repo-specific risks worth encoding.REVIEW.md only when a subtree has distinct review risks that would bloat or contradict the root.AGENTS.md as operating guidance and REVIEW.md as diff scrutiny.AGENTS.md.REVIEW.md is intentionally skipped, state the reason in the final response.See references/review-context.md for purpose, exceptions, section order, scoped review rules, and adapter relationships.
AGENTS.md files exist where the wave plan said they should.CLAUDE.md points to the correct sibling AGENTS.md, or the fallback wrapper is documented as an exception.REVIEW.md exists and reflects real risk areas, or the skip reason is recorded.REVIEW.md files exist only where the repo truly needs them.AGENTS.md files do not restate root rules unnecessarily.REVIEW.md rules are specific and reviewable, not duplicates of linter rules.Only after Step 11 passes, ask one concise question:
The AGENTS.md hierarchy is complete and the REVIEW.md decision is recorded. Which native review adapters should also be generated for this repo: Copilot, Devin, Greptile, or none?
none, stop.all, confirm the repo actually uses them before writing files.Adapter defaults:
.github/copilot-instructions.md plus scoped .github/instructions/*.instructions.md; keep files below the platform limit and note base-branch behavior.REVIEW.md as the main review surface; add scoped REVIEW.md only where needed; reuse the completed AGENTS.md hierarchy for coding behavior..greptile/config.json plus optional rules.md and files.json; keep scope as arrays, ignorePatterns as a newline string, note source-branch behavior.Read the smallest reference set that unblocks the current decision.
| Need | Reference |
|---|---|
| Wave 1, Wave 2, or writer prompt scaffolds | references/discovery-prompts.md |
REVIEW.md purpose, exceptions, root/scoped split, adapter relationships | references/review-context.md |
| AGENTS authoring, folder scoping, WHAT/WHY/HOW, derailment catalog | references/agents-md-format.md |
| Companion entrypoints, native review adapters, setup gotchas, cross-agent surfaces | references/agent-entrypoints.md |
| Auditing existing files, report format, migrations | references/audit-and-migration.md |
| Starter templates for root and folder files | references/project-templates.md |
| Situation | Start with | Then read |
|---|---|---|
| New repo with no agent files | references/project-templates.md | references/agents-md-format.md |
Existing CLAUDE.md-only repo | references/audit-and-migration.md | references/agent-entrypoints.md |
Monorepo or large src/ tree | references/agents-md-format.md | references/project-templates.md, references/agent-entrypoints.md |
| Multi-agent team (Codex + Cursor + Claude + Gemini) | references/agent-entrypoints.md | references/agents-md-format.md |
| Folder-level instruction writing | references/agents-md-format.md | references/project-templates.md |
| Existing noisy / duplicated config | references/audit-and-migration.md | references/agents-md-format.md |
| AGENTS+REVIEW done, user wants Copilot/Devin/Greptile adapters | references/agent-entrypoints.md | stay in this skill and generate them |
Start with one or two references. Expand only if the task truly needs more.
When you generate or revise files, return:
AGENTS.md