Get the FREE Ultimate OpenClaw Setup Guide →

agents-md-pro

Scanned
npx machina-cli add skill Melon4Program/ai-skills/agents-md-pro --openclaw
Files (1)
SKILL.md
2.4 KB

AGENTS.md Pro

Create token-efficient AGENTS.md files that maximize clarity with minimal tokens.

Core Principles

  1. Token efficiency - Every word justifies its cost
  2. Commands over explanations - Show, don't tell
  3. Reference configs - Point to .eslintrc, never duplicate
  4. Model-agnostic - Universal terminology only
  5. Condensed default - Always minimal output

Input

Required: Project directory path If missing: Request from user

Workflow Router

Map user request to workflow:

Quick Reference

Output template - Standard repo:

# [Project] | [Tech Stack]
## COMMANDS
- Dev: `cmd` | Build: `cmd` | Test: `cmd` | Lint: `cmd --fix`
## STRUCTURE
- `dir/` - purpose
## PATTERNS
[1-2 key patterns with minimal code]
## CODE STYLE
See `.eslintrc`, `.prettierrc`
## DOMAIN
| Term | Definition |
## SECURITY
[Auth/validation only]
## GIT
Format: `convention`

Line limits:

  • Standard: ≤150 lines
  • Monorepo root: ≤50 lines
  • Sub-project: ≤100 lines

Target tokens:

  • Standard: 500-800
  • Monorepo root: 300-400
  • Sub-project: 400-600

Resources

Load as needed:

Source

git clone https://github.com/Melon4Program/ai-skills/blob/main/skills/agents-md-pro/SKILL.mdView on GitHub

Overview

AGENTS.md Pro creates, optimizes, updates, and validates AGENTS.md files with maximum token efficiency. It delivers condensed, actionable commands and references to configs in a model-agnostic style. This helps maintain clear AI agent documentation across repositories with minimal verbosity.

How This Skill Works

When a user request is received, the tool routes it to the appropriate workflow (Create, Optimize/condense, Update/refresh, Validate) via the Workflow Router and produces a standard, token-conscious output template. It emphasizes referencing existing configs (like .eslintrc) rather than duplicating them, and keeps output within strict line/token targets for easy parsing by AI agents.

When to Use It

  • Create new AGENTS.md files for any repository
  • Optimize or condense existing AGENTS.md to reduce token count
  • Update or refresh AGENTS.md to sync with codebase changes
  • Validate AGENTS.md quality and completeness
  • Improve AGENTS.md to be more effective for AI agents

Quick Start

  1. Step 1: Provide the project directory path to initiate the workflow
  2. Step 2: Choose the workflow: Create, Optimize/condense, Update/refresh, or Validate
  3. Step 3: Review the generated AGENTS.md snippet and commit to the repo

Best Practices

  • Reference configs (e.g., .eslintrc, .prettierrc) instead of duplicating rules
  • Keep language model-agnostic with universal terminology
  • Aim for concise sections: COMMANDS, STRUCTURE, PATTERNS, CODE STYLE, GIT
  • Target token counts: Standard 500-800 tokens; adjust for repo size
  • Validate against established rules and anti-patterns before finalizing

Example Use Cases

  • New repo: generate a compact AGENTS.md with PROJECT + TECH STACK, essential COMMANDS, and quick patterns
  • Existing AGENTS.md compressed from 1200 tokens to 450 tokens without losing meaning
  • Sync AGENTS.md with the latest code changes after a major refactor
  • Run validation to ensure completeness of DOMAIN, SECURITY, and GIT sections
  • Improve AGENTS.md to emphasize actionable commands over long explanations

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers