# Japanese writing drafter

> Japanese writing drafter is an open-source agent skill for developer tools. Drafts pending Japanese writing-lint rules from the operator's phrasing corrections. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Chachamaru127/claude-code-harness/tree/main/opencode/skills/japanese-writing-drafter
- **Repository:** https://github.com/chachamaru127/claude-code-harness
- **GitHub stars:** 3,232
- **License:** MIT
- **Skill name:** japanese-writing-drafter
- **Collection:** https://github.com/Chachamaru127/claude-code-harness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/japanese-writing-drafter)
- [License: MIT](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/japanese-writing-drafter)

## Features

- **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

## Install

### Claude Code

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

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Writing rules](https://ai-powered.com/skills/writing-rules-xiaolai): Writing rules is an open-source agent skill for developer tools.
- [Rules](https://ai-powered.com/skills/rules-xiaolai): Rules is an open-source agent skill for developer tools.
- [Write](https://ai-powered.com/skills/write): Write is an open-source agent skill for developer tools.
- [Failure codifier](https://ai-powered.com/skills/failure-codifier-chachamaru127): Failure codifier is an open-source agent skill for developer tools.
- [Correct](https://ai-powered.com/skills/correct): Correct is an open-source agent skill for developer tools.
- [Repo hypotheses](https://ai-powered.com/skills/repo-hypotheses): Repo hypotheses is an open-source agent skill for developer tools.
- [Principle encode lessons in structure](https://ai-powered.com/skills/principle-encode-lessons-in-structure): Principle encode lessons in structure is an open-source agent skill for developer tools.
- [Automate me](https://ai-powered.com/skills/automate-me): Automate me is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/japanese-writing-drafter-chachamaru127
