AGENT SKILL
setup
Bootstrap a project for the Hih harness. Detects the language stack, captures conventions in CLAUDE.md, ensures dev dependencies are present, and confirms hooks are wired. Run this once per repo, or after a major dependency change.
- License 许可
- MIT
- 最近更新
- 2026-08-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- setup
- description
- Bootstrap a project for the Hih harness. Detects the language stack, captures conventions in CLAUDE.md, ensures dev dependencies are present, and confirms hooks are wired. Run this once per repo, or after a major dependency change.
- allowed-tools
- Read, Write, Edit, Bash, Glob, Grep
03 SKILL.md 正文
/setup — bootstrap the harness
When to use
- First time using Hih in a repo.
- Stack changed (e.g. switched from CRA to Vite, added a Python service).
CLAUDE.mdis missing or stale.
Inputs
- The repository root.
- (Optional) user note about constraints to capture.
Steps
- Inventory the stack. Detect package managers and frameworks by checking
for
package.json,pnpm-lock.yaml,pyproject.toml,go.mod,Cargo.toml,Gemfile,composer.json. Record findings. - Read existing conventions. If
CLAUDE.md,.editorconfig,.prettierrc,eslint.config.*,ruff.toml,pyproject.toml [tool.*]exist, summarize them. - Verify dev tooling. For each detected stack, list the test command, linter, and formatter. If any are missing, propose adding them — do NOT install without user approval.
- Wire hooks. Confirm
.claude/settings.jsonreferenceshooks/*.shand that the scripts are executable. Runbash hooks/pretool.sh "echo ok"as a smoke test. - Update CLAUDE.md. Append (don't overwrite) a
## Conventionssection capturing: test command, lint command, format command, build command, target runtime, branch naming, commit style. - Print a checklist. End with a green/red status of each step.
Exit conditions
- ✅ All four checks pass → recommend
/plan. - ❌ Any check fails → state which one and stop. Do not silently proceed.
Anti-patterns
- Installing dependencies without confirmation.
- Overwriting an existing
CLAUDE.md. - Inferring stack details from file names alone — read the actual config.
04 同仓库更多 Skills
work
[Legacy alias] Use /act instead. Execute an approved plan.
★ 0
think
暂无简介
★ 0
ship
[Legacy alias] Use /grow instead. Commit, push, and evolve.
★ 0
setup
[Legacy alias] Use /awaken instead. Bootstrap Dioo in a repository.
★ 0
review
[Legacy alias] Use /reflect instead. Multi-perspective audit before growing.
★ 0
reflect
暂无简介
★ 0