Agent skill

Harness Mode

by k1ein-chen in k1ein-chen/Harness-Starter

Switch Harness workflow mode (full/hotfix/tweak) and development phase (design/build/fix).

MITAuto-check: notes

Install Harness Mode

skills CLI
$ npx skills add k1ein-chen/Harness-Starter --skill harness-mode -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install k1ein-chen/Harness-Starter harness-mode --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/k1ein-chen/Harness-Starter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/harness-mode .claude/skills/harness-mode && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
harness-mode
GitHub stars
119
Token cost
~273 tokens
SKILL.md length
57 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Switch Harness workflow mode (full/hotfix/tweak) and development phase (design/build/fix).

  • Works in 5 steps: 读取 .claude/.harness-state(不存在则创建默认值… → 修改对应的 mode 或 phase 字段 → 更新 since 为当前时间 → …
  • The user wants to change the current working mode
  • SKILL.md covers 支持的命令, 执行逻辑 and 示例
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Harness Mode is an agent skill from k1ein-chen/Harness-Starter. 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.

Its SKILL.md is about 270 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: 一套成熟完善的开箱即用的 Claude Code Harness Engineering 模板。三层自动化(安全/感知/审查),集成 LSP、OpenSpec SDD 工作流和 AI 一键初始化。新项目和已有项目均可使用。 The licence is MIT.

When your agent uses it

  • The user wants to change the current working mode

Example prompts

  • “/harness-mode”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit c211c43. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Harness Mode loads about 273 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 57 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~273

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:17
    /harness-mode tweak    → 微调模式,仅 .env 保护

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from k1ein-chen/Harness-Starter at commit c211c43, republished under its MIT licence (© k1ein-chen). 57 words, ~273 tokens.

Download SKILL.mdSave it as .claude/skills/harness-mode/SKILL.md (or your agent's skills folder).
name
harness-mode
description
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.

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)」

© k1ein-chen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/harness-mode of k1ein-chen/Harness-Starter.

Open the folder on GitHubat commit c211c43

Compare with similar skills

Harness Mode next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Harness Mode compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Harness Mode this skillk1ein-chen/Harness-Starter119—~273Automated safety check: NotesMIT
Emergency Hotfix WorkflowDonchitos/Claude-Code-Game-Studios26k—~2.9kAutomated safety check: NotesMIT
Hotfixmicrosoft/roosterjs1.3k—~2.7kAutomated safety check: PassCustom licence
Implementing Ransomware Kill Switch Detectionmukul975/Anthropic-Cybersecurity-Skills34k—~2.4kAutomated safety check: PassApache-2.0
Comet Hotfixrpamis/comet3.2k—~2.8kAutomated safety check: PassMIT
Comet Tweakrpamis/comet3.2k—~2.9kAutomated safety check: PassMIT

Similar skills

  • Emergency Hotfix Workflow

    Donchitos/Claude-Code-Game-Studios

    Runs an emergency fix process for severe bugs: a severity check, a written hotfix record, and a branch cut from the shipped release rather than main.

    26k GitHub stars~2.9k tokensUpdated 2 days ago
    DevelopmentAuto-check: notes
  • Hotfix

    microsoft/roosterjs

    Official

    Proposes a scoped version bump for a roosterjs hotfix. An agent skill from microsoft/roosterjs.

    1.3k GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Implementing Ransomware Kill Switch Detection

    mukul975/Anthropic-Cybersecurity-Skills

    Analyzes ransomware kill switch mechanisms, including mutex-based execution guards, domain-based kill switches (e.g.

    34k GitHub stars~2.4k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Comet Hotfix

    rpamis/comet

    使用 Classic 预设流程修复局部缺陷。在用户明确调用 /comet-hotfix、选择 hotfix,或恢复 workflow: hotfix 时使用。

    3.2k GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Comet Tweak

    rpamis/comet

    使用 Classic 预设流程完成单个 change 的轻量调整。在用户明确调用 /comet-tweak、选择 tweak,或恢复 workflow: tweak 时使用。

    3.2k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Wiki Switch

    Ar9av/obsidian-wiki

    List, create, or switch named Obsidian wiki vault profiles under the global config directory.

    3.5k GitHub stars~1.3k tokensUpdated 2 days ago
    Knowledge ManagementAuto-check passed

More from k1ein-chen/Harness-Starter

  • Harness Init

    k1ein-chen/Harness-Starter

    Initialize this project with the Harness Engineering starter template.

    119 GitHub stars~995 tokensUpdated 16 days ago
    Auto-check: notes
  • Harness Start

    k1ein-chen/Harness-Starter

    Entry point for new users — guides through initialization, architecture review, and cleanup.

    119 GitHub stars~718 tokensUpdated 16 days ago
    Auto-check passed
  • Handover

    k1ein-chen/Harness-Starter

    将当前会话中的技术决策、运维流程或阶段性研发进展,归档为标准工程文档(ADR / SOP / Handover),并自动更新模块内的 README 归档索引。

    119 GitHub stars~752 tokensUpdated 16 days ago
    Auto-check passed
  • Tech Review

    k1ein-chen/Harness-Starter

    Reviews technical decisions before implementation. An agent skill from k1ein-chen/Harness-Starter.

    119 GitHub stars~396 tokensUpdated 16 days ago
    Auto-check passed
  • Verify Goal

    k1ein-chen/Harness-Starter

    Independently verifies whether a completed task meets its defined goal conditions.

    119 GitHub stars~502 tokensUpdated 16 days ago
    Auto-check passed
  • Harness Gc

    k1ein-chen/Harness-Starter

    Garbage Collection Agent — 定期扫描项目健康状态,检测文档/代码一致性漂移,自动发起修复提案。

    119 GitHub stars~360 tokensUpdated 16 days ago
    Auto-check passed

Questions about Harness Mode

What does Harness Mode do?

Switch Harness workflow mode (full/hotfix/tweak) and development phase (design/build/fix). Harness Mode is an agent skill from k1ein-chen/Harness-Starter. Switch Harness workflow mode (full/hotfix/tweak) and development phase (design/build/fix).

When should I use Harness Mode?

Harness Mode fits situations like: the user wants to change the current working mode.

How do I install Harness Mode in Claude Code?

Run `npx skills add k1ein-chen/Harness-Starter --skill harness-mode -a claude-code`. Or copy the skill folder (.claude/skills/harness-mode in k1ein-chen/Harness-Starter) into .claude/skills/harness-mode in your project. Claude Code loads it when a task matches its description.

How do I install Harness Mode in Codex?

Run `npx skills add k1ein-chen/Harness-Starter --skill harness-mode -a codex`. Or copy the skill folder (.claude/skills/harness-mode in k1ein-chen/Harness-Starter) into .agents/skills/harness-mode in your project. Codex loads it when a task matches its description.

Can I use Harness Mode in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add k1ein-chen/Harness-Starter --skill harness-mode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/harness-mode, .gemini/skills/harness-mode, .github/skills/harness-mode and .opencode/skills/harness-mode in your project.

What does Harness Mode need to run?

SKILL.md names no scripts, command-line tools or credentials: Harness Mode is instructions for the agent only.

Does Harness Mode access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Harness Mode safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Harness Mode use?

Harness Mode is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Harness Mode use?

About 273 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Harness Mode?

Skills that share tags, products or a category with Harness Mode: Emergency Hotfix Workflow (Donchitos/Claude-Code-Game-Studios, 26k stars), Hotfix (microsoft/roosterjs, 1.3k stars), Implementing Ransomware Kill Switch Detection (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Comet Hotfix (rpamis/comet, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Harness Mode?

k1ein-chen (a GitHub user) maintains it in k1ein-chen/Harness-Starter, which has 119 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 24, 2026.

Source: k1ein-chen/Harness-Starter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.