Skip to content
Prompt

.dotfiles — Windsurf Rules

by fxcl

AI Summary

A Windsurf rules configuration for Go projects that enforces clean architecture, idiomatic Go patterns, and comprehensive testing practices. Ideal for Go teams seeking to maintain code quality and consistency across projects.

Install

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

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

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

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

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 5mo ago
Stale
AdoptionUnder 100 stars
17 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars17
Issues0
Updated5mo 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