Documentation
¶
Overview ¶
agentsmd is a single-binary toolkit for the agent-instruction files that AI coding agents read: AGENTS.md, CLAUDE.md, GEMINI.md and friends.
It analyzes a repository, generates a grounded AGENTS.md, validates that every command and file the document mentions actually exists, audits quality and token cost, and keeps tool-specific files in sync.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
analyze
Package analyze detects the toolchain facts of a repository: package managers, frameworks, scripts, monorepo layout, linters, CI commands and existing agent-instruction files.
|
Package analyze detects the toolchain facts of a repository: package managers, frameworks, scripts, monorepo layout, linters, CI commands and existing agent-instruction files. |
|
checkcmd
Package checkcmd implements `agentsmd check`: verify that every command and file reference in agent instruction files actually exists.
|
Package checkcmd implements `agentsmd check`: verify that every command and file reference in agent instruction files actually exists. |
|
cli
Package cli wires the subcommands together.
|
Package cli wires the subcommands together. |
|
doctor
Package doctor runs every agentsmd health check and prints a report card.
|
Package doctor runs every agentsmd health check and prints a report card. |
|
fleet
Package fleet implements `agentsmd org`: scan every repository of a GitHub user or organization and report the health of its AGENTS.md files.
|
Package fleet implements `agentsmd org`: scan every repository of a GitHub user or organization and report the health of its AGENTS.md files. |
|
generate
Package generate builds a grounded AGENTS.md from repository facts.
|
Package generate builds a grounded AGENTS.md from repository facts. |
|
lint
Package lint audits the quality of agent instruction files and produces an actionable score.
|
Package lint audits the quality of agent instruction files and produces an actionable score. |
|
mdutil
Package mdutil extracts machine-checkable facts from agent-instruction markdown: fenced shell commands and backticked file/command references.
|
Package mdutil extracts machine-checkable facts from agent-instruction markdown: fenced shell commands and backticked file/command references. |
|
safeio
Package safeio provides repository-scoped filesystem reads.
|
Package safeio provides repository-scoped filesystem reads. |
|
skills
Package skills validates Agent Skills (SKILL.md bundles) so that agentsmd covers the second instruction surface that matters in 2026: not just repo-level AGENTS.md, but the skills the agent loads on demand.
|
Package skills validates Agent Skills (SKILL.md bundles) so that agentsmd covers the second instruction surface that matters in 2026: not just repo-level AGENTS.md, but the skills the agent loads on demand. |
|
syncmd
Package sync keeps tool-specific instruction files aligned with AGENTS.md.
|
Package sync keeps tool-specific instruction files aligned with AGENTS.md. |
|
tokens
Package tokens estimates the context cost of agent instruction files.
|
Package tokens estimates the context cost of agent instruction files. |
|
ui
Package ui provides terminal output helpers with ANSI color support that degrades gracefully: colors are disabled when stdout is not a TTY, when NO_COLOR is set, or when TERM is "dumb".
|
Package ui provides terminal output helpers with ANSI color support that degrades gracefully: colors are disabled when stdout is not a TTY, when NO_COLOR is set, or when TERM is "dumb". |
|
validate
Package validate checks that commands and file paths mentioned in agent documentation actually exist in the repository.
|
Package validate checks that commands and file paths mentioned in agent documentation actually exist in the repository. |
Click to show internal directories.
Click to hide internal directories.