harness-score / rules
Cursor rule545 starsChanged 2 months agoMITView on GitHub
Guide docs must stay in sync across all VitePress locales (en + pt-BR, es, zh-CN, hi-IN)
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/checks.mdcCursor rule
- .cursor/rules/core.mdcCursor rule
- pr-release-auditSkill
- releaseSkill
The file
We split this docs-i18n-parity.mdc into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 21
When you add, remove, rename, or substantively change any guide chapter or section in one locale, you must update all other locales in the …
- Distinctive: line 41
If a locale is temporarily behind, do not merge until parity is restored.
- Very specific: line 45
Use relative links within the locale (./metrics-and-codes#scopes), not /guide/...
- Distinctive: line 46
Do not translate check IDs, anchor slugs, file paths, or CLI examples.
- Distinctive: line 53
Every locale has the same guide filenames as English.
- Very specific: line 56
Run npm test before committing doc changes.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Guide docs must stay in sync across all VitePress locales (en + pt-BR, es, zh-CN, hi-IN)
globs: docs/**/guide/**/*.md,docs/i18n/glossary.md,docs/.vitepress/config.mts
alwaysApply: false
---
# Guide i18n parity (mandatory)
This site ships **five locales** with the same ten guide chapters:
| Locale | Path |
|---|---|
| English (root) | `docs/guide/` |
| pt-BR | `docs/pt-BR/guide/` |
| es | `docs/es/guide/` |
| zh-CN | `docs/zh-CN/guide/` |
| hi-IN | `docs/hi-IN/guide/` |
## Non-negotiable
When you **add, remove, rename, or substantively change** any guide chapter or section in **one** locale, you **must** update **all other locales** in the same PR:
1. **Same file set** — every locale has the same `*.md` filenames under `guide/`.
2. **Same anchor slugs** — `{#scan-configuration}`, `{#ctx-01}`, etc. stay identical across locales (English slugs; never translate). CI enforces anchor parity for `measure-and-improve.md`; treat all chapters the same way.
3. **Same factual content** — new features (CLI flags, scores, scopes, check behavior) must appear in every locale. Wording is translated per `docs/i18n/glossary.md`; IDs, paths, JSON keys, and CLI stay English.
4. **Sidebar** — add/reorder entries in **all five** sidebar blocks in `docs/.vitepress/config.mts`.
5. **Glossary** — new stable terms go in `docs/i18n/glossary.md`.
## Workflow
```
Edit docs/guide/foo.md (English source of truth for structure)
→ mirror docs/pt-BR/guide/foo.md
→ mirror docs/es/guide/foo.md
→ mirror docs/zh-CN/guide/foo.md
→ mirror docs/hi-IN/guide/foo.md
→ update sidebars if chapter list changed
→ npm run docs:build && npm test
```
If a locale is temporarily behind, **do not merge** until parity is restored.
## Editorial rules (from glossary)
- Use **relative links within the locale** (`./metrics-and-codes#scopes`), not `/guide/...` (escapes to English).
- Do not translate check IDs, anchor slugs, file paths, or CLI examples.
- pt-BR: Brazilian Portuguese; es: Latin American; zh-CN: Simplified Chinese; hi-IN: Hindi (Devanagari), formal **आप**.
## CI enforcement
`packages/cli/test/docs.test.ts` verifies:
- Every locale has the same guide filenames as English.
- `measure-and-improve.md` anchor sets match English in all locales.
Run `npm test` before committing doc changes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

