@ai-content-space/loopx 0.2.8 → 0.2.10

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 (105) hide show
  1. package/README.md +26 -9
  2. package/README.zh-CN.md +26 -9
  3. package/docs/loopx/design/loopx-skill-suite-v1-design.md +12 -0
  4. package/docs/loopx/plans/2026-06-14-loopx-spec-memory-context-loading.md +948 -0
  5. package/docs/loopx/plans/2026-06-15-support-lens-skills-migration.md +1153 -0
  6. package/package.json +6 -1
  7. package/plugins/loopx/.codex-plugin/plugin.json +1 -1
  8. package/plugins/loopx/skills/api-designer/SKILL.md +232 -0
  9. package/plugins/loopx/skills/api-designer/references/error-handling.md +541 -0
  10. package/plugins/loopx/skills/api-designer/references/openapi.md +824 -0
  11. package/plugins/loopx/skills/api-designer/references/pagination.md +494 -0
  12. package/plugins/loopx/skills/api-designer/references/rest-patterns.md +335 -0
  13. package/plugins/loopx/skills/api-designer/references/versioning.md +391 -0
  14. package/plugins/loopx/skills/architecture-designer/SKILL.md +117 -0
  15. package/plugins/loopx/skills/architecture-designer/references/adr-template.md +116 -0
  16. package/plugins/loopx/skills/architecture-designer/references/architecture-patterns.md +346 -0
  17. package/plugins/loopx/skills/architecture-designer/references/database-selection.md +102 -0
  18. package/plugins/loopx/skills/architecture-designer/references/nfr-checklist.md +212 -0
  19. package/plugins/loopx/skills/architecture-designer/references/system-design.md +313 -0
  20. package/plugins/loopx/skills/clarify/SKILL.md +12 -1
  21. package/plugins/loopx/skills/cli-developer/SKILL.md +124 -0
  22. package/plugins/loopx/skills/cli-developer/references/design-patterns.md +221 -0
  23. package/plugins/loopx/skills/cli-developer/references/go-cli.md +540 -0
  24. package/plugins/loopx/skills/cli-developer/references/node-cli.md +383 -0
  25. package/plugins/loopx/skills/cli-developer/references/python-cli.md +422 -0
  26. package/plugins/loopx/skills/cli-developer/references/ux-patterns.md +448 -0
  27. package/plugins/loopx/skills/debug/SKILL.md +1 -1
  28. package/plugins/loopx/skills/doc-readability/SKILL.md +1 -1
  29. package/plugins/loopx/skills/exec/SKILL.md +1 -1
  30. package/plugins/loopx/skills/final-review/SKILL.md +1 -1
  31. package/plugins/loopx/skills/finish/SKILL.md +1 -1
  32. package/plugins/loopx/skills/fix-review/SKILL.md +1 -1
  33. package/plugins/loopx/skills/go-style/SKILL.md +1 -1
  34. package/plugins/loopx/skills/kratos/SKILL.md +2 -1
  35. package/plugins/loopx/skills/plan-to-exec/SKILL.md +12 -1
  36. package/plugins/loopx/skills/refactor-plan/SKILL.md +1 -1
  37. package/plugins/loopx/skills/requirement-analyzer/SKILL.md +161 -0
  38. package/plugins/loopx/skills/requirement-analyzer/references/example-reports.md +170 -0
  39. package/plugins/loopx/skills/requirement-analyzer/references/prd-gap-checklist.md +167 -0
  40. package/plugins/loopx/skills/requirement-analyzer/references/readiness-rubric.md +70 -0
  41. package/plugins/loopx/skills/requirement-analyzer/references/report-template.md +83 -0
  42. package/plugins/loopx/skills/review/SKILL.md +1 -1
  43. package/plugins/loopx/skills/spec/SKILL.md +12 -1
  44. package/plugins/loopx/skills/sql-style/SKILL.md +108 -0
  45. package/plugins/loopx/skills/sql-style/references/database-design.md +402 -0
  46. package/plugins/loopx/skills/sql-style/references/dialect-differences.md +419 -0
  47. package/plugins/loopx/skills/sql-style/references/optimization.md +384 -0
  48. package/plugins/loopx/skills/sql-style/references/query-patterns.md +285 -0
  49. package/plugins/loopx/skills/sql-style/references/window-functions.md +328 -0
  50. package/plugins/loopx/skills/subagent-exec/SKILL.md +1 -1
  51. package/plugins/loopx/skills/tdd/SKILL.md +1 -1
  52. package/plugins/loopx/skills/verify/SKILL.md +1 -1
  53. package/scripts/verify-skills.mjs +0 -2
  54. package/skills/RESOLVER.md +8 -1
  55. package/skills/api-designer/SKILL.md +232 -0
  56. package/skills/api-designer/references/error-handling.md +541 -0
  57. package/skills/api-designer/references/openapi.md +824 -0
  58. package/skills/api-designer/references/pagination.md +494 -0
  59. package/skills/api-designer/references/rest-patterns.md +335 -0
  60. package/skills/api-designer/references/versioning.md +391 -0
  61. package/skills/architecture-designer/SKILL.md +117 -0
  62. package/skills/architecture-designer/references/adr-template.md +116 -0
  63. package/skills/architecture-designer/references/architecture-patterns.md +346 -0
  64. package/skills/architecture-designer/references/database-selection.md +102 -0
  65. package/skills/architecture-designer/references/nfr-checklist.md +212 -0
  66. package/skills/architecture-designer/references/system-design.md +313 -0
  67. package/skills/clarify/SKILL.md +12 -1
  68. package/skills/cli-developer/SKILL.md +124 -0
  69. package/skills/cli-developer/references/design-patterns.md +221 -0
  70. package/skills/cli-developer/references/go-cli.md +540 -0
  71. package/skills/cli-developer/references/node-cli.md +383 -0
  72. package/skills/cli-developer/references/python-cli.md +422 -0
  73. package/skills/cli-developer/references/ux-patterns.md +448 -0
  74. package/skills/debug/SKILL.md +1 -1
  75. package/skills/doc-readability/SKILL.md +1 -1
  76. package/skills/exec/SKILL.md +1 -1
  77. package/skills/final-review/SKILL.md +1 -1
  78. package/skills/finish/SKILL.md +1 -1
  79. package/skills/fix-review/SKILL.md +1 -1
  80. package/skills/go-style/SKILL.md +1 -1
  81. package/skills/kratos/SKILL.md +2 -1
  82. package/skills/plan-to-exec/SKILL.md +12 -1
  83. package/skills/refactor-plan/SKILL.md +1 -1
  84. package/skills/requirement-analyzer/SKILL.md +161 -0
  85. package/skills/requirement-analyzer/references/example-reports.md +170 -0
  86. package/skills/requirement-analyzer/references/prd-gap-checklist.md +167 -0
  87. package/skills/requirement-analyzer/references/readiness-rubric.md +70 -0
  88. package/skills/requirement-analyzer/references/report-template.md +83 -0
  89. package/skills/review/SKILL.md +1 -1
  90. package/skills/spec/SKILL.md +12 -1
  91. package/skills/sql-style/SKILL.md +108 -0
  92. package/skills/sql-style/references/database-design.md +402 -0
  93. package/skills/sql-style/references/dialect-differences.md +419 -0
  94. package/skills/sql-style/references/optimization.md +384 -0
  95. package/skills/sql-style/references/query-patterns.md +285 -0
  96. package/skills/sql-style/references/window-functions.md +328 -0
  97. package/skills/subagent-exec/SKILL.md +1 -1
  98. package/skills/tdd/SKILL.md +1 -1
  99. package/skills/verify/SKILL.md +1 -1
  100. package/src/cli.mjs +4 -1
  101. package/src/context-manifest.mjs +51 -1
  102. package/src/install-discovery.mjs +114 -0
  103. package/src/loopx-context-artifacts.mjs +114 -0
  104. package/src/project-discovery.mjs +1 -0
  105. package/src/workflow.mjs +47 -3
@@ -0,0 +1,448 @@
1
+ # CLI UX Patterns
2
+
3
+ ## Progress Indicators
4
+
5
+ ### When to Use What
6
+
7
+ ```
8
+ Determinate (known total):
9
+ [████████████░░░░░░░░] 60% (3/5 files)
10
+ Use: File operations, downloads, batch processing
11
+
12
+ Indeterminate (unknown duration):
13
+ ⠋ Loading...
14
+ Use: API calls, database queries, waiting for external services
15
+
16
+ Multi-step:
17
+ ✓ Dependencies installed
18
+ ⠋ Building application...
19
+ ⏳ Running tests...
20
+ Use: Multi-phase operations (build, deploy, etc.)
21
+ ```
22
+
23
+ ### Progress Bar Best Practices
24
+
25
+ ```
26
+ Good:
27
+ [████████████░░░░░░░░] 60% | 120/200 MB | 2.4 MB/s | ETA: 33s
28
+ ↑ Visual ↑ Percent ↑ Progress ↑ Rate ↑ Time
29
+
30
+ Components:
31
+ - Visual bar (20-40 chars)
32
+ - Percentage (when known)
33
+ - Current/total (with units)
34
+ - Speed/rate (when applicable)
35
+ - ETA (estimated time remaining)
36
+
37
+ Bad:
38
+ Processing... (no feedback)
39
+ 60% (no context)
40
+ [████████████████████████████████████████] (too wide)
41
+ ```
42
+
43
+ ### Spinner Styles
44
+
45
+ ```
46
+ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ Dots (elegant, low-key)
47
+ ⣾ ⣽ ⣻ ⢿ ⡿ ⣟ ⣯ ⣷ Blocks (bold, attention)
48
+ ◐ ◓ ◑ ◒ Circle (classic)
49
+ ▖ ▘ ▝ ▗ Corners (minimal)
50
+ ⠁ ⠂ ⠄ ⡀ ⢀ ⠠ ⠐ ⠈ Line (subtle)
51
+
52
+ Choose based on:
53
+ - Terminal compatibility (stick to ASCII for Windows)
54
+ - Branding (match your tool's personality)
55
+ - Context (subtle for background, bold for main task)
56
+ ```
57
+
58
+ ## Color Usage
59
+
60
+ ### Semantic Colors
61
+
62
+ ```
63
+ Red: Errors, failures, destructive actions
64
+ Yellow: Warnings, deprecations, non-critical issues
65
+ Green: Success, completion, positive feedback
66
+ Blue: Information, hints, neutral messages
67
+ Cyan: Commands, code, technical details
68
+ Magenta: Highlights, special items
69
+ Gray: Less important, metadata, timestamps
70
+
71
+ Examples:
72
+ ✓ Success: Deployment complete
73
+ ✗ Error: File not found
74
+ ⚠ Warning: Deprecated flag --old-flag
75
+ ℹ Info: Using cache from ~/.mycli/cache
76
+ ```
77
+
78
+ ### When to Disable Colors
79
+
80
+ ```javascript
81
+ // Detect non-TTY output (piped to file, etc.)
82
+ const noColor = !process.stdout.isTTY ||
83
+ process.env.NO_COLOR ||
84
+ process.env.CI === 'true';
85
+
86
+ if (noColor) {
87
+ // Disable colors
88
+ }
89
+
90
+ // Support NO_COLOR standard
91
+ // https://no-color.org/
92
+ ```
93
+
94
+ ### Color Accessibility
95
+
96
+ ```
97
+ - Don't rely on color alone (use symbols too)
98
+ - Provide high contrast (test with various terminals)
99
+ - Support color blindness (red/green alternatives)
100
+
101
+ Good:
102
+ ✓ Build successful (green)
103
+ ✗ Build failed (red)
104
+ ↑ Symbols work without color
105
+
106
+ Bad:
107
+ Success (only color, no symbol)
108
+ Failed (only color, no symbol)
109
+ ```
110
+
111
+ ## Help Text Design
112
+
113
+ ### Command Help Structure
114
+
115
+ ```
116
+ USAGE
117
+ mycli <command> [options]
118
+
119
+ COMMANDS
120
+ init Initialize a new project
121
+ deploy Deploy to environment
122
+ config Manage configuration
123
+ plugins Manage plugins
124
+
125
+ OPTIONS
126
+ -h, --help Show help
127
+ -v, --version Show version
128
+ --config FILE Config file path
129
+
130
+ Run 'mycli <command> --help' for more information on a command.
131
+
132
+ EXAMPLES
133
+ # Initialize a new project
134
+ mycli init my-app
135
+
136
+ # Deploy to production
137
+ mycli deploy production --dry-run
138
+
139
+ Learn more: https://docs.mycli.dev
140
+ ```
141
+
142
+ ### Subcommand Help
143
+
144
+ ```
145
+ USAGE
146
+ mycli deploy <environment> [options]
147
+
148
+ ARGUMENTS
149
+ environment Target environment (required)
150
+ Values: development, staging, production
151
+
152
+ OPTIONS
153
+ -c, --config <file> Config file path
154
+ Default: ./mycli.config.yml
155
+
156
+ -f, --force Skip confirmation prompts
157
+ Use with caution in production
158
+
159
+ -d, --dry-run Preview changes without executing
160
+ Shows what would happen
161
+
162
+ -v, --verbose Show detailed output
163
+ Includes debug information
164
+
165
+ EXAMPLES
166
+ # Deploy to production (with confirmation)
167
+ mycli deploy production
168
+
169
+ # Preview staging deployment
170
+ mycli deploy staging --dry-run
171
+
172
+ # Use custom config
173
+ mycli deploy production --config ./prod.yml
174
+
175
+ # Force deploy without prompts
176
+ mycli deploy production --force
177
+
178
+ For more information, visit https://docs.mycli.dev/deploy
179
+ ```
180
+
181
+ ## Error Messages
182
+
183
+ ### Good Error Messages
184
+
185
+ ```
186
+ Pattern: [Context] → [Problem] → [Solution]
187
+
188
+ Example 1: File not found
189
+ ✗ Error: Config file not found
190
+
191
+ Searched locations:
192
+ • ./mycli.config.yml
193
+ • ~/.config/mycli/config.yml
194
+ • /etc/mycli/config.yml
195
+
196
+ Solutions:
197
+ • Run 'mycli init' to create a config file
198
+ • Use --config to specify a different location
199
+ • Check file permissions
200
+
201
+ Example 2: Validation error
202
+ ✗ Error: Invalid environment 'prod'
203
+
204
+ Expected one of:
205
+ • development
206
+ • staging
207
+ • production
208
+
209
+ Did you mean 'production'?
210
+
211
+ Example 3: Permission error
212
+ ✗ Error: Permission denied writing to /etc/mycli/config.yml
213
+
214
+ This operation requires elevated permissions.
215
+
216
+ Try:
217
+ • Run with sudo: sudo mycli config set key value
218
+ • Use user config: mycli config set --user key value
219
+ • Check file permissions: ls -la /etc/mycli/config.yml
220
+ ```
221
+
222
+ ### Error Message Guidelines
223
+
224
+ ```
225
+ DO:
226
+ ✓ Be specific ("Port 3000 already in use" not "Port unavailable")
227
+ ✓ Show context ("in file config.yml, line 42")
228
+ ✓ Suggest solutions ("Try running 'mycli fix'")
229
+ ✓ Use plain language ("File not found" not "ENOENT")
230
+
231
+ DON'T:
232
+ ✗ Show stack traces to users (save for --debug)
233
+ ✗ Use jargon ("EACCES: permission denied")
234
+ ✗ Leave users stuck ("Invalid input" with no explanation)
235
+ ✗ Be vague ("Something went wrong")
236
+ ```
237
+
238
+ ## Interactive Prompts
239
+
240
+ ### Prompt Types
241
+
242
+ ```
243
+ Text Input:
244
+ Project name: my-awesome-app
245
+ ↑ Clear label
246
+
247
+ Select (Single Choice):
248
+ ? Select environment: (Use arrow keys)
249
+ ❯ development
250
+ staging
251
+ production
252
+
253
+ Checkbox (Multiple Choice):
254
+ ? Select features: (Press space to select, enter to confirm)
255
+ ◉ TypeScript
256
+ ◯ ESLint
257
+ ◉ Prettier
258
+ ◯ Jest
259
+
260
+ Confirmation:
261
+ ? Deploy to production? (y/N)
262
+ ↑ Default is No (safer)
263
+
264
+ Password:
265
+ ? Enter password: ********
266
+ ↑ Masked input
267
+ ```
268
+
269
+ ### Prompt Guidelines
270
+
271
+ ```
272
+ DO:
273
+ ✓ Show keyboard hints ("Use arrow keys", "Press space")
274
+ ✓ Provide sensible defaults (pre-select common choices)
275
+ ✓ Allow skipping with Ctrl+C
276
+ ✓ Validate input immediately
277
+ ✓ Show preview/summary before final action
278
+
279
+ DON'T:
280
+ ✗ Require interaction in CI/CD environments
281
+ ✗ Ask obvious questions (confirm every action)
282
+ ✗ Hide what will happen next
283
+ ✗ Make users repeat information
284
+ ```
285
+
286
+ ## Output Formatting
287
+
288
+ ### Tables
289
+
290
+ ```
291
+ Good:
292
+ ┌─────────────┬──────────┬──────────┐
293
+ │ Environment │ Status │ Updated │
294
+ ├─────────────┼──────────┼──────────┤
295
+ │ production │ ✓ Active │ 2h ago │
296
+ │ staging │ ✓ Active │ 5m ago │
297
+ │ development │ ✗ Down │ 1d ago │
298
+ └─────────────┴──────────┴──────────┘
299
+
300
+ Minimal (for scripting):
301
+ Environment Status Updated
302
+ production Active 2h ago
303
+ staging Active 5m ago
304
+ development Down 1d ago
305
+
306
+ JSON (for programmatic use):
307
+ [
308
+ {"env": "production", "status": "active", "updated": "2h ago"},
309
+ {"env": "staging", "status": "active", "updated": "5m ago"}
310
+ ]
311
+ ```
312
+
313
+ ### Lists
314
+
315
+ ```
316
+ Bulleted:
317
+ Features:
318
+ • TypeScript support
319
+ • Hot reload
320
+ • Auto-formatting
321
+
322
+ Numbered:
323
+ Steps to deploy:
324
+ 1. Build application
325
+ 2. Run tests
326
+ 3. Deploy to server
327
+ 4. Verify deployment
328
+
329
+ Tree:
330
+ my-app/
331
+ ├── src/
332
+ │ ├── components/
333
+ │ └── utils/
334
+ ├── tests/
335
+ └── package.json
336
+ ```
337
+
338
+ ## Status Messages
339
+
340
+ ### Real-time Updates
341
+
342
+ ```
343
+ Multi-step process:
344
+ ✓ Dependencies installed (2.3s)
345
+ ✓ Application built (8.1s)
346
+ ⠋ Running tests... (current)
347
+ ⏳ Deploying... (pending)
348
+ ⏳ Verifying... (pending)
349
+
350
+ Updates:
351
+ ⠋ Installing dependencies...
352
+ → npm install
353
+ ✓ Dependencies installed (2.3s)
354
+
355
+ ⠋ Building application...
356
+ → webpack build
357
+ ✓ Application built (8.1s)
358
+ → Output: dist/ (2.4 MB)
359
+ ```
360
+
361
+ ### Summary/Completion
362
+
363
+ ```
364
+ ✓ Deployment complete!
365
+
366
+ Summary:
367
+ Environment: production
368
+ Version: v1.2.3
369
+ Duration: 2m 34s
370
+ Deployed: 2023-12-14 10:30:45 UTC
371
+
372
+ Next steps:
373
+ • View logs: mycli logs production
374
+ • Monitor: mycli status production
375
+ • Rollback: mycli rollback production
376
+
377
+ URL: https://app.example.com
378
+ ```
379
+
380
+ ## Debugging & Verbose Mode
381
+
382
+ ```
383
+ Normal mode (default):
384
+ ✓ Deployed to production (2m 34s)
385
+
386
+ Verbose mode (--verbose):
387
+ [10:30:12] Starting deployment...
388
+ [10:30:13] Loading config from ./mycli.config.yml
389
+ [10:30:14] Connecting to production server...
390
+ [10:30:15] Uploading files (124 files, 2.4 MB)...
391
+ [10:30:28] Running post-deploy hooks...
392
+ [10:32:46] ✓ Deployment complete
393
+
394
+ Debug mode (--debug):
395
+ [DEBUG] Config loaded: {env: 'production', ...}
396
+ [DEBUG] SSH connection established: user@host
397
+ [DEBUG] Executing: rsync -avz ./dist/ user@host:/var/www/
398
+ [DEBUG] Output: sending incremental file list...
399
+ [DEBUG] Exit code: 0
400
+ ✓ Deployed to production (2m 34s)
401
+
402
+ Usage:
403
+ # Normal: concise output
404
+ mycli deploy production
405
+
406
+ # Verbose: detailed steps
407
+ mycli deploy production --verbose
408
+
409
+ # Debug: everything including internals
410
+ DEBUG=* mycli deploy production
411
+ ```
412
+
413
+ ## Man Page Format
414
+
415
+ ```
416
+ NAME
417
+ mycli-deploy - Deploy application to environment
418
+
419
+ SYNOPSIS
420
+ mycli deploy <environment> [options]
421
+
422
+ DESCRIPTION
423
+ Deploy your application to the specified environment.
424
+ Supports development, staging, and production environments.
425
+
426
+ OPTIONS
427
+ -c, --config <file>
428
+ Path to configuration file
429
+ Default: ./mycli.config.yml
430
+
431
+ -f, --force
432
+ Skip all confirmation prompts
433
+ Use with caution in production
434
+
435
+ -d, --dry-run
436
+ Preview deployment without executing
437
+ Shows what would be deployed
438
+
439
+ EXAMPLES
440
+ Deploy to production:
441
+ mycli deploy production
442
+
443
+ Preview staging deployment:
444
+ mycli deploy staging --dry-run
445
+
446
+ SEE ALSO
447
+ mycli-init(1), mycli-config(1), mycli-rollback(1)
448
+ ```
@@ -3,7 +3,7 @@ name: debug
3
3
  description: "Finds root cause for bugs, failing tests, build failures, regressions, and unexpected behavior before fixes. Not for new feature planning or routine code review."
4
4
  when_to_use: "debug, bug, test failure, build failure, regression, unexpected behavior, root cause, 报错, 失败, 回归, 排查"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Systematic Debugging
@@ -3,7 +3,7 @@ name: doc-readability
3
3
  description: "Use when evaluating, rewriting, or editing documents for human readability, unclear viewpoints, AI-like prose, bloated specs, PRDs, requirements docs, meeting notes, strategy docs, or internal knowledge-base articles. Not for code review, implementation planning, or file-format conversion."
4
4
  when_to_use: "document readability, PRD assessment, requirements gaps, AI-like prose, unclear viewpoint, rewrite docs, editing docs, 文档可读性, 去AI味, 需求文档评估"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Doc Readability
@@ -3,7 +3,7 @@ name: exec
3
3
  description: "Executes a written loopx implementation plan sequentially with review checkpoints. Not for unclear plans, missing requirements, or subagent-first execution."
4
4
  when_to_use: "written implementation plan, inline execution, sequential plan execution, review checkpoints, no subagent lane"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Exec
@@ -3,7 +3,7 @@ name: final-review
3
3
  description: "Performs whole-feature review after implementation and staged task review. Not for per-task review, unresolved scope, implementation, or pure documentation polish."
4
4
  when_to_use: "final-review, final code review, whole feature review, integration review, pre-finish review, after subagent-exec, runtime risk review, 最终评审"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Final Review
@@ -3,7 +3,7 @@ name: finish
3
3
  description: "Finishes completed loopx development work after tests pass by presenting merge, PR, keep, or discard options. Not for unfinished work or failing verification."
4
4
  when_to_use: "implementation complete, tests pass, finish branch, create pull request, merge locally, keep branch, discard work"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Finish
@@ -3,7 +3,7 @@ name: fix-review
3
3
  description: "Handles received code review feedback with verification, technical evaluation, pushback, and one-item-at-a-time fixes. Not for requesting a new review or implementing unrelated changes."
4
4
  when_to_use: "fix-review, received code review feedback, review comments, reviewer suggestions, requested changes, 处理评审意见"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Fix Review
@@ -3,7 +3,7 @@ name: go-style
3
3
  description: "Applies loopx Go coding style for .go edits, tests, errors, context, naming, and interface boundaries. Not for non-Go code or Kratos-specific architecture by itself."
4
4
  when_to_use: "go-style, Go, golang, .go files, go tests, gofmt, idiomatic Go, Go style, Go 代码"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Go Style
@@ -3,7 +3,7 @@ name: kratos
3
3
  description: "Supports Go-Kratos microservices, proto/buf APIs, service/biz/data layers, middleware, auth, config, and troubleshooting. Not for generic Go style alone."
4
4
  when_to_use: "kratos, Go-Kratos, proto, buf, service layer, biz layer, data layer, middleware, auth, config, Kratos 微服务"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  # Kratos
@@ -61,6 +61,7 @@ Use only the reference file needed for the current task:
61
61
  - MySQL `CREATE TABLE` statements must include a table-level `COMMENT`.
62
62
  - MySQL column definitions in `CREATE TABLE` or `ALTER TABLE ... ADD COLUMN` statements must include column-level `COMMENT`.
63
63
  - When using Ent schema for MySQL tables, add `.Comment(...)` to fields that are persisted as columns.
64
+ - Use `sql-style` for broader SQL/database discipline: schema semantics, migrations, indexes, dialect behavior, query plans, and performance-sensitive data access.
64
65
 
65
66
  ## Integration With Other loopx Skills
66
67
 
@@ -3,7 +3,7 @@ name: plan-to-exec
3
3
  description: "Creates bite-sized implementation plans from approved requirements, clarify output, or design specs with exact files, tests, commands, expected output, and execution handoff. Not for unresolved requirements, design decisions, PRD generation, or code changes."
4
4
  when_to_use: "plan-to-exec, plan, implementation plan, execution plan, task breakdown, approved requirements, approved design spec, docs/loopx/design, 实施计划, 执行计划, 任务拆分"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  argument-hint: "<design spec path or feature name>"
8
8
  ---
9
9
 
@@ -21,6 +21,17 @@ Use this skill after requirements are clear. The source may be:
21
21
  - `.loopx/intake/clarify-<slug>-<timestamp>.md`
22
22
  - an issue, PRD, or requirements document that already fixes material decisions
23
23
 
24
+ ## Repo Specs And Memory Context
25
+
26
+ Before using this skill in a repository, inspect loopx long-lived context when it exists:
27
+
28
+ - If `docs/loopx/specs/` exists, inspect the directory names and filenames. If `docs/loopx/specs/index.md` exists, use it as a map, but do not require it. Read only specs relevant to the requested domain, affected files, workflow behavior, or named source document.
29
+ - If `.loopx/memory/MEMORY.md` exists, read it as curated project memory before deciding what is already known.
30
+ - If `.loopx/memory/index.jsonl` exists, use it only as a retrieval index for relevant active memory cards; do not treat it as an append-only log.
31
+ - Treat current user instructions and the named source document as highest priority, `docs/loopx/specs/` as binding long-lived repo rules, and `.loopx/memory/` as advisory context. Memory is advisory and must not override current task instructions, approved source docs, or repo specs.
32
+
33
+ Do not read every file under `docs/loopx/specs/` by default. Prefer relevant specs selected by filename, title, frontmatter such as `applies_to`, or the files/domains involved in the task.
34
+
24
35
  Do not re-decide product or architecture. If the source is incomplete, contradictory, or missing product behavior, API, data, state, permission, migration, compatibility, or architecture decisions, return to `clarify` or `spec` instead of filling those gaps inside `plan`.
25
36
 
26
37
  **Announce at start:** "I'm using the plan-to-exec skill to create the implementation plan."
@@ -3,7 +3,7 @@ name: refactor-plan
3
3
  description: "Creates a behavior-preserving refactor plan with user interview, repo evidence, tiny commits, scope boundaries, and testing decisions. Not for feature changes or immediate implementation."
4
4
  when_to_use: "refactor-plan, refactor request, refactoring RFC, tiny commits, behavior-preserving cleanup, architecture cleanup, 重构计划"
5
5
  metadata:
6
- version: "0.2.8"
6
+ version: "0.2.10"
7
7
  ---
8
8
 
9
9
  This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary.