AI SummaryOpenCap Coding Standards v1.0 is a prompt-based guide for developers working on the OpenCap Stack, emphasizing test-driven development, consistency, and LLM-assisted coding for Python/FastAPI backends on Windsurf. It benefits backend developers and AI coding assistant users seeking standardized, production-ready code practices.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "opencap — Windsurf Rules" prompt rules to my project. Repository: https://github.com/Open-Cap-Stack/opencap Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Open Cap stack, Open Cap table
**🏗️ Purpose**
These coding standards guide developers working on OpenCap Stack, emphasizing clarity, consistency, test coverage, and production-readiness. Designed to pair effectively with AI coding assistants and LLM copilots, this standard enforces behaviors that yield secure, maintainable, and test-driven Python/FastAPI backend services. ---
**🧠 LLM Context First: Structured Prompts**
Each standard section includes LLM prompts for inline or IDE-based copilot usage. These prompts provide deterministic guidance to keep the LLM aligned with Semantic Seed’s discipline, TDD-first workflow, and OpenCap’s stack. ---
**📋 Task & Backlog Management (Shortcut)**
> 💡 Use these prompts when starting a new story or task. Prompt 1: "You are building a new feature in OpenCap from a Shortcut story. Generate the TDD commit sequence and appropriate Git branch naming based on the story type." Prompt 2: "Given a Shortcut task with acceptance criteria, scaffold the test-first development sequence with a focus on BDD in Python (pytest + Gherkin-style naming)."
**Workflow Summary**
• Start the top unstarted Shortcut story • Branch Naming • feature/{id}-{slug} • bugfix/{id}-{slug} • chore/{id}-{slug} • Workflow • WIP: Add failing test for {story goal} • WIP: Make test pass with minimum implementation • WIP: Refactor & document • READY: All tests passing • Create PR > Review > Merge > Mark Delivered ---
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts