|
1 | | -# quality-loop |
| 1 | +Run the `/quality-scan` skill and fix all issues found. Repeat until zero issues remain or 5 iterations complete. |
2 | 2 |
|
3 | | -Run comprehensive quality scan and automatic issue fixing loop for socket-cli. |
4 | | - |
5 | | -## What it does |
6 | | - |
7 | | -Executes an iterative quality improvement cycle: |
8 | | - |
9 | | -1. Updates dependencies |
10 | | -2. Cleans up repository (removes junk files) |
11 | | -3. Validates code structure |
12 | | -4. Runs specialized quality scans |
13 | | -5. Fixes ALL issues found |
14 | | -6. Commits fixes |
15 | | -7. Repeats until zero issues or 5 iterations |
16 | | - |
17 | | -## Usage |
18 | | - |
19 | | -```bash |
20 | | -/quality-loop |
21 | | -``` |
22 | | - |
23 | | -## Scan types |
24 | | - |
25 | | -- **critical** - Crashes, security, data corruption, auth handling |
26 | | -- **logic** - Algorithm errors, edge cases, validation bugs |
27 | | -- **cache** - Config/token caching correctness |
28 | | -- **workflow** - Build scripts, CI/CD, cross-platform compatibility |
29 | | -- **security** - GitHub Actions security, credential handling |
30 | | -- **documentation** - Command examples, flag accuracy, API docs |
| 3 | +**Interactive only** — this command makes code changes and commits. Do not use as an automated pipeline gate. |
31 | 4 |
|
32 | 5 | ## Process |
33 | 6 |
|
34 | | -The skill will: |
35 | | -- Ask which scans to run (default: all) |
36 | | -- Run dependency updates |
37 | | -- Clean junk files with confirmation |
38 | | -- Execute selected scans sequentially |
39 | | -- Aggregate and deduplicate findings |
40 | | -- Fix issues and commit changes |
41 | | -- Repeat until clean or max iterations |
42 | | - |
43 | | -## Exit conditions |
44 | | - |
45 | | -- ✅ Success: Zero issues found |
46 | | -- ⏹️ Stop: After 5 iterations (prevent infinite loops) |
47 | | - |
48 | | -## Notes |
49 | | - |
50 | | -- Commits fixes with proper git messages |
51 | | -- Skips no issues (fixes architectural problems too) |
52 | | -- Runs tests after each iteration |
53 | | -- Reports progress and statistics |
54 | | - |
55 | | -Use this command to maintain high code quality standards across socket-cli. |
| 7 | +1. Run `/quality-scan` skill (all scan types) |
| 8 | +2. If issues found: spawn the `refactor-cleaner` agent (see `agents/refactor-cleaner.md`) to fix them, grouped by category |
| 9 | +3. Run verify-build (see `_shared/verify-build.md`) after fixes |
| 10 | +4. Run `/quality-scan` again |
| 11 | +5. Repeat until: |
| 12 | + - Zero issues found (success), OR |
| 13 | + - 5 iterations completed (stop) |
| 14 | +6. Commit all fixes: `fix: resolve quality scan issues (iteration N)` |
| 15 | + |
| 16 | +## Rules |
| 17 | + |
| 18 | +- Fix every issue, not just easy ones |
| 19 | +- Spawn refactor-cleaner with CLAUDE.md's pre-action protocol: dead code first, then structural changes, ≤5 files per phase |
| 20 | +- Run tests after fixes to verify nothing broke |
| 21 | +- Track iteration count and report progress |
0 commit comments