AI SummaryA comprehensive ruleset for Go projects using Windsurf, defining clean architecture patterns, idiomatic Go practices, testing standards, and project structure conventions. Developers building Go applications in Windsurf will use this to maintain code quality and consistency across their team.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "com — Windsurf Rules" prompt rules to my project. Repository: https://github.com/fxcl/com 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 com
1. Basic Operating Principles
basic_operation_principles: • name: instruction_reception description: "Accurately capture requirements and clarify questions." • name: analysis_planning description: "Assess risks, review architecture, and plan phased implementation." • name: incremental_implementation description: "Refine quality via small coding → test → review cycles." • name: continuous_feedback description: "Share progress and swiftly resolve issues."
2. Technology Stack and Version Control
tech_stack: language: Go version: ">= 1.21" modules: { private: true } # Approval required for version changes version_policy: require_approval_for_major_upgrade: true
3. Project Structure Conventions
project_structure: go_app: root_dir: "go-app/" layers: domain: { allowed_imports: [] } usecase: { allowed_imports: [domain] } interface: { allowed_imports: [usecase] } # Protected files example protected_files: • "go-app/internal/api/client.go" • "go-app/internal/api/config.go"
4.1: Idiomatic Go
rule1_idiomatic_go: command: "Adhere to idiomatic patterns" priority: Critical description: "Use gofmt, goimports, concise naming, and fmt.Errorf(\"%w\", ...)." depends_on: [] enforcement: strict
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