init-ai-md

Initialize and incrementally update AI memory files with diff-based completion.

4|1|Updated Mar 24, 2024
One-click install
npx skills add https://github.com/ruan-cat/monorepo --skill init-ai-md
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: init-ai-md
Source: https://github.com/ruan-cat/monorepo/tree/main/claude-code-marketplace/common-tools/skills/init-ai-md
Command: npx skills add https://github.com/ruan-cat/monorepo --skill init-ai-md

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能通过交互式选择和差异对比补全,帮助在项目中快速初始化和增量更新 AI 记忆文件(CLAUDE.md、AGENTS.md、GEMINI.md),确保记忆项完整且可回滚,避免覆盖用户的自定义内容。

Core Features & Use Cases

  • 初始化 CLAUDE.md:在缺失时创建并以中文编写 AI 记忆文件,准备后续的记忆项管理。
  • 交互式选择:扫描现有内容与 templates/ 目录中的模板,允许用户多选需要的记忆项并标注状态。
  • 差异对比增量补全:对比现有内容与模板,仅补全缺失部分,保持原有自定义内容不变。
  • 多文件同步:支持将更新同步到 AGENTS.md 与 GEMINI.md,确保跨文件记忆一致性。
  • 流程驱动:触发条件包括用户提及初始化记忆文件、更新 CLAUDE.md、同步 AI 记忆等关键词,主动调用。

Quick Start

在一个新项目中调用 init-ai-md,系统会扫描 templates/ 并让你多选需要的记忆项,然后按顺序插入 CLAUDE.md 的对应章节并可选同步 AGENTS.md/GEMINI.md。

Frequently Asked Questions about init-ai-md

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize and incrementally update AI memory files like CLAUDE.md?

You can initialize and incrementally update AI memory files by interactively selecting memory items from templates and using diff-based completion to fill in missing sections without overwriting custom content.

Can I synchronize AI memory across CLAUDE.md, AGENTS.md, and GEMINI.md?

Yes, you can synchronize AI memory across CLAUDE.md, AGENTS.md, and GEMINI.md by enabling optional cross-file synchronization during the update process to ensure consistency.

Does updating CLAUDE.md with diff-based completion preserve my existing custom content?

Diff-based completion preserves your existing custom content by comparing current files with templates and only inserting missing memory items in a deterministic order.

What templates do I need to set up before initializing project memory automation?

You need no external configuration beyond SKILL.md frontmatter, but you must place memory item templates in the local templates/ directory to enable interactive selection and insertion.

How to select specific memory items when initializing CLAUDE.md?

You select specific memory items for CLAUDE.md initialization via interactive user confirmation prompts that scan existing content against templates/ and let you multi-select required sections.

When should I avoid cross-file synchronization for AI memory management?

You should avoid cross-file synchronization for AI memory management when AGENTS.md or GEMINI.md require distinct instructions, as synchronization enforces identical memory items across all files.