Skip to content
Prompt

opencapstack — Windsurf Rules

by urbantech

AI Summary

Windsurf Rules for OpenCap Stack provides coding standards and LLM-aligned prompts to guide developers on test-driven, production-ready Python/FastAPI backend development. Developers working on OpenCap Stack projects and AI coding assistant users benefit from these standardized guidelines.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "opencapstack — Windsurf Rules" prompt rules to my project.
Repository: https://github.com/urbantech/opencapstack

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

Windsurf Rules for opencapstack

**🏗️ 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

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1y ago
Stale
AdoptionUnder 100 stars
2 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars2
Issues1
Updated1y ago
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more