@sylphx/flow 2.29.3 → 3.0.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 (43) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/assets/agents/builder.md +73 -1
  3. package/assets/slash-commands/issues.md +46 -0
  4. package/assets/slash-commands/refactor.md +60 -0
  5. package/package.json +1 -1
  6. package/src/config/servers.ts +1 -1
  7. package/assets/agents/coder.md +0 -128
  8. package/assets/agents/reviewer.md +0 -123
  9. package/assets/agents/writer.md +0 -120
  10. package/assets/skills/abuse-prevention/SKILL.md +0 -33
  11. package/assets/skills/account-security/SKILL.md +0 -35
  12. package/assets/skills/admin/SKILL.md +0 -37
  13. package/assets/skills/appsec/SKILL.md +0 -35
  14. package/assets/skills/auth/SKILL.md +0 -34
  15. package/assets/skills/billing/SKILL.md +0 -35
  16. package/assets/skills/code-quality/SKILL.md +0 -34
  17. package/assets/skills/competitive-analysis/SKILL.md +0 -29
  18. package/assets/skills/data-modeling/SKILL.md +0 -34
  19. package/assets/skills/database/SKILL.md +0 -34
  20. package/assets/skills/delivery/SKILL.md +0 -36
  21. package/assets/skills/deployments/SKILL.md +0 -33
  22. package/assets/skills/growth/SKILL.md +0 -31
  23. package/assets/skills/i18n/SKILL.md +0 -35
  24. package/assets/skills/ledger/SKILL.md +0 -32
  25. package/assets/skills/observability/SKILL.md +0 -32
  26. package/assets/skills/performance/SKILL.md +0 -33
  27. package/assets/skills/pricing/SKILL.md +0 -32
  28. package/assets/skills/privacy/SKILL.md +0 -36
  29. package/assets/skills/pwa/SKILL.md +0 -36
  30. package/assets/skills/referral/SKILL.md +0 -30
  31. package/assets/skills/seo/SKILL.md +0 -40
  32. package/assets/skills/storage/SKILL.md +0 -33
  33. package/assets/skills/support/SKILL.md +0 -31
  34. package/assets/skills/uiux/SKILL.md +0 -40
  35. package/assets/slash-commands/cleanup.md +0 -59
  36. package/assets/slash-commands/continue.md +0 -94
  37. package/assets/slash-commands/continue2.md +0 -61
  38. package/assets/slash-commands/improve.md +0 -153
  39. package/assets/slash-commands/init.md +0 -34
  40. package/assets/slash-commands/polish.md +0 -87
  41. package/assets/slash-commands/quality.md +0 -181
  42. package/assets/slash-commands/release.md +0 -103
  43. package/assets/slash-commands/review.md +0 -44
@@ -1,181 +0,0 @@
1
- ---
2
- name: quality
3
- description: Improve test coverage, fix tests, optimize performance, reduce bundle size
4
- ---
5
-
6
- # Quality Assurance
7
-
8
- Maximize quality metrics: tests, coverage, performance, bundle size.
9
-
10
- ## Scope
11
-
12
- **Testing:**
13
- - Fix failing tests
14
- - Add missing tests (.test.ts for all modules)
15
- - Improve coverage (critical paths 100%, business logic 80%+)
16
- - Test edge cases
17
- - Test error paths
18
- - Integration tests
19
- - E2E tests (if applicable)
20
-
21
- **Benchmarking:**
22
- - Add benchmarks (.bench.ts for critical functions)
23
- - Measure performance
24
- - Identify regressions
25
- - Optimize slow operations
26
-
27
- **Performance:**
28
- - Profile hot paths
29
- - Optimize algorithms (reduce complexity)
30
- - Fix memory leaks
31
- - Reduce allocations
32
- - Cache expensive operations
33
- - Lazy load where possible
34
-
35
- **Bundle Size:**
36
- - Analyze bundle composition
37
- - Remove unused dependencies
38
- - Tree-shake effectively
39
- - Code split strategically
40
- - Compress assets
41
- - Use dynamic imports
42
-
43
- **Code Quality:**
44
- - Fix lint errors/warnings
45
- - Improve type safety (no `any`)
46
- - Reduce complexity
47
- - Improve maintainability
48
- - Follow code standards
49
-
50
- **Security:**
51
- - Fix vulnerabilities
52
- - Update dependencies
53
- - Validate inputs
54
- - Sanitize outputs
55
- - Secure defaults
56
-
57
- ## Execution
58
-
59
- ### 1. Test Coverage
60
-
61
- ```bash
62
- # Run tests with coverage
63
- npm run test:coverage
64
-
65
- # Identify gaps
66
- # Add tests for uncovered code
67
- # Focus on critical paths first
68
- ```
69
-
70
- **Priority:**
71
- - Critical business logic (100%)
72
- - Error handling (100%)
73
- - Edge cases (90%)
74
- - Happy paths (100%)
75
- - Integration points (80%)
76
-
77
- ### 2. Benchmarking
78
-
79
- ```bash
80
- # Run benchmarks
81
- npm run bench
82
-
83
- # Compare against baseline
84
- # Identify regressions
85
- # Optimize bottlenecks
86
- ```
87
-
88
- **Add benchmarks for:**
89
- - Algorithm complexity (O(n) vs O(n²))
90
- - Database queries
91
- - API calls
92
- - Data processing
93
- - Rendering (if UI)
94
-
95
- ### 3. Performance Profiling
96
-
97
- ```bash
98
- # Profile application
99
- node --inspect ...
100
- # Or use Clinic.js, 0x, etc.
101
-
102
- # Identify bottlenecks
103
- # Optimize hot paths
104
- # Measure improvements
105
- ```
106
-
107
- **Check:**
108
- - CPU usage
109
- - Memory usage
110
- - I/O operations
111
- - Network calls
112
- - Rendering time
113
-
114
- ### 4. Bundle Analysis
115
-
116
- ```bash
117
- # Analyze bundle
118
- npm run build -- --analyze
119
-
120
- # Check size
121
- ls -lh dist/
122
-
123
- # Identify large dependencies
124
- # Remove unnecessary code
125
- ```
126
-
127
- **Optimize:**
128
- - Remove unused dependencies
129
- - Use smaller alternatives
130
- - Dynamic imports for large modules
131
- - Tree-shake effectively
132
- - Minify properly
133
-
134
- ### 5. Quality Metrics
135
-
136
- **Track:**
137
- - Test coverage: `npm run test:coverage`
138
- - Bundle size: `ls -lh dist/`
139
- - Performance: `npm run bench`
140
- - Security: `npm audit`
141
- - Type coverage: TypeScript strict mode
142
- - Lint score: `npm run lint`
143
-
144
- ## Targets
145
-
146
- **Tests:**
147
- - Coverage: ≥80% (business logic ≥90%)
148
- - All critical paths: 100%
149
- - Build time: <30s
150
- - Test time: <10s
151
-
152
- **Performance:**
153
- - Page load: <3s
154
- - API response: <200ms
155
- - Time to interactive: <5s
156
- - Bundle size: <100KB (gzipped)
157
-
158
- **Quality:**
159
- - Zero lint errors
160
- - Zero `any` types (unless justified)
161
- - Zero security vulnerabilities (high/critical)
162
- - Complexity score: <10 per function
163
-
164
- ## Commit Strategy
165
-
166
- Atomic commits per improvement:
167
- - `test(auth): add tests for token validation`
168
- - `perf(db): optimize user query with batch loading`
169
- - `build: reduce bundle size by 40% with code splitting`
170
-
171
- ## Exit Criteria
172
-
173
- - [ ] All tests pass
174
- - [ ] Coverage meets targets
175
- - [ ] Benchmarks added for critical functions
176
- - [ ] Performance optimized
177
- - [ ] Bundle size reduced
178
- - [ ] No security vulnerabilities
179
- - [ ] Quality metrics improved
180
-
181
- Report: Coverage %, bundle size reduction, performance gains, benchmarks added.
@@ -1,103 +0,0 @@
1
- ---
2
- name: release
3
- description: Publish new version and monitor release process
4
- ---
5
-
6
- # Release & Publish
7
-
8
- Prepare, publish, and monitor package release.
9
-
10
- ## Pre-Release Checks
11
-
12
- **Quality Gates:**
13
- - [ ] All tests pass
14
- - [ ] No lint errors
15
- - [ ] Build successful
16
- - [ ] No security vulnerabilities
17
- - [ ] Dependencies up to date
18
- - [ ] CHANGELOG updated
19
- - [ ] README accurate
20
- - [ ] Breaking changes documented
21
-
22
- **Version Decision:**
23
- - Breaking changes → `major`
24
- - New features → `minor` (default)
25
- - Bug fixes → `patch`
26
-
27
- ## Release Process
28
-
29
- ### For TypeScript/JavaScript Projects
30
-
31
- 1. **Create Changeset:**
32
- ```bash
33
- bunx changeset
34
- ```
35
- - Select package
36
- - Choose version bump type
37
- - Write clear summary
38
-
39
- 2. **Version Bump:**
40
- ```bash
41
- bunx changeset version
42
- ```
43
- - Updates package.json
44
- - Updates CHANGELOG.md
45
- - Consumes changeset
46
-
47
- 3. **Commit & Push:**
48
- ```bash
49
- git add -A
50
- git commit -m "chore(release): <package>@<version>"
51
- git push
52
- ```
53
-
54
- 4. **Monitor CI:**
55
- ```bash
56
- gh run list --workflow=release --limit 5
57
- gh run watch <run-id>
58
- ```
59
-
60
- 5. **Verify Publication:**
61
- ```bash
62
- npm view <package>@<version>
63
- ```
64
-
65
- ### For Other Projects
66
-
67
- 1. Update version in manifest (package.json, setup.py, etc.)
68
- 2. Update CHANGELOG
69
- 3. Create git tag
70
- 4. Push tag to trigger release
71
- 5. Monitor CI/CD
72
-
73
- ## Post-Release
74
-
75
- - [ ] Verify package published
76
- - [ ] Test installation: `npm install <package>@latest`
77
- - [ ] Create GitHub release with notes
78
- - [ ] Announce (if public package)
79
- - [ ] Close related issues/PRs
80
-
81
- ## Troubleshooting
82
-
83
- **CI fails on install:**
84
- - Update lockfile locally: `bun install`
85
- - Commit and push
86
-
87
- **Tests fail in CI:**
88
- - Run tests locally: `npm test`
89
- - Fix issues, commit, push
90
-
91
- **Build fails:**
92
- - Check build locally: `npm run build`
93
- - Fix errors, commit, push
94
-
95
- ## Exit Criteria
96
-
97
- - [ ] Package published successfully
98
- - [ ] CI workflow completed
99
- - [ ] GitHub release created
100
- - [ ] Version verified on registry
101
- - [ ] Installation tested
102
-
103
- Report: Version number, publish time, registry URL.
@@ -1,44 +0,0 @@
1
- ---
2
- name: review
3
- description: Review codebase by topic - /review <what to review>
4
- args:
5
- - name: topic
6
- description: What to review (e.g., auth, security, "the login flow", "why it's slow")
7
- required: true
8
- ---
9
-
10
- # Review: $ARGS
11
-
12
- ## Mandate
13
-
14
- - **Think like the failure mode.** Security → attacker. Performance → slow network. Auth → confused user.
15
- - **Delegate workers** for parallel research. You synthesize and verify.
16
- - **Fix, don't report.** Implement solutions directly.
17
-
18
- ## Execution
19
-
20
- 1. **Load skills** — Use the Skill tool to load guidelines for relevant domains. Read the guidelines.
21
-
22
- 2. **Understand** — How is this implemented? Architecture, choices, tradeoffs.
23
-
24
- 3. **Find issues** — What violates the guidelines? What's wrong and why it matters?
25
-
26
- 4. **Fix** — Implement solutions directly.
27
-
28
- ## Output
29
-
30
- ```
31
- ## Review: [topic]
32
-
33
- ### Understanding
34
- [Architecture, choices, tradeoffs]
35
-
36
- ### Issues
37
- [What's wrong and why]
38
-
39
- ### Fixed
40
- [Changes made]
41
-
42
- ### Remains
43
- [Needs human decision]
44
- ```