@smartsoft001-mobilems/claude-plugins 2.58.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 (52) hide show
  1. package/.claude-plugin/marketplace.json +14 -0
  2. package/package.json +13 -0
  3. package/plugins/flow/.claude-plugin/plugin.json +5 -0
  4. package/plugins/flow/agents/angular-component-scaffolder.md +174 -0
  5. package/plugins/flow/agents/angular-directive-builder.md +152 -0
  6. package/plugins/flow/agents/angular-guard-builder.md +242 -0
  7. package/plugins/flow/agents/angular-jest-test-writer.md +473 -0
  8. package/plugins/flow/agents/angular-pipe-builder.md +168 -0
  9. package/plugins/flow/agents/angular-resolver-builder.md +285 -0
  10. package/plugins/flow/agents/angular-service-builder.md +160 -0
  11. package/plugins/flow/agents/angular-signal-state-builder.md +338 -0
  12. package/plugins/flow/agents/angular-test-diagnostician.md +278 -0
  13. package/plugins/flow/agents/angular-testbed-configurator.md +314 -0
  14. package/plugins/flow/agents/arch-scaffolder.md +277 -0
  15. package/plugins/flow/agents/shared-build-verifier.md +159 -0
  16. package/plugins/flow/agents/shared-config-updater.md +309 -0
  17. package/plugins/flow/agents/shared-coverage-enforcer.md +183 -0
  18. package/plugins/flow/agents/shared-error-handler.md +216 -0
  19. package/plugins/flow/agents/shared-file-creator.md +343 -0
  20. package/plugins/flow/agents/shared-impl-orchestrator.md +309 -0
  21. package/plugins/flow/agents/shared-impl-reporter.md +338 -0
  22. package/plugins/flow/agents/shared-linear-subtask-iterator.md +336 -0
  23. package/plugins/flow/agents/shared-logic-implementer.md +242 -0
  24. package/plugins/flow/agents/shared-maia-api.md +25 -0
  25. package/plugins/flow/agents/shared-performance-validator.md +167 -0
  26. package/plugins/flow/agents/shared-project-standardizer.md +204 -0
  27. package/plugins/flow/agents/shared-security-scanner.md +185 -0
  28. package/plugins/flow/agents/shared-style-enforcer.md +229 -0
  29. package/plugins/flow/agents/shared-tdd-developer.md +349 -0
  30. package/plugins/flow/agents/shared-test-fixer.md +185 -0
  31. package/plugins/flow/agents/shared-test-runner.md +190 -0
  32. package/plugins/flow/agents/shared-ui-classifier.md +229 -0
  33. package/plugins/flow/agents/shared-verification-orchestrator.md +193 -0
  34. package/plugins/flow/agents/shared-verification-runner.md +139 -0
  35. package/plugins/flow/agents/ui-a11y-validator.md +304 -0
  36. package/plugins/flow/agents/ui-screenshot-reporter.md +328 -0
  37. package/plugins/flow/agents/ui-web-designer.md +213 -0
  38. package/plugins/flow/commands/commit.md +131 -0
  39. package/plugins/flow/commands/impl.md +625 -0
  40. package/plugins/flow/commands/plan.md +598 -0
  41. package/plugins/flow/commands/push.md +584 -0
  42. package/plugins/flow/skills/a11y-audit/SKILL.md +214 -0
  43. package/plugins/flow/skills/angular-patterns/SKILL.md +191 -0
  44. package/plugins/flow/skills/browser-capture/SKILL.md +238 -0
  45. package/plugins/flow/skills/debug-helper/SKILL.md +375 -0
  46. package/plugins/flow/skills/maia-files-delete/SKILL.md +60 -0
  47. package/plugins/flow/skills/maia-files-upload/SKILL.md +58 -0
  48. package/plugins/flow/skills/nx-conventions/SKILL.md +327 -0
  49. package/plugins/flow/skills/test-unit/SKILL.md +456 -0
  50. package/src/index.d.ts +6 -0
  51. package/src/index.js +10 -0
  52. package/src/index.js.map +1 -0
@@ -0,0 +1,327 @@
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
+ | Feature libs | `{domain}-feature-{name}` | `museum-feature-objects` |
35
+ | UI libs | `{scope}-ui` | `shared-ui` |
36
+ | Data libs | `{domain}-data-access` | `museum-data-access` |
37
+ | Util libs | `{scope}-util-{name}` | `shared-util-forms` |
38
+
39
+ ## 3. Common Nx Commands
40
+
41
+ ### Development
42
+
43
+ ```bash
44
+ # Serve application
45
+ nx serve web
46
+
47
+ # Serve with specific configuration
48
+ nx serve web --configuration=development
49
+
50
+ # Build application
51
+ nx build web
52
+
53
+ # Build for production
54
+ nx build web --configuration=production
55
+ ```
56
+
57
+ ### Testing
58
+
59
+ ```bash
60
+ # Run unit tests
61
+ nx test web
62
+ nx test shared-angular
63
+
64
+ # Run tests with coverage
65
+ nx test web --coverage
66
+
67
+ # Run tests in watch mode
68
+ nx test web --watch
69
+
70
+ # Run E2E tests
71
+ nx e2e web-e2e
72
+
73
+ # Open Cypress
74
+ nx open-cypress web-e2e
75
+ ```
76
+
77
+ ### Linting
78
+
79
+ ```bash
80
+ # Lint project
81
+ nx lint web
82
+ nx lint shared-angular
83
+
84
+ # Lint all affected projects
85
+ nx affected --target=lint
86
+ ```
87
+
88
+ ### Building
89
+
90
+ ```bash
91
+ # Build single project
92
+ nx build web
93
+
94
+ # Build affected projects
95
+ nx affected --target=build
96
+
97
+ # Show dependency graph
98
+ nx graph
99
+ ```
100
+
101
+ ## 4. Affected Commands
102
+
103
+ Run tasks only on changed projects:
104
+
105
+ ```bash
106
+ # Test affected
107
+ nx affected --target=test
108
+
109
+ # Lint affected
110
+ nx affected --target=lint
111
+
112
+ # Build affected
113
+ nx affected --target=build
114
+
115
+ # Specify base branch
116
+ nx affected --target=test --base=main
117
+ ```
118
+
119
+ ## 5. Project Configuration
120
+
121
+ ### project.json
122
+
123
+ ```json
124
+ {
125
+ "name": "web",
126
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
127
+ "projectType": "application",
128
+ "sourceRoot": "apps/web/src",
129
+ "prefix": "app",
130
+ "targets": {
131
+ "build": {
132
+ "executor": "@angular-devkit/build-angular:application",
133
+ "options": {
134
+ "outputPath": "dist/apps/web",
135
+ "index": "apps/web/src/index.html",
136
+ "browser": "apps/web/src/main.ts",
137
+ "polyfills": ["zone.js"],
138
+ "tsConfig": "apps/web/tsconfig.app.json"
139
+ },
140
+ "configurations": {
141
+ "production": {
142
+ "budgets": [
143
+ {
144
+ "type": "initial",
145
+ "maximumWarning": "2MB",
146
+ "maximumError": "4MB"
147
+ }
148
+ ],
149
+ "outputHashing": "all"
150
+ },
151
+ "development": {
152
+ "optimization": false,
153
+ "sourceMap": true
154
+ }
155
+ },
156
+ "defaultConfiguration": "development"
157
+ },
158
+ "serve": {
159
+ "executor": "@angular-devkit/build-angular:dev-server",
160
+ "options": {
161
+ "port": 4210
162
+ }
163
+ },
164
+ "test": {
165
+ "executor": "@nx/jest:jest",
166
+ "options": {
167
+ "jestConfig": "apps/web/jest.config.ts",
168
+ "passWithNoTests": true
169
+ },
170
+ "configurations": {
171
+ "ci": {
172
+ "codeCoverage": true
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ ```
179
+
180
+ ## 6. Path Mappings
181
+
182
+ In `tsconfig.base.json`:
183
+
184
+ ```json
185
+ {
186
+ "compilerOptions": {
187
+ "paths": {
188
+ "@shared/angular": ["libs/shared/angular/src/index.ts"],
189
+ "@shared/angular/*": ["libs/shared/angular/src/lib/*"]
190
+ }
191
+ }
192
+ }
193
+ ```
194
+
195
+ Usage:
196
+
197
+ ```typescript
198
+ import { SharedModule } from '@shared/angular';
199
+ import { MyService } from '@shared/angular/services';
200
+ ```
201
+
202
+ ## 7. Library Types
203
+
204
+ ### Feature Library
205
+
206
+ Contains smart components, routes, and business logic.
207
+
208
+ ```typescript
209
+ // libs/museum/feature-objects/src/index.ts
210
+ export * from './lib/objects.routes';
211
+ export * from './lib/containers';
212
+ ```
213
+
214
+ ### UI Library
215
+
216
+ Contains presentational (dumb) components only.
217
+
218
+ ```typescript
219
+ // libs/shared/ui/src/index.ts
220
+ export * from './lib/button/button.component';
221
+ export * from './lib/card/card.component';
222
+ ```
223
+
224
+ ### Data Access Library
225
+
226
+ Contains services, state management, and API calls.
227
+
228
+ ```typescript
229
+ // libs/museum/data-access/src/index.ts
230
+ export * from './lib/services/objects.service';
231
+ export * from './lib/+state/objects.facade';
232
+ ```
233
+
234
+ ### Utility Library
235
+
236
+ Contains pure functions, helpers, and utilities.
237
+
238
+ ```typescript
239
+ // libs/shared/util-forms/src/index.ts
240
+ export * from './lib/validators';
241
+ export * from './lib/form-helpers';
242
+ ```
243
+
244
+ ## 8. Caching
245
+
246
+ Nx caches task results. Configure in `nx.json`:
247
+
248
+ ```json
249
+ {
250
+ "targetDefaults": {
251
+ "build": {
252
+ "cache": true,
253
+ "dependsOn": ["^build"]
254
+ },
255
+ "test": {
256
+ "cache": true
257
+ },
258
+ "lint": {
259
+ "cache": true
260
+ }
261
+ }
262
+ }
263
+ ```
264
+
265
+ ## 9. Task Dependencies
266
+
267
+ Define task execution order:
268
+
269
+ ```json
270
+ {
271
+ "targetDefaults": {
272
+ "build": {
273
+ "dependsOn": ["^build"]
274
+ },
275
+ "test": {
276
+ "dependsOn": ["build"]
277
+ }
278
+ }
279
+ }
280
+ ```
281
+
282
+ - `^build` means build dependencies first
283
+ - `build` means build this project first
284
+
285
+ ## 10. Generators
286
+
287
+ Create new code with generators:
288
+
289
+ ```bash
290
+ # Generate Angular component
291
+ nx g @nx/angular:component my-component --project=shared-angular
292
+
293
+ # Generate Angular service
294
+ nx g @nx/angular:service my-service --project=shared-angular
295
+
296
+ # Generate library
297
+ nx g @nx/angular:library my-lib --directory=shared
298
+
299
+ # Dry run (preview changes)
300
+ nx g @nx/angular:component my-component --dry-run
301
+ ```
302
+
303
+ ## 11. CI/CD Integration
304
+
305
+ ```yaml
306
+ # Example GitHub Actions
307
+ - name: Install dependencies
308
+ run: npm ci
309
+
310
+ - name: Run affected lint
311
+ run: npx nx affected --target=lint --base=origin/main
312
+
313
+ - name: Run affected test
314
+ run: npx nx affected --target=test --base=origin/main --configuration=ci
315
+
316
+ - name: Run affected build
317
+ run: npx nx affected --target=build --base=origin/main --configuration=production
318
+ ```
319
+
320
+ ## 12. Best Practices
321
+
322
+ 1. **Keep apps thin** - Business logic in libraries
323
+ 2. **Use affected** - Only build/test what changed
324
+ 3. **Leverage caching** - Let Nx cache task results
325
+ 4. **Consistent naming** - Follow naming conventions
326
+ 5. **Define boundaries** - Use tags and constraints
327
+ 6. **Path aliases** - Use `@scope/lib` imports