CtrlK
BlogDocsLog inGet started
Tessl Logo

agents-md

Create and maintain AGENTS.md documentation for simple projects and complex monorepos with deterministic discovery, scoped instruction files, and low-token navigation patterns. Trigger: When generating AGENTS.md, updating agent docs, or standardizing AI-facing project guidance.

Invalid
This skill can't be scored yet
Validation errors are blocking scoring. Review and fix them to unlock Quality, Impact and Security scores. See what needs fixing →
SKILL.md
Quality
Evals
Security

AGENTS.md Management

When to Use

  • "Create AGENTS.md for this repo."
  • "Update agent documentation for this monorepo."
  • "Set up hierarchical AGENTS.md files by package."

When Not to Use

  • Pure code implementation work with no documentation update.
  • One-off prompts where repository guidance files are unnecessary.

Principles

  • Keep instructions concise, concrete, and path-specific.
  • Prefer references and indices over duplicated prose.
  • Optimize for nearest-file relevance in hierarchical layouts.

Workflow

  1. Discover repository shape and technologies. Output: simple vs hierarchical documentation strategy.
  2. Select structure (single root file or root + sub-files). Output: file layout plan.
  3. Generate AGENTS.md content with concrete commands and paths. Output: actionable docs with JIT indexing.
  4. Validate command correctness and duplication boundaries. Output: clean, copy-paste-safe instruction files.
  5. Re-check after major repo changes. Output: synchronized documentation.

Structure Decision

  • Simple project: one AGENTS.md when stack and patterns are uniform.
  • Complex monorepo: root AGENTS.md + scoped subdirectory AGENTS.md files.

Quick Commands

# Discovery baseline
rg --files
# Detect core config/tooling
rg -n "workspaces|nx|turbo|pnpm|yarn|packageManager|tsconfig|pytest|playwright" .
# Locate existing AGENTS files
find . -name AGENTS.md -o -name AI-DOCS.md

Anti-Patterns

NEVER assume a technology stack without discovery

WHY: incorrect assumptions produce unusable instructions. BAD: generate React/Jest guidance without evidence. GOOD: run discovery commands and map docs to detected stack.

NEVER dump encyclopedic content into root AGENTS.md

WHY: oversized docs increase token cost and reduce usability. BAD: embed full framework manuals. GOOD: keep root concise and link to scoped files/references.

NEVER duplicate the same instructions across root and sub-files

WHY: duplication creates drift and maintenance overhead. BAD: copy/paste identical conventions in every file. GOOD: keep universal rules at root and package-specific rules locally.

NEVER provide unverified commands

WHY: broken commands erode trust and block contributors. BAD: include hypothetical commands. GOOD: include only validated copy-paste commands.

Quick Reference

TopicReference
Repository discovery commandsreferences/discovery-commands.md
What to avoidreferences/anti-patterns.md
API package templatereferences/api-template.md
Design-system templatereferences/design-system-template.md
Database package templatereferences/database-template.md
Testing package templatereferences/testing-template.md
Troubleshootingreferences/troubleshooting.md

Verification

bunx markdownlint-cli2 "**/AGENTS.md" "skills/agents-md/**/*.md"
sh skills/skill-quality-auditor/scripts/evaluate.sh agents-md --json
Repository
YoizenSA/dev-ai-workflow
Last updated
First committed

Canonical home

pantheon-org/tekhne
In sync

since Aug 28, 2026

Also appears in

pantheon-ai/agents-md
In sync

since Jun 29, 2026

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.