Skip to content
Skills Library
AI & agents · Building & coding

agents-md

/agents-md

Build or rebuild AGENTS.md with progressive disclosure. Use when: /harn:agents-md, 'create AGENTS.md', 'update agent instructions', 'too many instructions

Repository
harn ↗
Licence
MIT
Last repository change
01.09.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 01.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Build or rebuild AGENTS.md with progressive disclosure. Use when: /harn:agents-md, 'create AGENTS.md', 'update agent instructions', 'too many instructions

Triggers from the description

create AGENTS.mdupdate agent instructions
Original author description

Build or rebuild AGENTS.md with progressive disclosure. Use when: /harn:agents-md, 'create AGENTS.md', 'update agent instructions', 'too many instructions

How it works

  1. Rules
  2. Process
  3. Workflow
  4. Context Budget
  5. Escape Hatches
Original SKILL.md headings · 47 lines, 270 words
SKILL.md preview
---
name: agents-md
description: "Build or rebuild AGENTS.md with progressive disclosure. Use when: /harn:agents-md, 'create AGENTS.md', 'update agent instructions', 'too many instructions'"
---

# Reference: https://harn.app/kb/specs.html — "12 Factor Agents"
# Reference: https://harn.app/kb/context.html — "Writing a good CLAUDE.md"

# AGENTS.md Builder

Generate a lean, effective AGENTS.md using progressive disclosure principles.

## Rules

1. **Under 60 lines** — ideally under 100, never over 300
2. **No directory trees** — agents discover structure on their own
3. **No bloated context** — point to skill files for domain-specific rules
4. **Progressive disclosure** — load detailed instructions only when relevant

## Process

1. Read the current project root (package.json, README, existing AGENTS.md)
2. Identify: stack, entry points, architectural constraints
3. Generate AGENTS.md with sections:
   - North Star (1-2 sentences)
   - System of Record (stack, entry points)
   - Constraints (hard rules)
   - Active Harness Hooks (what's automated)
   - Skills (progressive disclosure pointers)
   - Escape Hatch (what to do when stuck)
4. If existing AGENTS.md is over 100 lines, refactor it:
   - Extract domain rules into separate skill files
   - Keep only pointers in AGENTS.md

## Workflow
1. Understand → Read code, check LEARNED.md for gotchas
2. Plan → Break task into steps, update CHECKPOINT.json
3. Implement → Write code within architectural constraints
4. Verify → Run quality gate before finishing
5. Document → Update LEARNED.md if something was tricky

## Context Budget
- Keep this file under 60 lines — load skills/ on demand
- Delegate research to sub-agents — only summaries return
- After 30+ tool calls, compact and update CHECKPOINT.json

## Escape Hatches
- Quality gate stuck? Stop hook checks `stop_hook_active` — retry lets you through
- Security guard wrong? Report false positive, use alternative command
- Same error 3 times? Stop and ask the human

Versions

RepositoryScoreLicence
This page · sliday/harn90MIT
mblode/agent-skills100MIT
akunzai/agent-skills100MIT
hugrverk/riggverk100MIT
getsentry/skills100Apache-2.0
pantheon-org/tekhne100MIT
mc0571/mc-skills100MIT
jscraik/Agent-Skills100Apache-2.0
LiHongwei-cn/lihongwei-cn100MIT

Database snapshot: 13.11.2026 · package version 78919aecbecd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100claude-skills
    Guide for creating Agent Skills with progressive disclosure and best practices. Use when creating new skills, understanding skill structure, or implementing progressive disclosure.
  • 100init
    This skill should be used when a user asks to initialize a repository for AI agents, create or update an AGENTS.md file, scaffold agent instructions for a codebase, or improve existing agent guidance. Triggers include phrases like 'create an AGENTS.md', 'set up agent…
  • 100write-agents-files
    Use when setting up or improving agent instructions in AGENTS.md, CLAUDE.md or other coding agents instructions files.
  • 95improve-agent
    Guide for improving GitHub Copilot Agent performance through skills, custom instructions, AGENTS.md, or other configuration. Use this when asked to improve agent behavior, create/update skills, modify custom instructions, update AGENTS.md, or customize GitHub Copilot performance in repositories.
  • 100writing-agent-instructions
    How to write great agent instructions for an agent-native app or template: AGENTS.md, skills, and tool/action descriptions. Use when authoring or reviewing AGENTS.md, writing a SKILL.md, wording action descriptions, or deciding what belongs in instructions vs skills vs memory.
  • 96writing-agent-instructions
    Use when creating, revising, or auditing an agent skill, AGENTS.md, CLAUDE.md, nested project instructions, or native harness memory, including trigger design, progressive disclosure, harness-aware scope, behavioral validation, past-session recall, session retrospectives that…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.