/ccxp-skills:proof-read <md-file> [<parallel-md-file>] [--glossary <tsv>] [--glossary-md <glossary.md>] [--report <path>]from ccxp-skills
Use when a markdown doc needs a sentence-level consistency check (flags, does not fix) — term drift, undefined jargon vs glossary, word↔ASCII-figure mismatches, broken refs, CN↔EN
Ships in ccxp-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Proof-read one or two markdown documents for self- and cross-consistency. The skill surfaces findings; it does not auto-edit. Human judgment decides how to resolve each finding.
$ARGUMENTS contains:
/proof-read path/to/doc.md/proof-read path/to/cn.md path/to/en.md--glossary <tsv> — seed term mappings (TSV cn<TAB>en). If omitted, the skill infers a glossary from the doc(s).--glossary-md <path> — the canonical coined-term glossary to run the undefined-jargon check (3f) against (default: ../glossary.md). Distinct from --glossary, which is the CN↔EN TSV.--report <path> — write the findings report to this path instead of printing. Default: print + also save next to the input as <basename>.proof-read-report.md.If no args are given, ask the user which doc(s) to check.
file:line so the human can jump directly to the context.Execute in order. Stop and report if an input is invalid or unreadable.
For each input file, parse into:
#, ##, ###). Record heading text and line number.。 / . / ! / ? for CJK + Latin). Preserve line numbers.… block. For each, detect whether it looks like an ASCII figure (contains box-drawing chars ┌ ┐ └ ┘ ─ │ or arrows ► ◄ ▲ ▼) or a code/shell block (starts with a shebang, or contains typical code tokens).101, 203-1, 205), all boxed text snippets, and any arrow connections (source → target).Figure N, 图 N, Step N, 步骤 N, Module N, 模块 N, and ranges (Figs. N-M, Figures N to M, 图N-图M, 图N至图M). Record (reference, line, target); a range is recorded as one entry carrying both endpoints (N, M) — never split into two separate single-figure entries. Exhaustive — every occurrence in the doc, not a sample.Run all of the following against the single input:
For each ASCII figure detected in step 2:
205) must be mentioned in the prose by some discoverable form ("Module 205", "步骤 205", etc.). Flag labels the prose doesn't mention.Figure N where no **Figure N:** header exists — flag.图 N where no corresponding figure exists — flag.see Section 3.2) that don't resolve in the heading tree — flag.For each sentence:
Cross-check the doc's coined terms and acronyms against the canonical glossary (--glossary-md, default ../glossary.md). If neither is present, skip this check with a logged note — never error.
IPM, WF, SBOM) plus the repeated coined multi-word terms step 3a already builds.**term** line in the glossary doc) OR is expanded/defined inline in the doc on or before first use (e.g. "Iteration Planning Meeting (IPM)").<term> — expand on first use, or add it to glossary.md." Whitelist common English/tech acronyms (CI, PR, API, URL, JSON, YAML, HTTP, SQL, …) and the doc's own heading words.Soft-enforces the private-skills-repo/engineering-standards.md "Markdown writing style" convention (prefer bullets over long prose paragraphs) — a style preference, not a structural rule, so this check is always Info-severity and never blocks:
engineering-standards.md § Markdown writing style)" — when it exceeds 4 sentences with zero list items within 3 lines above its first line or 3 lines below its last line (i.e. measured from the paragraph's own span, not a fixed point inside it).## Root cause or ## Why section (not just the first — a multi-paragraph root-cause narrative is still one undecomposable story), quoted text (> blockquotes), and code/figure blocks (already excluded by the "prose lines" definition above).Run these in addition to Mode A applied to each side:
For each aligned section, compute sentence counts. Flag sections where |CN − EN| / max(CN, EN) > 0.25 (more than 25% difference) — suggests content loss or expansion in translation.
--glossary, use that as the authoritative mapping and flag any deviations.Catches off-by-one and other reference-number drift that (e) "Figure parity" and (c) "Numeric
parity" can miss. (e) compares ASCII-diagram structure — box/arrow/label counts pulled from
fenced code blocks — a completely different artifact from prose figure citations; it has no
visibility into prose text at all. (c) diffs numeric tokens per aligned section without pairing
them to specific figure citations, so a shifted reference can dodge it if some unrelated number
in the section still happens to line up. A uniform off-by-one shift across a range (e.g. CN
图2-图5 → EN "Figs. 1-4") is exactly the kind of drift neither check is positioned to catch.
(T20260804-151091: this is the defect class that slipped through undetected on one patent while
being caught on another, because the prior implementation only compared citations adjacent to a
figure heading rather than diffing every occurrence.)
5); a range is
the pair of its endpoints ((2, 5)), never decomposed into two separate single-figure entries.
(Decomposing a range would let it spuriously "match" unrelated single references to its
endpoint numbers elsewhere in the section.){<CN multiset>} (e.g. line N), EN cites {<EN multiset>} (e.g. line M) — multisets
don't match." Cite one representative line per side: the first occurrence of a value/range
present on only one side, or — when every value is present on both sides but at a different
multiplicity (e.g. CN cites Fig. 3 three times, EN twice) — the first occurrence of that
value on each side, noting the count difference explicitly in the finding text.{2, 3}, but attached to swapped
sentences) will not be flagged by this check. This is an accepted cost of fixing the positional
version's reordering false-positives, not an oversight — contrary to this skill's general
"prefer false positives over false negatives" philosophy, but the alternative (positional
pairing) produced false positives on ordinary, correct translations, which is worse in
practice. No other Mode B check covers this residual case either; a future check specifically
for cross-language figure-content-swap detection is out of scope here.Write a markdown report with this shape:
# Proof-read report
**Mode:** A (single doc) / B (parallel)
**Inputs:**
- `<cn.md>` (<N> sentences in <M> sections)
- `<en.md>` (…) <!-- Mode B only -->
**Summary:**
- Errors: N (blocks publication)
- Warnings: N (review recommended)
- Info: N (context / potential drift)
---
## Errors
### E1. <short title>
- **Where:** `file:line`
- **What:** one-sentence description
- **Why it matters:** one-sentence consequence
- **Suggested check:** one-sentence human action
### E2. …
## Warnings
### W1. …
## Info
### I1. …
---
## Glossary inferred (Mode B)
| CN | EN | Occurrences |
|---|---|---|
| 缓存块 | cache block | 42 |
| 合并块 | merged block | 37 |
| … | | |
Severity rubric:
Report to the user:
X errors, Y warnings, Z info)This skill is designed to be invoked from other skills (e.g. translate-patent calls /proof-read after extraction and after translation). When invoked programmatically, the caller should:
--report <deterministic-path> so the output is predictable0 = no errors, 1 = errors present (caller decides whether to block or continue)fix-findings skill (not yet filed) would consume the report and propose edits.translate-patent's pandoc step).Read tool for all file reads; do not shell out with cat.--glossary, cap the inference at the top 30 most-frequent aligned terms — beyond that, precision drops.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status