@smartsoft001/pro-claude-plugins 0.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.
Files changed (198) hide show
  1. package/.claude-plugin/marketplace.json +26 -0
  2. package/README.md +56 -0
  3. package/package.json +14 -0
  4. package/plugins/flow/.claude-plugin/README.md +91 -0
  5. package/plugins/flow/.claude-plugin/merge-permissions.js +115 -0
  6. package/plugins/flow/.claude-plugin/plugin.json +5 -0
  7. package/plugins/flow/.claude-plugin/settings.template.json +86 -0
  8. package/plugins/flow/agents/angular-component-scaffolder.md +176 -0
  9. package/plugins/flow/agents/angular-directive-builder.md +154 -0
  10. package/plugins/flow/agents/angular-guard-builder.md +244 -0
  11. package/plugins/flow/agents/angular-jest-test-writer.md +475 -0
  12. package/plugins/flow/agents/angular-pipe-builder.md +170 -0
  13. package/plugins/flow/agents/angular-resolver-builder.md +287 -0
  14. package/plugins/flow/agents/angular-service-builder.md +162 -0
  15. package/plugins/flow/agents/angular-signal-state-builder.md +340 -0
  16. package/plugins/flow/agents/angular-test-diagnostician.md +279 -0
  17. package/plugins/flow/agents/angular-testbed-configurator.md +315 -0
  18. package/plugins/flow/agents/arch-scaffolder.md +278 -0
  19. package/plugins/flow/agents/e2e-data-testid-injector.md +195 -0
  20. package/plugins/flow/agents/e2e-project-scaffolder.md +194 -0
  21. package/plugins/flow/agents/e2e-test-writer.md +357 -0
  22. package/plugins/flow/agents/shared-agent-evolver.md +294 -0
  23. package/plugins/flow/agents/shared-build-verifier.md +160 -0
  24. package/plugins/flow/agents/shared-config-updater.md +310 -0
  25. package/plugins/flow/agents/shared-coverage-enforcer.md +184 -0
  26. package/plugins/flow/agents/shared-error-handler.md +217 -0
  27. package/plugins/flow/agents/shared-file-creator.md +344 -0
  28. package/plugins/flow/agents/shared-impl-orchestrator.md +312 -0
  29. package/plugins/flow/agents/shared-impl-reporter.md +368 -0
  30. package/plugins/flow/agents/shared-impl-teammate.md +201 -0
  31. package/plugins/flow/agents/shared-linear-subtask-iterator.md +337 -0
  32. package/plugins/flow/agents/shared-logic-implementer.md +244 -0
  33. package/plugins/flow/agents/shared-maia-api.md +26 -0
  34. package/plugins/flow/agents/shared-parallelization-analyzer.md +343 -0
  35. package/plugins/flow/agents/shared-performance-validator.md +168 -0
  36. package/plugins/flow/agents/shared-plan-perspective.md +271 -0
  37. package/plugins/flow/agents/shared-project-standardizer.md +205 -0
  38. package/plugins/flow/agents/shared-report-synthesizer.md +188 -0
  39. package/plugins/flow/agents/shared-review-teammate.md +189 -0
  40. package/plugins/flow/agents/shared-security-scanner.md +186 -0
  41. package/plugins/flow/agents/shared-style-enforcer.md +230 -0
  42. package/plugins/flow/agents/shared-subtask-dependency-analyzer.md +189 -0
  43. package/plugins/flow/agents/shared-tdd-developer.md +350 -0
  44. package/plugins/flow/agents/shared-team-coordinator.md +192 -0
  45. package/plugins/flow/agents/shared-test-fixer.md +186 -0
  46. package/plugins/flow/agents/shared-test-runner.md +191 -0
  47. package/plugins/flow/agents/shared-ui-classifier.md +263 -0
  48. package/plugins/flow/agents/shared-verification-orchestrator.md +194 -0
  49. package/plugins/flow/agents/shared-verification-runner.md +140 -0
  50. package/plugins/flow/agents/ui-a11y-validator.md +305 -0
  51. package/plugins/flow/agents/ui-screenshot-reporter.md +329 -0
  52. package/plugins/flow/agents/ui-web-designer.md +214 -0
  53. package/plugins/flow/scripts/compute-session-tokens.sh +39 -0
  54. package/plugins/flow/skills/a11y-audit/SKILL.md +214 -0
  55. package/plugins/flow/skills/angular-patterns/SKILL.md +191 -0
  56. package/plugins/flow/skills/browser-capture/SKILL.md +238 -0
  57. package/plugins/flow/skills/commit/SKILL.md +259 -0
  58. package/plugins/flow/skills/debug-helper/SKILL.md +375 -0
  59. package/plugins/flow/skills/impl/SKILL.md +992 -0
  60. package/plugins/flow/skills/karpathy-guidelines/SKILL.md +72 -0
  61. package/plugins/flow/skills/linear-suggestion/SKILL.md +132 -0
  62. package/plugins/flow/skills/maia-files-delete/SKILL.md +59 -0
  63. package/plugins/flow/skills/maia-files-upload/SKILL.md +57 -0
  64. package/plugins/flow/skills/nx-conventions/SKILL.md +326 -0
  65. package/plugins/flow/skills/plan/SKILL.md +1033 -0
  66. package/plugins/flow/skills/push/SKILL.md +759 -0
  67. package/plugins/flow/skills/review/SKILL.md +443 -0
  68. package/plugins/flow/skills/test-e2e/SKILL.md +164 -0
  69. package/plugins/flow/skills/test-unit/SKILL.md +456 -0
  70. package/plugins/flow-external/.claude-plugin/README.md +146 -0
  71. package/plugins/flow-external/.claude-plugin/merge-permissions.js +94 -0
  72. package/plugins/flow-external/.claude-plugin/plugin.json +5 -0
  73. package/plugins/flow-external/.claude-plugin/settings.template.json +78 -0
  74. package/plugins/flow-external/agents/angular-component-scaffolder.md +271 -0
  75. package/plugins/flow-external/agents/angular-directive-builder.md +134 -0
  76. package/plugins/flow-external/agents/angular-guard-builder.md +73 -0
  77. package/plugins/flow-external/agents/angular-pipe-builder.md +90 -0
  78. package/plugins/flow-external/agents/angular-resolver-builder.md +79 -0
  79. package/plugins/flow-external/agents/angular-service-builder.md +168 -0
  80. package/plugins/flow-external/agents/angular-state-builder.md +263 -0
  81. package/plugins/flow-external/agents/shared-build-verifier.md +67 -0
  82. package/plugins/flow-external/agents/shared-impl-orchestrator.md +90 -0
  83. package/plugins/flow-external/agents/shared-impl-reporter.md +135 -0
  84. package/plugins/flow-external/agents/shared-linear-subtask-iterator.md +70 -0
  85. package/plugins/flow-external/agents/shared-ui-classifier.md +38 -0
  86. package/plugins/flow-external/agents/ui-web-designer.md +203 -0
  87. package/plugins/flow-external/scripts/compute-session-tokens.sh +39 -0
  88. package/plugins/flow-external/skills/a11y-audit/SKILL.md +97 -0
  89. package/plugins/flow-external/skills/angular-cli-conventions/SKILL.md +268 -0
  90. package/plugins/flow-external/skills/angular-patterns/SKILL.md +182 -0
  91. package/plugins/flow-external/skills/browser-capture/SKILL.md +74 -0
  92. package/plugins/flow-external/skills/commit/SKILL.md +114 -0
  93. package/plugins/flow-external/skills/debug-helper/SKILL.md +135 -0
  94. package/plugins/flow-external/skills/impl/SKILL.md +218 -0
  95. package/plugins/flow-external/skills/karpathy-guidelines/SKILL.md +72 -0
  96. package/plugins/flow-external/skills/linear-suggestion/SKILL.md +62 -0
  97. package/plugins/flow-external/skills/maia-files-delete/SKILL.md +34 -0
  98. package/plugins/flow-external/skills/maia-files-upload/SKILL.md +41 -0
  99. package/plugins/flow-external/skills/plan/SKILL.md +334 -0
  100. package/plugins/flow-external/skills/push/SKILL.md +232 -0
  101. package/plugins/flow-legacy/.claude-plugin/README.md +143 -0
  102. package/plugins/flow-legacy/.claude-plugin/merge-permissions.js +94 -0
  103. package/plugins/flow-legacy/.claude-plugin/plugin.json +5 -0
  104. package/plugins/flow-legacy/.claude-plugin/settings.template.json +79 -0
  105. package/plugins/flow-legacy/agents/angular-component-scaffolder.md +327 -0
  106. package/plugins/flow-legacy/agents/angular-directive-builder.md +253 -0
  107. package/plugins/flow-legacy/agents/angular-guard-builder.md +326 -0
  108. package/plugins/flow-legacy/agents/angular-pipe-builder.md +238 -0
  109. package/plugins/flow-legacy/agents/angular-resolver-builder.md +339 -0
  110. package/plugins/flow-legacy/agents/angular-service-builder.md +271 -0
  111. package/plugins/flow-legacy/agents/angular-state-builder.md +480 -0
  112. package/plugins/flow-legacy/agents/shared-impl-orchestrator.md +174 -0
  113. package/plugins/flow-legacy/agents/shared-impl-reporter.md +232 -0
  114. package/plugins/flow-legacy/agents/shared-linear-subtask-iterator.md +198 -0
  115. package/plugins/flow-legacy/agents/shared-tdd-developer.md +307 -0
  116. package/plugins/flow-legacy/agents/shared-test-runner.md +133 -0
  117. package/plugins/flow-legacy/agents/shared-ui-classifier.md +145 -0
  118. package/plugins/flow-legacy/scripts/compute-session-tokens.sh +39 -0
  119. package/plugins/flow-legacy/skills/a11y-audit/SKILL.md +214 -0
  120. package/plugins/flow-legacy/skills/angular-patterns/SKILL.md +346 -0
  121. package/plugins/flow-legacy/skills/browser-capture/SKILL.md +238 -0
  122. package/plugins/flow-legacy/skills/commit/SKILL.md +215 -0
  123. package/plugins/flow-legacy/skills/debug-helper/SKILL.md +395 -0
  124. package/plugins/flow-legacy/skills/impl/SKILL.md +710 -0
  125. package/plugins/flow-legacy/skills/karpathy-guidelines/SKILL.md +72 -0
  126. package/plugins/flow-legacy/skills/linear-suggestion/SKILL.md +132 -0
  127. package/plugins/flow-legacy/skills/maia-files-delete/SKILL.md +59 -0
  128. package/plugins/flow-legacy/skills/maia-files-upload/SKILL.md +57 -0
  129. package/plugins/flow-legacy/skills/nx-conventions/SKILL.md +368 -0
  130. package/plugins/flow-legacy/skills/plan/SKILL.md +742 -0
  131. package/plugins/flow-legacy/skills/push/SKILL.md +645 -0
  132. package/plugins/flow-legacy/skills/test-unit/SKILL.md +500 -0
  133. package/plugins/smart-pro/.claude-plugin/README.md +115 -0
  134. package/plugins/smart-pro/.claude-plugin/merge-permissions.js +129 -0
  135. package/plugins/smart-pro/.claude-plugin/plugin.json +5 -0
  136. package/plugins/smart-pro/.claude-plugin/settings.template.json +94 -0
  137. package/plugins/smart-pro/agents/angular-components/AGENT.md +214 -0
  138. package/plugins/smart-pro/hooks/CONFIG.md +198 -0
  139. package/plugins/smart-pro/hooks/README.md +139 -0
  140. package/plugins/smart-pro/hooks/audit_logger.py +107 -0
  141. package/plugins/smart-pro/hooks/auto_format.sh +11 -0
  142. package/plugins/smart-pro/hooks/hooks.json +79 -0
  143. package/plugins/smart-pro/hooks/safety_validator.py +129 -0
  144. package/plugins/smart-pro/hooks/sensitive_file_blocker.py +58 -0
  145. package/plugins/smart-pro/hooks/skill_validator.py +220 -0
  146. package/plugins/smart-pro/skills/angular-components-action-panel/SKILL.md +159 -0
  147. package/plugins/smart-pro/skills/angular-components-avatar/SKILL.md +142 -0
  148. package/plugins/smart-pro/skills/angular-components-badge/SKILL.md +110 -0
  149. package/plugins/smart-pro/skills/angular-components-breadcrumbs/SKILL.md +91 -0
  150. package/plugins/smart-pro/skills/angular-components-button/SKILL.md +146 -0
  151. package/plugins/smart-pro/skills/angular-components-button-group/SKILL.md +121 -0
  152. package/plugins/smart-pro/skills/angular-components-calendar/SKILL.md +78 -0
  153. package/plugins/smart-pro/skills/angular-components-card/SKILL.md +110 -0
  154. package/plugins/smart-pro/skills/angular-components-card-heading/SKILL.md +105 -0
  155. package/plugins/smart-pro/skills/angular-components-command-palette/SKILL.md +168 -0
  156. package/plugins/smart-pro/skills/angular-components-container/SKILL.md +93 -0
  157. package/plugins/smart-pro/skills/angular-components-description-list/SKILL.md +102 -0
  158. package/plugins/smart-pro/skills/angular-components-details/SKILL.md +70 -0
  159. package/plugins/smart-pro/skills/angular-components-divider/SKILL.md +110 -0
  160. package/plugins/smart-pro/skills/angular-components-drawer/SKILL.md +136 -0
  161. package/plugins/smart-pro/skills/angular-components-dropdown/SKILL.md +131 -0
  162. package/plugins/smart-pro/skills/angular-components-empty-state/SKILL.md +103 -0
  163. package/plugins/smart-pro/skills/angular-components-feed/SKILL.md +110 -0
  164. package/plugins/smart-pro/skills/angular-components-form/SKILL.md +77 -0
  165. package/plugins/smart-pro/skills/angular-components-grid-list/SKILL.md +91 -0
  166. package/plugins/smart-pro/skills/angular-components-input/SKILL.md +118 -0
  167. package/plugins/smart-pro/skills/angular-components-list/SKILL.md +75 -0
  168. package/plugins/smart-pro/skills/angular-components-list-container/SKILL.md +106 -0
  169. package/plugins/smart-pro/skills/angular-components-media-object/SKILL.md +133 -0
  170. package/plugins/smart-pro/skills/angular-components-modal/SKILL.md +159 -0
  171. package/plugins/smart-pro/skills/angular-components-multi-column-layout/SKILL.md +84 -0
  172. package/plugins/smart-pro/skills/angular-components-navbar/SKILL.md +93 -0
  173. package/plugins/smart-pro/skills/angular-components-notification/SKILL.md +147 -0
  174. package/plugins/smart-pro/skills/angular-components-page/SKILL.md +162 -0
  175. package/plugins/smart-pro/skills/angular-components-page-heading/SKILL.md +96 -0
  176. package/plugins/smart-pro/skills/angular-components-paging/SKILL.md +86 -0
  177. package/plugins/smart-pro/skills/angular-components-progress-bars/SKILL.md +94 -0
  178. package/plugins/smart-pro/skills/angular-components-searchbar/SKILL.md +113 -0
  179. package/plugins/smart-pro/skills/angular-components-section-heading/SKILL.md +156 -0
  180. package/plugins/smart-pro/skills/angular-components-select-menu/SKILL.md +101 -0
  181. package/plugins/smart-pro/skills/angular-components-sidebar-layout/SKILL.md +121 -0
  182. package/plugins/smart-pro/skills/angular-components-sidebar-navigation/SKILL.md +80 -0
  183. package/plugins/smart-pro/skills/angular-components-sign-in-form/SKILL.md +91 -0
  184. package/plugins/smart-pro/skills/angular-components-stacked-layout/SKILL.md +114 -0
  185. package/plugins/smart-pro/skills/angular-components-stacked-list/SKILL.md +93 -0
  186. package/plugins/smart-pro/skills/angular-components-stats/SKILL.md +87 -0
  187. package/plugins/smart-pro/skills/angular-components-table/SKILL.md +98 -0
  188. package/plugins/smart-pro/skills/angular-components-tabs/SKILL.md +99 -0
  189. package/plugins/smart-pro/skills/angular-components-textarea/SKILL.md +111 -0
  190. package/plugins/smart-pro/skills/angular-components-toggle/SKILL.md +109 -0
  191. package/plugins/smart-pro/skills/angular-components-vertical-navigation/SKILL.md +139 -0
  192. package/plugins/smart-pro/skills/audit-log/SKILL.md +82 -0
  193. package/plugins/smart-pro/skills/format-code/SKILL.md +46 -0
  194. package/plugins/smart-pro/skills/project-conventions/SKILL.md +90 -0
  195. package/plugins/smart-pro/skills/safety-check/SKILL.md +0 -0
  196. package/src/index.d.ts +6 -0
  197. package/src/index.js +7 -0
  198. package/src/index.js.map +1 -0
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: karpathy-guidelines
3
+ description: Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
4
+ license: MIT
5
+ ---
6
+
7
+ # Karpathy Guidelines
8
+
9
+ Behavioral guidelines to reduce common LLM coding mistakes, derived from [Andrej Karpathy's observations](https://x.com/karpathy/status/2015883857489522876) on LLM coding pitfalls.
10
+
11
+ **Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
12
+
13
+ ## 1. Think Before Coding
14
+
15
+ **Don't assume. Don't hide confusion. Surface tradeoffs.**
16
+
17
+ Before implementing:
18
+
19
+ - State your assumptions explicitly. If uncertain, ask.
20
+ - If multiple interpretations exist, present them - don't pick silently.
21
+ - If a simpler approach exists, say so. Push back when warranted.
22
+ - If something is unclear, stop. Name what's confusing. Ask.
23
+
24
+ ## 2. Simplicity First
25
+
26
+ **Minimum code that solves the problem. Nothing speculative.**
27
+
28
+ - No features beyond what was asked.
29
+ - No abstractions for single-use code.
30
+ - No "flexibility" or "configurability" that wasn't requested.
31
+ - No error handling for impossible scenarios.
32
+ - If you write 200 lines and it could be 50, rewrite it.
33
+
34
+ Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
35
+
36
+ ## 3. Surgical Changes
37
+
38
+ **Touch only what you must. Clean up only your own mess.**
39
+
40
+ When editing existing code:
41
+
42
+ - Don't "improve" adjacent code, comments, or formatting.
43
+ - Don't refactor things that aren't broken.
44
+ - Match existing style, even if you'd do it differently.
45
+ - If you notice unrelated dead code, mention it - don't delete it.
46
+
47
+ When your changes create orphans:
48
+
49
+ - Remove imports/variables/functions that YOUR changes made unused.
50
+ - Don't remove pre-existing dead code unless asked.
51
+
52
+ The test: Every changed line should trace directly to the user's request.
53
+
54
+ ## 4. Goal-Driven Execution
55
+
56
+ **Define success criteria. Loop until verified.**
57
+
58
+ Transform tasks into verifiable goals:
59
+
60
+ - "Add validation" → "Write tests for invalid inputs, then make them pass"
61
+ - "Fix the bug" → "Write a test that reproduces it, then make it pass"
62
+ - "Refactor X" → "Ensure tests pass before and after"
63
+
64
+ For multi-step tasks, state a brief plan:
65
+
66
+ ```
67
+ 1. [Step] → verify: [check]
68
+ 2. [Step] → verify: [check]
69
+ 3. [Step] → verify: [check]
70
+ ```
71
+
72
+ Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: linear-suggestion
3
+ description: Create a Linear issue in the "Framework 2.0" project with a suggestion for agent or skill improvements.
4
+ allowed-tools: mcp__linear__save_issue
5
+ ---
6
+
7
+ # Linear Suggestion
8
+
9
+ Create a Linear issue in the **Framework 2.0** project containing a suggestion for improving agent definitions or skills. Used by automated analysis agents to propose changes without blocking the workflow.
10
+
11
+ ## When to Use
12
+
13
+ - When an automated agent (e.g., `shared-parallelization-analyzer`) identifies a recurring pattern that could improve an agent or skill
14
+ - When proposing orchestrator rule changes based on parallelization analysis
15
+ - When any non-interactive process needs to suggest framework improvements
16
+
17
+ ## Input Parameters
18
+
19
+ The invoking agent must provide:
20
+
21
+ | Parameter | Required | Description |
22
+ | ------------- | -------- | ----------------------------------------------------------------------------- |
23
+ | `title` | YES | Short summary of the suggestion (max 100 chars) |
24
+ | `description` | YES | Full markdown description with rationale and proposed changes |
25
+ | `source` | YES | Agent that generated the suggestion (e.g., `shared-parallelization-analyzer`) |
26
+ | `targetFile` | NO | Path to the file to be modified (e.g., `agents/shared-impl-orchestrator.md`) |
27
+ | `category` | NO | One of: `OPTIMIZATION`, `NEW_RULE`, `PATTERN_UPDATE`, `BUG_FIX` |
28
+
29
+ ## Issue Format
30
+
31
+ ### Title
32
+
33
+ ```
34
+ [Agent Suggestion] {title}
35
+ ```
36
+
37
+ ### Description
38
+
39
+ ```markdown
40
+ ## Agent Improvement Suggestion
41
+
42
+ **Source agent**: `{source}`
43
+ **Category**: {category}
44
+ **Target file**: `{targetFile}`
45
+
46
+ ---
47
+
48
+ {description}
49
+
50
+ ---
51
+
52
+ _This issue was automatically created by `{source}` via the `linear-suggestion` skill._
53
+ _Review and apply manually if the suggestion is valid._
54
+ ```
55
+
56
+ ## Process
57
+
58
+ 1. **Format the issue title** with `[Agent Suggestion]` prefix
59
+ 2. **Build the description** using the template above, inserting all provided parameters
60
+ 3. **Create the issue** using MCP Linear server:
61
+
62
+ ```
63
+ Create issue in project "Framework 2.0":
64
+ - Title: [Agent Suggestion] {title}
65
+ - Description: {formatted description}
66
+ - Label: agent-evolution
67
+ ```
68
+
69
+ 4. **Return the issue ID and URL** to the invoking agent
70
+
71
+ ## Output Format
72
+
73
+ After successful creation, return:
74
+
75
+ ```
76
+ Linear issue created:
77
+ - ID: {issueId}
78
+ - Title: [Agent Suggestion] {title}
79
+ - URL: {issueUrl}
80
+ ```
81
+
82
+ ## Error Handling
83
+
84
+ If issue creation fails (e.g., MCP Linear server unavailable):
85
+
86
+ - Log the error silently
87
+ - Do NOT block the parent workflow
88
+ - Return a failure notice without throwing
89
+
90
+ ```
91
+ Linear suggestion skipped: {error reason}
92
+ ```
93
+
94
+ ## Example
95
+
96
+ **Input from `shared-parallelization-analyzer`:**
97
+
98
+ ```
99
+ title: Add parallel scaffolding rule to orchestrator
100
+ description: |
101
+ ### Observation
102
+
103
+ In 3 out of 5 recent tasks, scaffolding agents for independent files
104
+ (e.g., `angular-component-scaffolder` + `angular-service-builder`) were
105
+ marked as SEQ despite having no shared output files.
106
+
107
+ ### Proposed Change
108
+
109
+ Add to `shared-impl-orchestrator.md` → Execution Patterns → Parallel vs Sequential:
110
+
111
+ | Scenario | Pattern | Reason |
112
+ | --------------------------------------- | -------- | ------------------------------- |
113
+ | Multiple scaffolding for independent files | PARALLEL | No shared output files between scaffolders |
114
+
115
+ ### Evidence
116
+
117
+ - FRA-700: scaffold-component + scaffold-service (independent)
118
+ - FRA-705: scaffold-directive + scaffold-service (independent)
119
+ - FRA-710: scaffold-component + scaffold-pipe (independent)
120
+ source: shared-parallelization-analyzer
121
+ targetFile: packages/shared/claude-plugins/src/plugins/flow/agents/shared-impl-orchestrator.md
122
+ category: OPTIMIZATION
123
+ ```
124
+
125
+ **Created issue:**
126
+
127
+ ```
128
+ Linear issue created:
129
+ - ID: FRA-100
130
+ - Title: [Agent Suggestion] Add parallel scaffolding rule to orchestrator
131
+ - URL: https://linear.app/smartflow001/issue/FRA-100
132
+ ```
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: maia-files-delete
3
+ description: Delete a file from Maia API temporary storage.
4
+ allowed-tools: Bash
5
+ ---
6
+
7
+ # Maia Files Delete
8
+
9
+ Delete a file from Maia AI API temporary storage to free up space.
10
+
11
+ ## API Endpoint
12
+
13
+ ```
14
+ DELETE https://maia-ai-api.smartsoft.biz.pl/files/{id}
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ When given a file ID or URL, delete it:
20
+
21
+ ```bash
22
+ curl -s -X DELETE https://maia-ai-api.smartsoft.biz.pl/files/{id}
23
+ ```
24
+
25
+ ## Process
26
+
27
+ 1. Extract ID from input (can be full URL or just ID)
28
+ 2. Send DELETE request
29
+ 3. Confirm deletion
30
+
31
+ ## Input Formats
32
+
33
+ Accept either:
34
+
35
+ - Full URL: `https://maia-ai-api.smartsoft.biz.pl/files/abc123`
36
+ - Just ID: `abc123`
37
+
38
+ ## Output Format
39
+
40
+ After successful deletion:
41
+
42
+ ```
43
+ Deleted: {id}
44
+ ```
45
+
46
+ ## Batch Deletion
47
+
48
+ When given multiple IDs, delete them all:
49
+
50
+ ```bash
51
+ for id in id1 id2 id3; do
52
+ curl -s -X DELETE "https://maia-ai-api.smartsoft.biz.pl/files/$id"
53
+ echo "Deleted: $id"
54
+ done
55
+ ```
56
+
57
+ ## Error Handling
58
+
59
+ If deletion fails, report the error but continue with remaining files.
@@ -0,0 +1,57 @@
1
+ ---
2
+ name: maia-files-upload
3
+ description: Upload a file to Maia API temporary storage.
4
+ allowed-tools: Bash
5
+ ---
6
+
7
+ # Maia Files Upload
8
+
9
+ Upload a file to the Maia AI API temporary storage and get a URL for use in Linear comments or markdown.
10
+
11
+ ## API Endpoint
12
+
13
+ ```
14
+ POST https://maia-ai-api.smartsoft.biz.pl/files
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ When given a file path, upload it:
20
+
21
+ ```bash
22
+ curl -s -X POST https://maia-ai-api.smartsoft.biz.pl/files \
23
+ -F "file=@/path/to/file.png"
24
+ ```
25
+
26
+ ## Response
27
+
28
+ ```json
29
+ { "id": "abc123def456" }
30
+ ```
31
+
32
+ ## Result URL
33
+
34
+ ```
35
+ https://maia-ai-api.smartsoft.biz.pl/files/{id}
36
+ ```
37
+
38
+ ## Process
39
+
40
+ 1. Validate file exists: `test -f "/path/to/file" && echo "OK"`
41
+ 2. Upload file using curl
42
+ 3. Extract ID from JSON response
43
+ 4. Return ID and full URL
44
+
45
+ ## Output Format
46
+
47
+ After successful upload, return:
48
+
49
+ ```
50
+ Uploaded: {filename}
51
+ ID: {id}
52
+ URL: https://maia-ai-api.smartsoft.biz.pl/files/{id}
53
+ ```
54
+
55
+ ## Error Handling
56
+
57
+ If file doesn't exist or upload fails, report the error clearly.
@@ -0,0 +1,326 @@
1
+ ---
2
+ name: nx-conventions
3
+ description: Nx monorepo patterns, workspace organization, and build conventions
4
+ ---
5
+
6
+ # Nx Conventions
7
+
8
+ This skill provides guidance on Nx monorepo patterns for this project.
9
+
10
+ ## 1. Workspace Structure
11
+
12
+ ```
13
+ /
14
+ ├── apps/
15
+ │ ├── web/ # Main Angular SSR application
16
+ │ └── web-e2e/ # Cypress E2E tests
17
+ ├── libs/
18
+ │ └── shared/
19
+ │ └── angular/ # Shared Angular library
20
+ ├── tools/
21
+ │ ├── specs/ # Project specifications
22
+ │ └── mockups/ # Design mockups
23
+ ├── nx.json # Nx workspace configuration
24
+ ├── tsconfig.base.json # Base TypeScript config
25
+ └── package.json
26
+ ```
27
+
28
+ ## 2. Project Naming
29
+
30
+ | Type | Pattern | Example |
31
+ | ------------------- | ------------------------ | ------------------------------ |
32
+ | Apps | `{name}` | `web`, `api` |
33
+ | E2E | `{app}-e2e` | `web-e2e` |
34
+ | Domain libs | `{domain}-domain` | `museum-objects-domain` |
35
+ | Angular libs | `{domain}-shell-angular` | `museum-objects-shell-angular` |
36
+ | Shared angular libs | `shared-angular` | `shared-angular` |
37
+
38
+ ## 3. Common Nx Commands
39
+
40
+ ### Development
41
+
42
+ ```bash
43
+ # Serve application
44
+ nx serve web
45
+
46
+ # Serve with specific configuration
47
+ nx serve web --configuration=development
48
+
49
+ # Build application
50
+ nx build web
51
+
52
+ # Build for production
53
+ nx build web --configuration=production
54
+ ```
55
+
56
+ ### Testing
57
+
58
+ ```bash
59
+ # Run unit tests
60
+ nx test web
61
+ nx test shared-angular
62
+
63
+ # Run tests with coverage
64
+ nx test web --coverage
65
+
66
+ # Run tests in watch mode
67
+ nx test web --watch
68
+
69
+ # Run E2E tests
70
+ nx e2e web-e2e
71
+
72
+ # Open Cypress
73
+ nx open-cypress web-e2e
74
+ ```
75
+
76
+ ### Linting
77
+
78
+ ```bash
79
+ # Lint project
80
+ nx lint web
81
+ nx lint shared-angular
82
+
83
+ # Lint all affected projects
84
+ nx affected --target=lint
85
+ ```
86
+
87
+ ### Building
88
+
89
+ ```bash
90
+ # Build single project
91
+ nx build web
92
+
93
+ # Build affected projects
94
+ nx affected --target=build
95
+
96
+ # Show dependency graph
97
+ nx graph
98
+ ```
99
+
100
+ ## 4. Affected Commands
101
+
102
+ Run tasks only on changed projects:
103
+
104
+ ```bash
105
+ # Test affected
106
+ nx affected --target=test
107
+
108
+ # Lint affected
109
+ nx affected --target=lint
110
+
111
+ # Build affected
112
+ nx affected --target=build
113
+
114
+ # Specify base branch
115
+ nx affected --target=test --base=main
116
+ ```
117
+
118
+ ## 5. Project Configuration
119
+
120
+ ### project.json
121
+
122
+ ```json
123
+ {
124
+ "name": "web",
125
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
126
+ "projectType": "application",
127
+ "sourceRoot": "apps/web/src",
128
+ "prefix": "app",
129
+ "targets": {
130
+ "build": {
131
+ "executor": "@angular-devkit/build-angular:application",
132
+ "options": {
133
+ "outputPath": "dist/apps/web",
134
+ "index": "apps/web/src/index.html",
135
+ "browser": "apps/web/src/main.ts",
136
+ "polyfills": ["zone.js"],
137
+ "tsConfig": "apps/web/tsconfig.app.json"
138
+ },
139
+ "configurations": {
140
+ "production": {
141
+ "budgets": [
142
+ {
143
+ "type": "initial",
144
+ "maximumWarning": "2MB",
145
+ "maximumError": "4MB"
146
+ }
147
+ ],
148
+ "outputHashing": "all"
149
+ },
150
+ "development": {
151
+ "optimization": false,
152
+ "sourceMap": true
153
+ }
154
+ },
155
+ "defaultConfiguration": "development"
156
+ },
157
+ "serve": {
158
+ "executor": "@angular-devkit/build-angular:dev-server",
159
+ "options": {
160
+ "port": 4210
161
+ }
162
+ },
163
+ "test": {
164
+ "executor": "@nx/jest:jest",
165
+ "options": {
166
+ "jestConfig": "apps/web/jest.config.ts",
167
+ "passWithNoTests": true
168
+ },
169
+ "configurations": {
170
+ "ci": {
171
+ "codeCoverage": true
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ ```
178
+
179
+ ## 6. Path Mappings
180
+
181
+ In `tsconfig.base.json`:
182
+
183
+ ```json
184
+ {
185
+ "compilerOptions": {
186
+ "paths": {
187
+ "@shared/angular": ["libs/shared/angular/src/index.ts"],
188
+ "@shared/angular/*": ["libs/shared/angular/src/lib/*"]
189
+ }
190
+ }
191
+ }
192
+ ```
193
+
194
+ Usage:
195
+
196
+ ```typescript
197
+ import { SharedModule } from '@shared/angular';
198
+ import { MyService } from '@shared/angular/services';
199
+ ```
200
+
201
+ ## 7. Library Types
202
+
203
+ ### Feature Library
204
+
205
+ Contains smart components, routes, and business logic.
206
+
207
+ ```typescript
208
+ // libs/museum/feature-objects/src/index.ts
209
+ export * from './lib/objects.routes';
210
+ export * from './lib/containers';
211
+ ```
212
+
213
+ ### UI Library
214
+
215
+ Contains presentational (dumb) components only.
216
+
217
+ ```typescript
218
+ // libs/shared/ui/src/index.ts
219
+ export * from './lib/button/button.component';
220
+ export * from './lib/card/card.component';
221
+ ```
222
+
223
+ ### Data Access Library
224
+
225
+ Contains services, state management, and API calls.
226
+
227
+ ```typescript
228
+ // libs/museum/data-access/src/index.ts
229
+ export * from './lib/services/objects.service';
230
+ export * from './lib/+state/objects.facade';
231
+ ```
232
+
233
+ ### Utility Library
234
+
235
+ Contains pure functions, helpers, and utilities.
236
+
237
+ ```typescript
238
+ // libs/shared/util-forms/src/index.ts
239
+ export * from './lib/validators';
240
+ export * from './lib/form-helpers';
241
+ ```
242
+
243
+ ## 8. Caching
244
+
245
+ Nx caches task results. Configure in `nx.json`:
246
+
247
+ ```json
248
+ {
249
+ "targetDefaults": {
250
+ "build": {
251
+ "cache": true,
252
+ "dependsOn": ["^build"]
253
+ },
254
+ "test": {
255
+ "cache": true
256
+ },
257
+ "lint": {
258
+ "cache": true
259
+ }
260
+ }
261
+ }
262
+ ```
263
+
264
+ ## 9. Task Dependencies
265
+
266
+ Define task execution order:
267
+
268
+ ```json
269
+ {
270
+ "targetDefaults": {
271
+ "build": {
272
+ "dependsOn": ["^build"]
273
+ },
274
+ "test": {
275
+ "dependsOn": ["build"]
276
+ }
277
+ }
278
+ }
279
+ ```
280
+
281
+ - `^build` means build dependencies first
282
+ - `build` means build this project first
283
+
284
+ ## 10. Generators
285
+
286
+ Create new code with generators:
287
+
288
+ ```bash
289
+ # Generate Angular component
290
+ nx g @nx/angular:component my-component --project=shared-angular
291
+
292
+ # Generate Angular service
293
+ nx g @nx/angular:service my-service --project=shared-angular
294
+
295
+ # Generate library
296
+ nx g @nx/angular:library my-lib --directory=shared
297
+
298
+ # Dry run (preview changes)
299
+ nx g @nx/angular:component my-component --dry-run
300
+ ```
301
+
302
+ ## 11. CI/CD Integration
303
+
304
+ ```yaml
305
+ # Example GitHub Actions
306
+ - name: Install dependencies
307
+ run: npm ci
308
+
309
+ - name: Run affected lint
310
+ run: npx nx affected --target=lint --base=origin/main
311
+
312
+ - name: Run affected test
313
+ run: npx nx affected --target=test --base=origin/main --configuration=ci
314
+
315
+ - name: Run affected build
316
+ run: npx nx affected --target=build --base=origin/main --configuration=production
317
+ ```
318
+
319
+ ## 12. Best Practices
320
+
321
+ 1. **Keep apps thin** - Business logic in libraries
322
+ 2. **Use affected** - Only build/test what changed
323
+ 3. **Leverage caching** - Let Nx cache task results
324
+ 4. **Consistent naming** - Follow naming conventions
325
+ 5. **Define boundaries** - Use tags and constraints
326
+ 6. **Path aliases** - Use `@scope/lib` imports