buYoung

agents-md-generator

4
1
# Install this skill:
npx skills add buYoung/skills --skill "agents-md-generator"

Install specific skill from multi-skill repository

# Description

Analyze repository structure and generate standardized AGENTS.md files that serve as contributor guides for AI agents. Measures LOC to determine character limits and produces 5-section documents covering overview, folder structure, patterns, conventions, and working agreements.

# SKILL.md


name: agents-md-generator
description: Analyze repository structure and generate standardized AGENTS.md files that serve as contributor guides for AI agents. Measures LOC to determine character limits and produces 5-section documents covering overview, folder structure, patterns, conventions, and working agreements.
license: MIT


AGENTS.md Generation Capability

This skill enables the agent to generate AGENTS.md files that serve as contributor guides for AI agents working on a codebase.

Core Capability

  • Function: Analyze repository structure and generate a standardized AGENTS.md document
  • Output Format: Markdown file with structured sections
  • Character Limit: Dynamic, based on repository LOC (Lines of Code)

Output Sections

The generated AGENTS.md consists of exactly 5 sections:

# Section Purpose
1 Overview 1-2 sentence project description (abstract, no tool/framework lists)
2 Folder Structure Key directories and their contents
3 Core Behaviors & Patterns Logging, error handling, control flow patterns observed in code
4 Conventions Naming, comments, code style derived from analysis
5 Working Agreements Rules for agent behavior and communication

Domain Knowledge

Constraints

  • Read-Only Analysis: Repository inspection uses only non-destructive commands
  • No Run/Test/Build/Deploy: Generated AGENTS.md excludes execution instructions
  • Files to Ignore: Lock files (pnpm-lock.yaml, package-lock.json, yarn.lock, etc.)

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.