Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计通过

agent-initAgent 初始化

Agent Skill

agent-init 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

2

下载量

118
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dyxushuai/agent-skills --skill agent-init

简介

Agent 初始化技能用于提供 AGENTS.md 文件的重复工作流程和质量标准,确保代理获得具体指令。

  • 适用于创建或更新 AGENTS.md 文件,包括测试命令和构建步骤的文档化。
  • 通过 GitHub 仓库安装,使用 npx skills add 命令加载,需参考原始 README 了解详细配置。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 注意该技能涉及可执行命令和代码示例,需确保准确性和安全性。

SKILL.md

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

30.05%
按下载量换算35

windsurf

24.25%
按下载量换算29

OpenCode

18.73%
按下载量换算22

Codex

12.64%
按下载量换算15

Antigravity

7.6%
按下载量换算9

Gemini CLI

3.13%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills