All skills
getsentry avatar

/agents-md

@c190d36 official
by Sentrygetsentry/skills1k stars
53

Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set up CLAUDE.md, document repository agent conventions, or keep coding-agent instructions minimal and reference-backed.

Use this Skill: https://skilld.dev/gh/getsentry/skills/agents-md

This session only. Nothing lands on disk.

SPEC.md

≈1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

AGENTS.md Specification

Intent

agents-md creates and maintains compact repository instruction files for coding agents.

It should turn scattered repo norms into a short AGENTS.md index: commands, non-obvious conventions, and exact links to existing docs/specs/policies.

Scope

In scope:

  • Root AGENTS.md files.
  • Nested AGENTS.md files for subtree-specific overrides.
  • CLAUDE.md compatibility symlinks when needed.
  • Concise command tables, external reference tables, and commit attribution rules.
  • Removing duplicated prose from existing agent docs.

Out of scope:

  • Rewriting the referenced docs themselves.
  • Replacing README.md, CONTRIBUTING.md, policy docs, or architecture docs.
  • Listing installed skills/plugins.
  • Encoding linter or formatter rules already enforced by config.
  • Maintaining divergent tool-specific copies of the same instructions.

Users And Trigger Context

  • Primary users: engineers and agents maintaining repository-level agent instructions.
  • Should trigger for: create AGENTS.md, update AGENTS.md, maintain agent docs, set up CLAUDE.md, document repo agent conventions, reduce agent instruction prose.
  • Should not trigger for: general docs writing, PR descriptions, code review, or creating reusable agent skills.

Runtime Contract

  • Inspect repo commands, configs, docs, specs, and policies before writing.
  • Prefer exact repo-relative paths and command tables.
  • Enumerate external files for setup, architecture, API specs, security, release, and policy docs when present.
  • Keep root guidance broad and nested guidance narrow.
  • Keep AGENTS.md under 60 lines when practical and under 100 lines always.
  • Preserve the commit attribution section when the repo requires AI co-authorship.
  • Use a CLAUDE.md symlink only for compatibility; avoid divergent copies.

Source And Evidence Model

Authoritative sources:

  • Repository instructions, especially root AGENTS.md.
  • README.md, CONTRIBUTING.md, package manifests, CI workflows, and settings files.
  • Existing project docs, specs, security docs, and policy files.
  • Official AGENTS.md format guidance and OpenAI Codex discovery behavior.

Useful improvement sources:

  • Repositories with concise, path-backed agent docs.
  • Review feedback about stale commands, duplicated docs, or overlong instructions.
  • Agent failures caused by missing exact file paths, command ambiguity, or nested instruction conflicts.

Do not store secrets, private customer data, or long copied policy text in examples.

Reference Architecture

  • SKILL.md contains the runtime checklist, template, and anti-patterns.
  • SPEC.md contains this maintenance contract.
  • SOURCES.md stores provenance, decisions, coverage, and gaps.
  • references/, scripts/, and assets/ are unused until repeated failures require focused lookup material.

Evaluation

  • Lightweight validation: check the generated file for line count, exact commands, exact external paths, no duplicated policy prose, and no vague "see docs" references.
  • Trigger QA: verify create/update/CLAUDE.md requests trigger this skill, while generic docs and skill-authoring tasks do not.
  • Holdout examples: one simple single-package repo, one monorepo with nested overrides, one repo with existing docs/specs/policies to enumerate.
  • Acceptance gates: the resulting AGENTS.md is short, command-backed, path-backed, and free of redundant style rules.

Known Limitations

  • The skill relies on local file inspection; it cannot know private policy docs that are not present or supplied.
  • Some agent tools have provider-specific discovery behavior; keep compatibility notes concise and avoid making one provider the default.
  • Very large monorepos may need several nested files instead of a longer root file.

Maintenance Notes

  • Update SKILL.md when runtime sections, templates, or anti-patterns change.
  • Update SPEC.md when scope, evaluation, or evidence policy changes.
  • Update SOURCES.md when AGENTS.md discovery behavior or source-backed decisions change.
  • Add focused references only when repeated failures cannot be fixed with the compact runtime checklist.

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a documentation tool designed to create and maintain concise agent instruction files (AGENTS.md and CLAUDE.md). It operates entirely as a structural guideline for text generation and contains no executable code or active scripts. A low-risk surface for indirect prompt injection exists because the skill instructs the agent to read existing repository documentation and configuration files to build its output.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    1 file scanned · No issues

  • ZeroLeaks5mo

    1 finding · Score: 69/100

Signed by skilld at c190d36. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 5 months ago
  • Documentation
  • agents
  • claude
  • project-setup
  • instructions
  • markdown
  • repository
  • coding-agents

README badge

README badge for getsentry/skills/agents-md

Creates and maintains concise AGENTS.md and CLAUDE.md instruction files for AI coding agents. Provides a workflow for inspecting package managers, commands, docs, and conventions, then generates minimal agent instructions under 60 lines with exact paths and commands verified against the repository.

Generated from the current SKILL.md.

What is the difference between AGENTS.md and CLAUDE.md?
CLAUDE.md is a Claude-compatible entrypoint that should be symlinked to AGENTS.md rather than maintained as a separate copy. The skill does not maintain divergent versions of these files.
Should I create nested AGENTS.md files in subdirectories?
Only when a subtree has different commands or rules than the root. Keep nested files shorter than the root file, and remember that the closest instruction file wins.
How long should AGENTS.md be?
Target under 60 lines; never exceed 100. The goal is concise, actionable instructions that reference external docs rather than duplicating them.
Should AGENTS.md include explanations of why instructions matter?
No. The skill avoids welcome text, intros, conclusions, and long prose. Include only rationale that prevents a likely mistake.
What should I reference in the External References section?
Link to existing files like CONTRIBUTING.md, docs/architecture.md, SECURITY.md, and API specs. Do not copy their content into AGENTS.md.

Generated from the current SKILL.md. These answers refresh after source changes.