Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

init-agent-config初始化 Agent 配置

Agent Skill

init-agent-config 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

685

周安装

25

GitHub Stars

5

下载量

314
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:init-agent-config(初始化 Agent 配置)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/init-agent-config
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill init-agent-config
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill init-agent-config

简介

用于查找、检索和筛选相关信息,适合根据关键词快速定位候选结果。

  • 可结合任务场景或来源线索进行信息聚合,支持技能库探索和匹配。
  • 安装前建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。
  • 安装命令为 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill init-agent-config。
  • 适用于 Codex、Claude、Cursor、Gemini CLI,需通过 GitHub 仓库安装。

SKILL.md

Init Agent Config

Build AGENTS-first instruction systems from repo evidence. AGENTS.md is the source of truth for how agents should work. REVIEW.md is the standardization layer for what changes should be scrutinized or blocked during review. Explore the repository in waves, write root plus folder-scoped AGENTS.md files, then finish with a repo-grounded review context layer and any needed native adapters.

Default Claude compatibility model: every finalized AGENTS.md gets a sibling CLAUDE.md symlink. If the environment cannot preserve symlinks, fall back to a one-line wrapper and call out the exception in your response.

Use this skill for

  • creating new root and folder-scoped AGENTS.md files from real repo evidence
  • creating or tightening a repo-grounded REVIEW.md standardization layer after the AGENTS hierarchy is done
  • auditing or tightening existing agent instructions before rewriting them
  • migrating CLAUDE.md, .cursorrules, Copilot, Gemini, or mixed agent config into an AGENTS-first layout
  • building nested instruction boundaries for src/, packages, apps, services, or docs areas
  • coordinating multi-agent exploration before instruction writing

Do not use this skill for

  • reviewing a PR directly
  • writing generic "AI coding guidelines" without inspecting a real repository
  • runtime subagent orchestration unrelated to repo instruction files -> use the matching orchestration skill

Review context and native adapters

The main job is still AGENTS standardization, but every finished repo should also get a review-context layer. Treat REVIEW.md as mandatory. Treat platform-native review adapters as configurable last-step outputs driven by the completed AGENTS.md + REVIEW.md pair.

Keep the split clear:

SurfacePurposeDefault status
AGENTS.mdHow agents should work, where code lives, what local boundaries existRequired
REVIEW.mdWhat diffs should be flagged, protected, or held to a higher barRequired
Copilot filesGitHub Copilot review-specific adaptersConfigurable final step
Devin filesDevin Bug Catcher review adapters and scoped review surfacesConfigurable final step
Greptile filesGreptile review adapters and context filesConfigurable final step

Quick boundary:

  • AGENTS.md = how to work
  • REVIEW.md = what to scrutinize in changes
  • native review adapters = platform-specific translations of the review context

Non-negotiables

  • Inspect the repository before drafting anything.
  • AGENTS.md comes first. Agent-specific files come after the AGENTS hierarchy exists.
  • REVIEW.md comes after the AGENTS hierarchy, not before it.
  • Do not ask about Copilot, Devin, or Greptile adapters until both the AGENTS.md hierarchy and REVIEW.md are complete.
  • Every project should leave this skill with a useful review-context layer, even if it never adopts a PR review tool.
  • Native review adapters are configurable last-step outputs, not the default deliverable.
  • Use wave-based discovery: broad architecture first, folder architecture second, writing only after both waves are merged.
  • If the environment supports explorer subagents, use up to 10 across the discovery waves.
  • Explorer prompts must be substantive: minimum 500 words, maximum 2500 words.
  • Writer prompts may be more detailed, but cap them at 5000 words.
  • Default folder rule: create root AGENTS.md plus a local AGENTS.md for each meaningful src subfolder discovered in Wave 2. If a src tree has first-level folders, each first-level folder should end with its own AGENTS.md unless repo evidence proves there is no distinct workflow there.
  • Every folder-level AGENTS.md must answer the question: What does a coder working in this folder need to know to avoid mistakes here?
  • The root REVIEW.md must answer: What kinds of changes should be flagged or scrutinized because they break this repo's intended standards or risk boundaries?
  • After each AGENTS.md is finalized, create sibling CLAUDE.md as a symlink to it. If symlinks are impossible in the target environment, fall back to a one-line wrapper and call out the exception in your response.
  • Verify commands and paths against real files; never invent them.
  • Keep universal guidance in AGENTS.md. Keep agent-native syntax and features out of AGENTS.md.
  • Keep review criteria in REVIEW.md. Do not hide diff-review rules inside AGENTS.md unless the repo already uses that pattern and you are preserving it intentionally.
  • Complement existing config; do not blindly replace it.
  • Preserve existing Always, Ask, Never, WARNING, CRITICAL, and DO NOT rules unless the repo proves they are obsolete.
  • Prefer high-signal directives over long prose. If a line would not prevent a mistake, cut it from the config file (the instruction, not the repo).
  • For existing files, output the audit/quality report before applying updates unless the user explicitly skips the audit phase.

Anti-derail guardrails

  • Do not write from templates before discovery is complete.
  • Do not skip Wave 2 just because Wave 1 already found the stack.
  • Do not let writer agents start from partial findings.
  • Do not duplicate root rules in child AGENTS.md files.
  • Do not let REVIEW.md turn into a second copy of AGENTS.md.
  • Do not keep universal content trapped inside CLAUDE.md or any other agent-native file.
  • Do not grow CLAUDE.md into a second source of truth. Keep Claude-only behavior in .claude/ or other native surfaces.
  • Do not create support files only because an agent supports them; create them only when discovery proves they are useful.
  • Do not create shared defaults in AGENTS.override.md or CLAUDE.local.md; those are override/personal layers.
  • If existing config is already mostly correct, switch from rewrite mode to audit/tighten mode.

Workflow

1) Scope the request and current instruction surfaces

Classify the job before reading deeply.

Request typeWhat to produce
New setupFresh root and folder AGENTS.md hierarchy, then companion entrypoints
AuditQuality report first, then targeted edits
MigrationExtract universal content into AGENTS.md, then re-home agent-specific behavior
ExtensionAdd missing folder files or companion entrypoints without rewriting everything

Check which instruction surfaces already exist:

  • AGENTS.md, nested AGENTS.md, AGENTS.override.md
  • REVIEW.md, nested REVIEW.md
  • CLAUDE.md, .claude/, GEMINI.md, .gemini/
  • .cursor/rules/, .cursorrules, .windsurfrules
  • .github/copilot-instructions.md
  • .greptile/, greptile.json
  • README.md, CONTRIBUTING.md, architecture docs

2) Build the folder map locally

Use the filesystem before dispatching explorers.

  • Run tree -d. or tree -dL 2. to map top-level and src folders.
  • Mark candidate instruction boundaries: repo root, each src/*, each app/package/service root, and any docs/standards subtree with separate workflows.
  • Decide which folders will get dedicated exploration coverage.
  • Do not draft yet. This step exists so Wave 2 can be assigned cleanly.

3) Wave 1 exploration: broad architecture

Wave 1 answers the repo-wide questions before folder specialization begins.

Goal

  • identify architecture shape, command sources, critical workflows, major boundaries, and existing instruction debt

Agent count

  • 2 to 10 explorer agents, depending on repo size and how many independent questions exist

Required outputs

  • repo-wide command sources and verified entrypoints
  • top-level architecture map
  • existing instruction files and conflicts
  • candidate folders that need their own AGENTS.md
  • candidate folders that may need scoped REVIEW.md
  • risks, unknowns, and questions to resolve in Wave 2

Wave 1 prompt template Use a 500-2500 word prompt built from this scaffold:

You are Wave 1 of an AGENTS-first repo-instruction discovery pass.

Mission:
Map the repository at a broad architectural level so the main agent can design an AGENTS.md hierarchy before any writing begins.

Repository:
- Root: <repo path>
- Current tree snapshot: <paste `tree -dL 2 .` or equivalent>
- Existing instruction surfaces: <list any AGENTS.md, CLAUDE.md, .claude, Copilot, Cursor, Gemini, README, CONTRIBUTING files already found>

What you must discover:
1. The repo's real command sources and which commands are verified versus missing.
2. The top-level architecture, major folders, and which areas appear to have distinct workflows or risks.
3. Existing agent-instruction files, duplicated guidance, stale guidance, or CLAUDE-first anti-patterns.
4. Which folders are strong candidates for local AGENTS.md files, especially under `src/`, `apps/`, `packages/`, `services/`, or similar roots.
5. What a future folder-level writer would need to know before drafting local instructions.
6. Which review-critical areas should later become the backbone of `REVIEW.md`.

How to work:
- Read only enough repo evidence to support claims.
- Separate documented facts from inference.
- Cite exact file paths for every important claim.
- Call out conflicts between files.
- Do not write AGENTS.md yet.
- Do not propose generic best practices.
- Focus on information that prevents mistakes.

Deliverable:
Produce a concise architecture brief with:
- verified commands and their sources
- repo-wide boundaries
- candidate AGENTS.md folders
- candidate review-critical areas
- missing information that must be resolved in Wave 2
- risks if the main agent writes before deeper folder exploration

Wait for all Wave 1 findings. Compare overlap, contradictions, and gaps before moving on.

4) Wave 2 exploration: folder-specific deep dives

Wave 2 uses the folder map plus Wave 1 findings to inspect the inner folders that will actually receive local instructions.

Trigger

  • launch only after Wave 1 has been merged and the main agent knows which folders need local coverage

Assignment model

  • base assignments on tree -d. or tree -dL 2.
  • give each explorer one folder or one tightly-related cluster
  • default coverage includes every meaningful src first-level subfolder

Required outputs

  • folder-local commands or workflows
  • local architecture and entry points
  • conventions, risks, boundaries, and non-obvious WHY context
  • exact recommendation for that folder's AGENTS.md
  • exact recommendation for whether that folder needs scoped review guidance
  • whether the folder needs additional agent-native files beyond the default CLAUDE.md symlink

Wave 2 prompt template Use a 500-2500 word prompt built from this scaffold:

You are Wave 2 of an AGENTS-first repo-instruction discovery pass.

Mission:
Investigate one subtree deeply enough that the main agent can write a local AGENTS.md for that folder without guessing.

Assigned subtree:
- Folder: <folder path>
- Parent/root context: <one paragraph from Wave 1 summary>
- Tree excerpt: <paste relevant lines from `tree -d .` or `tree -dL 2 .`>

What you must answer for this folder:
1. What does a coder working in this folder need to know before making changes here?
2. Which commands, entry points, or test workflows are local to this folder?
3. Which patterns are non-obvious and would cause mistakes if omitted?
4. Which rules belong in the parent AGENTS.md instead of this folder file?
5. Which changes in this folder deserve special scrutiny in review?
6. Should this folder also receive a sibling `CLAUDE.md` symlink and any extra native agent files?

How to work:
- Read only files that materially improve the folder brief.
- Ground every rule in repo evidence.
- Prefer local conventions over generic advice.
- Distinguish facts from inference.
- Avoid repeating parent-level instructions unless the folder overrides them.
- Do not write the final AGENTS.md file. Hand the main agent the evidence needed to write it.

Deliverable:
Return a folder brief with:
- the folder's purpose
- local commands and boundaries
- non-obvious patterns plus WHY
- content that must appear in this folder's AGENTS.md
- content that must stay in the parent file
- content that should later shape the review-context layer
- unresolved unknowns that still block writing

Wait for all Wave 2 findings. Merge overlaps and resolve contradictions before writing.

5) Synthesize the AGENTS hierarchy before writing

Translate the discovery findings into a file plan.

  • Root AGENTS.md carries repo-wide commands, architecture, shared conventions, and top-level boundaries.
  • Each folder AGENTS.md carries only what is local to that subtree.
  • Child files may assume the parent already provided global rules.
  • If a folder needs only a small local delta, keep that file short rather than folding it back into the root.
  • If a src folder has first-level subfolders, default to one local AGENTS.md per first-level subfolder.
  • Each planned file should have a one-sentence purpose before writing begins.

6) Audit existing files before rewriting them

Use references/audit-and-migration.md when the repo already has agent instructions.

  • find all existing instruction and wrapper files
  • score them before editing
  • show the report first
  • then propose targeted changes, migrations, or deletions

Use this output structure for audit work:

  1. ## Agent Instructions Quality Report
  2. summary counts and average score
  3. file-by-file scores with concrete evidence
  4. recommended changes
  5. apply edits only after the report step unless the user explicitly waives it

7) Draft AGENTS.md files

Write the hierarchy from the top down.

  • Use the WHAT / WHY / HOW filter from references/agents-md-format.md.
  • Prefer direct instructions and measurable boundaries.
  • Keep root and child files lean.
  • Create a section only when 3+ repo-specific facts justify it.
  • Ask while drafting: Would a coder editing this folder make a mistake if this line were missing?
  • If the answer is no, cut the line.

8) Create companion entrypoints after AGENTS.md exists

After the AGENTS hierarchy is stable:

  • create sibling CLAUDE.md as a symlink to the corresponding AGENTS.md
  • if symlink creation is impossible, use a one-line wrapper: @AGENTS.md
  • keep Claude-only behavior in .claude/ rather than expanding CLAUDE.md
  • point Gemini, Copilot, Aider, Cursor, or other agent-native surfaces back to the AGENTS source of truth unless they genuinely need agent-only behavior

See references/agent-entrypoints.md.

9) Writer-agent pass

After both discovery waves are merged, the main agent may dispatch writers.

Rules

  • writers get disjoint folder ownership
  • writer prompts may be longer than explorer prompts, but must stay under 5000 words
  • a writer prompt must include the relevant wave findings for that folder, the target file path, the parent-child boundary, and the question What does a coder working in this folder need to know?
  • do not send a writer until the main agent has all needed context from both discovery waves

Writer prompt scaffold Expand this scaffold with repo-specific findings, up to 5000 words:

You are the writer for one folder in an AGENTS-first instruction hierarchy.

Ownership:
- Target file: <path/to/AGENTS.md>
- Folder scope: <folder>
- Parent instruction file: <parent AGENTS path>
- Companion entrypoint policy: create `CLAUDE.md` as a symlink to this AGENTS.md after the content is finalized

Context you must use:
- Repo summary from Wave 1: <insert synthesized summary>
- Folder brief from Wave 2: <insert subtree findings>
- Existing files to preserve or tighten: <list>
- Verified commands and paths: <list>

Writing objective:
Produce the smallest high-signal AGENTS.md that tells a coder working in this folder exactly what they need to know here and nothing they already know from the parent file.

Requirements:
- Keep only folder-local instructions.
- Preserve valid warnings and boundary rules.
- Ground every rule in evidence.
- Include commands only if they are verified and local to this folder.
- Do not duplicate parent instructions.
- Prefer imperative, measurable language.
- Call out non-obvious WHY context where it prevents mistakes.
- If the folder truly has minimal unique guidance, write a short local AGENTS.md rather than skipping the file.

Deliverable:
Return the final AGENTS.md content plus any notes the main agent needs before creating the companion `CLAUDE.md` symlink.

10) Generate the review-context layer

After the AGENTS hierarchy is written, draft the review-context layer from the same repo evidence.

Purpose

  • standardize what kinds of diffs should be flagged
  • encode repo-specific code standards that matter during review
  • capture the places where AI agents may act outside intended architectural or safety bounds
  • strengthen future AGENTS updates by forcing the repo's risk model to be explicit

Default outputs

  • root REVIEW.md
  • scoped REVIEW.md files only when a subtree has review risks or standards that diverge materially from the root

Split of responsibility

  • AGENTS.md = how to work and where things belong
  • REVIEW.md = what to flag, protect, or verify in diffs

Review-writing rules

  • use repo evidence, not generic best practices
  • keep rules specific, measurable, actionable, and semantic
  • put highest-risk rules first
  • skip anything already enforced by lint, format, or deterministic tooling
  • prefer 5-10 strong rules over a long checklist
  • use scoped REVIEW.md only when the root file would become contradictory or bloated

Suggested section order for root REVIEW.md

  • ## Critical Areas
  • ## Security
  • ## Conventions
  • ## Performance
  • ## Patterns
  • ## Ignore
  • ## Testing

After drafting review context

  • compare it back against the AGENTS hierarchy
  • if the review pass exposed missing boundaries or safety rules, update the relevant AGENTS.md files
  • keep the two surfaces complementary rather than duplicative

11) Validate before finalizing

Check all of the following:

  • root and folder AGENTS.md files exist where the wave plan said they should
  • each created CLAUDE.md points to the correct sibling AGENTS.md, or the fallback wrapper is documented as an exception
  • root REVIEW.md exists and reflects the repo's real risk areas
  • scoped REVIEW.md files exist only where the repo truly needs them
  • commands and paths are verified
  • child AGENTS.md files do not restate root rules unnecessarily
  • REVIEW.md rules are specific, reviewable, and not duplicates of linter rules
  • agent-specific files do not become a second source of truth
  • unresolved unknowns are called out in your response, not buried in the files

12) Final configurable step: ask which native review adapters to generate

Only after Step 11 passes, ask one concise question about platform adapters.

Use this exact question pattern: The AGENTS.md and REVIEW.md hierarchy is complete. Which native review adapters should also be generated for this repo: Copilot, Devin, Greptile, or none?

Rules for this step:

  • ask only after both AGENTS and REVIEW are done
  • the generic review-context layer is not optional; only the platform adapters are configurable
  • if the user says none, stop
  • if the user names one or more platforms, generate the matching native adapter files in this same skill
  • if the user says all, still confirm the repo actually uses them before writing files
  • treat platform-native review files as translations of the completed review context, not as a separate source of truth

Adapter defaults:

  • Copilot -> generate .github/copilot-instructions.md plus scoped .github/instructions/*.instructions.md; keep files below the platform limit and note base-branch behavior
  • Devin -> keep REVIEW.md as the main review surface, add scoped REVIEW.md only where needed, and reuse the completed AGENTS.md hierarchy for coding behavior
  • Greptile -> generate .greptile/config.json plus optional rules.md and files.json; keep scope as arrays, ignorePatterns as a newline string, and note source-branch behavior

Steering experiences

These are common mistakes observed during real-world execution. See references/agents-md-format.md for the detailed authoring and derailment guidance behind them.

IDPatternKey correction
S-01AGENTS-second draftingWrite AGENTS.md first, agent-native files second
S-02One-wave explorationComplete both waves before writing
S-03Weak explorer promptsUse 500-2500 word prompts with concrete deliverables
S-04Writer starts too earlyMerge Wave 1 and Wave 2 before dispatching writers
S-05Missing folder coverageGive each meaningful src subtree local instruction ownership
S-06Root duplication in child filesKeep child files local and lean
S-07Invented commandsVerify or mark [unverified] -- never guess
S-08Generic best practicesEvery convention must be specific, measurable, project-specific
S-09Missing WHY for non-obvious decisionsPair every non-obvious WHAT with a brief WHY
S-10Missing CLAUDE.md companionCreate the sibling symlink or call out the fallback exception
S-11Unknowns in filesCall out unknowns in response text, not inside config files
S-12Over-nesting without signalAdd local files only where the folder scope is real

Do this, not that

Do thisNot that
Ground every rule in repo evidencePaste a generic best-practices template
Verify commands in manifests, makefiles, or CIInvent test, lint, or build commands
Put shared rules in AGENTS.mdPut agent-native syntax in AGENTS.md
Create CLAUDE.md after AGENTS.md is stableHand-maintain duplicate instructions in both files
Preserve existing warning/boundary rules during migrationDrop Never / CRITICAL rules because they feel repetitive
Use local AGENTS.md files for meaningful src subfoldersStuff every package-specific rule into the root file
Point to existing docs for bulky detailCopy README.md or API docs into agent config
Use templates only after both discovery wavesFill a template before you know the repo shape
Build platform adapters from the completed REVIEW.mdTreat review tooling as disconnected from the repo's standardization layer
Mark unverified commands as [unverified]Guess at command syntax
Create sections only when 3+ facts justify themAdd single-bullet sections to match a template
Call out unknowns in your response to the userEmbed unknowns as comments inside generated config files

Reference routing

Read the smallest reference set that unblocks the current decision:

NeedReference
AGENTS authoring, folder scoping, WHAT/WHY/HOW, and derailmentsreferences/agents-md-format.md
Companion entrypoints, review-context adapters, setup gotchas, cross-agent surfacesreferences/agent-entrypoints.md
Auditing existing files, report format, and migrationsreferences/audit-and-migration.md
Starter templates for root and folder filesreferences/project-templates.md

Quick-start mapping

SituationStart withThen read
New repo with no agent filesproject-templates.mdagents-md-format.md
Existing CLAUDE.md-only repoaudit-and-migration.mdagent-entrypoints.md
Monorepo or large src/ treeagents-md-format.mdproject-templates.md, agent-entrypoints.md
Multi-agent teamagent-entrypoints.mdagents-md-format.md
Folder-level instruction writingagents-md-format.mdproject-templates.md
Existing noisy configaudit-and-migration.mdagents-md-format.md
AGENTS and REVIEW are done and the user wants Copilot, Devin, or Greptile adaptersagent-entrypoints.mdstay in this skill and generate them

Start with one or two references. Expand only if the current task truly needs more detail.

Final output expectations

When you generate or revise files, provide:

  1. the chosen AGENTS hierarchy and why it fits the repo
  2. the folder map or tree excerpt that drove the hierarchy
  3. the audit report first when existing files were present
  4. the review-context outputs and how they complement the AGENTS hierarchy
  5. the created or updated files, including any symlinked companion entrypoints and configured review adapters
  6. remaining unknowns or follow-up checks in your response text, not inside the instruction files

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.05%
按下载量换算113

Claude

28.33%
按下载量换算89

Cursor

19.33%
按下载量换算61

Gemini CLI

10.45%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills