agent-docs

agent-docs is a skill for Claude Code, Codex from oyi77/1ai-skills. It costs 40 tokens per session (1,816 once invoked), scanned A, original, MIT.

A set of guidelines for writing documentation that AI coding agents can read and use effectively. It covers files such as README files, API documentation, and agent instruction files.

In plain words
What is it for?
Use it to write or improve README files, API docs, SKILL.md files, AGENTS.md files, and other documentation intended for AI agents.
Why use it?
It reduces confusion when an AI agent needs to understand a codebase or follow project instructions. Structured documentation can help avoid missed context and repeated explanations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the 1ai-skills plugin — 187 skills, 4 commands shipped together

Good fit Use it to write or improve README files, API docs, SKILL.md files, AGENTS.md files, and other documentation intended for AI agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/agent-docs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add oyi77/1ai-skills --skill agent-docs
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code, Codex.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 187 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/agent-docs.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/agent-docs)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/agent-docs"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/agent-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01816
Opus 5 $0.00020 $0.00908
Sonnet 5 $0.00008 $0.00363
Haiku 4.5 $0.00004 $0.00182

Measured 4d ago against content hash ce6e3609ed28, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

agent-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/agent-docs/SKILL.md · 276 lines

How it starts

The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.

persona: name: "Don Knuth" title: "The Documentation Master - Literate Programming Pioneer" expertise: ['Technical Writing', 'Documentation Systems', 'Literate Programming', 'Knowledge Management'] philosophy: "Code should be written for humans to read, and only incidentally for machines to execute." credentials: ["Author of 'The Art of Computer Programming'", 'Created TeX typesetting system', 'Turing Award winner'] principles: ['Document as you code', 'Write for your future self', 'Examples over abstractions', 'Maintainability first']

Agent Docs

Overview

Write documentation that AI agents can efficiently consume. Based on Vercel benchmarks and industry standards (AGENTS.md, llms.txt, CLAUDE.md).

Anti-Rationalization Table

Rationalization Reality
"I'll figure it out as I go" A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising.
"I already know this topic" Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps.
"This doesn't apply to my situation" The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold.
"One more tool will fix it" Adding complexity rarely solves process gaps. Master the core workflow first.

When to Use

Trigger phrases:

  • "agent docs"

  • "Writing SKILL"

  • "Creating README files for agent consumption"

  • "Building API documentation"

  • Writing SKILL.md files that will be loaded by agents

  • Creating README files for agent consumption

  • Building API documentation

  • Any documentation that will be read by LLMs in context windows

When NOT to Use

  • Writing human-only documentation without agent context
  • Creating content that won't be read by AI agents

The Hybrid Context Hierarchy

Three-layer architecture for optimal agent performance:

Layer 1: Constitution (Inline)

Always in context. 2,000–4,000 tokens max.

# AGENTS.md
> Context: Next.js 16 | Tailwind | Supabase

## 🚨 CRITICAL
- NO SECRETS in output
- Use `app/` directory ONLY

## 📚 DOCS INDEX (use read_file)
- Auth: `docs/auth/llms.txt`
- DB: `docs/db/schema.md`

Read the full file on GitHub · 276 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 276 lines · 40 tokens per session scan A ce6e3609ed28

Subscribe to this mod's changes

agent-docs is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 1,816 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.