Init Agents Md logo

Init Agents Md

Community
bd-dxg
init-agents-md

扫描项目结构并初始化项目级 AGENTS.md(context file)。当用户提到"初始化 AGENTS.md"、"创建项目说明"、"设置项目上下文"、"为新项目生成规则文件"、"看看这个项目要注意什么",或刚进入一个不熟悉的新仓库、开始新项目工作时,都应使用此 skill,即使没有明确提到 AGENTS.md。

Overview

Publisherbd-dxg
Repositoryskills
Skill nameinit-agents-md
Stars
32
Forks
4
Bundled files
Instructions only
LicenseAGPL-3.0
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 bd-dxg on GitHub. Read the source before you install it.

Installation

Install the Init 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/bd-dxg/skills/tree/main/init-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/bd-dxg/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/init-agents-md .claude/skills/init-agents-md
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Init 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 Init 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 Init 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.

初始化 AGENTS.md

为新项目(或缺失 AGENTS.md 的项目)扫描结构、分析技术栈与约定,生成一份项目级 AGENTS.md,作为 pi(及其他 agent)进入该项目时的上下文文件。

为什么要这样做

AGENTS.md / CLAUDE.md 是 pi 启动时自动加载的 context file(从 ~/.pi/agent/ 全局、父目录、当前目录逐级拼接)。一份好的项目 AGENTS.md 能让 agent 直接知道技术栈、命令和约定,避免每次重新摸索——这就是"初始化项目上下文"的价值。

工作流程

1. 扫描项目结构

用只读工具收集信息,覆盖以下方面:

  • 目录树:ls 根目录(包含隐藏文件),再按需深入 src/、lib/、app/ 等源码目录,了解模块划分
  • 构建/包管理配置文件:在根目录查找以下任一文件并读取:
    • JS/TS:package.json(scripts、dependencies、devDependencies)
    • Python:pyproject.toml、requirements.txt、Pipfile
    • Go:go.mod、Makefile
    • Rust:Cargo.toml
    • Java/Kotlin:pom.xml、build.gradle
    • 其他:composer.json、Gemfile、mix.exs、pubspec.yaml
  • 框架与工具:Dockerfile、docker-compose.yml、.github/workflows/、.gitlab-ci.yml、Jenkinsfile、.pre-commit-config.yaml、linter/格式化配置(.eslintrc*、.prettierrc*、ruff.toml、.golangci.yml)
  • 语言分布:统计主要源码扩展名,确定主语言占比
  • 项目描述:读取 README.md 的标题和简介,了解项目用途
  • Git 状态:git status / git remote -v 确认仓库状态和远程地址(只读,不修改)

如果项目根目录已有 AGENTS.md,不要覆盖——先读取内容,询问用户是更新还是保留。

2. 生成 AGENTS.md

在项目根目录写入 AGENTS.md,使用以下模板(简体中文)。只填充扫描到的真实信息,不要编造不存在的命令或配置;没有的内容就省略该小节。

markdown
# <项目名> 开发指南

## 项目概览

<一句话描述项目用途,来自 README 或代码分析>

## 技术栈

- 语言/运行时:<如 TypeScript / Node.js 20>
- 框架:<如 React 18 + Vite>
- 主要依赖:<按用途列 3-5 个核心依赖>

## 常用命令

- 安装依赖:<如 `npm install`>
- 开发运行:<如 `npm run dev`>
- 构建:<如 `npm run build`>
- 测试:<如 `npm test`>
- 代码检查:<如 `npm run lint`>

## 代码约定

- 目录结构:<如"业务代码在 src/modules/ 下按领域划分">
- 命名/风格:<从 lint 配置和现有代码推断,如"使用 PascalCase 组件名">
- 测试约定:<如"测试文件与源码同目录,*.test.ts">

## 注意事项

- <项目特有约束,如"禁止提交 dist/ 目录"、"接口走 /api/v2 前缀">

3. 检查与汇报

写入后自查一遍:

  • 命令是否与 package.json scripts 等实际配置一致?
  • 技术栈信息是否有依据?
  • 是否遗漏了明显的项目特性(monorepo、多语言、特殊构建流程)?

完成后向用户简要汇报:AGENTS.md 已生成、覆盖了哪些要点、以及项目中值得注意的地方。

注意事项

  • 全程只读扫描,不修改项目文件(除最终写入 AGENTS.md 外)
  • 不要添加模板中未提及的冗余章节(如许可证、贡献指南——除非项目里已有相关约定)
  • 保持 AGENTS.md 精炼,目标是让 agent 快速上手,不是写完整文档
  • 生成语言:简体中文

Frequently asked questions

What does the Init Agents Md AI skill do?

扫描项目结构并初始化项目级 AGENTS.md(context file)。当用户提到"初始化 AGENTS.md"、"创建项目说明"、"设置项目上下文"、"为新项目生成规则文件"、"看看这个项目要注意什么",或刚进入一个不熟悉的新仓库、开始新项目工作时,都应使用此 skill,即使没有明确提到 AGENTS.md。

Why use Init Agents Md on TypingMind?

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

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

Which AI models can use Init 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 Init Agents Md?

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

Is the Init Agents Md AI skill free?

Yes. It is published on GitHub by bd-dxg under the AGPL-3.0 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 👇