跳到正文
cccskills
免费在 GitHub 公开

agent-init

Initialize or improve AGENTS.md files that define how coding agents operate in a repo. Use when asked to set up or replace an agent init command (Codex, Claude), standardize multi-agent behavior, or audit an existing AGENTS.md for clarity, commands, boundaries, and repo-specific context. For Claude Code, also create CLAUDE.md as a symlink to AGENTS.md.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md5.8 KB
  • metadata.json1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

AGENTS.md Guide

Overview

Provide a repeatable workflow and quality bar for writing or updating AGENTS.md files so agents receive concrete, repo-specific instructions.

Trigger examples

  • "Create an AGENTS.md for this repo and include exact test commands."
  • "Replace our agent init command with a proper AGENTS.md file."
  • "Audit our existing AGENTS.md for missing boundaries and commands."
  • "Update AGENTS.md to reflect the current build and lint commands."
  • "Create CLAUDE.md as a symlink to AGENTS.md for Claude Code."

Core Principles (condensed)

  • Be concrete: prefer executable commands and code examples over prose.
  • Put commands early and include flags/options.
  • Use real code examples over explanations.
  • Remove ambiguity: state boundaries and non-goals explicitly.
  • Be specific about the tech stack; include versions and key dependencies.
  • Define the agent's role/persona and how it fits the team.
  • Cover the six core areas: purpose, code organization, run/test/validate, change management, dependencies/environment, and avoid list.
  • Use three-tier boundaries: Always / Ask first / Never.
  • Start small and iterate as the repo evolves.

Brainstorming Mode (divergent Q&A)

Use this mode when requirements are unclear or the repo structure will influence the document shape.

  • Ask one question at a time. Prefer multiple choice when possible.
  • Base questions on the actual repo shape (single app vs monorepo).
  • Confirm which agents will consume the docs and their expectations.
  • If Claude Code is in scope, plan a CLAUDE.md symlink to AGENTS.md.
  • Ask for exact commands (with flags) and a real code example.
  • Propose 1-2 AGENTS.md layouts (section order) with tradeoffs, then converge.
  • Keep questions short and actionable, then confirm before drafting.
  • Read references/agents-md-brainstorm.md for question banks and decision heuristics.

Workflow

1) Clarify scope and placement

  • Confirm whether the task is to create new docs or revise existing ones.
  • Default output is root AGENTS.md.
  • If the user asks for a different location, confirm the exact path and proceed.
  • If Claude Code is in scope, create CLAUDE.md as a symlink to AGENTS.md.
  • Still maintain a single AGENTS.md (no per-agent files unless explicitly requested).
  • Confirm which agents will consume the docs and align content with their workflows.
  • If the repo uses a different location or filename, ask before proceeding.

2) Gather repo-specific facts

Collect only what will make the file actionable:

  • Stack and versions (language/runtime/package manager).
  • Key directories and ownership.
  • Build, test, lint, and format commands.
  • Environment variables, secrets, and local setup details.
  • Git/PR expectations (branching, commit style, approvals).

2a) Shape the doc by repo structure

  • If monorepo, add per-app or per-team sections inside AGENTS.md.
  • If multiple roles are needed, use role-specific subsections inside AGENTS.md.
  • If the repo is small, keep a single concise AGENTS.md.
  • If a multi-file layout is requested, confirm the target paths before writing.

3) Draft with the six core areas

Write sections that map to the six core areas, keeping each section short and command-focused. Use the template if needed.

4) Add concrete commands and examples

  • Prefer copy/paste commands over prose.
  • Include example file paths and typical change patterns.
  • Show expected outputs if ambiguity is likely.
  • Include at least one real code example that matches repo style.

5) Add boundaries and safety

State what the agent must not do, what requires approval, and any data/credential constraints.

6) Review for clarity

  • Eliminate vague statements ("run tests" -> specify the exact command).
  • Ensure every requirement is tied to a command, path, or policy.
  • Keep it short enough to scan quickly.

Output Requirements

Include, at minimum:

  • Role/purpose of the agent and its scope.
  • Repo map (key paths, entry points, ownership).
  • Run/test/validate commands (copyable, placed early, include flags).
  • Tech stack with versions and key dependencies.
  • Change management rules (branching, commits, PR expectations).
  • Dependencies and environment setup.
  • Code style example (real snippet).
  • Explicit avoid list and approval gates with Always / Ask first / Never.

Cross-agent compatibility

  • Keep instructions in plain Markdown with explicit commands and paths.
  • Avoid agent-specific fields or features unless the target agent requires them.
  • Keep a single root AGENTS.md as the source of truth.
  • If Claude Code is in scope, create CLAUDE.md as a symlink to AGENTS.md.

Multi-platform support

  • Ask which agents are in scope (Codex, Claude, GitHub Copilot, Cursor, etc.).
  • Use one shared AGENTS.md that works across those agents.
  • Do not assume tool-specific directories; only update AGENTS.md unless the user asks otherwise.
  • When showing examples, label tool-specific details as optional (not required).
  • If Claude Code is in scope, add a CLAUDE.md symlink to AGENTS.md.
  • If GitHub Copilot coding agent is in scope, consider adding .github/copilot-instructions.md and keep it minimal (ideally pointing to AGENTS.md as the source of truth).

References

  • Read references/agents-md-template.md when drafting a new file.
  • Read references/agents-md-example.md for a complete AGENTS.md example.
  • Read references/agents-md-checklist.md when reviewing or auditing an existing file.
  • Read references/agents-md-brainstorm.md when running a divergent Q&A gap analysis.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

[00] TnR ABSOLUTE RIGOR — Systemic Verification Doctrine. Forced cognitive exertion for high-stakes investigations. Mandates absolute deconstruction, mathematical proof chains, and ≥95% derived certainty. Zero-tolerance for heuristics or sentiment-based reasoning. Shortcuts are defined as intentional hallucinations.

中文简介正在准备中。当前显示原文说明。

diegosouzapw/awesome-omni-skill642026年3月2日 更新

2agent

免费

Configures 2-Agent workflow between PM and implementation roles. Use when user mentions 2-Agent, 2エージェント, PM連携設定, Cursor設定, Cursor連携, 2-agent運用. Do NOT load for: 単独運用, ワークフロー実行, ハンドオフ処理.

中文简介正在准备中。当前显示原文说明。

diegosouzapw/awesome-omni-skill642026年3月2日 更新

Appends relevant hashtags to journal entries based on content analysis. Intended for LLM execution.

中文简介正在准备中。当前显示原文说明。

diegosouzapw/awesome-omni-skill642026年3月2日 更新

add-agent

免费

Add a new AI coding agent to Agent Sandbox. Creates all required files (Dockerfile, templates, CI, docs) and wires the agent into the CLI, proxy, and build system.

中文简介正在准备中。当前显示原文说明。

diegosouzapw/awesome-omni-skill642026年3月2日 更新

Add a new property to the AI agents database. Use when the user wants to add, create, or introduce a new column, property, field, or feature to track across all agents in the comparison matrix. Handles all four required steps - database updates, groups.json, table display, and GitHub issue templates.

中文简介正在准备中。当前显示原文说明。

diegosouzapw/awesome-omni-skill642026年3月2日 更新

Add new Agent templates to the meta-agent-skills framework.

中文简介正在准备中。当前显示原文说明。

diegosouzapw/awesome-omni-skill642026年3月2日 更新

查看 diegosouzapw 的全部技能

报告此技能的问题