Cursor & Windsurf Rules Project Constitution Generator
Generate custom, context-rich project rules (.cursorrules / .windsurfrules) that stop agents from making recurring mistakes.
Generate clean, high-discipline project rules files (.cursorrules, .windsurfrules) specifying directory structures, strict type safety, banned anti-patterns, and commit conventions.
Execution Workflow Procedure
Ordered steps the coding agent executes when performing this skill.
Scan Tech Stack & Codebase Conventions
Analyze package.json, directory anatomy, state stores, and UI library tokens.
Codify Banned Patterns & Negative Constraints
Formulate explicit DO NOT rules preventing recurring AI hallucinations (e.g. no any, no inline styles, no client useEffect waterfalls).
Generate Modular .cursorrules File
Assemble concise, sectioned rules organized by component design, API handling, type discipline, and Git formatting.
Agent Safety Guardrails & Anti-Hallucination Rules
- DO NOT create overly verbose 500-line rule files that consume entire model context windows.
- DO NOT include generic filler instructions; keep every rule specific to the active repository.
Expected Output Format
Ready-to-save .cursorrules / .windsurfrules file.
Domain Verification Checks
Example Agent Invocations
Install / Configure This Skill
# Place in .cursorrules or create .cursor/rules/cursorrules-project-constitution-generation.mdc # Trigger: Whenever you perform cursor & windsurf rules project constitution generator --- name: cursorrules-project-constitution-generation description: Author custom .cursorrules and .windsurfrules files with directory conventions and explicit negative constraints. version: 1.1.0 compatibility: [Cursor, Windsurf, Claude Code, Cline, Roo Code, Antigravity] --- # Cursor & Windsurf Rules Project Constitution Generator ## Objective Create concise, repo-specific agent rules that enforce architecture standards and prevent recurring AI mistakes. ## Workflow 1. **Convention Discovery**: Map repo directory anatomy, tech stack versions, and styling tokens. 2. **Negative Constraints**: Define explicit banned anti-patterns (no `any`, no unnecessary client components). 3. **Configuration Output**: Deliver a clean, modular `.cursorrules` file.
Need a quick one-time prompt for chat?
Try the Cursor & Windsurf Rules Generator (.cursorrules / .windsurfrules) — a lightweight version designed for 1-click copying directly into Claude, ChatGPT, or Cursor chat.
SprintKit Workflow Integrations
Complementary tools and checklists to pair with this agent workflow.
Related Agent Skills
Explore related procedural workflows in this discipline.
Strict TypeScript Type Safety & Soundness Audit
Audit TypeScript code for type safety, type narrowing, generics, mutation traps, and runtime boundary validation.
Multi-File Codebase Architectural Onboarding & Dependency Map
Prompt an agent to analyze an unfamiliar codebase and deliver an architectural breakdown, data flows, and gotchas.
Jira User Story to Vertical-Slice Implementation Loop
Transform Jira user stories and acceptance criteria into vertically sliced, test-backed code implementations.