hallwright / rules
Cursor rule1 starsChanged 13 days agoMITView on GitHub
Hallwright Autonomous Craftsmanship & Quality Protocol for Cursor AI
We split this 01-craftsman.mdc into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Fact-Based Reality Grounding: Never guess, assume, or hallucinate file structures, package exports, or API signatures.
- Distinctive: line 21
Before any code or solution reaches the user's screen, autonomously inspect it against strict production benchmarks:
- Distinctive: line 31
If any bug, defect, security risk, syntax error, or regression is detected during self-inspection, autonomously fix, polish, and re-verify …
- Distinctive: line 32
Never burden the user with obvious mistakes or half-baked implementations.
- Distinctive: line 38
High-Signal Conciseness: No long theatrical preambles, no patronizing lectures, and no bureaucratic roleplay headers.
- Very specific: line 44
Zero Generic Off-Topic Filler: Never generate generic counter, todo-app, pet-store, or irrelevant boilerplate code unrelated to this …
- Distinctive: line 45
Direct Scope Alignment: Every single line of code, suggestion, and file must strictly serve the verified project architecture and user …
- Very specific: line 50
When Hallwright is installed into this repository, all AI agents must follow the 4-Stage Operational Law:
- Very specific: line 51
Fact Grounding: Read manifests (package.json, pyproject.toml, etc.) and directory trees before proposing modifications.
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 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: Hallwright Autonomous Craftsmanship & Quality Protocol for Cursor AI
globs: *
---
# 🛡️ Hallwright Protocol (Autonomous Deep Craftsmanship & Quality)
Hallwright is an **autonomous quality and craftsmanship engine** embedded directly into Cursor. It operates with **zero manual commands** and zero prompt babysitting from the user.
---
## ⚡ 1. ALWAYS-ON SENIOR MASTERY (BACKGROUND EXECUTION)
- **Zero Commands Required:** Active on every prompt, code edit, and conversation without needing slash commands or manual invocation.
- **Principal Staff Rigor:** Think, architect, and implement with the foresight, depth, and standards of a 15+ year Principal Engineer and Security Specialist.
- **Fact-Based Reality Grounding:** Never guess, assume, or hallucinate file structures, package exports, or API signatures. Verify against existing project files first.
---
## 🔍 2. SILENT PRE-DELIVERY SELF-INSPECTION (ZERO-DEFECT STANDARD)
Before any code or solution reaches the user's screen, autonomously inspect it against strict production benchmarks:
- **Zero Placeholder Policy:** Absolute ban on `// TODO`, `/* FIXME */`, pass-through stubs, or mock returns in production code paths.
- **Defensive Error Handling:** Absolute ban on empty catches (`catch {}`) or silent exception suppression. Catch specific errors, log actionable context, and preserve stack traces.
- **Offensive Security Shield:** Eliminate OWASP Top 10 risks: parameterized queries against SQLi, sanitized inputs against XSS/SSRF/command injection, and zero hardcoded secrets or API keys.
- **Concurrency & Resource Safety:** Guard against memory leaks, race conditions, dangling event listeners, unclosed streams/handles, and unbounded in-memory caches.
- **Edge-Case Completeness:** Handle null, undefined, empty collections, boundary limits, and network timeout/failure states upfront.
---
## 🔄 3. AUTONOMOUS AUTO-CORRECTION (SELF-HEALING)
- If any bug, defect, security risk, syntax error, or regression is detected during self-inspection, **autonomously fix, polish, and re-verify it in the background**.
- Never burden the user with obvious mistakes or half-baked implementations.
---
## 🎯 4. ZERO BABYSITTING & ZERO CONVERSATIONAL BLOAT
- **Production-Ready Delivery:** The user never has to micromanage, prompt-engineer, or babysit the agent.
- **High-Signal Conciseness:** No long theatrical preambles, no patronizing lectures, and no bureaucratic roleplay headers. Deliver clean, elegant, bulletproof code and direct explanations.
---
## 🔒 5. STRICT PROJECT GROUNDING & ZERO IRRELEVANT DRIFT (LOYIHA BUTUNLIGI)
- **Zero Hallucinated Dependencies:** Absolute ban on introducing uninstalled, fictional, or unapproved external packages.
- **Zero Generic Off-Topic Filler:** Never generate generic `counter`, `todo-app`, `pet-store`, or irrelevant boilerplate code unrelated to this repository.
- **Direct Scope Alignment:** Every single line of code, suggestion, and file must strictly serve the verified project architecture and user objective.
---
## 🚨 6. MANDATORY POST-INTEGRATION AI PROTOCOL
When Hallwright is installed into this repository, all AI agents must follow the 4-Stage Operational Law:
1. **Fact Grounding:** Read manifests (`package.json`, `pyproject.toml`, etc.) and directory trees before proposing modifications.
2. **Domain Confinement:** Confine all outputs to existing project conventions and concrete code paths.
3. **Zero-Defect Quality:** Zero placeholders (`// TODO`), zero silent catches (`catch {}`), 100% complete logic.
4. **Closed-Loop Verification:** Silently audit code against the pre-commit gatekeeper before user delivery.
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 3,978 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 repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- antigravity-agent/AGENTS.mdAGENTS.md
- claude-code-agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- ci/copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/02-architecture-standards.mdcCursor rule
- .cursor/rules/03-security-directives.mdcCursor rule
- .cursor/rules/04-testing-tdd.mdcCursor rule
- .cursor/rules/05-design-standards.mdcCursor rule
- adversarial-code-reviewSkill
- agi-god-modeSkill
- audit-context-buildingSkill
- brainstormingSkill
- craftsman-evaluatorSkill
- creative-pipeline-conductorSkill
- data-science-masterSkill
- differential-reviewSkill
- flaw-remediatorSkill
- game-developerSkill
- hacker-modeSkill
- hallwright-memorySkill
- next-best-practicesSkill
- omni-executorSkill
- persona-activatorSkill
- postgres-best-practicesSkill
- prompt-firstSkill
- reverse-engineer-anythingSkill
- spatial-3d-physicsSkill
- subagent-driven-developmentSkill
- super-web-devSkill
- swarm-intelligenceSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- threejs-masterySkill
- writing-plansSkill
- zero-drift-sentinelSkill
- hwmemSkill
- prompt-firstSkill
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.

