Standards
The 496 review rules every onboarded repository is held to: a core set for every file, plus 20 stack sets. Look up any rule id you see in a review comment.
For product engineers who want to know what a finding means, and for anyone proposing a rule change. Editing a rule is a platform change: see Changing a rule.
Why the standards exist
AI reviewers comment on whatever they notice. The standards turn that into a fixed list: what to flag, how severe it is, and what not to flag at all. Every finding names the rule it applies, so you can look it up here and argue with the rule rather than the reviewer.
What a finding looks like
You never open standards/ yourself. You meet a rule as a review comment on your pull request. Every comment starts with its severity and the rule id in brackets:
Redline/BLOCKER [core/query-string-concatenation]: No query built by string concatenation with external input — parameterised only. Use a parameterised query: db.Query("SELECT id FROM users WHERE name = $1", name)
A BLOCKER must be fixed before merge, a HIGH needs a reviewer to accept the trade-off, and a SUGGESTION is optional. What each one obliges you to do is on The output contract. Whether a BLOCKER actually stops the merge depends on your repository's rung, its position on the enforcement ladder — see Enforcement.
Which rules your repository gets
A stack is one rule file for one language or framework, such as React or Go. It applies only to files matching its globs. A profile is a named list of stacks, such as web-react. Each repository installs exactly one of the 19 profiles, and always gets core. redline init detects the profile; --profile <name> overrides it. More on Profiles & stacks.
All standards
| Standard | Covers | BLOCKER | HIGH | SUGGESTION | In profiles |
|---|---|---|---|---|---|
| Core standards | Security, type safety, error handling, scope discipline and the severity output contract. | 13 | 9 | 0 | All |
| JavaScript | Untyped and loosely-typed JS: build scripts, config, serverless handlers, legacy app code. | 8 | 9 | 4 | 11 |
| TypeScript | Type evidence in every .ts/.tsx file: unknown at the boundary only, no widening, no reflective escapes. | 1 | 9 | 3 | 12 |
| React (web) | React web applications. | 13 | 13 | 6 | 4 |
| React Native | React Native apps — extends the React rules. | 6 | 11 | 3 | 1 |
| Next.js (App Router) | Next.js App Router — extends the React rules. Server Actions, the server/client boundary, caching and redirects. | 10 | 11 | 4 | 1 |
| Angular | Angular applications — subscription teardown, change detection, injection sinks, guards. | 8 | 19 | 5 | 1 |
| Vue | Vue 3 and Nuxt — reactivity that silently stops updating, v-html, SSR state leaks. | 6 | 17 | 4 | 1 |
| Svelte / SvelteKit | Svelte 4 and 5 plus SvelteKit — runes, stores, and what load runs where. | 8 | 16 | 4 | 1 |
| Browser / DOM | Framework-free browser code — the sinks and leaks a framework normally hides. | 8 | 15 | 5 | 1 |
| Node.js (NestJS) | NestJS services. | 7 | 9 | 4 | 2 |
| Express | Express HTTP services — routers, middleware, handlers. Written for Express 5, with Express 4 differences called out. | 8 | 9 | 3 | 1 |
| Microservice cross-cutting | Cross-cutting service rules: idempotency, timeouts, queues, observability. | 6 | 8 | 3 | 7 |
| Java (Spring Boot) | Spring Boot services. | 10 | 14 | 4 | 1 |
| Go | Go services and tools. | 12 | 14 | 4 | 1 |
| Python | Python services and tooling. | 9 | 15 | 4 | 1 |
| C# (.NET) | .NET services. | 9 | 15 | 4 | 1 |
| Kotlin | Kotlin / Android. | 8 | 14 | 3 | 1 |
| Swift (iOS) | iOS applications. | 6 | 12 | 3 | 1 |
| Terraform / HCL | Infrastructure as code. | 7 | 15 | 4 | 1 |
| Effect | Repositories built on the effect library — typed error handling, tagged constructors, Layers. | 0 | 3 | 2 | 1 |
manifest.json ties them together: each stack's globs, the profiles, and the standards version, currently 0.2.2.
Where the rules live
The rules are written once, in standards/core.md and standards/stacks/*.md. These are the only files a human edits. The CLI renders them into the files each assistant reads: .github/copilot-instructions.md, AGENTS.md, CLAUDE.md and .cursor/rules/. redline init writes them into a repository, and sync keeps them current.
Changing a rule
A merged change reaches every onboarded repository as a pull request, so treat it as a production change. Rule ids are permanent: reword a rule freely, but never rename or delete its id.
- Edit the markdownstandards/ is the only place a human edits a rule. AGENTS.md, CLAUDE.md, .github/copilot-instructions.md and .github/instructions/ are rendered from it, and the next render overwrites any hand edit there.
- node scripts/assign-rule-ids.mjsAssigns a permanent <stack>/<slug> id to any new rule bullet and rewrites the file in place. Do not invent an id by hand. CI runs the same script with --check and fails if a rule is missing one.
- node scripts/render-self.mjsRe-renders this repository's own copies of those files. CI runs it with --check, so a stale copy fails the build.
- Bump standards/manifest.json → versionIn the same pull request as the rule change. Sync pull requests quote the version, so every repository can tell which standards it is on.
- Add a CHANGELOG.md entryAlso in the same pull request. Say what changed and why, and record the seed score: a standards change with no measurement is an opinion.
- node scripts/validate.mjsThe self-check CI runs: the manifest is consistent, rule ids are well formed, the output contract is intact, and every glob is one Copilot can read.