用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/evanfang0054/agent-harness --skill harness-init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
You MUST use this before any creative work — features, components, behavior changes. Explores intent, requirements, and design before implementation.
Use when implementation is done and tests pass, and the user must choose how to integrate or retain completed branch work.
Use when receiving code review feedback. Verify before implementing; technical correctness over blind agreement.
正在显示 SKILL.md
基于 SOC 职业分类
| name | harness-init |
| description | Use when initializing agent-harness in a new project or reconfiguring for a specific tech stack. |
| when_to_use | [feedforward] Triggered at project setup to bootstrap harness configuration from templates. |
| user-invocable | true |
| disable-model-invocation | true |
Bootstraps harness configuration from preset templates. Copies sensor configs and recommended skills list to .agent-harness/.
| Template | Stack |
|---|---|
react-typescript | React 18+ / TypeScript 5+ / Vite / Vitest / ESLint |
python-fastapi | Python 3.11+ / FastAPI / pytest / ruff / mypy |
go-cli | Go 1.21+ / golangci-lint / go test |
package.json -> react-typescript, requirements.txt/ -> python-fastapi, -> go-cli)pyproject.tomlgo.modtemplates/{selected}/sensors.json -> .agent-harness/sensors.jsontemplates/{selected}/hooks-config.json -> project hooks config (if not already configured)templates/{selected}/skills-recommended.mdAfter configuring sensors and hooks, set up the domain glossary. This step is idempotent — safe to re-run on existing projects (only creates what's missing, never overwrites).
CONTEXT.md already exists at project root: skip (don't overwrite user's glossary)y: create CONTEXT.md at project root with scaffold:
# <Project> Domain Glossary
<!-- Domain terms go here.
Use /domain-modeling to maintain this file.
Glossary only — no implementation details. -->
docs/agent-harness/adr/ already exists: skipdocs/agent-harness/ exists: create docs/agent-harness/adr/.gitkeepy: append CONTEXT.md to .gitignore (some projects don't commit domain vocabulary — proprietary terminology)n: CONTEXT.md will be tracked by git (default for shared glossaries)For existing projects that never ran harness-init with this step: simply re-run /harness-init. The idempotent check ensures only missing files are created — existing configs, sensors, and hooks are not touched. Alternatively, run /domain-modeling directly — it will create CONTEXT.md lazily on first term crystallization.
The domain-modeling skill maintains CONTEXT.md during design work. See skills/domain-modeling/SKILL.md for the glossary format and ADR creation criteria.
Check for package.json, requirements.txt/pyproject.toml, go.mod in project root to suggest the right template. Auto-detection is a hint, not a rule -- the user may override the suggestion.
Remind user to customize sensors.json paths and thresholds for their specific project.
| Mistake | Guidance |
|---|---|
| Copying without reviewing | Always review sensor commands match your project |
| Using wrong template | Auto-detection is a hint, not a rule. Pick what fits. |
| Skipping hooks-config | Hooks enable session-start learnings injection |