Agents Md Generator logo

Agents Md Generator

Community
MADTeacher
agents-md-generator

Create, generate, update, repair, trim, or split minimal AGENTS.md files for repository roots and confirmed nested modules using progressive disclosure. Use for missing, bloated, contradictory, or outdated agent instructions, monorepos, services, packages, module context, and portable agent guidance without assuming any fixed agent folder structure.

Overview

PublisherMADTeacher
Repositorymad-agents-skills
Skill nameagents-md-generator
Stars
109
Forks
20
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by MADTeacher on GitHub. Read the source before you install it.

Installation

Install the Agents Md Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MADTeacher/mad-agents-skills.git /tmp/mad-agents-skills
mkdir -p .claude/skills
cp -r /tmp/mad-agents-skills/agents-md-generator .claude/skills/agents-md-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Agents Md Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Agents Md Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Agents Md Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AGENTS.md Generator (Root + Nested, Portable)

Goal

Maintain small, high-signal AGENTS.md files:

  • Root AGENTS.md — purpose of repository, navigation, universal toolchain, canonical commands, links to docs and skills.
  • Nested AGENTS.md — module/package purpose, local commands, module references.

Use progressive disclosure: keep AGENTS.md concise; push details to docs or skills.


Skill location (agent-specific)

  • Do NOT assume .agents/ or any fixed directory exists.
  • Skills may live:
    • inside the repository (embedded),
    • or in an external/global skill library (external).
  • If referencing local skills, use only an existing skill root already used by the project or an existing project path already mentioned by repo docs.
  • If no local skill directory exists — reference skills by name only (external).
  • Never create hidden agent directories just to store skills.

Resource Routing

Use templates as skeletons, not literal output:

  • Read references/AGENTS_TEMPLATE_ROOT.md only when creating or updating the root AGENTS.md.
  • Read references/AGENTS_TEMPLATE_MODULE.md only after a directory is confirmed as a nested module that needs its own AGENTS.md.
  • Replace or remove every placeholder. Final AGENTS.md files must not contain unresolved <...> template markers.

When to run

Run this skill when:

  • AGENTS.md is missing, bloated, contradictory, or outdated.
  • AGENTS.md needs to be generated, repaired, trimmed, split, or updated.
  • A new package/service/module appears.
  • Repository structure changes (monorepo growth or split).
  • Teams want consistent agent context across diverse stacks.

Workflow (Deterministic)

1. Discover repository shape

  • Identify repository root (git root if available).
  • Detect language/tool markers:
    • package.json, pnpm-workspace.yaml
    • go.mod, go.work
    • pyproject.toml
    • Cargo.toml
    • pubspec.yaml
    • pom.xml, build.gradle
  • Locate docs/, README.md, existing AGENTS.md.

2. Detect module boundaries

Create nested AGENTS.md if directory:

  • Contains independent build/package manifest
  • OR represents deployable/service unit (apps/, services/, packages/)
  • AND adds distinct commands, docs, ownership, deployment notes, or toolchain guidance compared with parent scope.

Do not create a nested AGENTS.md that only repeats the root instructions.


3. Generate/Update Root AGENTS.md

Constraints:

  • Ideal size: ≤ 60 lines
  • Must include:
    • One-sentence repository purpose
    • Primary toolchain/package manager
    • Canonical commands (if non-standard)
    • Links to docs
    • Instruction to read nested AGENTS.md when inside modules
    • Optional skill references (adaptive: local or external)
  • Preserve verified commands, docs, security/secrets/deployment warnings, and important local rules from any existing root AGENTS.md.

4. Generate/Update Nested AGENTS.md

Constraints:

  • Ideal size: ≤ 40 lines
  • Must include:
    • One-sentence module purpose
    • Module-specific commands
    • Local documentation references
    • Optional skill references (adaptive)
  • Preserve verified module warnings, ownership, deployment notes, and local rules from any existing nested AGENTS.md.

5. Progressive Disclosure Rules

  • Do not embed style guides, CI policies, or architecture details.
  • Prefer links to existing docs and external or local skills.
  • Include only links that exist or are explicitly cited as the source for commands or policy.
  • Replace stale long-form sections with links when an authoritative doc exists.
  • Avoid “always/never” rules unless critical for correctness/security.

6. Safety / Correctness Gates

  • Never invent commands.
  • Infer commands from:
    • package scripts
    • Makefile
    • CI configuration
    • README
  • If uncertain → write: “Known commands: see
  • Preserve critical warnings (security, secrets, deployment).

Output Contract

Create or update only:

  • <repo_root>/AGENTS.md
  • <module_dir>/AGENTS.md

Do not create agent configuration folders.


Skill Referencing Strategy

When adding skill references inside AGENTS.md:

  1. If local skill directory detected

    See: <detected-skill-root>/<skill-name>/SKILL.md
  2. If no local directory exists

    Skill: agents-md-generator (external)

Never assume filesystem paths.


Validation

Before finishing, verify:

  • Only root/module AGENTS.md files were created or updated.
  • Final AGENTS.md files contain no unresolved <...> placeholders.
  • Relative documentation links exist or clearly point to a source file for commands/policy.
  • Commands are supported by package scripts, Makefile, CI configuration, or README. If no command is verified, use Known commands: see <existing file>.
  • Line budgets are respected: root ≤ 60 lines, nested module ≤ 40 lines.
  • Nested files exist only for confirmed module boundaries.
  • Critical warnings from existing AGENTS.md files are preserved.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Agents Md Generator AI skill do?

Create, generate, update, repair, trim, or split minimal AGENTS.md files for repository roots and confirmed nested modules using progressive disclosure. Use for missing, bloated, contradictory, or outdated agent instructions, monorepos, services, packages, module context, and portable agent guidance without assuming any fixed agent folder structure.

Why use Agents Md Generator on TypingMind?

Because you install it once and use it with any model. Agents Md Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Agents Md Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MADTeacher/mad-agents-skills/tree/main/agents-md-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Agents Md Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Agents Md Generator?

As many as you like. As long as a model supports skills, you can use Agents Md Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Agents Md Generator AI skill free?

Yes. It is published on GitHub by MADTeacher under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇