一键导入
create-agents-md
Generate or rewrite an AGENTS.md file — a high-signal-density operational checklist for AI coding agents.
菜单
Generate or rewrite an AGENTS.md file — a high-signal-density operational checklist for AI coding agents.
Explore ideas, compare approaches, and produce a validated spec before planning. Use when the user describes what to build, asks how to approach something, proposes a new feature or design change, or needs to explore options before implementation.
CodeGraph-first code navigation with LSP and grep fallback. Provides agents with a reusable strategy for semantic code exploration -- codegraph tools when available, LSP goToDefinition/findReferences/documentSymbol otherwise, grep as last resort.
Generate a Conventional Commits message, commit, and optionally push to remote.
Scaffold a new Claude Code agent with smart defaults from a natural language description or interactive Q&A.
Create a GitHub pull request from the current branch. Use when the user says 'create a pr', 'open pr', 'push and open a pr', 'create pull request', or wants to open a PR from their branch.
Summarize the current work state and prepare a handover note for the next session.
| name | create-agents-md |
| description | Generate or rewrite an AGENTS.md file — a high-signal-density operational checklist for AI coding agents. |
| argument-hint | Generates project-specific AGENTS.md with constraints, conventions, and gotchas that prevent costly agent mistakes. |
| disable-model-invocation | true |
| when-to-use | user wants to generate an AGENTS.md operational checklist -- '/create-agents-md', 'create agents.md', 'generate agents file', 'write AGENTS.md' |
!`git remote -v 2>/dev/null || echo "NO_GIT"`
!`git log --oneline -5 2>/dev/null || echo "NO_GIT"`
Before starting, use tools to gather project context silently (do not show results to the user):
**/* (max depth 2, exclude .git/, node_modules/, .build/, vendor/, target/) -- project file structureAGENTS.md, README.md, CLAUDE.md -- existing docs (skip if missing)**/*ci*.yml, **/*ci*.yaml, **/Jenkinsfile, **/.travis.yml, **/Makefile (max depth 3) -- CI config.eslintrc*, .prettierrc*, biome.json, rustfmt.toml, .swiftlint.yml, .rubocop.yml, .editorconfig, .clang-formatTreat missing files as empty. Proceed regardless.
You are an AGENTS.md architect. Your goal is maximum signal density — every line must be project-specific, non-obvious, and action-guiding. No generic advice. No README duplication. No rules already enforced by tooling.
┌───────────┐ ┌───────────┐ ┌───────────┐ ┌───────────┐
│ 1. GATHER │ ──► │ 2. ANALYZE│ ──► │ 3. GENERATE│ ──►│ 4. SAVE │
│ Shell data │ │ Detect │ │ Write │ │ Write file│
│ from above │ │ project │ │ AGENTS.md │ │ Verify & │
│ │ │ type & │ │ sections │ │ report │
│ │ │ read cfgs │ │ │ │ │
└───────────┘ └───────────┘ └───────────┘ └───────────┘
Use the find output to understand project type, language, build system, and structure — regardless of whether it's Node, Rust, Go, Python, Ruby, Swift, Java, C++, Elixir, or anything else. Do not rely on hardcoded manifest names.
Silently determine which case applies:
cat AGENTS.md returned content → enter rewrite mode. Aggressively trim generic advice, deduplicate against README.md and CLAUDE.md, tighten language to imperative form. Then proceed to AGENTS.md Generation using the existing content as a starting point.Analyze all gathered context -- project structure, file types, configs, CI/CD, linter configs, README, CLAUDE.md, git history -- and generate an AGENTS.md.
Deduplication rule (highest priority): Read CLAUDE.md carefully. If a rule, convention, validation command, or location is already documented in CLAUDE.md, do NOT repeat it in AGENTS.md. Agents read both files. AGENTS.md exists only for information that CLAUDE.md does not cover.
Available sections -- use only the ones that have content after deduplication. Omit any section that would be empty or fully covered by CLAUDE.md:
Must-follow constraints — Hard rules not covered by CLAUDE.md that cause build failures, test failures, or broken deployments if violated. Use inline labels for grouping (e.g., "Branching:", "Safety:", "ASCII-first:") instead of sub-headings. Exclude: anything already in CLAUDE.md, or enforced by a linter/formatter config file.
Validation before finishing — Exact commands an agent must run before considering work complete. Exclude: commands already listed in CLAUDE.md's Testing section.
Repo-specific conventions — Naming patterns, file organization rules, import conventions unique to this codebase. Exclude: conventions already documented in CLAUDE.md (e.g., timestamp format, retention policy, commit format).
Important locations — Key files and directories that agents need to know about but wouldn't discover by casual browsing. Exclude: obvious paths and any paths already listed in CLAUDE.md.
Change safety rules — What to check before modifying specific areas of the codebase. Exclude: safety rules already documented in CLAUDE.md (e.g., SYNC contract).
Known gotchas — Non-obvious traps, quirks, or environment-specific issues that waste agent time. Exclude: issues documented in README or CLAUDE.md.
Section rules:
Before saving, verify:
BLOCKING (fix before saving):
WARNING (review and trim):
AGENTS.md {created | rewritten} Sections: {count of sections included} Lines: {line count} Signal check: {pass | warnings}
Trigger: /create-agents-md (and /quiver:create-agents-md should also work)
Setup:
package.json, Cargo.toml, pubspec.yaml).Expected behavior:
AGENTS.md, README.md, CLAUDE.md, and detects CI / linter configs.AGENTS.md at the project root containing only sections that have project-specific content not already in CLAUDE.md or README.md.created/rewritten, section count, line count, and a pass/warnings signal check.Verification checklist:
/create-agents-md.AGENTS.md contains no bullet copy-pasted verbatim from CLAUDE.md or README.md.AGENTS.md content is overwritten, not appended.Known gotchas: