# Init AI md

> Init AI md is an open-source agent skill for developer tools. Sets up and incrementally updates a project's AGENTS.md AI memory file and its skills. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ruan-cat/monorepo/tree/main/ai-plugins/common-tools/skills/init-ai-md
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** init-ai-md
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Init-ai-md keeps a project's AI memory in one canonical root AGENTS.md. It scans the existing file and a set of Chinese-language section templates, flags which sections are missing, outdated or complete, and asks the user which ones to fill in. Only missing lines and paragraphs are added, so custom content is preserved rather than overwritten.

Beyond memory sections, the skill migrates legacy CLAUDE.md and GEMINI.md files into a redirect pointing at AGENTS.md, deploys a built-in record-bug-fix-memory skill into .agents/skills, and flattens older nested copies of that skill. It also builds a project skills table inside AGENTS.md that lists each skill's path, purpose and trigger conditions, and includes a mandatory governance section that is always merged.

The workflow is interactive: the skill is designed to confirm choices with the user before changing files and is written to avoid batch scripts. It expects a project with file access and the AskUserQuestion tool, and its templates and instructions are in Simplified Chinese.

## When your agent uses it

> 初始化、迁移和增量更新项目 AI 记忆文件，以 AGENTS.md 作为唯一事实来源。 通过交互式选择和差异对比，智能补全记忆项内容。触发条件： 当用户提及初始化记忆文件、更新 AGENTS.md、迁移 CLAUDE.md/GEMINI.md、同步 AI 记忆、 init-ai-md 等关键词时主动调用。 Use when initializing, migrating, or incrementally updating project AI memory documents. The skill maintains the canonical root AGENTS.md, redirects CLAUDE.md and GEMINI.md, and manages the project-level record-bug-fix-memory skill.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/init-ai-md)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/init-ai-md)

## Features

- **Canonical AGENTS.md setup:** Creates or migrates the project's single AI memory file and redirects CLAUDE.md and GEMINI.md to it.
- **Interactive section selection:** Compares existing headings with templates and lets the user choose which memory sections to add or update.
- **Incremental diff merging:** Adds only missing lines or paragraphs, keeping the user's custom content intact.
- **Project skills table:** Scans the .agents/skills folder and writes a table of installed skills into AGENTS.md.
- **Bug-fix memory skill:** Deploys and flattens the record-bug-fix-memory skill with a split case-file layout.

## Good for

- Initialize AGENTS.md for a new project
- Migrate CLAUDE.md or GEMINI.md into AGENTS.md
- Update project memory sections without overwriting custom notes
- Register installed project skills in AGENTS.md
- Set up a bug-fix experience log skill for the repository

## Install

### Claude Code

This skill ships in the `common-tools` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/init-ai-md`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/init-ai-md &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md" ~/.claude/skills/init-ai-md &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/init-ai-md` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/init-ai-md` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/init-ai-md &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md" ~/.agents/skills/init-ai-md &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/init-ai-md` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/init-ai-md` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/init-ai-md &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md" ~/.cursor/skills/init-ai-md &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/init-ai-md` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/init-ai-md
```

Or copy the folder to `~/.gemini/skills/init-ai-md` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/init-ai-md`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/init-ai-md &&
cp -R "$tmp/ai-plugins/common-tools/skills/init-ai-md" ~/.copilot/skills/init-ai-md &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/init-ai-md` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/common-tools/skills/init-ai-md` into your agent's skills folder as `init-ai-md`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It is meant to be invoked when the user mentions initializing memory files, updating AGENTS.md, migrating CLAUDE.md or GEMINI.md, syncing AI memory, or the skill name init-ai-md.

### Does Init AI md change files without asking?

The workflow requires the user to choose which memory sections to process before editing. The CLAUDE.md and GEMINI.md redirect is a fixed migration step that does not ask for confirmation.

### Will Init AI md overwrite my custom memory content?

No. The instructions say to add only missing content and to keep user-defined sections in place.

### Which languages and tools does Init AI md expect?

The memory templates and generated content are written in Simplified Chinese, and the skill relies on file editing and an interactive question tool.

### How do I install Init AI md in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/init-ai-md to use it in all your projects, or to .claude/skills/init-ai-md in one project. Or install the common-tools plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install common-tools@ruan-cat-tools.

### Does Init AI md run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Init AI md?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Init AI md?

The closest alternatives to Init AI md are Agents md authoring, Agents md improver, Agents md, Agentsmd optimize and Wiki agents md.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agents md authoring](https://ai-powered.com/skills/agents-md-authoring): Agents md authoring is an open-source agent skill for developer tools.
- [Agents md improver](https://ai-powered.com/skills/agents-md-improver): Agents md improver is an open-source agent skill for developer tools.
- [Agents md](https://ai-powered.com/skills/agents-md-scaledockhq): Agents md is an open-source agent skill for developer tools.
- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [Wiki agents md](https://ai-powered.com/skills/wiki-agents-md): Wiki agents md is an open-source agent skill for knowledge and memory.
- [Agents md](https://ai-powered.com/skills/agents-md-richardgill): Agents md is an open-source agent skill for developer tools.
- [Agentsmd scaffold](https://ai-powered.com/skills/agentsmd-scaffold): Agentsmd scaffold is an open-source agent skill for developer tools.
- [Create agentsmd](https://ai-powered.com/skills/create-agentsmd): Create agentsmd is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/init-ai-md
