Community생산성 & 협업github.com

agents-md

Authors, evolves, and prunes concise project AGENTS.md handbooks (under 150 lines) and turns recurring guidelines into repeatable checklists, templates, or automated checks. Use when bootstrapping a project folder's AGENTS.md, turning a recent AI mistake or costly convention into a rule, converting manual rules into repeatable checks, or auditing an existing AGENTS.md against current files to remove stale entries. Do not use for full prompt-history retrospectives (use prompt-retro) or reframing a single problem (use ambitious-ask).

agents-md란 무엇인가요?

agents-md is a Claude Code agent skill that authors, evolves, and prunes concise project AGENTS.md handbooks (under 150 lines) and turns recurring guidelines into repeatable checklists, templates, or automated checks. Use when bootstrapping a project folder's AGENTS.md, turning a recent AI mistake or costly convention into a rule, converting manual rules into repeatable checks, or auditing an existing AGENTS.md against current files to remove stale entries. Do not use for full prompt-history retrospectives (use prompt-retro) or reframing a single problem (use ambitious-ask).

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/novaez/ai-work-skills/tree/HEAD/skills/agents-md

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Living AGENTS.md & Repeatable Guardrails (agents-md)

Core principle:

Give AI explicit rules and deterministic checks, not vague wishlists. AI works best with concrete constraints and repeatable checks (scripts, checklists, schemas, tests). Prose rules can be forgotten; automated checks cannot. Over time, AGENTS.md should get shorter and sharper while repeatable checks do more of the enforcement.

Language Rule: Respond in the user's language, and write/edit the project's AGENTS.md in the language used by that project (or requested by the user).

Auto-Detect Three Modes

Infer the right mode from the user's request and project folder state:

  • Mode 1 — Bootstrap (Create or Overhaul): The folder has no AGENTS.md, or the user asks to write/restructure one.
  • Mode 2 — Capture a Lesson (Mistake → Rule or Check): AI made a mistake and was corrected, or surfaced a non-obvious high-cost convention ("turn that mistake into a rule in AGENTS.md").
  • Mode 3 — Prune & Graduate (Periodic Audit): Run periodically (e.g., monthly or after a major reorganization) or when AGENTS.md feels bloated/stale, to verify rules against current files/workflows and convert prose into repeatable checks.

Mode 1: Bootstrap (AGENTS.md Creation / Overhaul)

  1. Inspect the actual project folder first (never invent generic filler):
    • Folder structure, canonical source files, output/archive directories, and naming conventions.
    • Recurring workflows, scripts, templates, build/test commands, or CI checks (if present).
    • High-cost boundaries where AI previously slipped or where silently overwriting/misplacing files hurts.
  2. Draft only high-signal sections (target under 150 lines total):
    • Workspace Map & Recurring Workflows: Where key inputs/outputs live, naming conventions, and exact commands/steps for repeatable tasks.
    • Hard Rules & Non-Obvious Red Lines: Forbidden actions, source-of-truth boundaries, and verification rules that aren't obvious from opening one file (e.g., "Never invent unverified numbers; mark missing evidence as TBD", "Always export reports to outputs/ without altering raw/").
    • Repeatable Checks & Templates: Existing checklists, templates, scripts, or linters—plus concrete proposals for any prose rule that can be checked automatically instead.
    • Maintaining This Document: Embed the 6-rule charter below.
  3. Confirm before writing: Present the complete draft (and any suggested script/checklist additions) for explicit user approval before creating or overwriting AGENTS.md.

Mode 2: Capture a Lesson (5-Gate Filter)

When turning a mistake or hidden convention into a rule, pass the candidate through all five gates before editing:

  1. Long-term value only: Reject one-off incidents, general common sense, and facts immediately obvious from looking at the folder or files.
  2. Automate or template first: Ask "Can a quick validation script, linter, schema, template, or pre-flight checklist catch this automatically?" If yes, propose creating that check and keep only a single-line summary plus the path to that check in AGENTS.md.
  3. Dedupe & resolve conflicts: Read the existing AGENTS.md first. Merge, tighten, or replace overlapping or conflicting rules rather than appending.
  4. 150-line budget: Check the current line count. If adding the rule would push AGENTS.md past 150 lines, propose specific low-value or stale entries to delete or merge in the same diff.
  5. Confirm before writing (Hard Guardrail): Show the exact proposed diff and wait for user approval—never modify AGENTS.md silently. Double-check that the rule does not over-generalize from an accidental mistake (e.g., banning edits to an entire folder or file just because one edit misfired).

Mode 3: Prune & Graduate (Periodic Audit)

  1. Cross-check every line against reality: Read the entire AGENTS.md alongside the current folder layout, workflow docs/scripts, and referenced paths.
  2. Classify every existing rule into one of four actions:
    • Keep: Still true, non-obvious, costly to violate, and not yet automated.
    • Delete: Obsolete, contradicted by current files/workflows, one-off, or self-evident.
    • Merge / Tighten: Overlapping entries that can be collapsed into a sharper single line.
    • Graduate to Repeatable Check: Rules that can now be enforced by a script, checklist, linter, or test—propose the concrete check and shrink the AGENTS.md entry to one line + pointer path.
  3. Present audit + diff: Show a compact summary table of proposed changes and the exact diff (confirming the result stays under 150 lines), then wait for user confirmation before writing.

Canonical Maintenance Charter (Embed in AGENTS.md)

When bootstrapping an AGENTS.md (or adding self-governance to an existing one), include these 6 rules under ## Maintaining This Document (translated into the target AGENTS.md's language):

  • When you make a mistake and get corrected, or uncover a convention that isn't obvious from the files but is costly to violate, propose adding a rule to this document.
  • Show the proposed addition or edit first and wait for user confirmation before writing—never modify this document silently.
  • Record only rules with long-term value; omit one-off issues, general common sense, and anything obvious from reading the files.
  • Check for duplicates or conflicts before adding; merge or replace existing entries instead of appending.
  • If a rule can be enforced via a script, checklist, lint, or test, prefer proposing an automated check and keep only a single-line summary plus the path to that check here.
  • Keep this document under 150 lines; when exceeding the limit, propose removing or merging the least important entries.

Anti-Pattern Guardrails

  • Never silently edit AGENTS.md: User confirmation protects against bad rules generalized from accidental mistakes.
  • Never turn AGENTS.md into an append-only log or tutorial: If it grows without pruning, signal drowns in noise.
  • Guard against knee-jerk bans: Distinguish "route X through Y / verify Z before saving" from "never touch folder/module X".

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

관련 스킬