agentleFS
chenklein26-makerchenklein26-maker/Harness-Starter/.claude/skills/harness-mode/SKILL.md

harness-mode

Skill119 starsChanged 53 days agoMITView on GitHub

Switch Harness workflow mode (full/hotfix/tweak) and development phase (design/build/fix). Use when the user wants to change the current working mode or phase.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. k1ein-chen/Harness-Starter★ 119100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

Files
SKILL.md

Harness Mode

管理 .claude/.harness-state,控制 Harness 的行为策略。

支持的命令

切换模式

/harness-mode full     → 完整检查,所有规则生效
/harness-mode hotfix   → 紧急修复,跳过行数/文件数检查
/harness-mode tweak    → 微调模式,仅 .env 保护

切换阶段

/harness-phase design  → 设计阶段,宽松审查
/harness-phase build   → 构建阶段,正常审查
/harness-phase fix     → 修复阶段,收紧变更范围检查

查看当前状态

/harness-status        → 显示当前阶段和模式

执行逻辑

当用户输入上述命令时:

  1. 读取 .claude/.harness-state(不存在则创建默认值 {"phase":"build","mode":"full"})
  2. 修改对应的 mode 或 phase 字段
  3. 更新 since 为当前时间
  4. 写入文件
  5. 回显新状态

模式联动:

  • 切换到 hotfix 模式时,自动将 phase 设为 fix
  • 切换到 tweak 模式时,自动将 phase 设为 design

示例

用户:/harness-mode hotfix → 写入 {"phase":"fix","mode":"hotfix","since":"2026-06-01T12:00:00Z"} → 回复:「已切换到热修复模式:阶段=fix, 模式=hotfix。将跳过行数/文件数检查。」

用户:/harness-status → 回复:「当前 Harness 状态:阶段=build, 模式=full (since 2026-06-01T10:00:00Z)」

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.