npx skills add https://github.com/jwilger/agent-skills --skill bootstrap价值: 沟通 —— 在任何工作开始前,建立对环境、能力和工作流程的共同理解。
在任何工具平台上配置 SDLC 工作流程的单一入口点。检测项目环境和工具平台能力,配置 TDD 模式(引导式或自动化),生成适合工具平台的指令文件,并推荐技能。从不静默安装或修改任何内容。
在提问前静默收集项目上下文信息:
!test -f package.json && echo "js" || true
!test -f Cargo.toml && echo "rust" || true
!test -f pyproject.toml && echo "python" || true
!test -f go.mod && echo "go" || true
!test -f mix.exs && echo "elixir" || true
!git rev-parse --is-inside-work-tree 2>/dev/null && echo "git" || true
!ls skills/*/SKILL.md 2>/dev/null | sed 's|skills/||;s|/SKILL.md||' || true
记录:检测到的语言、Git 是否可用、已安装的技能。如果未找到任何语言文件,则记录为“无”并在步骤 5 中询问用户。
探测委托原语(参见 references/capability-detection.md):检查 Agent 工具和技能链(始终可用)。
识别工具平台以生成正确的指令文件:
| 信号 | 工具平台 |
|---|---|
| 约定,Claude Code 工具 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
CLAUDE.md| Claude Code |
AGENTS.md 约定,Codex 工具 | Codex |
.cursor/rules 目录 | Cursor / Windsurf |
| 以上都不是 | 通用(仅 AGENTS.md) |
根据检测到的能力匹配策略:
| 检测到的能力 | 策略 | 默认模式 |
|---|---|---|
| Agent 工具 | 子代理 | 自动化 |
| 两者都没有 | 链式调用 | 自动化 |
链式调用始终可用,并在单个上下文中顺序运行所有 TDD 阶段。引导模式(/tdd red、/tdd green 等)始终作为用户控制的替代方案可用。允许用户覆盖。
如果检测到 Claude Code 并且用户希望最大程度的强制执行,则提供从 skills/tdd/references/hooks/ 安装可选钩子模板的选项。
检查 pipeline 技能是否已安装(skills/pipeline/SKILL.md 存在)。如果检测到,则工厂流水线模式可用,并且步骤 5 包含一个额外的问题。
问题 1:您想要做什么?
问题 2:需要多少流程结构?
问题 3(仅在检测到流水线时询问):自主级别? 保守 / 标准 / 完整。使用所选级别生成 .factory/config.yaml。技能列表请参见 references/skill-recommendations.md。
在生成的指令文件中包含:代理应使用任务列表(TaskCreate、TaskList 或等效的工具平台工具)来跟踪工作 —— 即使是看似简单的任务。简单的任务常常会揭示子任务,可见的任务列表可以保持进度透明,并防止步骤被遗忘。
此约定放入 AGENTS.md 的“约定”部分(参见 references/agents-md.md)。如果安装了 task-management 技能,则引用它;否则,直接包含基本约定。
一些已安装的技能附带一个 references/agents-md-setup.md 文件,其中指定了要添加到 AGENTS.md 的内容。扫描所有已安装的技能以查找此文件:
!for skill in skills/*/; do
test -f "${skill}references/agents-md-setup.md" && echo "${skill}"
done
对于每个拥有该文件的技能,读取其 agents-md-setup.md,并使用该技能的托管标记(<!-- BEGIN MANAGED: skill-name -->)将指定内容合并到 AGENTS.md 中。设置文件记录了要添加或追加到的部分,并提供了内容模板。
大小预算: AGENTS.md 总大小必须保持在 32 KiB 以内。每个技能的贡献应简洁 —— 几个要点或一个简短的章节。如果合并的贡献将超出预算,则进行总结并指向该技能以获取详细信息,而不是包含完整内容。
生成适合工具平台的文件。对于 Claude Code,CLAUDE.md 使用 @AGENTS.md 引用,而不是符号链接或内容嵌入,以保持单一事实来源并避免重复。AGENTS.md 的最佳实践(小型路由文档、渐进式披露、托管标记)请参见 references/agents-md.md,特定于工具平台的生成规则请参见 references/harness-files.md。
如果用户选择了“设置团队工作流程”或“完整”,则提供 ensemble-team 技能及其三个预设(solo-plus, lean, full)。
暂存生成的文件,使用描述性消息提交,并显示:
/tdd 开始一个 TDD 周期,或特定阶段的命令)所有模式下均为建议性。引导程序检测并推荐;它从不静默修改。未经用户明确确认 [H],不会安装任何技能或设置。
[H]:“覆盖”意味着用户明确说“是,安装 X”——而不是从上下文中推断出的许可。此技能可独立工作。它推荐但不要求其他技能。它生成的配置引用了 tdd 技能以用于 TDD 工作流程。
每周安装数
78
代码仓库
GitHub 星标数
2
首次出现
2026年2月12日
安全审计
安装于
claude-code71
codex65
cursor65
opencode63
github-copilot63
amp63
Value: Communication -- establish shared understanding of environment, capabilities, and workflow before any work begins.
Single entry point for configuring the SDLC workflow on any harness. Detects the project environment and harness capabilities, configures TDD mode (guided or automated), generates harness-appropriate instruction files, and recommends skills. Never silently installs or modifies anything.
Gather project context silently before asking questions:
!test -f package.json && echo "js" || true
!test -f Cargo.toml && echo "rust" || true
!test -f pyproject.toml && echo "python" || true
!test -f go.mod && echo "go" || true
!test -f mix.exs && echo "elixir" || true
!git rev-parse --is-inside-work-tree 2>/dev/null && echo "git" || true
!ls skills/*/SKILL.md 2>/dev/null | sed 's|skills/||;s|/SKILL.md||' || true
Record: languages detected, git available, skills already installed. If no language files are found, note "none" and ask the user in Step 5.
Probe for delegation primitives (see references/capability-detection.md): check for Agent tool and skill chaining (always available).
Identify the harness to generate the correct instruction files:
| Signal | Harness |
|---|---|
CLAUDE.md convention, Claude Code tools | Claude Code |
AGENTS.md convention, Codex tools | Codex |
.cursor/rules directory | Cursor / Windsurf |
| None of the above | Generic (AGENTS.md only) |
Match the strategy to detected capabilities:
| Capabilities detected | Strategy | Default mode |
|---|---|---|
| Agent tool | Subagents | Automated |
| Neither | Chaining | Automated |
Chaining is always available and runs all TDD phases sequentially in a single context. Guided mode (/tdd red, /tdd green, etc.) is always available as a user-controlled alternative. Let the user override.
If Claude Code is detected and the user wants maximum enforcement, offer to install optional hook templates from skills/tdd/references/hooks/.
Check if the pipeline skill is installed (skills/pipeline/SKILL.md exists). If detected, factory pipeline mode is available and Step 5 includes an additional question.
Question 1: What are you trying to do?
Question 2: How much process structure?
Question 3 (only when pipeline detected): What autonomy level? Conservative / Standard / Full. Generate .factory/config.yaml with the chosen level. See references/skill-recommendations.md for skill lists.
Include in generated instruction files that agents should use task lists (TaskCreate, TaskList, or equivalent harness tools) to track work — even for tasks that seem simple. Simple tasks often reveal subtasks, and a visible task list keeps progress transparent and prevents steps from being forgotten.
This convention goes into the AGENTS.md "Conventions" section (see references/agents-md.md). If the task-management skill is installed, reference it; otherwise, include the basic convention directly.
Some installed skills ship a references/agents-md-setup.md file that specifies content to add to AGENTS.md. Scan all installed skills for this file:
!for skill in skills/*/; do
test -f "${skill}references/agents-md-setup.md" && echo "${skill}"
done
For each skill that has one, read its agents-md-setup.md and incorporate the specified content into AGENTS.md using managed markers for that skill (<!-- BEGIN MANAGED: skill-name -->). The setup file documents what section to add or append to and provides the content template.
Size budget: AGENTS.md must stay under 32 KiB total. Per-skill contributions should be concise — a few bullet points or a short section. If the combined contributions would exceed the budget, summarize and point to the skill for details rather than including full content.
Generate harness-appropriate files. For Claude Code, CLAUDE.md uses @AGENTS.md references instead of symlinks or content embedding to keep a single source of truth and avoid duplication. See references/agents-md.md for AGENTS.md best practices (small routing document, progressive disclosure, managed markers) and references/harness-files.md for harness-specific generation rules.
If the user selected "Set up team workflow" or "Full", offer the ensemble-team skill with its three presets (solo-plus, lean, full).
Stage generated files, commit with a descriptive message, and display:
/tdd to start a TDD cycle, or phase-specific commands)Advisory in all modes. Bootstrap detects and recommends; it never silently modifies. No skill or setting is installed without explicit user confirmation [H].
[H]: "Override" means the user explicitly says "yes, install X" — not inferred permission from context.This skill works standalone. It recommends but does not require other skills. It generates configuration that references the tdd skill for TDD workflow.
Weekly Installs
78
Repository
GitHub Stars
2
First Seen
Feb 12, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code71
codex65
cursor65
opencode63
github-copilot63
amp63
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
46,600 周安装