dhpk-harness-reviselisted
Install: claude install-skill hmj1026/dhpk
# Harness Revise Skill
Methodology to trim, deduplicate, and validate the project harness without regressing trigger semantics. Supports Claude and Codex project harnesses.
## When to Use
- 當使用者想要檢視當前環境的harness配置,並且希望優化或修正其中的問題時。
- 定期維護,確保harness的健康和效率。
## When NOT to Use
- 不涉及harness的業務邏輯或產品代碼修改。
- 單純的業務功能開發或bug修復。
## Workflow
### Phase 0 — Detection
Before proceeding, identify the active harness directory and its primary rule file.
The shared resolution contract is
`@skills/dhpk-harness-revise/references/harness-directory-contract.md`.
1. **Contextual Hint**: When invoked by Claude Code through
`/dhpk:dhpk-harness-revise`, pass the `.claude` hint to the shared contract.
2. **Set Variables**: Set `[HARNESS_DIR]`, `[MAIN_RULE]`, and `[SKILL_DIR]` from
the contract before invoking any deterministic script.
3. **Script Boundary**: Pass the selected directory explicitly; the scripts'
error for an ambiguous or missing directory is a blocking result.
Use the skill directory as the source of truth for scripts. Resolution order: an explicit `CLAUDE_SKILL_DIR` (set when invoked via the Skill tool), then the dhpk plugin install path (`CLAUDE_PLUGIN_ROOT`, set for plugin commands/hooks), then the repo-relative location for Codex:
```bash
SKILL_DIR="${CLAUDE_SKILL_DIR:-${CLAUDE_PLUGIN_ROOT:+${CLAUDE_PLUGIN_ROOT}/skills/dhpk-harness-revise}}"
SKILL_DIR="${SKILL_DIR:-.agents/skills/dhpk-harness-revise}"
```
> If `SKILL_DIR` resolves to `.agents/skills/dhpk-harness-rev