agy-superpowers 5.1.8 → 5.1.9
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.
package/package.json
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Enforce project code styles — agent MUST read and follow these rules before writing any code
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Styles
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
Before writing, modifying, or generating ANY code, you MUST read this file and strictly follow every rule defined below.
|
|
10
|
+
If a section is empty, skip it — but never skip reading this file.
|
|
11
|
+
</HARD-GATE>
|
|
12
|
+
|
|
13
|
+
## How to Use
|
|
14
|
+
|
|
15
|
+
Fill in the sections below with your project's code style rules.
|
|
16
|
+
Delete the placeholder comments and replace them with your actual conventions.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Naming Conventions
|
|
21
|
+
|
|
22
|
+
<!-- Examples:
|
|
23
|
+
- Variables: camelCase
|
|
24
|
+
- Components: PascalCase
|
|
25
|
+
- Files: kebab-case
|
|
26
|
+
- Constants: UPPER_SNAKE_CASE
|
|
27
|
+
-->
|
|
28
|
+
|
|
29
|
+
## File & Folder Structure
|
|
30
|
+
|
|
31
|
+
<!-- Examples:
|
|
32
|
+
- Feature-based folder structure
|
|
33
|
+
- One component per file
|
|
34
|
+
- Index files for barrel exports
|
|
35
|
+
-->
|
|
36
|
+
|
|
37
|
+
## Formatting
|
|
38
|
+
|
|
39
|
+
<!-- Examples:
|
|
40
|
+
- Indentation: 2 spaces
|
|
41
|
+
- Max line length: 100
|
|
42
|
+
- Semicolons: always / never
|
|
43
|
+
- Quotes: single / double
|
|
44
|
+
-->
|
|
45
|
+
|
|
46
|
+
## Comments & Documentation
|
|
47
|
+
|
|
48
|
+
<!-- Examples:
|
|
49
|
+
- JSDoc for public functions
|
|
50
|
+
- No obvious comments
|
|
51
|
+
- TODO format: // TODO(username): description
|
|
52
|
+
-->
|
|
53
|
+
|
|
54
|
+
## Patterns & Conventions
|
|
55
|
+
|
|
56
|
+
<!-- Examples:
|
|
57
|
+
- State management: Zustand
|
|
58
|
+
- Error handling: try/catch with custom error classes
|
|
59
|
+
- Async: async/await over .then()
|
|
60
|
+
- Imports order: external → internal → types
|
|
61
|
+
-->
|
|
62
|
+
|
|
63
|
+
## Anti-Patterns (DO NOT)
|
|
64
|
+
|
|
65
|
+
<!-- Examples:
|
|
66
|
+
- No any type in TypeScript
|
|
67
|
+
- No console.log in production code
|
|
68
|
+
- No inline styles in React components
|
|
69
|
+
-->
|