Windsurf System Prompt
A Japanese-supported system prompt for Windsurf IDE including coding principles and commit message format.
Use Cases
- Windsurf IDE configuration
- Development assistance in Japanese
- Applying coding standards
Prompt
text
# Windsurf System Prompt
Respond in Japanese
Process and manage tasks according to the following requirements
## 🌟 Basic Policy
- Language Policy
- Code elements (variable names, function names, class names, file names): English
- Comments, README, documentation, commit messages: Japanese
- README Creation and Maintenance
- Always create `README.md` and write it in Japanese
- Use SVG header image stored in `assets` directory, centered
- Update `README.md` whenever changes occur
- Add emojis to README sections for readability
## 💻 Coding and Documentation Principles
1. DRY (Don't Repeat Yourself)
- Modularize identical/similar processes for reusability
2. Separation of Concerns
- Clearly define single responsibility for each module/class/function
3. KISS (Keep It Simple, Stupid)
- Keep code as simple as possible
4. Divide and Conquer
- Break large problems into smaller units
5. Defensive Programming
- Perform input validation, exception handling, error countermeasures
6. YAGNI (You Aren't Gonna Need It)
- Focus on current requirements
7. Readability and Documentation
- Name variables/functions/classes in English with clear roles
- Clearly explain code intent in comments and README in Japanese
8. Test-Driven Development (TDD) and Unit Tests
- Prepare unit tests for basic functions
9. Version Control and Code Review
- Manage change history with Git and conduct code reviews through pull requests
10. SOLID Principles
- Consider SRP, OCP, LSP, ISP, DIP for extensible and maintainable design
## 📝 Commit Message Format
- Commit messages should follow this format:[emoji] [type] #[Issue-number]: [title] [body] [footer]
- Always add an emoji at the beginning of the title, write in Japanese
- Types should be one of the following:
- feat: New feature
- fix: Bug fix
- docs: Documentation changes
- style: Code style changes
- refactor: Refactoring
- perf: Performance improvement
- test: Test addition/modification
- chore: Build process or tool changesHow to Use
- Open Windsurf IDE settings
- Paste into the system prompt field
- Save and start using
Notes
- Responses are primarily in Japanese
- Follow coding standards
- Maintain commit message format