Implementation & Feature Engineering
Compatible with Cursor, Windsurf, Claude Code, Cline, Roo Code, Antigravity

Cursor & Windsurf Rules Project Constitution Generator

Generate custom, context-rich project rules (.cursorrules / .windsurfrules) that stop agents from making recurring mistakes.

CursorWindsurfAI AgentsCoding AgentsDeveloper Tools
Skill Objective

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.

1

Scan Tech Stack & Codebase Conventions

Analyze package.json, directory anatomy, state stores, and UI library tokens.

2

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).

3

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.

📜 .cursorrules Markdown File: Complete project rules configuration.

Domain Verification Checks

Explicit Negative Constraints: Bans specific recurring agent mistakes.
Directory Map: Enforces consistent file placement.
Context Window Efficiency: Keeps rules concise and punchy.

Example Agent Invocations

"Generate a customized .cursorrules file for our Next.js 15, Tailwind, and Zustand repository."
"Audit and streamline our existing .cursorrules to eliminate ignored rules."

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.
Complementary Agent Prompt

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.

View Prompt

SprintKit Workflow Integrations

Complementary tools and checklists to pair with this agent workflow.

Related Agent Skills

Explore related procedural workflows in this discipline.

All Skills

Strict TypeScript Type Safety & Soundness Audit

Audit TypeScript code for type safety, type narrowing, generics, mutation traps, and runtime boundary validation.

TypeScriptNode.jsClean Code+1
4 workflow stepsView skill

Multi-File Codebase Architectural Onboarding & Dependency Map

Prompt an agent to analyze an unfamiliar codebase and deliver an architectural breakdown, data flows, and gotchas.

OnboardingArchitectureAI Agents+2
3 workflow stepsView skill

Jira User Story to Vertical-Slice Implementation Loop

Transform Jira user stories and acceptance criteria into vertically sliced, test-backed code implementations.

ImplementationJiraFull-Stack+2
4 workflow stepsView skill