japanese-writing-drafter

Drafts pending Japanese writing-rule proposals from operator corrections into a JSONL file.

3.1k|302|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/Chachamaru127/claude-code-harness --skill japanese-writing-drafter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: japanese-writing-drafter
Source: https://github.com/Chachamaru127/claude-code-harness/tree/main/codex/.codex/skills/japanese-writing-drafter
Command: npx skills add https://github.com/Chachamaru127/claude-code-harness --skill japanese-writing-drafter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When an operator corrects the agent's Japanese phrasing mid-conversation, that feedback is normally lost. This Skill captures those corrections as structured, pending writing-rule proposals so they can be reviewed and promoted into a persistent linting dictionary later.

Core Features & Use Cases

  • Correction Detection: Triggers only when the operator rewrites a sentence, explicitly calls out a style problem, or asks to register a phrasing as a rule.
  • Schema-Validated Proposals: Writes one JSONL record per correction with id, RE2 pattern, suggested replacement, evidence, and status pending, validated against the writing-rule-proposal.v1 schema.
  • Strict Safety Boundary: It is the only writer of proposals.jsonl, never edits rules.jsonl, and never auto-promotes rules; promotion happens only via the human-run writing-rule-approve.sh script.
  • Use Case: An operator says "その言い方はNG、こう書いて" during a session. The Skill extracts the before/after phrasing, builds a regex pattern, appends a pending proposal, and tells the operator the approval command.

Quick Start

Tell the agent to turn the Japanese phrasing correction you just made into a pending writing-lint proposal for later review.

Frequently Asked Questions about japanese-writing-drafter

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

FAQPage Schema
How do I turn a Japanese phrasing correction into a writing rule?

Correct the agent's wording in conversation or explicitly ask to register the phrasing as a rule. The Skill extracts the before and after expressions, builds an RE2 pattern, and appends a pending proposal to proposals.jsonl for your later approval.

How do I approve a pending writing-rule proposal?

Run scripts/writing-rule-approve.sh --id <id> manually to promote a proposal into rules.jsonl, or add --reject to discard it. The Skill itself never approves, rejects, or edits rules.jsonl; promotion is always a human-run step.

Does this Skill scan my text against existing writing rules?

No. Scanning text against the approved dictionary is handled by the writinglint engine and its PostToolUse hook. This Skill only drafts new pending proposals when it detects an operator correction in conversation.

When does the writing-rule drafter not trigger?

It does not trigger during casual chat or normal work instructions. It only activates when the operator rewrites the agent's Japanese output, explicitly flags a style problem, or asks to register a phrasing as a lint rule.

What format are writing-rule proposals stored in?

Proposals are stored as JSONL records in ~/.claude/writing-lint/proposals.jsonl, each containing an id, RE2 pattern, suggested replacement, evidence, timestamp, and status pending, validated against the writing-rule-proposal.v1 schema.