Agents Md Generator — Git skill for Claude Code
Auto AGENTS.md Generator for Git - Automatically creates starter AGENTS.md (with CLAUDE.md symlink) when cloning empty repositories.
How to install Agents Md Generator
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open nyosegawa/agents-md-generator and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agents Md Generator does
Auto AGENTS.md Generator for Git - Automatically creates starter AGENTS.md (with CLAUDE.md symlink) when cloning empty repositories.
Alternatives in Git
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Awesome ChatGPT — Search awesome-ChatGPT-repositories for open-source GitHub repositories related to ChatGPT and LLMs 3.2k ★
- My Claude Code Setup — GitHub Repo stars Shared starter template configuration and CLAUDE.md memory bank system Setup template 2.1k ★
README
agents-md-generator
[日本語](README-ja.md)
A shell wrapper that automatically creates a starter `AGENTS.md` (with `CLAUDE.md` symlink) when you clone an empty repository.
Blog post: [AGENTS.mdを自動で育てる仕組みを作った](https://nyosegawa.github.io/posts/agents-md-generator/)
Why
Every new repository needs an `AGENTS.md` — the [open standard](https://agents.md/) for guiding AI coding agents (Cursor, Zed, Codex, Gemini CLI, GitHub Copilot, etc.). Claude Code reads `CLAUDE.md`. Setting up both manually every time is tedious.
This wrapper plants the seed automatically. You just grow it as your project evolves.
Setup
Add to your `.bashrc` or `.zshrc`:
source /path/to/agents-md-seed.sh
If you use ghq:
ghq get nyosegawa/agents-md-generator
# .zshrc / .bashrc
source "$(ghq root)/github.com/nyosegawa/agents-md-generator/agents-md-seed.sh"
Or download directly:
curl -sL https://raw.githubusercontent.com/nyosegawa/agents-md-generator/main/agents-md-seed.sh -o ~/.agents-md-seed.sh
echo 'source ~/.agents-md-seed.sh' >> ~/.zshrc # or .bashrc
Usage
# Just clone as usual
git clone git@github.com:you/new-repo.git
# AGENTS.md and CLAUDE.md (symlink) are already there
ls new-repo/
# AGENTS.md CLAUDE.md -> AGENTS.md
# Works with ghq too
ghq get you/new-repo
How It Works
The script defines thin `git()` and `ghq()` wrapper functions that run after every `git clone` / `ghq get`:
- Parses arguments to find the target directory
- Checks if the repo is empty (< 3 items excluding
.git) - Skips if
AGENTS.mdalready exists - Creates
AGENTS.mdfrom a built-in template (or custom template) - Creates
CLAUDE.mdas a symlink toAGENTS.md
Customization
Custom template
Set `AGENTS_MD_TEMPLATE` or place a template at `~/.config/agents-md/template.md`:
export AGENTS_MD_TEMPLATE="$HOME/my-agents-template.md"
Empty-repo threshold
The default threshold is 3 items. To change it, modify the `((
Related Skills
Spine Init
Scaffold the document spine — lay down an empty skeleton entry per unit for an existing document (bootstrap),
Install Hooks
Install git hooks for this project. Triggers during project setup or after cloning.
Weekly.SKILL
当用户要求生成 om-generator 指定日期范围周报时使用;整合 Git 提交、Claude Code 会话、Codex 会话和可选本机记忆记录。
GitCommit
You are a commit message generator. Read the provided git diff and write a concise imperative commit message.
Manage Worktrees
List, create, clean up, and manage git worktrees across all project repositories
Cards.Management
Cards is a local-first VS Code extension. It groups your plans, transcripts, and commits into project-scoped G
Related Agents
Git Workflow Assistant
Manages Git workflows, branching strategies, and code collaboration practices. Use proactively when managing r
Git Repository Manager
Manages Git repositories, version control, GitHub/GitLab operations, and automated release workflows with inte
Correctness Adversary
Red-team correctness reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focuse