agentleFS
pantheon-orgpantheon-org/tekhne/skills/agentic-harness/agents-md/SKILL.md

agents-md

Skill10 starsChanged 39 days agoMITView on GitHub

Create and maintain AGENTS.md documentation for simple projects, complex monorepos, deterministic discovery, scoped instruction files, low-token navigation; use when generating AGENTS.md, updating agent docs, standardizing AI-facing project guidance.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use jira, adr and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    jira

    Jira issue workflows for search, issue updates, transitions, comments, field discovery, and interactive credential setup via the Jira REST API. Use when you need to configure Jira access, search with JQL, inspect an issue, create or update work items, move an issue between statuses, post comments, or discover required fields for issue creation.

    Also in 3 projects that use this

  • asterkinSkill

    adr

    Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.

    Also in 3 projects that use this

  • photon-groveSkill

    unslop

    Detects and rewrites generic, overly polished, or AI-sounding prose while preserving meaning. Use when the user asks to "unslop", humanize, de-AI, tighten, or review whether writing sounds generated.

    Also in 4 projects that use this

  • AWSSkill

    wait-what

    Stop. That last message did not land: re-pitch it.

    Also in 3 projects that use this

  • Harut8Skill

    architect

    Also in 3 projects that use this

  • MicrosoftSkill

    writing-for-agents

    Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep instructions concise, concrete, and path-specific.

    line 23
  2. Distinctive:

    Prefer references and indices over duplicated prose.

    line 24
  3. Distinctive:

    Consider adding subdirectory files iteratively — start minimal, expand as complexity grows.

    line 44
  4. Distinctive:

    GOOD: run discovery commands and map docs to the detected stack.

    line 89
  5. Distinctive:

    GOOD: keep root concise and link to scoped files or references.

    line 97
  6. Distinctive:

    GOOD: keep universal rules at root and package-specific rules locally.

    line 105
  7. Distinctive:

    BAD: add a subdirectory AGENTS.md to every folder of a single-package repo.

    line 119
  8. Distinctive:

    GOOD: use one root AGENTS.md when stack and patterns are uniform.

    line 121
  9. Distinctive:

    GOOD: keep package commands in that package's own AGENTS.md.

    line 129
  10. Very specific:

    BAD: write <your-project>/src or "run the tests".

    line 135
  11. Distinctive:

    GOOD: write the real path and the real command found during discovery.

    line 137
  12. Distinctive:

    GOOD: start minimal and add scoped files iteratively as complexity grows.

    line 145
  13. Distinctive:

    BAD: keep Jest commands after the project moved to another runner.

    line 151

“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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."
  • Repository shape or tooling changed and the existing agent guidance needs a refresh.

When Not to Use

  • Pure code implementation work with no documentation update.
  • One-off prompts where repository guidance files are unnecessary.
  • Questions about a single function or file that need no standing project guidance.

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.
  • Consider adding subdirectory files iteratively — start minimal, expand as complexity grows.

Minimal Template

# Project Agent Guide

## Commands
- Build: `bun run build`
- Test: `bun run test`
- Lint: `bun run lint`

## Conventions
- [describe key patterns here]

## Key Paths
- Source: `src/`
- Tests: colocated `*.test.ts`

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 the 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 or 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.

NEVER create a hierarchy for a simple, uniform project

WHY: extra files add navigation cost and drift risk when one file would do.

BAD: add a subdirectory AGENTS.md to every folder of a single-package repo.

GOOD: use one root AGENTS.md when stack and patterns are uniform.

NEVER put package-specific rules in the root file

WHY: agents read the nearest file, so misplaced rules waste tokens and mislead other packages.

BAD: list UI build flags in the root file of a monorepo.

GOOD: keep package commands in that package's own AGENTS.md.

NEVER use generic placeholder commands or paths

WHY: placeholders cannot be copy-pasted and give the reader nothing concrete.

BAD: write <your-project>/src or "run the tests".

GOOD: write the real path and the real command found during discovery.

NEVER front-load every sub-file at once

WHY: speculative files describe complexity that does not exist yet and go stale.

BAD: generate an AGENTS.md for every package on the first pass.

GOOD: start minimal and add scoped files iteratively as complexity grows.

NEVER leave documentation stale after major repository changes

WHY: instructions for removed tooling mislead agents and break their commands.

BAD: keep Jest commands after the project moved to another runner.

GOOD: re-run discovery, remove obsolete content, and document new scripts.

Verification

rumdl check --include "**/AGENTS.md" .
bun run lint

References

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.