Skip to content
Skill

Japanese writing drafter

Drafts pending Japanese writing-lint rules from the operator's phrasing corrections

Japanese writing drafter is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
3.2K
Last commit
License
MIT
Listing updated

Similar skills

About Japanese writing drafter

This skill watches a conversation for moments when the operator rewrites or criticizes the agent's Japanese wording, then records that correction as a pending writing-rule proposal in a JSONL file under the user's Claude writing-lint folder. It only appends proposals with a pending status. It never edits the approved rules file and never approves or rejects anything; promotion to approved rules is a separate, human-run script.

The workflow has the agent pin down the original phrase and the requested rewrite, turn the original fragment into a regular expression, store the rewrite as the preferred wording, optionally limit the scenes it applies to, and give the proposal a kebab-case id with a random suffix. Before writing, a small Python snippet checks the record against the proposal schema in the repository's templates folder, rejecting unknown or missing keys. If the correction is too vague to reduce to a concrete phrase, the skill stops without drafting anything.

It expects a repository checkout that contains the schema file, Python 3 for the validation and append step, and the operator's correction within the conversation. Companion scripts for listing and approving proposals are referenced but not part of this skill folder.

When your agent uses it

Detect when the operator corrects the agent's Japanese phrasing mid-conversation (rewrites a sentence, calls out a style problem, says 'this wording is bad, say it like X instead') and draft a pending writing-rule proposal into ~/.claude/writing-lint/proposals.jsonl for later human review. This skill is the ONLY writer of proposals.jsonl — it never edits rules.jsonl and never sets status to anything but pending. Promotion to rules.jsonl only happens via the human-run scripts/writing-rule-approve.sh. Use when user mentions writing-rule proposal, 表現を直して, 文体を直して, その言い方はNG, writing lint 提案, 指摘をルール化して. Do NOT load for: approving or rejecting proposals (use scripts/writing-rule-approve.sh), listing pending proposals (use scripts/writing-rule-list.sh), or scanning text against the existing dictionary (the writinglint engine / PostToolUse hook does that).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the harness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install harness@claude-code-harness-marketplace

Or copy only this skill to ~/.claude/skills/japanese-writing-drafter:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/japanese-writing-drafter &&
cp -R "$tmp/opencode/skills/japanese-writing-drafter" ~/.claude/skills/japanese-writing-drafter &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/japanese-writing-drafter inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/japanese-writing-drafter to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/japanese-writing-drafter &&
cp -R "$tmp/opencode/skills/japanese-writing-drafter" ~/.agents/skills/japanese-writing-drafter &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/japanese-writing-drafter inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/japanese-writing-drafter to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/japanese-writing-drafter &&
cp -R "$tmp/opencode/skills/japanese-writing-drafter" ~/.cursor/skills/japanese-writing-drafter &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/japanese-writing-drafter inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Chachamaru127/claude-code-harness.git --path opencode/skills/japanese-writing-drafter

Or copy the folder to ~/.gemini/skills/japanese-writing-drafter yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/japanese-writing-drafter:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/japanese-writing-drafter &&
cp -R "$tmp/opencode/skills/japanese-writing-drafter" ~/.copilot/skills/japanese-writing-drafter &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/japanese-writing-drafter inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git

Then copy claude-code-harness/opencode/skills/japanese-writing-drafter into your agent's skills folder as japanese-writing-drafter. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Correction detection
Recognizes when the operator rewrites or calls out the agent's Japanese phrasing during a conversation.
Pending proposal drafting
Appends a proposal with a pending status to the writing-lint proposals file, one per detected correction.
Schema validation before write
Checks required keys and rejects extra fields against the proposal schema before saving.
Human-gated promotion
Leaves approval to a separate human-run script, so the skill never changes the active rules.
Regex pattern generation
Turns the original phrase into an escaped RE2 pattern limited to the offending fragment.

Good for

  • Turn a wording correction I just made into a reusable Japanese style rule
  • Save a note that a particular Japanese expression should be avoided in future drafts
  • Queue a writing-lint proposal for later review instead of applying it immediately
  • Record an operator's preferred phrasing so the lint engine can flag the old version

Japanese writing drafter FAQ

When does Japanese writing drafter trigger?

It triggers when the operator rewrites the agent's Japanese phrasing, names a wording as bad, or explicitly asks to turn a correction into a rule. Casual chat and ordinary task instructions do not trigger it.

Can Japanese writing drafter approve or change active rules?

No. It only appends pending proposals. Approval and promotion to the rules file are done by a human running a separate approve script.

Where are proposals saved?

To the path in the CLAUDE_WRITING_LINT_PROPOSALS environment variable if set, otherwise to ~/.claude/writing-lint/proposals.jsonl.

Does Japanese writing drafter need any scripts or extra files?

The skill folder has only SKILL.md. It relies on Python 3 and the proposal schema in the repository's templates folder.

How do I install Japanese writing drafter in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/japanese-writing-drafter to use it in all your projects, or to .claude/skills/japanese-writing-drafter in one project. Or install the harness plugin, which includes it: /plugin marketplace add Chachamaru127/claude-code-harness, then /plugin install harness@claude-code-harness-marketplace.

Does Japanese writing drafter run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Japanese writing drafter?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Japanese writing drafter?

The closest alternatives to Japanese writing drafter are Writing rules, Rules, Write, Failure codifier and Correct.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Chachamaru127/claude-code-harness

  1. Guards upstream Claude and Codex update reviews against docs-only feature additions

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  2. Lets an agent drive a browser via the agent-browser CLI for UI checks and forms

    • Open source
    • 3.2K GitHub stars
    • Browser automation
  3. Diagnoses failing CI pipelines and proposes fixes for build and test errors

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  4. Gets a read-only second opinion from Cursor's Composer agent on questions and designs

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  5. Hands one write task to Cursor Composer in an isolated worktree, then reviews

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  6. Gets an advisory second-opinion review of a diff from Cursor Composer, read-only

    • Open source
    • 3.2K GitHub stars
    • Developer tools