Skip to content
Prompt

cognimates-training — Windsurf Rules

by hackidemia

AI Summary

A comprehensive coding standards guide for Windsurf that covers style, naming conventions, architecture patterns, and tech stack best practices (Next.js, TypeScript, Tailwind, React Query). Ideal for teams and educational platforms training developers to write consistent, maintainable code.

Install

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

I want to add the "cognimates-training — Windsurf Rules" prompt rules to my project.
Repository: https://github.com/hackidemia/cognimates-training

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

Platform where kids train their own AI models

General Code Style & Formatting

• Use English for all code and documentation. • Always declare the type of each variable and function (parameters and return value). • Avoid using any. • Create necessary types. • Use JSDoc to document public classes and methods. • Don't leave blank lines within a function. • One export per file.

Naming Conventions

• Use PascalCase for classes. • Use camelCase for variables, functions, and methods. • Use kebab-case for file and directory names. • Use UPPERCASE for environment variables. • Avoid magic numbers and define constants.

Functions & Logic

• Keep functions short and single-purpose (<20 lines). • Avoid deeply nested blocks by: • Using early returns. • Extracting logic into utility functions. • Use higher-order functions (map, filter, reduce) to simplify logic. • Use arrow functions for simple cases (<3 instructions), named functions otherwise. • Use default parameter values instead of null/undefined checks. • Use RO-RO (Receive Object, Return Object) for passing and returning multiple parameters.

Data Handling

• Avoid excessive use of primitive types; encapsulate data in composite types. • Avoid placing validation inside functions—use classes with internal validation instead. • Prefer immutability for data: • Use readonly for immutable properties. • Use as const for literals that never change.

Discussion

0/2000
Loading comments...

Health Signals

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

GitHub Signals

Stars23
Forks7
Issues19
Updated1y ago
View on GitHub
MIT 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