harness-language

Switches a harness project's output-language policy between English and Chinese.

Updated May 15, 2026
One-click install
npx skills add https://github.com/Alan-IFT/harness-kit --skill harness-language-alan-ift
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: harness-language
Source: https://github.com/Alan-IFT/harness-kit/tree/main/skills/harness-language
Command: npx skills add https://github.com/Alan-IFT/harness-kit --skill harness-language-alan-ift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Changing a harness project's working language means editing policy text scattered across .harness/rules/00-core.md, CLAUDE.md, and .github/copilot-instructions.md by hand, which is error-prone and hard to roll back. This Skill rewrites exactly those three policy surfaces from canonical plugin templates, with dry-run previews, backups, and idempotent no-op behavior. ## Core Features & Use Cases - Language switching: Set the project to English-only (en) or the consumer-split Chinese policy (zh) with a single command. - Policy refresh: Run with no argument to update a stale project's current language to the latest canonical policy text. - Safe, gated edits: Requires a clean git tree, writes a .bak before every change, shows a dry-run plan, and applies only after explicit user confirmation. - Use Case: A team decides their AI output should be Chinese for humans but English for agents; they run the switch, review the dry-run plan showing the three files to change, confirm, and get timestamped backups plus a full rollback path via git reset. ## Quick Start Ask the AI to switch this harness project to Chinese output and confirm the dry-run plan before applying.

Frequently Asked Questions about harness-language

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch a harness project to Chinese output?▼

Run the harness-language command with the zh argument. It rewrites the policy section in .harness/rules/00-core.md and the top policy lines in CLAUDE.md and copilot-instructions.md, after showing a dry-run plan you must confirm.

How do I refresh a stale language policy in an old harness project?▼

Run the command with no argument. It detects the current language from the existing policy surfaces, asks you to confirm, then rewrites the policy text from the latest canonical plugin templates without changing the language itself.

Is the language switch reversible if something goes wrong?▼

Yes. The command requires a clean git tree before running, so git reset is a full rollback, and every edited file gets a timestamped .bak backup. Switching en to zh and back restores the exact original bytes.

Does harness-language translate project docs and READMEs?▼

No. It only edits the three policy-bearing surfaces: the 00-core.md policy section and the single policy lines in CLAUDE.md and copilot-instructions.md. Whole-project content translation is explicitly out of scope.

Why does harness-language refuse to run on my project?▼

It halts if the directory is not a git repository, the working tree has uncommitted changes, or neither .harness/rules/00-core.md nor CLAUDE.md exists. Commit or stash changes first, or use harness-init for a new project.