Skip to content

Commit 4db5e2a

Browse files
committed
docs(rules): add 316-zero-trust and fix stale rule references
- Add rules/316-zero-trust.mdc (alwaysApply: true, priority 316) with Distinguished-Engineer voice covering identity, network, data, workload, AI/agent, and audit under Zero Trust - Add skills/zero-trust/ playbook (SKILL.md plus 5 references: agent-design, mcp-hardening, injection-threat-model, hitl-gates, threat-model-template) - Rename stale rule numbers across 27 files (docs, examples, commands, rule See-also sections) after the rules renumbering - Rewrite mcp/cursor-rules-mcp/src/api/client.ts fileMap and listAvailableRules against actual rule filenames and priorities; add zero-trust entry under patterns - Add 015-context-engineering.mdc and 316-zero-trust.mdc to the always-apply tables in README and docs/HOW-TO-USE.md - Fix "Plan/Build/Review" to "Plan/Implement/Review" in README, HOW-TO-USE, and .cursorrules-example (matches 010-workflow.mdc) - Update README Python floor 3.12+ to 3.14+ to match 200-python.mdc - Register 316-zero-trust.mdc in rules/INDEX.md and README.md Restores correctness of internal cross-references that broke when the rules were renumbered, and adds a principles-first Zero Trust rule intended to always load alongside 310-security.mdc.
1 parent 34f1ad9 commit 4db5e2a

37 files changed

Lines changed: 1875 additions & 298 deletions

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ refactor(go): reorganize concurrency section
153153
```
154154
cursor-engineering-rules/
155155
rules/ # All .mdc rule files
156-
050-workflow.mdc
156+
010-workflow.mdc
157157
100-core.mdc
158158
...
159159
INDEX.md # Rule catalog

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Comprehensive, battle-tested Cursor IDE rules for professional software engineer
5656
### Security & Testing
5757

5858
- **[310-security.mdc](rules/310-security.mdc)** - OWASP Top 10, secret management
59+
- **[316-zero-trust.mdc](rules/316-zero-trust.mdc)** - Distinguished Engineer - Zero Trust (identity, network, data, workload, AI/agents)
5960
- **[300-testing.mdc](rules/300-testing.mdc)** - Unit/Integration/E2E testing strategies
6061

6162
### Patterns & Best Practices
@@ -70,6 +71,7 @@ Comprehensive, battle-tested Cursor IDE rules for professional software engineer
7071
- **[483-kafka.mdc](rules/483-kafka.mdc)** - Kafka / Confluent (schemas, semantics, DLQ, ops)
7172
- **[484-teradata.mdc](rules/484-teradata.mdc)** - Teradata SQL and performance patterns
7273
- **[810-documentation.mdc](rules/810-documentation.mdc)** - Documentation standards
74+
- **[815-reactflow-diagrams.mdc](rules/815-reactflow-diagrams.mdc)** - Interactive architecture diagrams (@xyflow/react / React Flow); playbook: [skills/reactflow-architecture-diagrams/SKILL.md](skills/reactflow-architecture-diagrams/SKILL.md) (symlink into `.cursor/skills/` in consumer projects)
7375
- **[820-open-source.mdc](rules/820-open-source.mdc)** - Open source project patterns
7476
- **[250-cli.mdc](rules/250-cli.mdc)** - CLI application patterns
7577
- **[110-configuration.mdc](rules/110-configuration.mdc)** - Configuration management
@@ -201,13 +203,15 @@ ln -s /path/to/cursor-engineering-rules/rules .cursor/rules
201203

202204
| Rule | Purpose |
203205
| --- | --- |
204-
| `010-workflow.mdc` | Plan/Build/Review workflow |
206+
| `010-workflow.mdc` | Plan/Implement/Review workflow |
207+
| `015-context-engineering.mdc` | Prompt packing, retrieval, compaction |
205208
| `020-agent-audit.mdc` | Agent audit requirements |
206209
| `100-core.mdc` | Core coding standards |
207210
| `110-configuration.mdc` | Configuration management |
208211
| `120-utilities.mdc` | CLI tools |
209212
| `130-git.mdc` | Git conventions and signed commits |
210213
| `310-security.mdc` | Security best practices |
214+
| `316-zero-trust.mdc` | Distinguished Engineer - Zero Trust |
211215
| `800-markdown.mdc` | Markdown formatting |
212216

213217
Other rules load based on file patterns or explicit request.
@@ -354,7 +358,7 @@ See [rules/INDEX.md](rules/INDEX.md) for complete categorization.
354358

355359
### Modern Standards
356360

357-
- **Latest versions** (Python 3.12+, Go 1.25+, Node 22+)
361+
- **Latest versions** (Python 3.14+, Go 1.25+, Node 22+)
358362
- **Modern patterns** (async/await, generics, type safety)
359363
- **Current tools** (ripgrep, fd, fzf, just, jq)
360364

SETUP_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ Workspace context files should live at:
5555
- `tmp/progress.md`
5656
- `tmp/project-brief.md`
5757

58-
See `rules/050-workflow.mdc` for the workflow and file meanings.
58+
See `rules/010-workflow.mdc` for the workflow and file meanings.

commands/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ The AI will enter that phase and follow the corresponding workflow guidelines.
7777

7878
Performs a full code review comparing your branch to `main`:
7979

80-
- **6-phase structured review** following `100-core.mdc` and `050-workflow.mdc`
80+
- **6-phase structured review** following `100-core.mdc` and `010-workflow.mdc`
8181
- **Priority framework:** Critical → Recommended → Optional issues
8282
- **Language-specific tooling:** Runs appropriate linters (ruff, pylint, shellcheck, etc.)
8383
- **Security focus:** OWASP Top 10 checks, secrets scanning, dependency audits
84-
- **Audit integration:** Creates checkpoints and audit reports per `060-agent-audit.mdc`
84+
- **Audit integration:** Creates checkpoints and audit reports per `020-agent-audit.mdc`
8585
- **Automated fixes:** Applies formatters and re-stages files
8686
- **PR-ready output:** Structured report suitable for PR comments
8787

commands/check-progress.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Fix issues, summarize progress, run pre-commit, propose commit mess
44

55
# CHECK PROGRESS MODE ACTIVATED
66

7-
Review current work progress without staging or committing. Fix issues, run quality checks, and propose commit messages following `100-core.mdc` and `110-git.mdc` standards.
7+
Review current work progress without staging or committing. Fix issues, run quality checks, and propose commit messages following `100-core.mdc` and `130-git.mdc` standards.
88

99
> [!IMPORTANT]
1010
> **Fix mode.** Fix errors and formatting issues, then report what was fixed.
@@ -143,7 +143,7 @@ Provide a structured summary:
143143

144144
**Only if no Critical issues found after fixes:**
145145

146-
Propose **one primary commit message** following `110-git.mdc` format:
146+
Propose **one primary commit message** following `130-git.mdc` format:
147147

148148
```
149149
<type>(<scope>): <short summary>
@@ -242,6 +242,6 @@ If CodeRabbit is available and configured:
242242
**Integration:** This workflow aligns with:
243243

244244
- `100-core.mdc` Coding standards and Priority Framework
245-
- `110-git.mdc` Commit message standards
246-
- `050-workflow.mdc` Review phase patterns
245+
- `130-git.mdc` Commit message standards
246+
- `010-workflow.mdc` Review phase patterns
247247
- Tooling baseline for all supported languages

commands/review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ You are now in **REVIEW** phase.
9797

9898
## After Review
9999

100-
If ready to commit, prepare commit message following 110-git.mdc standards.
100+
If ready to commit, prepare commit message following 130-git.mdc standards.

commands/self-review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,4 @@ If CodeRabbit is available and configured for the repository:
237237
- `010-workflow.mdc` Review Phase
238238
- `100-core.mdc` Code Review Mode standards
239239
- `020-agent-audit.mdc` Audit requirements
240-
- `110-git.mdc` Commit standards
240+
- `130-git.mdc` Commit standards

0 commit comments

Comments
 (0)