create-universal-ai-context 2.3.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,69 @@
1
+ {{!-- Windsurf Cascade Rules Template --}}
2
+ # {{project.name}} - Windsurf Cascade Rules
3
+
4
+ **Tech Stack:** {{join project.tech_stack ", "}}
5
+ **Status:** Active
6
+
7
+ <communication>
8
+ - Speak to me in a professional, technical manner
9
+ - Provide clear explanations for code changes
10
+ - Reference specific files and line numbers when discussing changes
11
+ - Ask clarifying questions when requirements are ambiguous
12
+ </communication>
13
+
14
+ <filesystem>
15
+ {{#if key_files.entry_points}}
16
+ - Key project files: {{join key_files.entry_points ", "}}
17
+ {{/if}}
18
+ - Models directory: {{#each architecture.layers}}{{#if (ifEquals name 'models')}}{{path}}{{/if}}{{/each}}
19
+ - Migrations directory: {{#each architecture.layers}}{{#if (ifEquals name 'migrations')}}{{path}}{{/if}}{{/each}}
20
+ - Treat node_modules, build, dist as read-only
21
+ </filesystem>
22
+
23
+ <coding>
24
+ - Primary language: {{project.primary_language}}
25
+ - Framework: {{#each architecture.layers}}{{#if (ifEquals name 'framework')}}{{name}}{{/if}}{{/each}}
26
+ - Testing framework: jest
27
+ - Follow existing code style and patterns
28
+ - Add type hints/annotations for all functions
29
+ - Write tests for new functionality (target: 80% coverage)
30
+ - Use early returns when possible
31
+ - Avoid deep nesting (>4 levels)
32
+ - Keep functions focused and small (<50 lines)
33
+ </coding>
34
+
35
+ <commands>
36
+ | Command | Purpose |
37
+ |---------|---------|
38
+ | {{commands.install}} | Install dependencies |
39
+ | {{commands.dev}} | Start development server |
40
+ | {{commands.test}} | Run tests |
41
+ | {{commands.build}} | Build for production |
42
+ </commands>
43
+
44
+ <architecture>
45
+ {{project.description}}
46
+
47
+ Key patterns:
48
+ - {{architecture.pattern}}
49
+ {{#each architecture.layers}}
50
+ - {{name}}: {{purpose}}
51
+ {{/each}}
52
+ </architecture>
53
+
54
+ <testing>
55
+ - Write tests before implementing features
56
+ - Use jest for mocking
57
+ - Test edge cases and error conditions
58
+ - Keep tests independent and fast
59
+ </testing>
60
+
61
+ <security>
62
+ - Never commit secrets or API keys
63
+ - Validate all user inputs
64
+ - Use parameterized queries to prevent injection
65
+ - Follow OWASP security guidelines
66
+ </security>
67
+
68
+ ---
69
+ {{{coordination.footer}}}