首页/ AI 技能 / @skilllib/skill-2117939930272412340
Skill站外收录 @skilllib/skill-2117939930272412340

agents-md

负责维护项目根目录下的 AGENTS.md 文档,通过符号链接同步至 CLAUDE.md,引导自动发现本地技能并引用其文档,强制采用极简风格:仅用标题与列表、代码块呈现命令和模板,杜绝解释性文字与冗余内容,确保代理能快速获取精准、可执行的项目约定。

0.0 (0) 63 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Maintaining AGENTS.md AGENTS.md is the canonical agent-facing documentation. Keep it minimal—agents are capable and don't need hand-holding. ## File Setup 1. Create `AGENTS.md` at project root 2. Create symlink: `ln -s AGENTS.md CLAUDE.md` ## Before Writing Discover local skills to reference: ```bash find .claude/skills -name "SKILL.md" 2>/dev/null ls plugins/*/skills/*/SKILL.md 2>/dev/null ``` Read each skill's frontmatter to understand when to reference it. ## Writing Rules - **Headers + bullets** - No paragraphs - **Code blocks** - For commands and templates - **Reference, don't duplicate** - Point to skills: "Use `db-migrate` skill. See `.claude/skills/db-migrate/SKILL.md`" - **No filler** - No intros, conclusions, or pleasantries - **Trust capabilities** - Omit obvious context ## Required Sections ### Package Manager Which tool and key commands only: ```markdown ## Package Manager Use **pnpm**: `pnpm install`, `pnpm dev`, `pnpm test` ``` ### Commit Attribution Always include this section. Agents should use their own identity: ```markdown ## Commit Attribution AI commits MUST include: ``` Co-Authored-By: (the agent model's name and attribution byline) ``` Example: `Co-Authored-By: Claude Sonnet 4 <noreply@example.com>` ``` ### Key Conventions Project-specific patterns agents must follow. Keep brief. ### Local Skills Reference each discovered skill: ```markdown ## Database Use `db-migrate` skill for schema changes. See `.claude/skills/db-migrate/SKILL.md` ## Testing Use `write-tests` skill. See `.claude/skills/write-tests/SKILL.md` ``` ## Optional Sections Add only if truly needed: - API route patterns (show template, not explanation) - CLI commands (table format) - File naming conventions ## Anti-Patterns Omit these: - "Welcome to..." or "This document explains..." - "You should..." or "Remember to..." - Content duplicated from skills (reference instead) - Obvious instructions ("run tests", "write clean code") - Explanations of why (just say what) - Long prose paragraphs ## Example Structure ```markdown # Agent Instructions ## Package Manager Use **pnpm**: `pnpm install`, `pnpm dev` ## Commit Attribution AI commits MUST include: ``` Co-Authored-By: (the agent model's name and attribution byline) ``` ## API Routes [Template code block] ## Database Use `db-migrate` skill. See `.claude/skills/db-migrate/SKILL.md` ## Testing Use `write-tests` skill. See `.claude/skills/write-tests/SKILL.md` ## CLI | Command | Description | |---------|-------------| | `pnpm cli sync` | Sync data | ```

评论 0

还没有评论,来抢沙发。