Explore/Cursor Rules/Productivity/ai-dev-prompts

ai-dev-prompts

Cursor Rules

This repository provides a collection of curated AI prompts designed to streamline developer workflows. It includes generators for various AI coding tool context files like .cursorrules, CLAUDE.md, and GEMINI.md, helping teams standardize AI-assisted development. The prompts automate the creation of these context files, reducing manual effort and improving AI tool effectiveness.

Install
Compatible with 7 platforms
GitHub CopilotWindsurfCodex CLIAntigravityCursorClaude CodeCline
Tags
ai-promptsdeveloper-toolscontext-filescode-reviewrefactoringai-assisted-developmentworkflow-automation
README.md

ai-dev-prompts

Curated AI prompts for developer workflows — context file generation, code review, refactoring, and more. Built for teams standardizing on AI-assisted development.

The Problem

Every major AI coding tool has its own project context file. Same purpose, different locations:

ToolFileLocation
Cursor (legacy).cursorrulesProject root
Cursor (new).cursor/rules/*.mdc.cursor/rules/ directory
Claude Code CLICLAUDE.mdProject root
Gemini CLIGEMINI.mdProject root
Google Antigravity.agent/rules/*.md.agent/rules/ directory
GitHub Copilot.github/copilot-instructions.md.github/ directory
Windsurf.windsurfrulesProject root
Cline.clinerulesProject root
OpenAI CodexAGENTS.mdProject root
Zed.zed/settings.json.zed/ directory

The content is ~90% the same across all tools. The investment in one context file is reusable — copy content, change file name.

Only ~30% of developers use context files. This is the single biggest gap between "fancy autocomplete" and genuinely productive AI-assisted development.

What's in This Repo

Context File Generators (context-files/)

Prompts that scan your existing codebase and auto-generate the right context file. No manual writing required — paste the prompt, review the output, commit.

PromptToolType
cursorrules-small-repo.mdCursorSingle .cursorrules file for standard repos
cursorrules-large-repo.mdCursorModular .cursor/rules/*.mdc for complex/monorepos
claude-md-generator.mdClaude Code CLICLAUDE.md — terminal agent onboarding docs
gemini-rules-generator.mdGemini CLIGEMINI.md — terminal agent onboarding docs
antigravity-rules-generator.mdGoogle Antigravity.agent/rules/*.md with activation modes

Coming Soon

  • Copilot instructions generator.github/copilot-instructions.md
  • Windsurf / Cline generators.windsurfrules, .clinerules
  • Codex agent generatorAGENTS.md
  • Workflow prompts — code review, migration, refactoring, debugging
  • Output templates — starter templates for each context file format

Quick Start

  1. Pick the prompt that matches your AI tool
  2. Open the prompt file and copy the code block
  3. Paste it into your AI tool (Cursor Agent mode, Claude Code, Gemini CLI, etc.)
  4. Use the best model available — Claude Sonnet/Opus, GPT-4o, or Gemini 2.5 Pro
  5. Review the output — verify stack versions, conventions, and security rules
  6. Commit the generated file to git

Which Prompt Should I Use?

Are you using an IDE or a terminal agent?

IDE (Cursor, Antigravity, VS Code)
├── Simple/single repo? → cursorrules-small-repo.md
├── Complex/monorepo?   → cursorrules-large-repo.md
└── Antigravity?        → antigravity-rules-generator.md

Terminal agent (CLI)
├── Claude Code?  → claude-md-generator.md
└── Gemini CLI?   → gemini-rules-generator.md

Design Principles

These prompts are designed to:

  1. Auto-generate from existing code — scan the repo, don't start from scratch
  2. Never guess — if something can't be determined, write "Unknown" instead of hallucinating
  3. Enforce security defaults — credential exclusion, protected areas, destructive command warnings
  4. Be copy-paste ready — no customization needed for basic setup
  5. Work across stacks — JS/TS, Python, Ruby, Go, Java, .NET, and more

Contributing

This repo is a living collection. Contributions are welcome and encouraged.

Ways to Contribute

  • Improve existing prompts — found a section that could be clearer, or a case the prompt misses? Open a PR.
  • Add new tool generators — Windsurf, Cline, Codex, Copilot, Zed — all need prompts.
  • Add workflow prompts — code review, migration planning, refactoring, debugging workflows.
  • Share your generated output — if you ran a prompt and the result was great (or terrible), share it as an example so others can learn.
  • Report issues — if a prompt hallucinates versions, misses conventions, or generates weak security rules, open an issue.

How to Contribute

  1. Fork this repo
  2. Create a branch (git checkout -b add-windsurf-generator)
  3. Add or edit your prompt file
  4. Open a PR with a brief description of what changed and why

What Makes a Good Prompt

  • Grounded in repo contents — never asks the AI to guess or assume
  • Security-first — always includes protected areas for secrets, auth, CI/CD
  • Tool-aware — accounts for what the specific tool can and can't do
  • Concise output — the generated context file should be useful, not exhaustive

References

License

MIT