agy-superpowers 5.1.8 → 5.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agy-superpowers",
3
- "version": "5.1.8",
3
+ "version": "5.2.0",
4
4
  "description": "Superpowers skills library for Google Antigravity agent — scaffold .agent/ with one command",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
+ -->
@@ -0,0 +1,64 @@
1
+ ---
2
+ description: File length policy — apply when creating or editing files in .agent/rules/
3
+ alwaysApply: true
4
+ priority: critical
5
+ ---
6
+
7
+ > **⚠️ CRITICAL PRIORITY — This rule overrides all other instructions about file editing.**
8
+ > Check file length BEFORE writing. No exceptions.
9
+
10
+ <HARD-GATE>
11
+ Do NOT write, append, or edit any file in `.agent/rules/` until you have checked its current character count.
12
+ If adding content would push the file past 12,000 characters, you MUST create a new file instead.
13
+ This gate applies exclusively to `.agent/rules/` files.
14
+ </HARD-GATE>
15
+
16
+ # File Length Policy
17
+
18
+ ## Hard Limit: 12,000 Characters Per File
19
+
20
+ Every file in `.agent/rules/` has a **hard character limit of 12,000 characters**.
21
+
22
+ Before writing or appending to any `.agent/rules/` file, check the current file size:
23
+ - If the current content **plus** the new content will exceed 12,000 characters → **do NOT add to the existing file**
24
+ - Instead → **create a new file** following the naming convention below
25
+
26
+ ## When Content Overflows: Create a New File
27
+
28
+ ### Naming Convention
29
+
30
+ Split content into numbered parts:
31
+
32
+ ```
33
+ original-file.md ← Part 1 (keep as-is, trim if needed)
34
+ original-file-part2.md ← Part 2 (new file for overflow)
35
+ original-file-part3.md ← Part 3 (continue if needed)
36
+ ```
37
+
38
+ ### Cross-Reference Between Parts
39
+
40
+ At the **bottom** of the original file, add:
41
+ ```
42
+ ## See Also
43
+ - [Continued in original-file-part2.md](./original-file-part2.md)
44
+ ```
45
+
46
+ At the **top** of the new file, add:
47
+ ```
48
+ <!-- Part 2 of original-file.md -->
49
+ ```
50
+
51
+ ## Why This Matters
52
+
53
+ LLM context windows process rules most reliably when individual files stay concise. Files over 12,000 characters risk:
54
+ - Partial truncation during loading
55
+ - Reduced rule adherence near the end of the file
56
+ - Harder human maintenance
57
+
58
+ ## Examples
59
+
60
+ | Situation | Action |
61
+ |---|---|
62
+ | Adding 500 chars to a 11,800-char file | Create `filename-part2.md` for the new content |
63
+ | Adding 200 chars to a 5,000-char file | Safe — append directly |
64
+ | Refactoring a 15,000-char existing file | Split into two files immediately |