Manage Agents Md logo

Manage Agents Md

Community
ShenQingchuan
manage-agents-md

创建、更新、审查与精简项目根目录的 AGENTS.md 文件。当用户要求初始化入口导航、更新测试或启动命令、调整项目红线、或对膨胀腐烂的 AGENTS.md 进行修剪瘦身时使用。

Overview

PublisherShenQingchuan
Repositoryskills
Skill namemanage-agents-md
Stars
28
Forks
3
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Manage Agents Md 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.
    https://github.com/ShenQingchuan/skills/tree/main/registry/dev/agent-friendly-context/manage-agents-md
  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/ShenQingchuan/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/registry/dev/agent-friendly-context/manage-agents-md .claude/skills/manage-agents-md
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Manage Agents Md 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 Manage Agents Md 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 Manage Agents Md 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.

Manage AGENTS.md

本技能用于对项目根目录的 AGENTS.md 文件进行全生命周期管理(从零创建、日常增量更新、定期审查与防腐烂瘦身)。


核心认知:为什么它需要长期管理?

在绝大多数 Agent 运行框架(Harness)中,根目录的 AGENTS.md 会在每一轮对话开启时都被默认、全量加载进上下文。

  • 每一轮对话都在为它付费,也在消耗模型的注意力。
  • 它最容易“悄悄变胖”并发生腐烂:多人或多 Agent 协作后,经常有人把冗长的 API 文档、临时修 Bug 的代码片段、零碎的格式要求塞进这里,导致上下文急剧膨胀,Agent 抓不住重点。
  • 定位铁律:它是“总机调度室与指路牌”,绝不能变成“百科全书”。全篇建议始终控制在 50~100 行内。

三大核心管理场景

根据用户的意图,进入对应的操作模式:

场景一:从零创建(Initialize)

当项目刚建立或尚未有 AGENTS.md 时触发:

  1. 探查现状:检查项目主要代码、配置与框架,提炼出 1~2 句话的项目定调。
  2. 理清验证闭环:
    • 提取项目专属的测试命令(特别是跑单测的针对性命令);
    • 提取本地服务启动方式,并确认 Agent 能否作为使用者发起调用(如 healthcheck 接口、curl 样例)并读取日志。
  3. 设置指路牌:明确指引 Agent 渐进式索取信息:
    • 稳定需求与系统规约 👉 查阅 .agents/specs/
    • 背景说明与参考资料 👉 查阅 .agents/docs/
    • 代码风格与规矩 👉 查阅 .agents/rules/
    • 工程实施过程 👉 查阅 .agents/engineering/
    • 产品成果交付状态 👉 查阅 .agents/kanban/
    • 专属技能与工作流 👉 查阅 .agents/skills/
    • 内部工程工作不得创建 Kanban 卡片;产品需求下的技术子任务也只进入 engineering
  4. 制定 2~3 条绝对物理红线:只列破坏性高压电线(如禁止强推分支、禁止未确认删除数据),不把日常规范当死线,为后续排查留出“逃逸窗口”。
  5. 坚决剔除的冗余(反模式):
    • ❌ 不写基础命令科普(如 npm install、git clone 等常识);
    • ❌ 不写长篇 API 接口文档(放进 .agents/specs/);
    • ❌ 不写琐碎的代码格式偏好(放进 .agents/rules/)。

场景二:增量更新(Update)

当项目的测试工具变更、本地启动方式调整、或踩了重大新坑需要追加铁律时触发:

  1. 定点修改:只针对性修改对应的章节,严禁推倒全篇重写。
  2. 保持特异性:不要写通用常识(例如不教模型如何执行 npm install),只记录本项目特殊的运行方式。
  3. 及时清理废弃规则:如果某个历史红线已经通过工程化手段修复(例如加了自动化 CI 拦截),及时将过时的口头红线移除。

场景三:审查与瘦身(Review & Prune)

当 AGENTS.md 篇幅过长(超过 100 行)、或者发现 Agent 注意力经常被入口信息干扰时触发:

  1. 行数审查:全文是否超过 100 行?如果超过,立刻启动修剪。
  2. 清理百科全书式内容:
    • 发现大段具体 API 参数或表结构?👉 移至 .agents/specs/。
    • 发现细枝末节的语法风格或缩进建议?👉 移至 .agents/rules/ 或交给 linter 配置文件。
    • 发现通用的编程科普?👉 直接删除。
  3. 恢复指针本色:确保 AGENTS.md 门面始终保持骨架清晰、纯净精悍。

标准文件模板参考

markdown
# AGENTS.md

## 1. 项目定调
本项目是 [一句话说明项目核心业务与技术栈,如:基于 Go 的退款中台微服务,对外提供 gRPC 接口]。

## 2. 验证与闭环(Testing & Observability)
- **测试命令**:\`[针对性单测命令,如:go test -v -run TestSpecific ./...]\`
- **本地服务启动**:\`[本地启动命令,如:make dev]\`
- **调用验证**:本地启动后,可通过 \`curl http://localhost:8080/health\` 验证服务健康状态。
- **可观测日志**:运行日志输出在 \`logs/app.log\`,排查报错时请直接查看该文件。

## 3. 上下文指引(Context Routing)
深入了解本项目资产,请按需查阅对应抽屉(需要时再读,不要提前全量加载):
- 稳定需求与系统规约:查阅 \`.agents/specs/\`
- 背景说明与参考资料:查阅 \`.agents/docs/\`
- 项目规则与约束:查阅 \`.agents/rules/\`
- 工程实施过程:查阅 \`.agents/engineering/\`
- 产品成果交付状态:查阅 \`.agents/kanban/\`
- 项目专属操作技能:查阅 \`.agents/skills/\`
- 内部工程工作不得创建 Kanban 卡片;产品需求下的技术子任务也只进入 engineering

## 4. 绝对高压红线
1. 严禁在代码中硬编码任何账号密码、私钥或 API Token。
2. 严禁未经用户明确授权执行任何破坏性的数据库清除脚本。

Frequently asked questions

What does the Manage Agents Md AI skill do?

创建、更新、审查与精简项目根目录的 AGENTS.md 文件。当用户要求初始化入口导航、更新测试或启动命令、调整项目红线、或对膨胀腐烂的 AGENTS.md 进行修剪瘦身时使用。

Why use Manage Agents Md on TypingMind?

Because you install it once and use it with any model. Manage Agents Md 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 Manage Agents Md in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ShenQingchuan/skills/tree/main/registry/dev/agent-friendly-context/manage-agents-md. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Manage Agents Md?

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 Manage Agents Md?

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

Is the Manage Agents Md AI skill free?

Yes. It is published on GitHub by ShenQingchuan 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 👇