A collection of Cursor AI rules, agent configurations, and reusable commands for building enterprise-grade applications. Designed for teams working with Java, TypeScript, Python/FastAPI, and Nuxt/Vue stacks.
Cursor rules (.mdc files) that automatically apply coding standards, security practices, and conventions when editing code.
| Category | Rules | Description |
|---|---|---|
| Common | security.mdccomponent-technical-standards.mdcintegration-standards.mdcagent-memory.mdc |
Language-agnostic security best practices (OWASP), component design standards, integration patterns, and shared agent memory |
| Java | java-code-standards.mdcapplication-logging.mdcaudit-logging.mdcjooq-database-access.mdc |
Java 21+ code style, SLF4J logging conventions, audit trail patterns, and type-safe database access with jOOQ |
| Spring Boot | spring-conventions.mdcspring-retry-conventions.mdcspring-testing.mdc |
Spring Boot patterns, resilience with retry/circuit breakers, and testing with TestContainers |
| TypeScript Common | typescript-code-standards.mdcapplication-logging.mdcaudit-logging.mdc |
TypeScript conventions, structured logging, and audit-ready implementation patterns |
| TypeScript Nuxt | nuxt-conventions.mdc |
Nuxt and Vue conventions for frontend architecture, data loading, and localization |
| Python FastAPI | application-logging.mdcaudit-logging.mdcfastapi-specific.mdcpython-documentation-standards.mdcsqlalchemy-data-access.mdc |
FastAPI style, API behavior guidance, logging and audit patterns, documentation standards, and SQLAlchemy usage |
Guidance for specification-led work is in process/:
| File | Purpose |
|---|---|
specification-driven-development.md |
Method for writing precise specifications for predictable AI-assisted development |
AGENTS.md files that define AI assistant personas for specific tech stacks. These provide project-specific commands, boundaries, and workflows.
| Agent | Stack | Key Features |
|---|---|---|
| Java | Spring Boot 4 + Java 21 | jOOQ, Flyway migrations, OpenAPI code generation, Gradle workflows |
| Python | FastAPI + Python 3.14 | Contract-first generation flow, explicit validation gates, environment and migration guidance |
| Nuxt | Nuxt 4 + Vue 3 + TypeScript | Orval API client, i18n, Vitest testing, TanStack Query |
Reusable prompt templates for common development tasks. Copy and paste into Cursor chat.
| Command | Purpose |
|---|---|
code-review.md |
Structured code review workflow with severity levels and fix prioritization |
deslop.md |
Remove AI-generated "slop" (unnecessary comments, defensive code, type bypasses) |
security-check.md |
Security-oriented review checklist and threat-focused validation suggestions |
simplify-code.md |
Simplify complex implementations and reduce unnecessary complexity |
verify.md |
Practical validation checklist for reviews, refactors, and changes before merge |
Copy the rules you need into your project's .cursor/rules/ directory:
# Copy all rules
cp -r rules/* your-project/.cursor/rules/
# Or copy specific categories
cp -r rules/common/* your-project/.cursor/rules/
cp -r rules/java-common/* your-project/.cursor/rules/
cp -r rules/java-spring-boot/* your-project/.cursor/rules/
cp -r rules/typescript-common/* your-project/.cursor/rules/
cp -r rules/typescript-nuxt/* your-project/.cursor/rules/
cp -r rules/python-fastapi/* your-project/.cursor/rules/For project-specific agent behavior, copy the appropriate AGENTS.md to your project root:
# For Spring Boot projects
cp agents/java/AGENTS.md your-project/AGENTS.md
# For Nuxt projects
cp agents/nuxt/AGENTS.md your-project/AGENTS.md
# For Python/FastAPI projects
cp agents/python/AGENTS.md your-project/AGENTS.mdRules are automatically applied by Cursor based on:
globs: File patterns that trigger the rule (e.g.,**/*.java)alwaysApply: Whether the rule applies to all files
Example rule header:
---
description: Java standards (Java 21+) for code style, design, and language features
globs: **/*.java
alwaysApply: true
---Agent files define:
- Persona: How the AI should behave
- Commands: Project-specific build/test commands
- Boundaries: What actions require approval
- Checklists: Step-by-step workflows for common tasks
These configurations are starting points. Adapt them to your project:
- Modify rules to match your team's conventions
- Update agent commands to match your build tools
- Add project-specific boundaries based on your architecture
- Create memory files (
docs/agent-memory.md) to track lessons learned
cursor-prompts/
├── agents/
│ ├── java/
│ │ └── AGENTS.md # Spring Boot agent configuration
│ ├── python/
│ │ └── AGENTS.md # FastAPI agent configuration
│ └── nuxt/
│ └── AGENTS.md # Nuxt/Vue agent configuration
├── commands/ # Reusable prompt templates
│ ├── code-review.md
│ ├── deslop.md
│ ├── security-check.md
│ ├── simplify-code.md
│ └── verify.md
├── rules/
│ ├── common/ # Language-agnostic standards
│ │ ├── component-technical-standards.mdc
│ │ ├── integration-standards.mdc
│ │ ├── security.mdc
│ │ └── agent-memory.mdc
│ ├── java-common/ # Java-specific standards
│ │ ├── application-logging.mdc
│ │ ├── audit-logging.mdc
│ │ ├── java-code-standards.mdc
│ │ └── jooq-database-access.mdc
│ ├── java-spring-boot/ # Spring Boot standards
│ │ ├── spring-conventions.mdc
│ │ ├── spring-retry-conventions.mdc
│ │ └── spring-testing.mdc
│ ├── python-fastapi/ # Python + FastAPI standards
│ │ ├── application-logging.mdc
│ │ ├── audit-logging.mdc
│ │ ├── fastapi-specific.mdc
│ │ ├── python-documentation-standards.mdc
│ │ └── sqlalchemy-data-access.mdc
│ ├── typescript-common/ # TypeScript conventions
│ │ ├── application-logging.mdc
│ │ ├── audit-logging.mdc
│ │ └── typescript-code-standards.mdc
│ └── typescript-nuxt/ # Nuxt front-end standards
│ └── nuxt-conventions.mdc
├── process/ # Team process documentation
│ └── specification-driven-development.md
├── LICENSE
└── README.md
Contributions welcome! When adding new rules or agents:
- Follow the existing file format and structure
- Include practical examples (valid and invalid)
- Keep rules focused and actionable
- Test with real projects before submitting
MIT © 2025 E-government building blocks