@smartsoft001-mobilems/claude-plugins 2.84.0 → 2.86.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 (136) hide show
  1. package/.claude-plugin/marketplace.json +2 -6
  2. package/README.md +97 -0
  3. package/package.json +2 -2
  4. package/plugins/flow/scripts/refresh-mobilems-api-spec.sh +372 -0
  5. package/plugins/flow/skills/mobilems-docs-reader/SKILL.md +116 -0
  6. package/plugins/flow-external/scripts/refresh-mobilems-api-spec.sh +372 -0
  7. package/plugins/flow-external/skills/mobilems-docs-reader/SKILL.md +116 -0
  8. package/plugins/flow-legacy/scripts/refresh-mobilems-api-spec.sh +372 -0
  9. package/plugins/flow-legacy/skills/mobilems-docs-reader/SKILL.md +116 -0
  10. package/plugins/mobilems/.claude-plugin/README.md +30 -0
  11. package/plugins/mobilems/.claude-plugin/plugin.json +5 -0
  12. package/plugins/mobilems/scripts/refresh-mobilems-api-spec.sh +372 -0
  13. package/plugins/mobilems/skills/mobilems-docs-reader/SKILL.md +116 -0
  14. package/plugins/flow/.claude-plugin/README.md +0 -91
  15. package/plugins/flow/.claude-plugin/merge-permissions.js +0 -97
  16. package/plugins/flow/.claude-plugin/plugin.json +0 -5
  17. package/plugins/flow/.claude-plugin/settings.template.json +0 -86
  18. package/plugins/flow/agents/angular-component-scaffolder.md +0 -175
  19. package/plugins/flow/agents/angular-directive-builder.md +0 -153
  20. package/plugins/flow/agents/angular-guard-builder.md +0 -243
  21. package/plugins/flow/agents/angular-jest-test-writer.md +0 -474
  22. package/plugins/flow/agents/angular-pipe-builder.md +0 -169
  23. package/plugins/flow/agents/angular-resolver-builder.md +0 -286
  24. package/plugins/flow/agents/angular-service-builder.md +0 -161
  25. package/plugins/flow/agents/angular-signal-state-builder.md +0 -339
  26. package/plugins/flow/agents/angular-test-diagnostician.md +0 -279
  27. package/plugins/flow/agents/angular-testbed-configurator.md +0 -315
  28. package/plugins/flow/agents/arch-scaffolder.md +0 -278
  29. package/plugins/flow/agents/e2e-data-testid-injector.md +0 -197
  30. package/plugins/flow/agents/e2e-project-scaffolder.md +0 -194
  31. package/plugins/flow/agents/e2e-test-writer.md +0 -350
  32. package/plugins/flow/agents/shared-agent-evolver.md +0 -294
  33. package/plugins/flow/agents/shared-build-verifier.md +0 -160
  34. package/plugins/flow/agents/shared-config-updater.md +0 -310
  35. package/plugins/flow/agents/shared-coverage-enforcer.md +0 -184
  36. package/plugins/flow/agents/shared-error-handler.md +0 -217
  37. package/plugins/flow/agents/shared-file-creator.md +0 -344
  38. package/plugins/flow/agents/shared-impl-orchestrator.md +0 -312
  39. package/plugins/flow/agents/shared-impl-reporter.md +0 -339
  40. package/plugins/flow/agents/shared-impl-teammate.md +0 -201
  41. package/plugins/flow/agents/shared-linear-subtask-iterator.md +0 -337
  42. package/plugins/flow/agents/shared-logic-implementer.md +0 -243
  43. package/plugins/flow/agents/shared-maia-api.md +0 -26
  44. package/plugins/flow/agents/shared-parallelization-analyzer.md +0 -343
  45. package/plugins/flow/agents/shared-performance-validator.md +0 -168
  46. package/plugins/flow/agents/shared-plan-perspective.md +0 -269
  47. package/plugins/flow/agents/shared-project-standardizer.md +0 -205
  48. package/plugins/flow/agents/shared-report-synthesizer.md +0 -188
  49. package/plugins/flow/agents/shared-review-teammate.md +0 -189
  50. package/plugins/flow/agents/shared-security-scanner.md +0 -186
  51. package/plugins/flow/agents/shared-style-enforcer.md +0 -230
  52. package/plugins/flow/agents/shared-subtask-dependency-analyzer.md +0 -188
  53. package/plugins/flow/agents/shared-tdd-developer.md +0 -350
  54. package/plugins/flow/agents/shared-team-coordinator.md +0 -189
  55. package/plugins/flow/agents/shared-test-fixer.md +0 -186
  56. package/plugins/flow/agents/shared-test-runner.md +0 -191
  57. package/plugins/flow/agents/shared-ui-classifier.md +0 -263
  58. package/plugins/flow/agents/shared-verification-orchestrator.md +0 -194
  59. package/plugins/flow/agents/shared-verification-runner.md +0 -140
  60. package/plugins/flow/agents/ui-a11y-validator.md +0 -305
  61. package/plugins/flow/agents/ui-screenshot-reporter.md +0 -329
  62. package/plugins/flow/agents/ui-web-designer.md +0 -214
  63. package/plugins/flow/skills/a11y-audit/SKILL.md +0 -214
  64. package/plugins/flow/skills/angular-patterns/SKILL.md +0 -191
  65. package/plugins/flow/skills/browser-capture/SKILL.md +0 -238
  66. package/plugins/flow/skills/commit/SKILL.md +0 -259
  67. package/plugins/flow/skills/debug-helper/SKILL.md +0 -375
  68. package/plugins/flow/skills/impl/SKILL.md +0 -992
  69. package/plugins/flow/skills/linear-suggestion/SKILL.md +0 -132
  70. package/plugins/flow/skills/maia-files-delete/SKILL.md +0 -59
  71. package/plugins/flow/skills/maia-files-upload/SKILL.md +0 -57
  72. package/plugins/flow/skills/nx-conventions/SKILL.md +0 -326
  73. package/plugins/flow/skills/plan/SKILL.md +0 -1003
  74. package/plugins/flow/skills/push/SKILL.md +0 -737
  75. package/plugins/flow/skills/review/SKILL.md +0 -443
  76. package/plugins/flow/skills/test-e2e/SKILL.md +0 -161
  77. package/plugins/flow/skills/test-unit/SKILL.md +0 -456
  78. package/plugins/flow-external/.claude-plugin/README.md +0 -152
  79. package/plugins/flow-external/.claude-plugin/merge-permissions.js +0 -80
  80. package/plugins/flow-external/.claude-plugin/plugin.json +0 -5
  81. package/plugins/flow-external/.claude-plugin/settings.template.json +0 -78
  82. package/plugins/flow-external/agents/angular-component-scaffolder.md +0 -269
  83. package/plugins/flow-external/agents/angular-directive-builder.md +0 -130
  84. package/plugins/flow-external/agents/angular-guard-builder.md +0 -70
  85. package/plugins/flow-external/agents/angular-pipe-builder.md +0 -82
  86. package/plugins/flow-external/agents/angular-resolver-builder.md +0 -74
  87. package/plugins/flow-external/agents/angular-service-builder.md +0 -160
  88. package/plugins/flow-external/agents/angular-state-builder.md +0 -254
  89. package/plugins/flow-external/agents/shared-build-verifier.md +0 -67
  90. package/plugins/flow-external/agents/shared-impl-orchestrator.md +0 -88
  91. package/plugins/flow-external/agents/shared-impl-reporter.md +0 -107
  92. package/plugins/flow-external/agents/shared-linear-subtask-iterator.md +0 -70
  93. package/plugins/flow-external/agents/shared-ui-classifier.md +0 -38
  94. package/plugins/flow-external/agents/ui-web-designer.md +0 -179
  95. package/plugins/flow-external/skills/a11y-audit/SKILL.md +0 -96
  96. package/plugins/flow-external/skills/angular-cli-conventions/SKILL.md +0 -267
  97. package/plugins/flow-external/skills/angular-patterns/SKILL.md +0 -170
  98. package/plugins/flow-external/skills/browser-capture/SKILL.md +0 -68
  99. package/plugins/flow-external/skills/commit/SKILL.md +0 -114
  100. package/plugins/flow-external/skills/debug-helper/SKILL.md +0 -131
  101. package/plugins/flow-external/skills/impl/SKILL.md +0 -217
  102. package/plugins/flow-external/skills/linear-suggestion/SKILL.md +0 -62
  103. package/plugins/flow-external/skills/maia-files-delete/SKILL.md +0 -34
  104. package/plugins/flow-external/skills/maia-files-upload/SKILL.md +0 -41
  105. package/plugins/flow-external/skills/plan/SKILL.md +0 -302
  106. package/plugins/flow-external/skills/push/SKILL.md +0 -210
  107. package/plugins/flow-legacy/.claude-plugin/README.md +0 -143
  108. package/plugins/flow-legacy/.claude-plugin/merge-permissions.js +0 -94
  109. package/plugins/flow-legacy/.claude-plugin/plugin.json +0 -5
  110. package/plugins/flow-legacy/.claude-plugin/settings.template.json +0 -79
  111. package/plugins/flow-legacy/agents/angular-component-scaffolder.md +0 -323
  112. package/plugins/flow-legacy/agents/angular-directive-builder.md +0 -258
  113. package/plugins/flow-legacy/agents/angular-guard-builder.md +0 -322
  114. package/plugins/flow-legacy/agents/angular-pipe-builder.md +0 -227
  115. package/plugins/flow-legacy/agents/angular-resolver-builder.md +0 -332
  116. package/plugins/flow-legacy/agents/angular-service-builder.md +0 -271
  117. package/plugins/flow-legacy/agents/angular-state-builder.md +0 -479
  118. package/plugins/flow-legacy/agents/shared-impl-orchestrator.md +0 -174
  119. package/plugins/flow-legacy/agents/shared-impl-reporter.md +0 -204
  120. package/plugins/flow-legacy/agents/shared-linear-subtask-iterator.md +0 -187
  121. package/plugins/flow-legacy/agents/shared-tdd-developer.md +0 -306
  122. package/plugins/flow-legacy/agents/shared-test-runner.md +0 -131
  123. package/plugins/flow-legacy/agents/shared-ui-classifier.md +0 -145
  124. package/plugins/flow-legacy/skills/a11y-audit/SKILL.md +0 -214
  125. package/plugins/flow-legacy/skills/angular-patterns/SKILL.md +0 -346
  126. package/plugins/flow-legacy/skills/browser-capture/SKILL.md +0 -238
  127. package/plugins/flow-legacy/skills/commit/SKILL.md +0 -215
  128. package/plugins/flow-legacy/skills/debug-helper/SKILL.md +0 -395
  129. package/plugins/flow-legacy/skills/impl/SKILL.md +0 -710
  130. package/plugins/flow-legacy/skills/linear-suggestion/SKILL.md +0 -132
  131. package/plugins/flow-legacy/skills/maia-files-delete/SKILL.md +0 -59
  132. package/plugins/flow-legacy/skills/maia-files-upload/SKILL.md +0 -57
  133. package/plugins/flow-legacy/skills/nx-conventions/SKILL.md +0 -368
  134. package/plugins/flow-legacy/skills/plan/SKILL.md +0 -708
  135. package/plugins/flow-legacy/skills/push/SKILL.md +0 -623
  136. package/plugins/flow-legacy/skills/test-unit/SKILL.md +0 -500
@@ -1,456 +0,0 @@
1
- ---
2
- name: test-unit
3
- description: Write unit tests following project conventions. Generates Jest tests for Angular components, services, and NestJS services using AAA pattern.
4
- allowed-tools:
5
- - Bash
6
- - Read
7
- - Write
8
- - Edit
9
- - Glob
10
- - Grep
11
- ---
12
-
13
- # Unit Test Skill
14
-
15
- Write unit tests following project conventions using Jest framework with AAA (Arrange-Act-Assert) pattern.
16
-
17
- ## Testing Framework
18
-
19
- - **Framework**: Jest for all unit tests
20
- - **File naming**: `{name}.spec.ts` alongside source files
21
- - **Test runner**: Nx (`nx test {project}`)
22
-
23
- ## Test File Location
24
-
25
- Place test files next to the source files they test:
26
-
27
- ```
28
- feature/
29
- ├── feature.service.ts
30
- ├── feature.service.spec.ts
31
- ├── feature.component.ts
32
- └── feature.component.spec.ts
33
- ```
34
-
35
- ## Naming Convention
36
-
37
- - **Describe blocks**: `@{package-name}: ClassName`
38
- - **Test format**: `it('should...')` with clear behavior description
39
-
40
- ## Test Structure (AAA Pattern)
41
-
42
- Always use Arrange-Act-Assert pattern with blank line separation (no comments):
43
-
44
- ```typescript
45
- it('should perform expected operation', () => {
46
- const input = 'test';
47
-
48
- const result = service.performOperation(input);
49
-
50
- expect(result).toBe('expected output');
51
- });
52
- ```
53
-
54
- ## Angular Component Testing
55
-
56
- ### Basic Component Test
57
-
58
- ```typescript
59
- import { ComponentFixture, TestBed } from '@angular/core/testing';
60
-
61
- import { FeatureComponent } from './feature.component';
62
-
63
- describe('@mms/shared-angular: FeatureComponent', () => {
64
- let component: FeatureComponent;
65
- let fixture: ComponentFixture<FeatureComponent>;
66
-
67
- beforeEach(async () => {
68
- await TestBed.configureTestingModule({
69
- imports: [FeatureComponent], // Standalone components
70
- }).compileComponents();
71
-
72
- fixture = TestBed.createComponent(FeatureComponent);
73
- component = fixture.componentInstance;
74
- fixture.detectChanges();
75
- });
76
-
77
- it('should create', () => {
78
- expect(component).toBeTruthy();
79
- });
80
-
81
- it('should display expected content', () => {
82
- component.title = 'Test Title';
83
- fixture.detectChanges();
84
-
85
- const compiled = fixture.nativeElement;
86
- expect(compiled.querySelector('h1')?.textContent).toContain('Test Title');
87
- });
88
- });
89
- ```
90
-
91
- ### Testing Signal-based Components
92
-
93
- ```typescript
94
- import { ComponentFixture, TestBed } from '@angular/core/testing';
95
- import { signal } from '@angular/core';
96
-
97
- import { SignalComponent } from './signal.component';
98
-
99
- describe('@mms/shared-angular: SignalComponent', () => {
100
- let component: SignalComponent;
101
- let fixture: ComponentFixture<SignalComponent>;
102
-
103
- beforeEach(async () => {
104
- await TestBed.configureTestingModule({
105
- imports: [SignalComponent],
106
- }).compileComponents();
107
-
108
- fixture = TestBed.createComponent(SignalComponent);
109
- component = fixture.componentInstance;
110
- fixture.detectChanges();
111
- });
112
-
113
- it('should update when signal changes', () => {
114
- component.count.set(5);
115
- fixture.detectChanges();
116
-
117
- expect(fixture.nativeElement.textContent).toContain('5');
118
- });
119
-
120
- it('should compute derived value', () => {
121
- component.items.set([1, 2, 3]);
122
-
123
- expect(component.total()).toBe(6);
124
- });
125
- });
126
- ```
127
-
128
- ### Testing Components with input()/output()
129
-
130
- ```typescript
131
- describe('@mms/shared-angular: InputOutputComponent', () => {
132
- let component: InputOutputComponent;
133
- let fixture: ComponentFixture<InputOutputComponent>;
134
-
135
- beforeEach(async () => {
136
- await TestBed.configureTestingModule({
137
- imports: [InputOutputComponent],
138
- }).compileComponents();
139
-
140
- fixture = TestBed.createComponent(InputOutputComponent);
141
- component = fixture.componentInstance;
142
- });
143
-
144
- it('should accept input value', () => {
145
- fixture.componentRef.setInput('value', 'test');
146
- fixture.detectChanges();
147
-
148
- expect(component.value()).toBe('test');
149
- });
150
-
151
- it('should emit output event', () => {
152
- const spy = jest.fn();
153
- component.changed.subscribe(spy);
154
-
155
- component.emitChange('new value');
156
-
157
- expect(spy).toHaveBeenCalledWith('new value');
158
- });
159
- });
160
- ```
161
-
162
- ### Testing with Services
163
-
164
- ```typescript
165
- import { ComponentFixture, TestBed } from '@angular/core/testing';
166
-
167
- import { FeatureComponent } from './feature.component';
168
- import { DataService } from './data.service';
169
-
170
- describe('@mms/shared-angular: FeatureComponent', () => {
171
- let component: FeatureComponent;
172
- let fixture: ComponentFixture<FeatureComponent>;
173
- let mockDataService: jest.Mocked<DataService>;
174
-
175
- beforeEach(async () => {
176
- mockDataService = {
177
- getData: jest.fn().mockReturnValue(of(['item1', 'item2'])),
178
- saveData: jest.fn().mockReturnValue(of(true)),
179
- } as unknown as jest.Mocked<DataService>;
180
-
181
- await TestBed.configureTestingModule({
182
- imports: [FeatureComponent],
183
- providers: [{ provide: DataService, useValue: mockDataService }],
184
- }).compileComponents();
185
-
186
- fixture = TestBed.createComponent(FeatureComponent);
187
- component = fixture.componentInstance;
188
- fixture.detectChanges();
189
- });
190
-
191
- it('should load data on init', () => {
192
- expect(mockDataService.getData).toHaveBeenCalled();
193
- expect(component.items()).toEqual(['item1', 'item2']);
194
- });
195
- });
196
- ```
197
-
198
- ## Angular Service Testing
199
-
200
- ```typescript
201
- import { TestBed } from '@angular/core/testing';
202
- import {
203
- HttpTestingController,
204
- provideHttpClientTesting,
205
- } from '@angular/common/http/testing';
206
- import { provideHttpClient } from '@angular/common/http';
207
-
208
- import { DataService } from './data.service';
209
-
210
- describe('@mms/shared-angular: DataService', () => {
211
- let service: DataService;
212
- let httpMock: HttpTestingController;
213
-
214
- beforeEach(() => {
215
- TestBed.configureTestingModule({
216
- providers: [DataService, provideHttpClient(), provideHttpClientTesting()],
217
- });
218
-
219
- service = TestBed.inject(DataService);
220
- httpMock = TestBed.inject(HttpTestingController);
221
- });
222
-
223
- afterEach(() => {
224
- httpMock.verify();
225
- });
226
-
227
- it('should be created', () => {
228
- expect(service).toBeTruthy();
229
- });
230
-
231
- it('should fetch data', () => {
232
- const mockData = [{ id: 1, name: 'Test' }];
233
-
234
- service.getData().subscribe((data) => {
235
- expect(data).toEqual(mockData);
236
- });
237
-
238
- const req = httpMock.expectOne('/api/data');
239
- expect(req.request.method).toBe('GET');
240
- req.flush(mockData);
241
- });
242
- });
243
- ```
244
-
245
- ## NestJS Service Testing
246
-
247
- ### Basic Service Test
248
-
249
- ```typescript
250
- import { TestingModule, Test } from '@nestjs/testing';
251
-
252
- import { FeatureService } from './feature.service';
253
-
254
- describe('@mms/module-name: FeatureService', () => {
255
- let service: FeatureService;
256
- let module: TestingModule;
257
-
258
- beforeEach(async () => {
259
- module = await Test.createTestingModule({
260
- providers: [FeatureService],
261
- }).compile();
262
-
263
- service = module.get<FeatureService>(FeatureService);
264
- });
265
-
266
- afterEach(async () => {
267
- await module.close();
268
- });
269
-
270
- it('should be defined', () => {
271
- expect(service).toBeDefined();
272
- });
273
-
274
- it('should perform expected operation', () => {
275
- const input = 'test';
276
-
277
- const result = service.performOperation(input);
278
-
279
- expect(result).toBe('expected output');
280
- });
281
- });
282
- ```
283
-
284
- ### Service with Repository
285
-
286
- ```typescript
287
- import { TestingModule, Test } from '@nestjs/testing';
288
- import { getRepositoryToken } from '@nestjs/typeorm';
289
-
290
- import { UserService } from './user.service';
291
- import { User } from './user.entity';
292
-
293
- describe('@mms/module-name: UserService', () => {
294
- let service: UserService;
295
- let module: TestingModule;
296
- let mockRepository: Record<string, jest.Mock>;
297
-
298
- beforeEach(async () => {
299
- mockRepository = {
300
- findOne: jest.fn(),
301
- find: jest.fn(),
302
- save: jest.fn(),
303
- update: jest.fn(),
304
- delete: jest.fn(),
305
- };
306
-
307
- module = await Test.createTestingModule({
308
- providers: [
309
- UserService,
310
- {
311
- provide: getRepositoryToken(User),
312
- useValue: mockRepository,
313
- },
314
- ],
315
- }).compile();
316
-
317
- service = module.get<UserService>(UserService);
318
- });
319
-
320
- afterEach(async () => {
321
- await module.close();
322
- });
323
-
324
- it('should find user by id', async () => {
325
- const mockUser = { id: '1', name: 'Test User' };
326
- mockRepository.findOne.mockResolvedValue(mockUser);
327
-
328
- const result = await service.findById('1');
329
-
330
- expect(result).toEqual(mockUser);
331
- expect(mockRepository.findOne).toHaveBeenCalledWith({ where: { id: '1' } });
332
- });
333
- });
334
- ```
335
-
336
- ## Mocking Patterns
337
-
338
- ### HTTP Client Mock
339
-
340
- ```typescript
341
- const mockHttpClient = {
342
- get: jest.fn(),
343
- post: jest.fn(),
344
- put: jest.fn(),
345
- delete: jest.fn(),
346
- };
347
- ```
348
-
349
- ### Service Mock
350
-
351
- ```typescript
352
- const mockService = {
353
- getData: jest.fn().mockReturnValue(of(mockData)),
354
- createItem: jest.fn().mockReturnValue(of(mockItem)),
355
- updateItem: jest.fn().mockReturnValue(of(updatedMockItem)),
356
- };
357
- ```
358
-
359
- ### LocalStorage Mock
360
-
361
- ```typescript
362
- let localStorageMock: any;
363
-
364
- beforeEach(() => {
365
- localStorageMock = (() => {
366
- let store: Record<string, string> = {};
367
- return {
368
- getItem: jest.fn((key: string) => store[key] || null),
369
- setItem: jest.fn((key: string, value: string) => {
370
- store[key] = value;
371
- }),
372
- removeItem: jest.fn((key: string) => {
373
- delete store[key];
374
- }),
375
- clear: jest.fn(() => {
376
- store = {};
377
- }),
378
- };
379
- })();
380
- Object.defineProperty(window, 'localStorage', { value: localStorageMock });
381
- });
382
- ```
383
-
384
- ## Test Data Factory Pattern
385
-
386
- ```typescript
387
- export const createMockUser = (overrides: Partial<User> = {}): User => ({
388
- id: 'test-id',
389
- login: 'testuser',
390
- name: 'Test',
391
- surname: 'User',
392
- email: 'test@example.com',
393
- phoneNumber: '+1234567890',
394
- del: false,
395
- createdAt: new Date(),
396
- updatedAt: new Date(),
397
- ...overrides,
398
- });
399
- ```
400
-
401
- ## Test Commands
402
-
403
- ```bash
404
- # Run tests for specific project
405
- nx test web
406
- nx test shared-angular
407
-
408
- # Run tests in watch mode
409
- nx test web --watch
410
-
411
- # Run tests with coverage
412
- nx test web --coverage
413
-
414
- # Run all tests
415
- nx run-many --target=test
416
-
417
- # Run specific test file
418
- nx test shared-angular --testFile=feature.service.spec.ts
419
- ```
420
-
421
- ## What to Test
422
-
423
- - Business logic in services
424
- - Component behavior and state changes
425
- - Public API contracts
426
- - Error handling scenarios
427
- - Input validation
428
- - Edge cases and boundary conditions
429
-
430
- ## What NOT to Test
431
-
432
- - Third-party libraries
433
- - Framework internals (Angular/NestJS)
434
- - Simple getters/setters without logic
435
- - Auto-generated code
436
- - Private methods directly (test through public API)
437
-
438
- ## Workflow
439
-
440
- 1. **Read source file** to understand the code being tested
441
- 2. **Create test file** with `.spec.ts` extension next to source
442
- 3. **Write describe block** with package and class name
443
- 4. **Add beforeEach** with TestBed/Test setup
444
- 5. **Write tests** using AAA pattern
445
- 6. **Run tests** with `nx test {project}`
446
- 7. **Fix failures** and ensure all pass
447
-
448
- ## Best Practices
449
-
450
- 1. **One assertion per test** when practical
451
- 2. **Descriptive test names** that explain behavior
452
- 3. **Independent tests** - no shared state between tests
453
- 4. **Mock external dependencies** - isolate unit under test
454
- 5. **Test edge cases** - empty arrays, null values, boundaries
455
- 6. **Keep tests fast** - avoid real HTTP calls or timers
456
- 7. **Clean up** - use afterEach for cleanup when needed
@@ -1,152 +0,0 @@
1
- # Flow-External Plugin for Claude Code
2
-
3
- Development flow skills for **standalone Angular 6-11 projects** without the MobileMS framework. These are external projects using Angular CLI with their own styling approach (Bootstrap 4, custom SCSS, or other).
4
-
5
- ## Target Projects
6
-
7
- This plugin is designed for standalone MobileMS projects:
8
-
9
- - **mobilems-asp** (Angular 11)
10
- - **mobilems-etno** (Angular 11)
11
- - **mobilems-mnw** (Angular 9)
12
- - **mobilems-muzuem-malopolskie** (Angular 8)
13
- - **mobilems-muzeum-powstan-slaskich** (Angular 6)
14
-
15
- ### Technology Stack
16
-
17
- | Feature | External Projects |
18
- |---------|-------------------|
19
- | Angular | 6 - 11 |
20
- | Build system | Angular CLI (`ng`) |
21
- | Styling | Project-specific (Bootstrap 4 / custom SCSS) |
22
- | i18n | ngx-translate + LocalizeRouter |
23
- | State | NgRx + localStorage sync |
24
- | Project structure | Standalone (app/cli/docker) |
25
-
26
- ### Patterns (what this plugin supports)
27
-
28
- | Feature | External (Angular 6-11) | Legacy (Angular 14) | Modern (Angular 20+) |
29
- |---------|-------------------------|---------------------|----------------------|
30
- | Control flow | `*ngIf`, `*ngFor` | `*ngIf`, `*ngFor` | `@if`, `@for` |
31
- | DI | Constructor injection | Constructor injection | `inject()` |
32
- | Inputs/Outputs | `@Input()`, `@Output()` | `@Input()`, `@Output()` | `input()`, `output()` |
33
- | State | BehaviorSubject, NgRx | BehaviorSubject | Signals |
34
- | Components | NgModules | NgModules | Standalone |
35
- | Styling | Bootstrap 4 / custom SCSS | Tailwind CSS | Tailwind CSS |
36
- | Build | `ng build` | `nx build` | `nx build` |
37
-
38
- ## Workflow Skills
39
-
40
- | Skill | Description |
41
- |-------|-------------|
42
- | `/commit` | Create conventional commit based on Linear task |
43
- | `/impl` | Implement plans from Linear task comments |
44
- | `/plan` | Create implementation plan and save to Linear |
45
- | `/push` | Push changes and update Linear status |
46
-
47
- ## Installation
48
-
49
- ### 1. Enable plugin in project's `.claude/settings.json`:
50
-
51
- ```json
52
- {
53
- "enabledPlugins": {
54
- "flow-external@mobilems": true
55
- }
56
- }
57
- ```
58
-
59
- ### 2. Merge permissions from template
60
-
61
- Run the merge script:
62
-
63
- ```bash
64
- node node_modules/@smartsoft001-mobilems/claude-plugins/plugins/flow-external/.claude-plugin/merge-permissions.js
65
- ```
66
-
67
- ## Required MCP Servers
68
-
69
- Configure these in your `.mcp.json`:
70
-
71
- - `linear` - Linear API integration (MCP prefix `mcp__linear__`)
72
- - `playwright` - Browser automation for screenshots
73
-
74
- ## Permission Strategy
75
-
76
- ### Automatic (allow)
77
- - Git read operations (status, diff, log, show)
78
- - Angular CLI commands (ng build, ng lint, ng serve)
79
- - Linear API (read/write issues, comments)
80
- - Playwright (screenshots)
81
- - Utility skills
82
-
83
- ### Requires Confirmation (ask)
84
- - Workflow skills (/commit, /impl, /plan, /push)
85
- - `git commit` - creating commits
86
- - `git push` - pushing to remote
87
- - `gh pr create` - creating pull requests
88
-
89
- ## Utility Skills
90
-
91
- | Skill | Description |
92
- |-------|-------------|
93
- | `maia-files-upload` | Upload files to Maia API |
94
- | `maia-files-delete` | Delete files from Maia API |
95
- | `browser-capture` | Capture screenshots with Playwright |
96
- | `linear-suggestion` | Create Linear issues for improvements |
97
- | `a11y-audit` | Accessibility audit |
98
-
99
- ## Agents
100
-
101
- ### Angular Agents (Legacy CLI patterns)
102
- - `angular-component-scaffolder` - Components with NgModules, `*ngIf`/`*ngFor`, constructor DI
103
- - `angular-service-builder` - Services with BehaviorSubject, constructor DI
104
- - `angular-state-builder` - NgRx state management with reducers and effects
105
- - `angular-directive-builder` - Directives with constructor DI
106
- - `angular-pipe-builder` - Pipes with constructor DI
107
- - `angular-guard-builder` - Class-based guards with constructor DI
108
- - `angular-resolver-builder` - Class-based resolvers with constructor DI
109
-
110
- ### Shared Agents
111
- - `shared-impl-orchestrator` - Implementation orchestration
112
- - `shared-impl-reporter` - Implementation reporting
113
- - `shared-linear-subtask-iterator` - Linear subtask iteration
114
- - `shared-build-verifier` - Build verification via `ng build`
115
- - `shared-ui-classifier` - UI change classification
116
- - `ui-web-designer` - Styling with project-specific approach (Bootstrap 4 or custom SCSS)
117
-
118
- ## Differences from other plugins
119
-
120
- | Aspect | `flow` (modern) | `flow-legacy` | `flow-external` |
121
- |--------|-----------------|---------------|-----------------|
122
- | Angular version | 20+ | 14 | 6-11 |
123
- | Build system | Nx | Nx | Angular CLI |
124
- | Styling | Tailwind | Tailwind | Project-specific |
125
- | State | Signals | BehaviorSubject | NgRx + BehaviorSubject |
126
- | Project structure | Nx monorepo | Nx monorepo | Standalone app/ |
127
-
128
- ## Example Project Structure
129
-
130
- ```
131
- project-root/
132
- app/ # Frontend Angular application
133
- src/
134
- app/
135
- components/
136
- services/
137
- pipes/
138
- directives/
139
- interceptors/
140
- guards/
141
- state/ # NgRx store
142
- assets/
143
- environments/
144
- angular.json
145
- package.json
146
- tsconfig.json
147
- cli/ # CLI scripts
148
- frontend-cli
149
- docker/ # Docker configuration
150
- Dockerfile
151
- .env
152
- ```
@@ -1,80 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Merge flow-external plugin permissions into project's .claude/settings.json
4
- *
5
- * Usage:
6
- * npx @smartsoft001-mobilems/claude-plugins flow-external:merge-permissions
7
- *
8
- * Or directly:
9
- * node node_modules/@smartsoft001-mobilems/claude-plugins/plugins/flow-external/.claude-plugin/merge-permissions.js
10
- */
11
-
12
- const fs = require('fs');
13
- const path = require('path');
14
-
15
- const SETTINGS_PATH = path.join(process.cwd(), '.claude', 'settings.json');
16
- const TEMPLATE_PATH = path.join(__dirname, 'settings.template.json');
17
-
18
- function loadJson(filePath) {
19
- try {
20
- return JSON.parse(fs.readFileSync(filePath, 'utf8'));
21
- } catch (e) {
22
- return null;
23
- }
24
- }
25
-
26
- function mergeArrays(existing, template) {
27
- return [...new Set([...existing, ...template])];
28
- }
29
-
30
- function main() {
31
- console.log('Flow-External Plugin - Merge Permissions\n');
32
-
33
- // Load template
34
- const template = loadJson(TEMPLATE_PATH);
35
- if (!template) {
36
- console.error('ERROR: Could not load template from:', TEMPLATE_PATH);
37
- process.exit(1);
38
- }
39
-
40
- // Load or create settings
41
- let settings = loadJson(SETTINGS_PATH);
42
- if (!settings) {
43
- console.log('Creating new .claude/settings.json...');
44
- fs.mkdirSync(path.dirname(SETTINGS_PATH), { recursive: true });
45
- settings = { permissions: { allow: [], deny: [], ask: [] } };
46
- }
47
-
48
- // Ensure permissions structure exists
49
- settings.permissions = settings.permissions || { allow: [], deny: [], ask: [] };
50
- settings.permissions.allow = settings.permissions.allow || [];
51
- settings.permissions.ask = settings.permissions.ask || [];
52
- settings.permissions.deny = settings.permissions.deny || [];
53
-
54
- // Count before
55
- const beforeAllow = settings.permissions.allow.length;
56
- const beforeAsk = settings.permissions.ask.length;
57
-
58
- // Merge permissions
59
- settings.permissions.allow = mergeArrays(settings.permissions.allow, template.permissions.allow);
60
- settings.permissions.ask = mergeArrays(settings.permissions.ask, template.permissions.ask);
61
-
62
- // Enable plugin
63
- settings.enabledPlugins = settings.enabledPlugins || {};
64
- settings.enabledPlugins['flow-external@mobilems'] = true;
65
-
66
- // Write back
67
- fs.writeFileSync(SETTINGS_PATH, JSON.stringify(settings, null, 2) + '\n');
68
-
69
- // Report
70
- const addedAllow = settings.permissions.allow.length - beforeAllow;
71
- const addedAsk = settings.permissions.ask.length - beforeAsk;
72
-
73
- console.log('Permissions merged successfully!\n');
74
- console.log(` allow: ${beforeAllow} -> ${settings.permissions.allow.length} (+${addedAllow})`);
75
- console.log(` ask: ${beforeAsk} -> ${settings.permissions.ask.length} (+${addedAsk})`);
76
- console.log(`\nPlugin enabled: flow-external@mobilems`);
77
- console.log(`\nFile updated: ${SETTINGS_PATH}`);
78
- }
79
-
80
- main();
@@ -1,5 +0,0 @@
1
- {
2
- "name": "flow-external",
3
- "description": "Development flow skills for standalone Angular 6-11 museum projects without framework (Angular CLI, Karma/Jasmine, Bootstrap 4)",
4
- "version": "2.84.0"
5
- }