配置 Agent 文件
- 作者仓库星标 0
- 作者仓库 skills-registry
Setup Agent Files
Create the repo guidance files that make installed skills usable across agents. Keep output minimal, explicit, and based on what is actually installed.
This is a prompt-driven setup skill: inspect, propose, ask with structured choices, then edit.
Interaction rule
Use the current agent's interactive ask/clarification tool whenever it exists. Present short multiple-choice options with a recommended default so the user can click/select instead of typing.
If the current agent has no ask tool, ask the same question in chat with numbered choices and proceed only after the user answers. Do not silently assume answers for write operations.
Ask at most one setup decision at a time.
1. Inspect
Find installed project skills first:
- Prefer
npx skills@latest list --jsonif available. - Read
skills-lock.jsonif present. - Scan common project skill dirs only when needed:
.agents/skills/.claude/skills/.codex/skills/.gemini/skills/.github/copilot/skills/.cursor/skills/skills/
For each installed skill, read only its SKILL.md frontmatter first. Read the body only if the setup decision depends on it.
Also inspect existing guidance files:
AGENTS.mdCLAUDE.mdGEMINI.md.github/copilot-instructions.md.cursor/rules/*.mdcCONTEXT.md,CONTEXT-MAP.md,docs/adr/docs/agents/
Do not assume missing files should be created.
2. Propose
Summarize:
- installed skills found
- existing agent guidance files found
- support docs worth creating or updating
Then ask for confirmation before writing. Use structured choices for the target agent files, for example:
- Existing agent files only (recommended when any exist)
AGENTS.mdonly (recommended when none exist)AGENTS.mdplus agent-specific files
If multiple agent files are possible, recommend:
- Update existing agent files first.
- If no agent file exists, create
AGENTS.mdas the shared default. - Create agent-specific files only when the repo already uses that agent or the user asks for them.
3. Agent instruction block
Add or update one block in each selected agent file. Preserve surrounding user content.
Use this shape:
## Agent skills
Installed skills live in the project skill directories. Before using a skill, read its `SKILL.md` and only load supporting files when needed.
### Installed skills
- `<skill-name>` — <one-line use case from frontmatter>
### Supporting docs
- `docs/agents/<file>.md` — <why this exists>
If the file already has an ## Agent skills section, replace only that section.
4. Support docs by installed skill
Create only docs that are useful for the installed skills.
Issue workflow docs
If any of these are installed: to-issues, to-prd, triage, setup-agent-skills, create or update:
docs/agents/issue-tracker.mddocs/agents/triage-labels.mdwhentriageis installed
Ask where issues live with structured choices:
- GitHub Issues (recommended when a GitHub remote exists)
- GitLab Issues (recommended when a GitLab remote exists)
- Local markdown
- Other
Use existing remotes as evidence, not as final authority.
Domain docs
If any of these are installed: diagnose, tdd, grill-with-docs, improve-codebase-architecture, zoom-out, create or update:
docs/agents/domain.md
Ask whether to create domain docs with structured choices:
- Use existing
CONTEXT.md/ ADRs only - Create or update
docs/agents/domain.md - Skip domain setup
Record how agents should consume CONTEXT.md, CONTEXT-MAP.md, and ADRs. Do not create domain docs unless the user confirms.
Review docs
If any of these are installed: review-swarm, review-and-simplify-changes, create or update:
docs/agents/review.md
Record review scope defaults, severity expectations, and whether review agents may edit files.
Visual docs
If visual-explainer is installed, create or update:
docs/agents/visuals.md
Record preferred output directory, whether generated HTML should be committed, and any sharing/deployment constraints.
Repository reference docs
If librarian is installed, create or update:
docs/agents/repositories.md
Record cache location preferences and rules for using remote repositories as references.
5. Keep it lean
Do not create docs for skills that do not need repo-specific configuration. Interaction/productivity skills such as caveman, handoff, grill-me, and write-a-skill usually only need to be listed in the agent instruction block.
Do not add local development notes, private setup details, or generated session context. If the repo has a private ignored directory for local notes, leave it ignored and do not reference its contents.
6. Done
Report:
- files created or updated
- installed skills covered
- any skills that need no repo-specific docs
- any decisions the user deferred
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: 0xNino/skills — distributed by TomeVault.
- 流狐分类
- 文档
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Use the current agent's interactive ask/clarification tool whenever it exists. Present short multiple-choice options with a recommended default so the user can click/select instead of typing. If the current agent has no ask tool, ask the same question in chat…
Find installed project skills first: Prefer npx skills@latest list --json if available. Read skills-lock.json if present.
Summarize: installed skills found existing agent guidance files found
Add or update one block in each selected agent file. Preserve surrounding user content. Use this shape:
Installed skills live in the project skill directories. Before using a skill, read its SKILL.md and only load supporting files when needed.
<skill-name> — <one-line use case from frontmatter>
# Setup Agent Files
Create the repo guidance files that make installed skills usable across agents. Keep output minimal, explicit, and based on what is actually installed.
This is a prompt-driven setup skill: inspect, propose, ask with structured choices, then edit.
## Interaction rule
Use the current agent's interactive ask/clarification tool whenever it exists. Present short multiple-choice options with a recommended default so the user can click/select instead of typing.
If the current agent has no ask tool, ask the same question in chat with numbered choices and proceed only after the user answers. Do not silently assume answers for write operations.
Ask at most one setup decision at a time.
## 1. Inspect
Find installed project skills first:
- Prefer `npx skills@latest list --json` if available.
- Read `skills-lock.json` if present.
- Scan common project skill dirs only when needed:
- `.agents/skills/`
- `.claude/skills/`
- `.codex/skills/`
- `.gemini/skills/`
- `.github/copilot/skills/`
- `.cursor/skills/`
- `skills/`
For each installed skill, read only its `SKILL.md` frontmatter first. Read the body only if the setup decision depends on it.
Also inspect existing guidance files:
- `AGENTS.md`
- `CLAUDE.md`
- `GEMINI.md`
- `.github/copilot-instructions.md`
- `.cursor/rules/*.mdc`
- `CONTEXT.md`, `CONTEXT-MAP.md`, `docs/adr/`
- `docs/agents/`
Do not assume missing files should be created.
## 2. Propose
Summarize:
- installed skills found
- existing agent guidance files found
- support docs worth creating or updating
Then ask for confirmation before writing. Use structured choices for the target agent files, for example:
- Existing agent files only (recommended when any exist)
- `AGENTS.md` only (recommended when none exist)
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Interaction rule → 1. Inspect → 2. Propose → 3. Agent instruction block → Agent skills → Installed skills
要点 -> Create the repo guidance files that make installed skills usable across agents. · This is a prompt-driven setup skill: inspect, propose, ask with structured choices, then edit. · Use the current agent's interactive ask/clarification tool whenever it exists. · If the current agent has no ask tool, ask the same question in chat with numbered choices and proceed only after the user answers. · Ask at most one setup decision at a time. · - Prefer npx skills@latest list --json if available. · For each installed skill, read only its SKILL.md frontmatter first. · Do not assume missing files should be created.
文件/命令 -> npx skills@latest list --json · skills-lock.json · .agents/skills/ · .claude/skills/ · .codex/skills/ · .gemini/skills/ · .github/copilot/skills/ · .cursor/skills/
内容 SHA-256 -> 3ed1a0baa627
方法与流程
适用与边界
原文中的明确线索
npx skills@latest list --json、skills-lock.json、.agents/skills/、.claude/skills/、.codex/skills/、.gemini/skills/、.github/copilot/skills/、.cursor/skills/