skills/writing-agents-md/SKILL.md
Use when the user asks to create, review, audit, migrate, or update an AGENTS.md file for a repository, package, subproject, or monorepo. This skill writes agent-facing repository guidance grounded in project evidence, including setup, build/test commands, code style, testing, security, PR rules, nested AGENTS.md scope, and instruction precedence.
npx skillsauth add narumiruna/agent-skills writing-agents-mdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create, review, or revise AGENTS.md: a standard Markdown "README for agents" that gives coding agents the project-specific context they need without cluttering the human README.
Before writing, inspect the repository instead of guessing:
README.md, CONTRIBUTING.md, current AGENTS.md, package-level docs, .github/workflows/*, config files, and obvious build manifests (package.json, pyproject.toml, Cargo.toml, go.mod, justfile, Makefile, etc.).AGENTS.md, preserve correct project-specific rules and remove stale or unverifiable claims.When asked to review an existing AGENTS.md instead of drafting one:
AGENTS.md files or explicit user directions.Findings, Suggested edits, Verified evidence, Open questions.AGENTS.md is plain Markdown; do not add YAML frontmatter or required-field scaffolding to the generated file.AGENTS.md; add package-level files only when scoped instructions differ or the user asks for a specific subproject.AGENTS.md files apply, the closest file to the edited path takes precedence.AGENTS.md files in packages/subprojects instead of one overloaded root file. Root files should describe global rules and point to scoped files.AGENTS.md; when the user specifies a package or subdirectory, place it in that scope.# Repository Guidelines is a good default unless the repo already uses another title.Choose sections that match the repository; omit empty or irrelevant sections. The core coverage from agents.md is: project overview, build and test commands, code style guidelines, testing instructions, security considerations, and extra teammate-like instructions such as commit/PR rules, deployment gotchas, large datasets, or migration steps.
AGENTS.md files override root guidance.AGENTS.md owns repo-wide safety rules and CI gates; packages/api/AGENTS.md owns API migrations and schema tests; packages/web/AGENTS.md owns UI screenshots and browser checks.package.json scripts, just --list, make help, lockfiles, or CI jobs; if a command cannot be confirmed, leave it out or mark it as an example..env.example, local mocks, dry-run flags) when available.AGENTS.md; optionally leave a symlink for tools that still expect the old name, e.g. mv AGENT.md AGENTS.md && ln -s AGENTS.md AGENT.md.read: AGENTS.md or Gemini CLI context.fileName).Before finishing:
development
Score or compare one or more agent skills across trigger clarity, workflow actionability, safety boundaries, verification rigor, incremental knowledge value, and leanness. Use only when the user explicitly asks for ratings, numerical quality scores, rubric-based scorecards, or scored comparisons; use creating-agent-skills for unscored reviews or revisions.
development
Assess or improve an existing codebase's architecture when the user asks about module boundaries, coupling, scattered ownership, testability, change locality, deep modules, seams, or behavior-preserving structural refactoring. Use for cross-module design rather than ordinary diff review or a confirmed edge-case bug fix.
development
Perform read-only security audits, vulnerability assessments, or threat-focused reviews of diffs, pull requests, code paths, or explicitly scoped repositories when security is the primary objective or acceptance criterion. Use reviewing-code for ordinary review with baseline security coverage and hardening-code-paths for fixing confirmed findings.
development
Run iterative multi-reviewer panels over a code diff, verify their findings, apply explicitly authorized fixes, and re-review the updated change until it passes or reaches a stopping condition. Use when the user asks for a panel loop, multi-model code-review consensus, or a review-fix-re-review cycle.