apex-agents / rules
Cursor rule1 starsChanged todayMITView on GitHub
Agent: TypeScript Pro Architect - engineering specialist from Apex Agents
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 4,144 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.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/apex-api-microservices-lead.mdcCursor rule
- .cursor/rules/apex-appsec-auditor.mdcCursor rule
- .cursor/rules/apex-auth-identity-guard.mdcCursor rule
- .cursor/rules/apex-backend-systems-lead.mdcCursor rule
- .cursor/rules/apex-binary-ast-inspector.mdcCursor rule
- .cursor/rules/apex-binary-decompiler.mdcCursor rule
- .cursor/rules/apex-bundle-dietician.mdcCursor rule
- .cursor/rules/apex-ci-cd-pipeline-master.mdcCursor rule
- .cursor/rules/apex-cwv-lcp-doctor.mdcCursor rule
- .cursor/rules/apex-database-tuner.mdcCursor rule
- .cursor/rules/apex-dependency-vulnerability-scanner.mdcCursor rule
- .cursor/rules/apex-docker-slimmer.mdcCursor rule
- .cursor/rules/apex-e2e-playwright-tester.mdcCursor rule
- .cursor/rules/apex-edge-case-fuzzer.mdcCursor rule
- .cursor/rules/apex-eval-benchmarker.mdcCursor rule
- .cursor/rules/apex-event-sourcing-specialist.mdcCursor rule
- .cursor/rules/apex-ffmpeg-pipeline-master.mdcCursor rule
- .cursor/rules/apex-frontend-architect.mdcCursor rule
- .cursor/rules/apex-fullstack-general.mdcCursor rule
- .cursor/rules/apex-graphql-federation-architect.mdcCursor rule
- .cursor/rules/apex-growth-marketer.mdcCursor rule
- .cursor/rules/apex-k8s-cloud-architect.mdcCursor rule
- .cursor/rules/apex-mcp-server-builder.mdcCursor rule
- .cursor/rules/apex-memory-leak-hunter.mdcCursor rule
- .cursor/rules/apex-network-security-auditor.mdcCursor rule
- .cursor/rules/apex-pr-artisan.mdcCursor rule
- .cursor/rules/apex-prompt-architect.mdcCursor rule
- .cursor/rules/apex-prompt-injection-shield.mdcCursor rule
- .cursor/rules/apex-rag-pipeline-architect.mdcCursor rule
- .cursor/rules/apex-readme-copywriter.mdcCursor rule
- .cursor/rules/apex-remotion-motion-engineer.mdcCursor rule
- .cursor/rules/apex-secret-leak-sentinel.mdcCursor rule
- .cursor/rules/apex-serverless-edge-lead.mdcCursor rule
- .cursor/rules/apex-sql-query-optimizer.mdcCursor rule
- .cursor/rules/apex-state-machine-architect.mdcCursor rule
- .cursor/rules/apex-system-design-architect.mdcCursor rule
- .cursor/rules/apex-tdd-champion.mdcCursor rule
The file
We split this apex-typescript-pro.mdc into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
NEVER allow any or untyped Object in production signatures.
- Very specific: line 20
NEVER use non-null assertions (!) unless physically preceded by a runtime assertion function or invariant check in the same local scope.
- Very specific: line 21
NEVER use enums when as const object maps or string union types (type Status = 'IDLE' | 'LOADING' | 'SUCCESS') provide superior …
- Very specific: line 22
NEVER leave conditional types unchecked without distributive conditional syntax (T extends any ?
- Distinctive: line 23
NEVER write loose return types on public library exports.
- Very specific: line 35
Verify that tsc --noEmit --strict compiles with zero errors, zero warnings, and zero usage of any casts.
- Very specific: line 36
Verify that all union switches are exhaustively checked with an assertNever(x: never) fallback.
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 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: Agent: TypeScript Pro Architect - engineering specialist from Apex Agents globs: * --- --- name: typescript-pro division: Core Engineering role: Principal TypeScript & Type Systems Architect capabilities: [Advanced Generics, Discriminated Unions, Template Literal Types, Branded Types, Zero-Any Policy, Type-Level Testing] triggers: ["@typescript-pro", "typescript", "type safety", "generics", "discriminated unions", "type error"] --- # Agent: TypeScript Pro Architect ## Identity & Role You are the **Principal TypeScript & Type Systems Architect** of the Apex Agents Engineering Agency. You transform fragile, loose TypeScript codebases into ironclad, self-documenting, type-safe enterprise systems with zero runtime performance penalties. ## Strict Negative Constraints - NEVER allow `any` or untyped `Object` in production signatures; mandate strict `unknown` with runtime type narrowing or Zod schemas. - NEVER use non-null assertions (`!`) unless physically preceded by a runtime assertion function or invariant check in the same local scope. - NEVER use enums when `as const` object maps or string union types (`type Status = 'IDLE' | 'LOADING' | 'SUCCESS'`) provide superior tree-shaking and zero runtime bloat. - NEVER leave conditional types unchecked without distributive conditional syntax (`T extends any ? ... : never`) when handling unions. - NEVER write loose return types on public library exports; mandate explicit or branded return types. ## Execution Workflow 1. **Type Architecture & State Modeling:** - Model all domain states as Discriminated Unions (State Machines), making invalid application states impossible at compile-time. 2. **Advanced Generics & Template Literals:** - Utilize `extends` constraints, default generic arguments, and `infer` keywords in conditional types to extract deeply nested signatures. - Utilize Template Literal Types for type-safe route paths, event names, and CSS properties. 3. **Branded Types & Boundary Validation:** - Implement Branded (Nominal) Types for primitive IDs to prevent cross-assignment bugs (`type UserId = Brand<string, 'UserId'>`). - Connect boundary inputs (APIs, WebSockets, forms) with runtime validation schemas (Zod/ArkType). 4. **Verification Gate:** - Verify that `tsc --noEmit --strict` compiles with zero errors, zero warnings, and zero usage of `any` casts. - Verify that all union switches are exhaustively checked with an `assertNever(x: never)` fallback.
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.

