leniu-dev 2.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.
- package/.claude/agents/auto-test-generator.md +315 -0
- package/.claude/agents/bug-analyzer.md +103 -0
- package/.claude/agents/code-reviewer.md +122 -0
- package/.claude/agents/code-scanner.md +145 -0
- package/.claude/agents/image-reader.md +154 -0
- package/.claude/agents/loki-runner.md +80 -0
- package/.claude/agents/mysql-runner.md +81 -0
- package/.claude/agents/project-manager.md +159 -0
- package/.claude/agents/requirements-analyzer.md +175 -0
- package/.claude/agents/task-fetcher.md +75 -0
- package/.claude/audio/completed.wav +0 -0
- package/.claude/commands/add-todo.md +255 -0
- package/.claude/commands/auto-test.md +252 -0
- package/.claude/commands/check.md +210 -0
- package/.claude/commands/crud.md +454 -0
- package/.claude/commands/dev.md +532 -0
- package/.claude/commands/init-config.md +154 -0
- package/.claude/commands/init-docs.md +681 -0
- package/.claude/commands/next.md +281 -0
- package/.claude/commands/opsx-apply.md +147 -0
- package/.claude/commands/opsx-archive.md +105 -0
- package/.claude/commands/opsx-bulk-archive.md +237 -0
- package/.claude/commands/opsx-continue.md +109 -0
- package/.claude/commands/opsx-explore.md +281 -0
- package/.claude/commands/opsx-ff.md +92 -0
- package/.claude/commands/opsx-new.md +65 -0
- package/.claude/commands/opsx-onboard.md +397 -0
- package/.claude/commands/opsx-sync.md +129 -0
- package/.claude/commands/opsx-verify.md +159 -0
- package/.claude/commands/progress.md +264 -0
- package/.claude/commands/release.md +109 -0
- package/.claude/commands/start.md +199 -0
- package/.claude/commands/sync.md +307 -0
- package/.claude/commands/update-status.md +428 -0
- package/.claude/docs/Mixin/344/275/277/347/224/250/346/214/207/345/215/227.md +299 -0
- package/.claude/docs/README.md +167 -0
- package/.claude/docs//345/211/215/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +599 -0
- package/.claude/docs//345/220/216/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +726 -0
- package/.claude/docs//345/267/245/344/275/234/346/265/201/345/274/200/345/217/221/346/214/207/345/215/227.md +714 -0
- package/.claude/docs//345/267/245/345/205/267/347/261/273/344/275/277/347/224/250/346/214/207/345/215/227.md +463 -0
- package/.claude/docs//346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/350/247/204/350/214/203.md +390 -0
- package/.claude/docs//346/226/260/345/212/237/350/203/275/345/274/200/345/217/221/346/265/201/347/250/213/350/247/204/350/214/203.md +688 -0
- package/.claude/docs//346/226/260/351/241/271/347/233/256/345/274/200/345/217/221/346/265/201/347/250/213.md +365 -0
- package/.claude/docs//346/241/206/346/236/266/350/257/264/346/230/216.md +393 -0
- package/.claude/docs//350/267/257/347/224/261/351/205/215/347/275/256/346/214/207/345/215/227.md +246 -0
- package/.claude/framework-config.json +73 -0
- package/.claude/hooks/lib/notify.js +310 -0
- package/.claude/hooks/pre-tool-use.js +117 -0
- package/.claude/hooks/skill-forced-eval.js +161 -0
- package/.claude/hooks/stop.js +55 -0
- package/.claude/notify-config.json +9 -0
- package/.claude/settings.json +57 -0
- package/.claude/skills/add-skill/SKILL.md +488 -0
- package/.claude/skills/analyze-requirements/SKILL.md +112 -0
- package/.claude/skills/api-development/SKILL.md +315 -0
- package/.claude/skills/architecture-design/SKILL.md +152 -0
- package/.claude/skills/auto-test/SKILL.md +625 -0
- package/.claude/skills/auto-test/references/api-conventions.md +260 -0
- package/.claude/skills/backend-annotations/SKILL.md +248 -0
- package/.claude/skills/banana-image/CHANGELOG.md +37 -0
- package/.claude/skills/banana-image/README.md +146 -0
- package/.claude/skills/banana-image/SKILL.md +171 -0
- package/.claude/skills/banana-image/assets/logo.png +0 -0
- package/.claude/skills/banana-image/references/advanced-usage.md +189 -0
- package/.claude/skills/banana-image/scripts/apply_template.py +125 -0
- package/.claude/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.claude/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.claude/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.claude/skills/banana-image/scripts/package.json +18 -0
- package/.claude/skills/banana-image/scripts/requirements.txt +10 -0
- package/.claude/skills/banana-image/templates/poster.json +22 -0
- package/.claude/skills/banana-image/templates/product.json +17 -0
- package/.claude/skills/banana-image/templates/social.json +22 -0
- package/.claude/skills/banana-image/templates/thumbnail.json +17 -0
- package/.claude/skills/brainstorm/SKILL.md +216 -0
- package/.claude/skills/bug-detective/SKILL.md +295 -0
- package/.claude/skills/bug-detective/references/error-patterns.md +242 -0
- package/.claude/skills/chrome-cdp/SKILL.md +81 -0
- package/.claude/skills/chrome-cdp/scripts/cdp.mjs +838 -0
- package/.claude/skills/chrome-cdp/scripts/run-cdp.sh +7 -0
- package/.claude/skills/code-patterns/SKILL.md +163 -0
- package/.claude/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/.claude/skills/codex-code-review/SKILL.md +327 -0
- package/.claude/skills/collaborating-with-codex/SKILL.md +180 -0
- package/.claude/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.claude/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.claude/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.claude/skills/crud-development/SKILL.md +328 -0
- package/.claude/skills/data-permission/SKILL.md +221 -0
- package/.claude/skills/data-permission/references/custom-data-scope.md +90 -0
- package/.claude/skills/database-ops/SKILL.md +210 -0
- package/.claude/skills/error-handler/SKILL.md +310 -0
- package/.claude/skills/file-oss-management/SKILL.md +260 -0
- package/.claude/skills/file-oss-management/references/entities.md +105 -0
- package/.claude/skills/file-oss-management/references/service-impl.md +104 -0
- package/.claude/skills/fix-bug/SKILL.md +269 -0
- package/.claude/skills/git-workflow/SKILL.md +179 -0
- package/.claude/skills/jenkins-deploy/SKILL.md +134 -0
- package/.claude/skills/jenkins-deploy/assets/env_param.template.json +51 -0
- package/.claude/skills/jenkins-deploy/assets/jk_build.py +400 -0
- package/.claude/skills/json-serialization/SKILL.md +341 -0
- package/.claude/skills/lanhu-design/SKILL.md +99 -0
- package/.claude/skills/leniu-api-development/SKILL.md +319 -0
- package/.claude/skills/leniu-api-development/references/real-examples.md +273 -0
- package/.claude/skills/leniu-architecture-design/SKILL.md +383 -0
- package/.claude/skills/leniu-backend-annotations/SKILL.md +277 -0
- package/.claude/skills/leniu-brainstorm/SKILL.md +242 -0
- package/.claude/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/.claude/skills/leniu-code-patterns/SKILL.md +411 -0
- package/.claude/skills/leniu-crud-development/SKILL.md +404 -0
- package/.claude/skills/leniu-crud-development/references/templates.md +597 -0
- package/.claude/skills/leniu-customization-location/SKILL.md +410 -0
- package/.claude/skills/leniu-data-permission/SKILL.md +341 -0
- package/.claude/skills/leniu-database-ops/SKILL.md +426 -0
- package/.claude/skills/leniu-error-handler/SKILL.md +462 -0
- package/.claude/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.claude/skills/leniu-java-entity/SKILL.md +237 -0
- package/.claude/skills/leniu-java-entity/references/templates.md +237 -0
- package/.claude/skills/leniu-java-logging/SKILL.md +229 -0
- package/.claude/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/.claude/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/.claude/skills/leniu-java-mq/SKILL.md +338 -0
- package/.claude/skills/leniu-java-mybatis/SKILL.md +267 -0
- package/.claude/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/.claude/skills/leniu-java-task/SKILL.md +367 -0
- package/.claude/skills/leniu-marketing-scenario/SKILL.md +448 -0
- package/.claude/skills/leniu-marketing-scenario/references/pay-meal-rules.md +197 -0
- package/.claude/skills/leniu-marketing-scenario/references/price-rules.md +286 -0
- package/.claude/skills/leniu-marketing-scenario/references/recharge-rules.md +188 -0
- package/.claude/skills/leniu-redis-cache/SKILL.md +331 -0
- package/.claude/skills/leniu-report-scenario/SKILL.md +508 -0
- package/.claude/skills/leniu-report-scenario/references/amount-handling.md +448 -0
- package/.claude/skills/leniu-report-scenario/references/analysis-module.md +64 -0
- package/.claude/skills/leniu-report-scenario/references/customization-table-fields.md +93 -0
- package/.claude/skills/leniu-report-scenario/references/customization.md +356 -0
- package/.claude/skills/leniu-report-scenario/references/data-permission.md +182 -0
- package/.claude/skills/leniu-report-scenario/references/export.md +553 -0
- package/.claude/skills/leniu-report-scenario/references/mealtime.md +197 -0
- package/.claude/skills/leniu-report-scenario/references/query-param.md +274 -0
- package/.claude/skills/leniu-report-scenario/references/report-tables.md +162 -0
- package/.claude/skills/leniu-report-scenario/references/standard-customization.md +112 -0
- package/.claude/skills/leniu-report-scenario/references/standard-table-fields.md +113 -0
- package/.claude/skills/leniu-report-scenario/references/total-line.md +179 -0
- package/.claude/skills/leniu-security-guard/SKILL.md +306 -0
- package/.claude/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.claude/skills/loki-log-query/SKILL.md +430 -0
- package/.claude/skills/mysql-debug/SKILL.md +406 -0
- package/.claude/skills/performance-doctor/SKILL.md +297 -0
- package/.claude/skills/project-navigator/SKILL.md +211 -0
- package/.claude/skills/redis-cache/SKILL.md +282 -0
- package/.claude/skills/redis-cache/references/listeners.md +23 -0
- package/.claude/skills/scheduled-jobs/SKILL.md +277 -0
- package/.claude/skills/security-guard/SKILL.md +245 -0
- package/.claude/skills/security-guard/references/encrypt-config.md +103 -0
- package/.claude/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/.claude/skills/sms-mail/SKILL.md +346 -0
- package/.claude/skills/sms-mail/references/mail-config.md +88 -0
- package/.claude/skills/sms-mail/references/sms-config.md +74 -0
- package/.claude/skills/social-login/SKILL.md +328 -0
- package/.claude/skills/social-login/references/provider-configs.md +118 -0
- package/.claude/skills/store-pc/SKILL.md +366 -0
- package/.claude/skills/sync-back-merge/SKILL.md +66 -0
- package/.claude/skills/task-tracker/SKILL.md +307 -0
- package/.claude/skills/tech-decision/SKILL.md +393 -0
- package/.claude/skills/tenant-management/SKILL.md +272 -0
- package/.claude/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/.claude/skills/test-development/SKILL.md +301 -0
- package/.claude/skills/test-development/references/parameterized-examples.md +119 -0
- package/.claude/skills/ui-pc/SKILL.md +438 -0
- package/.claude/skills/utils-toolkit/SKILL.md +354 -0
- package/.claude/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/.claude/skills/websocket-sse/SKILL.md +350 -0
- package/.claude/skills/workflow-engine/SKILL.md +249 -0
- package/.claude/skills/yunxiao-task-management/SKILL.md +401 -0
- package/.claude/skills/yunxiao-task-management/templates//346/217/220/346/265/213/345/215/225/346/250/241/346/235/277.html +17 -0
- package/.claude/templates/env-config.md +27 -0
- package/.claude/templates//345/276/205/345/212/236/346/270/205/345/215/225/346/250/241/346/235/277.md +56 -0
- package/.claude/templates//351/234/200/346/261/202/346/226/207/346/241/243/346/250/241/346/235/277.md +85 -0
- package/.claude/templates//351/241/271/347/233/256/347/212/266/346/200/201/346/250/241/346/235/277.md +43 -0
- package/.codex/skills/add-skill/SKILL.md +488 -0
- package/.codex/skills/add-todo/SKILL.md +269 -0
- package/.codex/skills/analyze-requirements/SKILL.md +112 -0
- package/.codex/skills/api-development/SKILL.md +315 -0
- package/.codex/skills/architecture-design/SKILL.md +152 -0
- package/.codex/skills/auto-test/SKILL.md +453 -0
- package/.codex/skills/auto-test/references/api-conventions.md +260 -0
- package/.codex/skills/backend-annotations/SKILL.md +248 -0
- package/.codex/skills/banana-image/CHANGELOG.md +37 -0
- package/.codex/skills/banana-image/README.md +146 -0
- package/.codex/skills/banana-image/SKILL.md +171 -0
- package/.codex/skills/banana-image/assets/logo.png +0 -0
- package/.codex/skills/banana-image/references/advanced-usage.md +189 -0
- package/.codex/skills/banana-image/scripts/apply_template.py +125 -0
- package/.codex/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.codex/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.codex/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.codex/skills/banana-image/scripts/package.json +18 -0
- package/.codex/skills/banana-image/scripts/requirements.txt +10 -0
- package/.codex/skills/banana-image/templates/poster.json +22 -0
- package/.codex/skills/banana-image/templates/product.json +17 -0
- package/.codex/skills/banana-image/templates/social.json +22 -0
- package/.codex/skills/banana-image/templates/thumbnail.json +17 -0
- package/.codex/skills/brainstorm/SKILL.md +216 -0
- package/.codex/skills/bug-detective/SKILL.md +295 -0
- package/.codex/skills/bug-detective/references/error-patterns.md +242 -0
- package/.codex/skills/check/SKILL.md +367 -0
- package/.codex/skills/code-patterns/SKILL.md +163 -0
- package/.codex/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/.codex/skills/collaborating-with-codex/SKILL.md +180 -0
- package/.codex/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.codex/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.codex/skills/crud/SKILL.md +265 -0
- package/.codex/skills/crud-development/SKILL.md +328 -0
- package/.codex/skills/data-permission/SKILL.md +221 -0
- package/.codex/skills/data-permission/references/custom-data-scope.md +90 -0
- package/.codex/skills/database-ops/SKILL.md +210 -0
- package/.codex/skills/dev/SKILL.md +187 -0
- package/.codex/skills/error-handler/SKILL.md +310 -0
- package/.codex/skills/file-oss-management/SKILL.md +260 -0
- package/.codex/skills/file-oss-management/references/entities.md +105 -0
- package/.codex/skills/file-oss-management/references/service-impl.md +104 -0
- package/.codex/skills/fix-bug/SKILL.md +269 -0
- package/.codex/skills/git-workflow/SKILL.md +179 -0
- package/.codex/skills/init-docs/SKILL.md +194 -0
- package/.codex/skills/jenkins-deploy/SKILL.md +134 -0
- package/.codex/skills/json-serialization/SKILL.md +341 -0
- package/.codex/skills/lanhu-design/SKILL.md +99 -0
- package/.codex/skills/leniu-api-development/SKILL.md +319 -0
- package/.codex/skills/leniu-api-development/references/real-examples.md +273 -0
- package/.codex/skills/leniu-architecture-design/SKILL.md +383 -0
- package/.codex/skills/leniu-backend-annotations/SKILL.md +277 -0
- package/.codex/skills/leniu-brainstorm/SKILL.md +242 -0
- package/.codex/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/.codex/skills/leniu-code-patterns/SKILL.md +411 -0
- package/.codex/skills/leniu-crud-development/SKILL.md +404 -0
- package/.codex/skills/leniu-crud-development/references/templates.md +597 -0
- package/.codex/skills/leniu-customization-location/SKILL.md +410 -0
- package/.codex/skills/leniu-data-permission/SKILL.md +341 -0
- package/.codex/skills/leniu-database-ops/SKILL.md +426 -0
- package/.codex/skills/leniu-error-handler/SKILL.md +462 -0
- package/.codex/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.codex/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.codex/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.codex/skills/leniu-java-entity/SKILL.md +237 -0
- package/.codex/skills/leniu-java-entity/references/templates.md +237 -0
- package/.codex/skills/leniu-java-logging/SKILL.md +229 -0
- package/.codex/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/.codex/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/.codex/skills/leniu-java-mq/SKILL.md +338 -0
- package/.codex/skills/leniu-java-mybatis/SKILL.md +267 -0
- package/.codex/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/.codex/skills/leniu-java-task/SKILL.md +367 -0
- package/.codex/skills/leniu-marketing-scenario/SKILL.md +448 -0
- package/.codex/skills/leniu-marketing-scenario/references/pay-meal-rules.md +197 -0
- package/.codex/skills/leniu-marketing-scenario/references/price-rules.md +286 -0
- package/.codex/skills/leniu-marketing-scenario/references/recharge-rules.md +188 -0
- package/.codex/skills/leniu-redis-cache/SKILL.md +331 -0
- package/.codex/skills/leniu-report-scenario/SKILL.md +508 -0
- package/.codex/skills/leniu-report-scenario/references/amount-handling.md +448 -0
- package/.codex/skills/leniu-report-scenario/references/analysis-module.md +64 -0
- package/.codex/skills/leniu-report-scenario/references/customization-table-fields.md +93 -0
- package/.codex/skills/leniu-report-scenario/references/customization.md +356 -0
- package/.codex/skills/leniu-report-scenario/references/data-permission.md +182 -0
- package/.codex/skills/leniu-report-scenario/references/export.md +553 -0
- package/.codex/skills/leniu-report-scenario/references/mealtime.md +197 -0
- package/.codex/skills/leniu-report-scenario/references/query-param.md +274 -0
- package/.codex/skills/leniu-report-scenario/references/report-tables.md +162 -0
- package/.codex/skills/leniu-report-scenario/references/standard-customization.md +112 -0
- package/.codex/skills/leniu-report-scenario/references/standard-table-fields.md +113 -0
- package/.codex/skills/leniu-report-scenario/references/total-line.md +179 -0
- package/.codex/skills/leniu-security-guard/SKILL.md +306 -0
- package/.codex/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.codex/skills/loki-log-query/SKILL.md +430 -0
- package/.codex/skills/loki-log-query/environments.json +45 -0
- package/.codex/skills/mysql-debug/SKILL.md +406 -0
- package/.codex/skills/next/SKILL.md +137 -0
- package/.codex/skills/openspec-apply-change/SKILL.md +165 -0
- package/.codex/skills/openspec-archive-change/SKILL.md +122 -0
- package/.codex/skills/openspec-bulk-archive-change/SKILL.md +254 -0
- package/.codex/skills/openspec-continue-change/SKILL.md +126 -0
- package/.codex/skills/openspec-explore/SKILL.md +299 -0
- package/.codex/skills/openspec-ff-change/SKILL.md +109 -0
- package/.codex/skills/openspec-new-change/SKILL.md +82 -0
- package/.codex/skills/openspec-onboard/SKILL.md +414 -0
- package/.codex/skills/openspec-sync-specs/SKILL.md +146 -0
- package/.codex/skills/openspec-verify-change/SKILL.md +176 -0
- package/.codex/skills/performance-doctor/SKILL.md +297 -0
- package/.codex/skills/progress/SKILL.md +193 -0
- package/.codex/skills/project-navigator/SKILL.md +211 -0
- package/.codex/skills/redis-cache/SKILL.md +282 -0
- package/.codex/skills/redis-cache/references/listeners.md +23 -0
- package/.codex/skills/scheduled-jobs/SKILL.md +277 -0
- package/.codex/skills/security-guard/SKILL.md +245 -0
- package/.codex/skills/security-guard/references/encrypt-config.md +103 -0
- package/.codex/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/.codex/skills/skill-creator/LICENSE.txt +202 -0
- package/.codex/skills/skill-creator/SKILL.md +479 -0
- package/.codex/skills/skill-creator/agents/analyzer.md +274 -0
- package/.codex/skills/skill-creator/agents/comparator.md +202 -0
- package/.codex/skills/skill-creator/agents/grader.md +223 -0
- package/.codex/skills/skill-creator/assets/eval_review.html +146 -0
- package/.codex/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/.codex/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/.codex/skills/skill-creator/references/schemas.md +430 -0
- package/.codex/skills/skill-creator/scripts/__init__.py +0 -0
- package/.codex/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/.codex/skills/skill-creator/scripts/generate_report.py +326 -0
- package/.codex/skills/skill-creator/scripts/improve_description.py +248 -0
- package/.codex/skills/skill-creator/scripts/package_skill.py +136 -0
- package/.codex/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/.codex/skills/skill-creator/scripts/run_eval.py +310 -0
- package/.codex/skills/skill-creator/scripts/run_loop.py +332 -0
- package/.codex/skills/skill-creator/scripts/utils.py +47 -0
- package/.codex/skills/sms-mail/SKILL.md +346 -0
- package/.codex/skills/sms-mail/references/mail-config.md +88 -0
- package/.codex/skills/sms-mail/references/sms-config.md +74 -0
- package/.codex/skills/social-login/SKILL.md +328 -0
- package/.codex/skills/social-login/references/provider-configs.md +118 -0
- package/.codex/skills/start/SKILL.md +154 -0
- package/.codex/skills/store-pc/SKILL.md +366 -0
- package/.codex/skills/sync/SKILL.md +149 -0
- package/.codex/skills/sync-back-merge/SKILL.md +66 -0
- package/.codex/skills/task-tracker/SKILL.md +307 -0
- package/.codex/skills/tech-decision/SKILL.md +393 -0
- package/.codex/skills/tenant-management/SKILL.md +272 -0
- package/.codex/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/.codex/skills/test-development/SKILL.md +301 -0
- package/.codex/skills/test-development/references/parameterized-examples.md +119 -0
- package/.codex/skills/ui-pc/SKILL.md +438 -0
- package/.codex/skills/update-status/SKILL.md +159 -0
- package/.codex/skills/utils-toolkit/SKILL.md +354 -0
- package/.codex/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/.codex/skills/websocket-sse/SKILL.md +350 -0
- package/.codex/skills/workflow-engine/SKILL.md +249 -0
- package/.codex/skills/yunxiao-task-management/SKILL.md +401 -0
- package/.codex/skills/yunxiao-task-management/templates//346/217/220/346/265/213/345/215/225/346/250/241/346/235/277.html +17 -0
- package/.cursor/agents/bug-analyzer.md +102 -0
- package/.cursor/agents/code-reviewer.md +122 -0
- package/.cursor/agents/code-scanner.md +145 -0
- package/.cursor/agents/image-reader.md +154 -0
- package/.cursor/agents/loki-runner.md +80 -0
- package/.cursor/agents/mysql-runner.md +81 -0
- package/.cursor/agents/project-manager.md +159 -0
- package/.cursor/agents/requirements-analyzer.md +141 -0
- package/.cursor/agents/task-fetcher.md +75 -0
- package/.cursor/audio/completed.wav +0 -0
- package/.cursor/commands/opsx-apply.md +152 -0
- package/.cursor/commands/opsx-archive.md +157 -0
- package/.cursor/commands/opsx-bulk-archive.md +242 -0
- package/.cursor/commands/opsx-continue.md +114 -0
- package/.cursor/commands/opsx-explore.md +174 -0
- package/.cursor/commands/opsx-ff.md +94 -0
- package/.cursor/commands/opsx-new.md +69 -0
- package/.cursor/commands/opsx-onboard.md +525 -0
- package/.cursor/commands/opsx-sync.md +134 -0
- package/.cursor/commands/opsx-verify.md +164 -0
- package/.cursor/hooks/cursor-pre-tool-use.js +122 -0
- package/.cursor/hooks/cursor-skill-eval.js +466 -0
- package/.cursor/hooks/lib/notify.js +310 -0
- package/.cursor/hooks/stop.js +55 -0
- package/.cursor/hooks.json +23 -0
- package/.cursor/mcp.json +22 -0
- package/.cursor/rules/skill-activation.mdc +99 -0
- package/.cursor/skills/add-skill/SKILL.md +488 -0
- package/.cursor/skills/analyze-requirements/SKILL.md +112 -0
- package/.cursor/skills/api-development/SKILL.md +315 -0
- package/.cursor/skills/architecture-design/SKILL.md +152 -0
- package/.cursor/skills/auto-test/SKILL.md +453 -0
- package/.cursor/skills/auto-test/references/api-conventions.md +260 -0
- package/.cursor/skills/backend-annotations/SKILL.md +248 -0
- package/.cursor/skills/banana-image/CHANGELOG.md +37 -0
- package/.cursor/skills/banana-image/README.md +146 -0
- package/.cursor/skills/banana-image/SKILL.md +171 -0
- package/.cursor/skills/banana-image/assets/logo.png +0 -0
- package/.cursor/skills/banana-image/references/advanced-usage.md +189 -0
- package/.cursor/skills/banana-image/scripts/apply_template.py +125 -0
- package/.cursor/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.cursor/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.cursor/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.cursor/skills/banana-image/scripts/package.json +18 -0
- package/.cursor/skills/banana-image/scripts/requirements.txt +10 -0
- package/.cursor/skills/banana-image/templates/poster.json +22 -0
- package/.cursor/skills/banana-image/templates/product.json +17 -0
- package/.cursor/skills/banana-image/templates/social.json +22 -0
- package/.cursor/skills/banana-image/templates/thumbnail.json +17 -0
- package/.cursor/skills/brainstorm/SKILL.md +216 -0
- package/.cursor/skills/bug-detective/SKILL.md +295 -0
- package/.cursor/skills/bug-detective/references/error-patterns.md +242 -0
- package/.cursor/skills/code-patterns/SKILL.md +163 -0
- package/.cursor/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/.cursor/skills/collaborating-with-codex/SKILL.md +180 -0
- package/.cursor/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.cursor/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.cursor/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.cursor/skills/crud-development/SKILL.md +328 -0
- package/.cursor/skills/data-permission/SKILL.md +221 -0
- package/.cursor/skills/data-permission/references/custom-data-scope.md +90 -0
- package/.cursor/skills/database-ops/SKILL.md +210 -0
- package/.cursor/skills/error-handler/SKILL.md +310 -0
- package/.cursor/skills/file-oss-management/SKILL.md +260 -0
- package/.cursor/skills/file-oss-management/references/entities.md +105 -0
- package/.cursor/skills/file-oss-management/references/service-impl.md +104 -0
- package/.cursor/skills/fix-bug/SKILL.md +269 -0
- package/.cursor/skills/git-workflow/SKILL.md +179 -0
- package/.cursor/skills/jenkins-deploy/SKILL.md +134 -0
- package/.cursor/skills/json-serialization/SKILL.md +341 -0
- package/.cursor/skills/lanhu-design/SKILL.md +99 -0
- package/.cursor/skills/leniu-api-development/SKILL.md +319 -0
- package/.cursor/skills/leniu-api-development/references/real-examples.md +273 -0
- package/.cursor/skills/leniu-architecture-design/SKILL.md +383 -0
- package/.cursor/skills/leniu-backend-annotations/SKILL.md +277 -0
- package/.cursor/skills/leniu-brainstorm/SKILL.md +242 -0
- package/.cursor/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/.cursor/skills/leniu-code-patterns/SKILL.md +411 -0
- package/.cursor/skills/leniu-crud-development/SKILL.md +404 -0
- package/.cursor/skills/leniu-crud-development/references/templates.md +597 -0
- package/.cursor/skills/leniu-customization-location/SKILL.md +410 -0
- package/.cursor/skills/leniu-data-permission/SKILL.md +341 -0
- package/.cursor/skills/leniu-database-ops/SKILL.md +426 -0
- package/.cursor/skills/leniu-error-handler/SKILL.md +462 -0
- package/.cursor/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.cursor/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.cursor/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.cursor/skills/leniu-java-entity/SKILL.md +237 -0
- package/.cursor/skills/leniu-java-entity/references/templates.md +237 -0
- package/.cursor/skills/leniu-java-logging/SKILL.md +229 -0
- package/.cursor/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/.cursor/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/.cursor/skills/leniu-java-mq/SKILL.md +338 -0
- package/.cursor/skills/leniu-java-mybatis/SKILL.md +267 -0
- package/.cursor/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/.cursor/skills/leniu-java-task/SKILL.md +367 -0
- package/.cursor/skills/leniu-marketing-scenario/SKILL.md +448 -0
- package/.cursor/skills/leniu-marketing-scenario/references/pay-meal-rules.md +197 -0
- package/.cursor/skills/leniu-marketing-scenario/references/price-rules.md +286 -0
- package/.cursor/skills/leniu-marketing-scenario/references/recharge-rules.md +188 -0
- package/.cursor/skills/leniu-redis-cache/SKILL.md +331 -0
- package/.cursor/skills/leniu-report-scenario/SKILL.md +508 -0
- package/.cursor/skills/leniu-report-scenario/references/amount-handling.md +448 -0
- package/.cursor/skills/leniu-report-scenario/references/analysis-module.md +64 -0
- package/.cursor/skills/leniu-report-scenario/references/customization-table-fields.md +93 -0
- package/.cursor/skills/leniu-report-scenario/references/customization.md +356 -0
- package/.cursor/skills/leniu-report-scenario/references/data-permission.md +182 -0
- package/.cursor/skills/leniu-report-scenario/references/export.md +553 -0
- package/.cursor/skills/leniu-report-scenario/references/mealtime.md +197 -0
- package/.cursor/skills/leniu-report-scenario/references/query-param.md +274 -0
- package/.cursor/skills/leniu-report-scenario/references/report-tables.md +162 -0
- package/.cursor/skills/leniu-report-scenario/references/standard-customization.md +112 -0
- package/.cursor/skills/leniu-report-scenario/references/standard-table-fields.md +113 -0
- package/.cursor/skills/leniu-report-scenario/references/total-line.md +179 -0
- package/.cursor/skills/leniu-security-guard/SKILL.md +306 -0
- package/.cursor/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.cursor/skills/loki-log-query/SKILL.md +430 -0
- package/.cursor/skills/loki-log-query/environments.json +45 -0
- package/.cursor/skills/mysql-debug/SKILL.md +406 -0
- package/.cursor/skills/openspec-apply-change/SKILL.md +165 -0
- package/.cursor/skills/openspec-archive-change/SKILL.md +122 -0
- package/.cursor/skills/openspec-bulk-archive-change/SKILL.md +254 -0
- package/.cursor/skills/openspec-continue-change/SKILL.md +126 -0
- package/.cursor/skills/openspec-explore/SKILL.md +299 -0
- package/.cursor/skills/openspec-ff-change/SKILL.md +109 -0
- package/.cursor/skills/openspec-new-change/SKILL.md +82 -0
- package/.cursor/skills/openspec-onboard/SKILL.md +414 -0
- package/.cursor/skills/openspec-sync-specs/SKILL.md +146 -0
- package/.cursor/skills/openspec-verify-change/SKILL.md +176 -0
- package/.cursor/skills/performance-doctor/SKILL.md +297 -0
- package/.cursor/skills/project-navigator/SKILL.md +211 -0
- package/.cursor/skills/redis-cache/SKILL.md +282 -0
- package/.cursor/skills/redis-cache/references/listeners.md +23 -0
- package/.cursor/skills/scheduled-jobs/SKILL.md +277 -0
- package/.cursor/skills/security-guard/SKILL.md +245 -0
- package/.cursor/skills/security-guard/references/encrypt-config.md +103 -0
- package/.cursor/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/.cursor/skills/skill-creator/LICENSE.txt +202 -0
- package/.cursor/skills/skill-creator/SKILL.md +479 -0
- package/.cursor/skills/skill-creator/agents/analyzer.md +274 -0
- package/.cursor/skills/skill-creator/agents/comparator.md +202 -0
- package/.cursor/skills/skill-creator/agents/grader.md +223 -0
- package/.cursor/skills/skill-creator/assets/eval_review.html +146 -0
- package/.cursor/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/.cursor/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/.cursor/skills/skill-creator/references/schemas.md +430 -0
- package/.cursor/skills/skill-creator/scripts/__init__.py +0 -0
- package/.cursor/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/.cursor/skills/skill-creator/scripts/generate_report.py +326 -0
- package/.cursor/skills/skill-creator/scripts/improve_description.py +248 -0
- package/.cursor/skills/skill-creator/scripts/package_skill.py +136 -0
- package/.cursor/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/.cursor/skills/skill-creator/scripts/run_eval.py +310 -0
- package/.cursor/skills/skill-creator/scripts/run_loop.py +332 -0
- package/.cursor/skills/skill-creator/scripts/utils.py +47 -0
- package/.cursor/skills/sms-mail/SKILL.md +346 -0
- package/.cursor/skills/sms-mail/references/mail-config.md +88 -0
- package/.cursor/skills/sms-mail/references/sms-config.md +74 -0
- package/.cursor/skills/social-login/SKILL.md +328 -0
- package/.cursor/skills/social-login/references/provider-configs.md +118 -0
- package/.cursor/skills/store-pc/SKILL.md +366 -0
- package/.cursor/skills/sync-back-merge/SKILL.md +66 -0
- package/.cursor/skills/task-tracker/SKILL.md +307 -0
- package/.cursor/skills/tech-decision/SKILL.md +393 -0
- package/.cursor/skills/tenant-management/SKILL.md +272 -0
- package/.cursor/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/.cursor/skills/test-development/SKILL.md +301 -0
- package/.cursor/skills/test-development/references/parameterized-examples.md +119 -0
- package/.cursor/skills/ui-pc/SKILL.md +438 -0
- package/.cursor/skills/utils-toolkit/SKILL.md +354 -0
- package/.cursor/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/.cursor/skills/websocket-sse/SKILL.md +350 -0
- package/.cursor/skills/workflow-engine/SKILL.md +249 -0
- package/.cursor/skills/yunxiao-task-management/SKILL.md +401 -0
- package/.cursor/skills/yunxiao-task-management/templates//346/217/220/346/265/213/345/215/225/346/250/241/346/235/277.html +17 -0
- package/.cursor/templates/env-config.md +27 -0
- package/AGENTS.md +275 -0
- package/CLAUDE.md +285 -0
- package/README.md +104 -0
- package/bin/index.js +3069 -0
- package/init.sh +178 -0
- package/package.json +40 -0
- package/scripts/build-skills.js +180 -0
- package/src/platform-map.json +100 -0
- package/src/skills/add-skill/SKILL.md +488 -0
- package/src/skills/add-todo/SKILL.md +269 -0
- package/src/skills/analyze-requirements/SKILL.md +112 -0
- package/src/skills/api-development/SKILL.md +315 -0
- package/src/skills/architecture-design/SKILL.md +152 -0
- package/src/skills/backend-annotations/SKILL.md +248 -0
- package/src/skills/banana-image/CHANGELOG.md +37 -0
- package/src/skills/banana-image/README.md +146 -0
- package/src/skills/banana-image/SKILL.md +171 -0
- package/src/skills/banana-image/assets/logo.png +0 -0
- package/src/skills/banana-image/references/advanced-usage.md +189 -0
- package/src/skills/banana-image/scripts/apply_template.py +125 -0
- package/src/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/src/skills/banana-image/scripts/batch_prep.py +82 -0
- package/src/skills/banana-image/scripts/package-lock.json +1437 -0
- package/src/skills/banana-image/scripts/package.json +18 -0
- package/src/skills/banana-image/scripts/requirements.txt +10 -0
- package/src/skills/banana-image/templates/poster.json +22 -0
- package/src/skills/banana-image/templates/product.json +17 -0
- package/src/skills/banana-image/templates/social.json +22 -0
- package/src/skills/banana-image/templates/thumbnail.json +17 -0
- package/src/skills/brainstorm/SKILL.md +216 -0
- package/src/skills/bug-detective/SKILL.md +295 -0
- package/src/skills/bug-detective/references/error-patterns.md +242 -0
- package/src/skills/check/SKILL.md +367 -0
- package/src/skills/code-patterns/SKILL.md +163 -0
- package/src/skills/code-patterns/references/leniu-code-patterns.md +87 -0
- package/src/skills/codex-code-review/SKILL.md +327 -0
- package/src/skills/collaborating-with-codex/SKILL.md +180 -0
- package/src/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/src/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/src/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/src/skills/crud/SKILL.md +265 -0
- package/src/skills/crud-development/SKILL.md +328 -0
- package/src/skills/data-permission/SKILL.md +221 -0
- package/src/skills/data-permission/references/custom-data-scope.md +90 -0
- package/src/skills/database-ops/SKILL.md +210 -0
- package/src/skills/dev/SKILL.md +187 -0
- package/src/skills/error-handler/SKILL.md +310 -0
- package/src/skills/file-oss-management/SKILL.md +260 -0
- package/src/skills/file-oss-management/references/entities.md +105 -0
- package/src/skills/file-oss-management/references/service-impl.md +104 -0
- package/src/skills/fix-bug/SKILL.md +269 -0
- package/src/skills/git-workflow/SKILL.md +179 -0
- package/src/skills/init-docs/SKILL.md +194 -0
- package/src/skills/json-serialization/SKILL.md +341 -0
- package/src/skills/leniu-api-development/SKILL.md +319 -0
- package/src/skills/leniu-api-development/references/real-examples.md +273 -0
- package/src/skills/leniu-architecture-design/SKILL.md +383 -0
- package/src/skills/leniu-backend-annotations/SKILL.md +277 -0
- package/src/skills/leniu-brainstorm/SKILL.md +242 -0
- package/src/skills/leniu-brainstorm/references/business-scenarios.md +162 -0
- package/src/skills/leniu-code-patterns/SKILL.md +411 -0
- package/src/skills/leniu-crud-development/SKILL.md +404 -0
- package/src/skills/leniu-crud-development/references/templates.md +597 -0
- package/src/skills/leniu-customization-location/SKILL.md +410 -0
- package/src/skills/leniu-data-permission/SKILL.md +341 -0
- package/src/skills/leniu-database-ops/SKILL.md +426 -0
- package/src/skills/leniu-error-handler/SKILL.md +462 -0
- package/src/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/src/skills/leniu-java-code-style/SKILL.md +510 -0
- package/src/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/src/skills/leniu-java-entity/SKILL.md +237 -0
- package/src/skills/leniu-java-entity/references/templates.md +237 -0
- package/src/skills/leniu-java-export/SKILL.md +570 -0
- package/src/skills/leniu-java-logging/SKILL.md +229 -0
- package/src/skills/leniu-java-logging/references/data-mask.md +46 -0
- package/src/skills/leniu-java-logging/references/logging-scenarios.md +113 -0
- package/src/skills/leniu-java-mq/SKILL.md +338 -0
- package/src/skills/leniu-java-mybatis/SKILL.md +267 -0
- package/src/skills/leniu-java-mybatis/references/report-mapper.md +88 -0
- package/src/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/src/skills/leniu-java-task/SKILL.md +367 -0
- package/src/skills/leniu-java-total-line/SKILL.md +196 -0
- package/src/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/src/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/src/skills/leniu-mealtime/SKILL.md +215 -0
- package/src/skills/leniu-redis-cache/SKILL.md +331 -0
- package/src/skills/leniu-report-customization/SKILL.md +415 -0
- package/src/skills/leniu-report-customization/references/table-fields.md +93 -0
- package/src/skills/leniu-report-standard-customization/SKILL.md +391 -0
- package/src/skills/leniu-report-standard-customization/references/analysis-module.md +64 -0
- package/src/skills/leniu-report-standard-customization/references/table-fields.md +113 -0
- package/src/skills/leniu-security-guard/SKILL.md +306 -0
- package/src/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/src/skills/loki-log-query/SKILL.md +400 -0
- package/src/skills/loki-log-query/environments.json +45 -0
- package/src/skills/mysql-debug/SKILL.md +400 -0
- package/src/skills/next/SKILL.md +137 -0
- package/src/skills/openspec-apply-change/SKILL.md +165 -0
- package/src/skills/openspec-archive-change/SKILL.md +122 -0
- package/src/skills/openspec-bulk-archive-change/SKILL.md +254 -0
- package/src/skills/openspec-continue-change/SKILL.md +126 -0
- package/src/skills/openspec-explore/SKILL.md +299 -0
- package/src/skills/openspec-ff-change/SKILL.md +109 -0
- package/src/skills/openspec-new-change/SKILL.md +82 -0
- package/src/skills/openspec-onboard/SKILL.md +414 -0
- package/src/skills/openspec-sync-specs/SKILL.md +146 -0
- package/src/skills/openspec-verify-change/SKILL.md +176 -0
- package/src/skills/performance-doctor/SKILL.md +297 -0
- package/src/skills/progress/SKILL.md +193 -0
- package/src/skills/project-navigator/SKILL.md +211 -0
- package/src/skills/redis-cache/SKILL.md +282 -0
- package/src/skills/redis-cache/references/listeners.md +23 -0
- package/src/skills/scheduled-jobs/SKILL.md +277 -0
- package/src/skills/security-guard/SKILL.md +245 -0
- package/src/skills/security-guard/references/encrypt-config.md +103 -0
- package/src/skills/security-guard/references/sensitive-strategies.md +42 -0
- package/src/skills/skill-creator/LICENSE.txt +202 -0
- package/src/skills/skill-creator/SKILL.md +479 -0
- package/src/skills/skill-creator/agents/analyzer.md +274 -0
- package/src/skills/skill-creator/agents/comparator.md +202 -0
- package/src/skills/skill-creator/agents/grader.md +223 -0
- package/src/skills/skill-creator/assets/eval_review.html +146 -0
- package/src/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/src/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/src/skills/skill-creator/references/schemas.md +430 -0
- package/src/skills/skill-creator/scripts/__init__.py +0 -0
- package/src/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/src/skills/skill-creator/scripts/generate_report.py +326 -0
- package/src/skills/skill-creator/scripts/improve_description.py +248 -0
- package/src/skills/skill-creator/scripts/package_skill.py +136 -0
- package/src/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/src/skills/skill-creator/scripts/run_eval.py +310 -0
- package/src/skills/skill-creator/scripts/run_loop.py +332 -0
- package/src/skills/skill-creator/scripts/utils.py +47 -0
- package/src/skills/sms-mail/SKILL.md +346 -0
- package/src/skills/sms-mail/references/mail-config.md +88 -0
- package/src/skills/sms-mail/references/sms-config.md +74 -0
- package/src/skills/social-login/SKILL.md +328 -0
- package/src/skills/social-login/references/provider-configs.md +118 -0
- package/src/skills/start/SKILL.md +154 -0
- package/src/skills/store-pc/SKILL.md +366 -0
- package/src/skills/sync/SKILL.md +149 -0
- package/src/skills/sync-back-merge/SKILL.md +66 -0
- package/src/skills/task-tracker/SKILL.md +307 -0
- package/src/skills/tech-decision/SKILL.md +393 -0
- package/src/skills/tenant-management/SKILL.md +272 -0
- package/src/skills/tenant-management/references/tenant-scenarios.md +91 -0
- package/src/skills/test-development/SKILL.md +301 -0
- package/src/skills/test-development/references/parameterized-examples.md +119 -0
- package/src/skills/ui-pc/SKILL.md +438 -0
- package/src/skills/update-status/SKILL.md +159 -0
- package/src/skills/utils-toolkit/SKILL.md +354 -0
- package/src/skills/utils-toolkit/references/redis-utils-api.md +56 -0
- package/src/skills/websocket-sse/SKILL.md +350 -0
- package/src/skills/workflow-engine/SKILL.md +249 -0
- package/src/skills/yunxiao-task-management/SKILL.md +401 -0
- package/src/skills/yunxiao-task-management/templates//346/217/220/346/265/213/345/215/225/346/250/241/346/235/277.html +17 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
# /next - 下一步建议
|
|
2
|
+
|
|
3
|
+
作为项目开发顾问,根据当前项目状态,为您建议下一步应该做什么。
|
|
4
|
+
|
|
5
|
+
## 执行流程
|
|
6
|
+
|
|
7
|
+
### 第一步:快速扫描项目状态
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# 查看最近 Git 提交记录
|
|
11
|
+
git log -5 --oneline
|
|
12
|
+
|
|
13
|
+
# 扫描所有业务模块中的 TODO/FIXME
|
|
14
|
+
Grep pattern: "TODO:|FIXME:" path: sys-canteen/,sys-kitchen/,sys-drp/,sys-common/ glob: "*.java" output_mode: content -B 2
|
|
15
|
+
|
|
16
|
+
# 检查代码规范问题
|
|
17
|
+
Grep pattern: "package org\.dromara\.|package com\.ruoyi\." path: sys-canteen/,sys-kitchen/,sys-drp/ glob: "*.java" output_mode: files_with_matches
|
|
18
|
+
Grep pattern: "MapstructUtils|ServiceException" path: sys-canteen/,sys-kitchen/,sys-drp/ glob: "*.java" output_mode: files_with_matches
|
|
19
|
+
|
|
20
|
+
# 扫描 OpenSpec 活跃变更(如果存在 openspec 目录)
|
|
21
|
+
Glob pattern: "openspec/changes/*/tasks.md"
|
|
22
|
+
# 对每个找到的 tasks.md,读取内容检查任务完成状态([ ] 未完成 / [x] 已完成)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 第二步:分析开发阶段
|
|
26
|
+
|
|
27
|
+
根据代码完整性和功能数量判断:
|
|
28
|
+
|
|
29
|
+
| 阶段 | 特征 | 功能完成率 |
|
|
30
|
+
|------|------|----------|
|
|
31
|
+
| 🟢 初期 | 基础框架搭建,功能模块较少 | < 30% |
|
|
32
|
+
| 🟡 中期 | 核心功能开发中,模块逐步完善 | 30-70% |
|
|
33
|
+
| 🔴 后期 | 功能基本完成,处于优化阶段 | > 70% |
|
|
34
|
+
|
|
35
|
+
### 第三步:分析 OpenSpec 变更状态(如有)
|
|
36
|
+
|
|
37
|
+
如果发现 `openspec/changes/` 下有活跃变更:
|
|
38
|
+
|
|
39
|
+
1. 读取每个变更的 `tasks.md`,统计未完成任务
|
|
40
|
+
2. 读取 `proposal.md` 获取变更概述
|
|
41
|
+
3. 将未完成的 OpenSpec 任务纳入建议优先级
|
|
42
|
+
|
|
43
|
+
### 第四步:分类问题和建议
|
|
44
|
+
|
|
45
|
+
- **紧急问题**:安全漏洞、严重 Bug、编译错误
|
|
46
|
+
- **OpenSpec 待实现**:已拆解但未完成的变更任务
|
|
47
|
+
- **重要问题**:功能缺陷、设计问题、规范问题
|
|
48
|
+
- **优化建议**:性能优化、代码重构、文档完善
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 输出格式
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
# 下一步建议
|
|
56
|
+
|
|
57
|
+
**分析时间**:YYYY-MM-DD HH:mm
|
|
58
|
+
**分析范围**:全量后端代码
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 当前状态
|
|
63
|
+
|
|
64
|
+
### Git 提交分析
|
|
65
|
+
- **最近一次提交**:[commit message] ([commit hash])
|
|
66
|
+
- **最近在做**:[根据提交记录推断]
|
|
67
|
+
- **提交频率**:[活跃/不活跃]
|
|
68
|
+
|
|
69
|
+
### 代码状态
|
|
70
|
+
- **开发阶段**:🟡 中期(核心功能开发中)
|
|
71
|
+
- **代码质量**:良好(包名符合 net.xnzn.core.*)
|
|
72
|
+
- **规范问题**:3 个接口缺少 @RequiresAuthentication 注解
|
|
73
|
+
|
|
74
|
+
### 代码待办统计
|
|
75
|
+
- **TODO 项**:X 个
|
|
76
|
+
- **FIXME 项**:X 个
|
|
77
|
+
- **编译/运行错误**:无
|
|
78
|
+
|
|
79
|
+
### OpenSpec 变更状态(如有活跃变更)
|
|
80
|
+
- **活跃变更**:X 个
|
|
81
|
+
- **待实现任务**:X 个
|
|
82
|
+
- **变更列表**:
|
|
83
|
+
- `[变更名]`:X/Y 任务完成([proposal 概述])
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 建议优先级
|
|
88
|
+
|
|
89
|
+
### 🔴 高优先级(必须立即处理)
|
|
90
|
+
|
|
91
|
+
1. **修复 FIXME 问题**
|
|
92
|
+
- 位置:sys-canteen/.../service/impl/XxxService.java:156
|
|
93
|
+
- 问题:业务逻辑存在已知错误
|
|
94
|
+
- 原因:影响核心业务正确性
|
|
95
|
+
- 影响:可能导致数据异常
|
|
96
|
+
- **快速修复**:`/check` 找出所有 FIXME 并逐一解决
|
|
97
|
+
|
|
98
|
+
2. **补充缺失的权限注解**
|
|
99
|
+
- 位置:sys-canteen 模块 3 个接口
|
|
100
|
+
- 问题:缺少 @RequiresAuthentication 或 @RequiresGuest 注解
|
|
101
|
+
- 原因:权限控制不完整
|
|
102
|
+
- 影响:系统存在未授权访问风险
|
|
103
|
+
- **快速修复**:`/check canteen` 查出所有问题接口
|
|
104
|
+
|
|
105
|
+
3. **完善代码规范**
|
|
106
|
+
- 问题:部分接口 POST 请求未使用 LeRequest<T> 封装
|
|
107
|
+
- 原因:请求封装规范不一致
|
|
108
|
+
- 影响:后续维护成本高
|
|
109
|
+
- **快速修复**:`/check` 全量检查
|
|
110
|
+
|
|
111
|
+
### 🟡 中优先级(近期应该做)
|
|
112
|
+
|
|
113
|
+
1. **补充缺失功能模块**
|
|
114
|
+
- 建议模块:[根据扫描结果列出未完成的业务模块]
|
|
115
|
+
- 完成率:目前 X%,建议提升到 80%
|
|
116
|
+
- **快速开发**:`/crud [表名]` 快速生成 CRUD 代码
|
|
117
|
+
|
|
118
|
+
2. **优化 Service 查询层**
|
|
119
|
+
- 建议模块:[根据扫描结果列出查询不完善的模块]
|
|
120
|
+
- 问题:buildWrapper 查询条件需要完善
|
|
121
|
+
- 价值:提升查询效率,支持更复杂的搜索
|
|
122
|
+
- **参考代码**:`sys-canteen/.../order/common/service/impl/OrderInfoService.java`
|
|
123
|
+
|
|
124
|
+
3. **补充接口文档注释**
|
|
125
|
+
- 建议范围:所有 Controller 接口
|
|
126
|
+
- 目标:添加 @Api、@ApiOperation Swagger 文档注解、JavaDoc 方法注释
|
|
127
|
+
- 价值:便于接口文档自动生成
|
|
128
|
+
|
|
129
|
+
### 🟢 低优先级(可以考虑)
|
|
130
|
+
|
|
131
|
+
1. **性能优化**
|
|
132
|
+
- 建议项:添加查询缓存、分页优化
|
|
133
|
+
- 触发条件:数据量大时
|
|
134
|
+
|
|
135
|
+
2. **代码重构**
|
|
136
|
+
- 建议项:提取通用工具类、统一错误处理
|
|
137
|
+
|
|
138
|
+
3. **单元测试**
|
|
139
|
+
- 建议项:为核心 Service 添加单元测试
|
|
140
|
+
- 触发条件:功能稳定后
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 具体行动建议
|
|
145
|
+
|
|
146
|
+
### 如果有未完成的 OpenSpec 变更:
|
|
147
|
+
|
|
148
|
+
**推荐:继续实现已拆解的任务**
|
|
149
|
+
- 变更名称:`[change-name]`
|
|
150
|
+
- 未完成任务:[列出 tasks.md 中 [ ] 的任务]
|
|
151
|
+
- **快速开始**:
|
|
152
|
+
```bash
|
|
153
|
+
/opsx:apply [change-name] # 自动实现下一个任务
|
|
154
|
+
/dev [任务描述] # 手动实现特定任务
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### 如果您想继续开发新功能:
|
|
158
|
+
|
|
159
|
+
**推荐 1:完善业务模块**
|
|
160
|
+
- 建议实现:[根据扫描结果列出未完成的功能]
|
|
161
|
+
- 所属模块:[sys-canteen / sys-kitchen / sys-drp / sys-common]
|
|
162
|
+
- **快速开始**:
|
|
163
|
+
```bash
|
|
164
|
+
/crud [表名] # 快速生成 CRUD 代码
|
|
165
|
+
/check [模块名] # 检查并修复规范问题
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**推荐 2:开发新的业务功能**
|
|
169
|
+
- 建议实现:[根据项目进展推荐下一个业务功能]
|
|
170
|
+
- **快速开始**:
|
|
171
|
+
```bash
|
|
172
|
+
/dev 功能名称 # 使用向导开发新功能(含表设计)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### 如果您想优化代码质量:
|
|
176
|
+
|
|
177
|
+
**推荐 1:规范检查和修复**
|
|
178
|
+
- 建议优化:修复所有代码规范问题
|
|
179
|
+
- **快速检查**:
|
|
180
|
+
```bash
|
|
181
|
+
/check # 全量检查
|
|
182
|
+
/check canteen # 按模块检查
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**推荐 2:Service 层优化**
|
|
186
|
+
- 建议优化:完善 buildWrapper 实现,支持更复杂的查询
|
|
187
|
+
- **参考代码**:`sys-canteen/.../order/common/service/impl/OrderInfoService.java`
|
|
188
|
+
|
|
189
|
+
**推荐 3:注释和文档**
|
|
190
|
+
- 建议优化:添加 JavaDoc 注释
|
|
191
|
+
- 位置:所有 Controller 接口和关键 Service 方法
|
|
192
|
+
|
|
193
|
+
### 如果您想修复现存问题:
|
|
194
|
+
|
|
195
|
+
**按严重程度排序的问题列表**:
|
|
196
|
+
|
|
197
|
+
#### 🔴 严重问题(立即修复)
|
|
198
|
+
- **FIXME 问题**:[根据扫描结果列出 FIXME 位置和内容]
|
|
199
|
+
- **权限注解缺失**:[根据扫描结果列出缺少 @RequiresAuthentication 的接口]
|
|
200
|
+
- **命令**:`/check [模块名]`
|
|
201
|
+
|
|
202
|
+
#### 🟡 重要问题(本周修复)
|
|
203
|
+
- **LeRequest 封装缺失**:[根据扫描结果列出未使用 LeRequest<T> 的 POST 接口]
|
|
204
|
+
- **del_flag 值错误**:[扫描是否有 delFlag=0 的设置]
|
|
205
|
+
- **命令**:`/check [模块名]`
|
|
206
|
+
|
|
207
|
+
#### 🟢 建议问题(择机修复)
|
|
208
|
+
- **缺少接口文档**:所有 Controller
|
|
209
|
+
- **缺少业务注释**:部分 Service 方法
|
|
210
|
+
- **命令**:逐一完善
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## 开发建议
|
|
215
|
+
|
|
216
|
+
### 开发流程建议
|
|
217
|
+
|
|
218
|
+
1. **明确需求**:使用 `/start` 快速了解项目结构
|
|
219
|
+
2. **检查规范**:使用 `/check` 检查代码质量
|
|
220
|
+
3. **分析进度**:使用 `/progress` 了解完成情况
|
|
221
|
+
4. **开始开发**:使用 `/dev` 或 `/crud` 快速生成代码
|
|
222
|
+
5. **添加待办**:使用 `/add-todo` 跟踪任务
|
|
223
|
+
6. **获取建议**:使用 `/next` 确定下一步方向
|
|
224
|
+
|
|
225
|
+
### 最佳实践
|
|
226
|
+
|
|
227
|
+
| 实践 | 说明 |
|
|
228
|
+
|------|------|
|
|
229
|
+
| 四层职责清晰 | Controller 路由 → Business 编排 → Service 单表 → Mapper ORM |
|
|
230
|
+
| 查询构建 | 在 Service 层用 LambdaQueryWrapper 构建,禁止在 Controller 层 |
|
|
231
|
+
| 对象转换 | 使用 BeanUtil.copyProperties(),禁止 MapstructUtils |
|
|
232
|
+
| 权限管理 | 所有接口必须有 @RequiresAuthentication 或 @RequiresGuest |
|
|
233
|
+
| 请求封装 | POST 请求体统一使用 LeRequest<T>,通过 request.getContent() 获取参数 |
|
|
234
|
+
| 注释完整 | 关键方法必须有 JavaDoc 注释 |
|
|
235
|
+
| 定期检查 | 每周至少一次运行 `/check` 和 `/progress` |
|
|
236
|
+
|
|
237
|
+
### 技术选型建议
|
|
238
|
+
|
|
239
|
+
| 场景 | 推荐方案 | 理由 |
|
|
240
|
+
|------|--------|------|
|
|
241
|
+
| 快速生成 CRUD | `/crud` 命令 | 已有表结构时最快 |
|
|
242
|
+
| 从零开发功能 | `/dev` 命令 | 包含数据库设计和代码生成 |
|
|
243
|
+
| 代码规范检查 | `/check` 命令 | 及时发现问题 |
|
|
244
|
+
| 项目进度追踪 | `/progress` 命令 | 定期了解完成情况 |
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## 需要确认的问题
|
|
249
|
+
|
|
250
|
+
### 如果不确定下一步方向,请回答:
|
|
251
|
+
|
|
252
|
+
- [ ] **您更希望继续开发功能,还是优化现有代码?**
|
|
253
|
+
- 选项 A:继续开发新功能(推荐 `/crud` 或 `/dev` 命令)
|
|
254
|
+
- 选项 B:优化现有代码(推荐 `/check` 和 `/progress` 命令)
|
|
255
|
+
|
|
256
|
+
- [ ] **是否需要为新开发的功能添加到待办列表中?**
|
|
257
|
+
- 可使用 `/add-todo` 快速添加
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## 相关命令
|
|
262
|
+
|
|
263
|
+
| 命令 | 用途 | 何时使用 |
|
|
264
|
+
|------|------|---------|
|
|
265
|
+
| `/start` | 快速了解项目 | 初次接触项目 |
|
|
266
|
+
| `/check` | 代码规范检查 | 开发完成后、定期检查 |
|
|
267
|
+
| `/progress` | 查看项目进度 | 了解完成情况 |
|
|
268
|
+
| `/next` | 获取建议 | 不知道下一步做什么 |
|
|
269
|
+
| `/dev` | 开发新功能 | 从零开始开发 |
|
|
270
|
+
| `/crud` | 快速生成代码 | 表已存在时 |
|
|
271
|
+
| `/add-todo` | 添加待办任务 | 跟踪任务 |
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## 说明
|
|
276
|
+
|
|
277
|
+
- 本建议基于对当前项目代码的分析生成
|
|
278
|
+
- 建议具体且可执行,不空泛
|
|
279
|
+
- 会考虑开发的连贯性和代码质量
|
|
280
|
+
- 如发现紧急问题会明确标注
|
|
281
|
+
- 如不确定用户意图会主动询问
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# /opsx-apply - 实现 OpenSpec 变更任务
|
|
2
|
+
|
|
3
|
+
Implement tasks from an OpenSpec change.
|
|
4
|
+
|
|
5
|
+
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
6
|
+
|
|
7
|
+
**Steps**
|
|
8
|
+
|
|
9
|
+
1. **Select the change**
|
|
10
|
+
|
|
11
|
+
If a name is provided, use it. Otherwise:
|
|
12
|
+
- Infer from conversation context if the user mentioned a change
|
|
13
|
+
- Auto-select if only one active change exists
|
|
14
|
+
- If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
|
|
15
|
+
|
|
16
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
|
|
17
|
+
|
|
18
|
+
2. **Check status to understand the schema**
|
|
19
|
+
```bash
|
|
20
|
+
openspec status --change "<name>" --json
|
|
21
|
+
```
|
|
22
|
+
Parse the JSON to understand:
|
|
23
|
+
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
24
|
+
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
25
|
+
|
|
26
|
+
3. **Get apply instructions**
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
openspec instructions apply --change "<name>" --json
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This returns:
|
|
33
|
+
- Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
|
|
34
|
+
- Progress (total, complete, remaining)
|
|
35
|
+
- Task list with status
|
|
36
|
+
- Dynamic instruction based on current state
|
|
37
|
+
|
|
38
|
+
**Handle states:**
|
|
39
|
+
- If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change
|
|
40
|
+
- If `state: "all_done"`: congratulate, suggest archive
|
|
41
|
+
- Otherwise: proceed to implementation
|
|
42
|
+
|
|
43
|
+
4. **Read context files**
|
|
44
|
+
|
|
45
|
+
Read the files listed in `contextFiles` from the apply instructions output.
|
|
46
|
+
The files depend on the schema being used:
|
|
47
|
+
- **spec-driven**: proposal, specs, design, tasks
|
|
48
|
+
- Other schemas: follow the contextFiles from CLI output
|
|
49
|
+
|
|
50
|
+
5. **Show current progress**
|
|
51
|
+
|
|
52
|
+
Display:
|
|
53
|
+
- Schema being used
|
|
54
|
+
- Progress: "N/M tasks complete"
|
|
55
|
+
- Remaining tasks overview
|
|
56
|
+
- Dynamic instruction from CLI
|
|
57
|
+
|
|
58
|
+
6. **Implement tasks (loop until done or blocked)**
|
|
59
|
+
|
|
60
|
+
For each pending task:
|
|
61
|
+
- Show which task is being worked on
|
|
62
|
+
- Make the code changes required
|
|
63
|
+
- Keep changes minimal and focused
|
|
64
|
+
- Mark task complete in the tasks file: `- [ ]` → `- [x]`
|
|
65
|
+
- Continue to next task
|
|
66
|
+
|
|
67
|
+
**Pause if:**
|
|
68
|
+
- Task is unclear → ask for clarification
|
|
69
|
+
- Implementation reveals a design issue → suggest updating artifacts
|
|
70
|
+
- Error or blocker encountered → report and wait for guidance
|
|
71
|
+
- User interrupts
|
|
72
|
+
|
|
73
|
+
7. **On completion or pause, show status**
|
|
74
|
+
|
|
75
|
+
Display:
|
|
76
|
+
- Tasks completed this session
|
|
77
|
+
- Overall progress: "N/M tasks complete"
|
|
78
|
+
- If all done: suggest archive
|
|
79
|
+
- If paused: explain why and wait for guidance
|
|
80
|
+
|
|
81
|
+
**Output During Implementation**
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
## Implementing: <change-name> (schema: <schema-name>)
|
|
85
|
+
|
|
86
|
+
Working on task 3/7: <task description>
|
|
87
|
+
[...implementation happening...]
|
|
88
|
+
✓ Task complete
|
|
89
|
+
|
|
90
|
+
Working on task 4/7: <task description>
|
|
91
|
+
[...implementation happening...]
|
|
92
|
+
✓ Task complete
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Output On Completion**
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
## Implementation Complete
|
|
99
|
+
|
|
100
|
+
**Change:** <change-name>
|
|
101
|
+
**Schema:** <schema-name>
|
|
102
|
+
**Progress:** 7/7 tasks complete ✓
|
|
103
|
+
|
|
104
|
+
### Completed This Session
|
|
105
|
+
- [x] Task 1
|
|
106
|
+
- [x] Task 2
|
|
107
|
+
...
|
|
108
|
+
|
|
109
|
+
All tasks complete! Ready to archive this change.
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Output On Pause (Issue Encountered)**
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
## Implementation Paused
|
|
116
|
+
|
|
117
|
+
**Change:** <change-name>
|
|
118
|
+
**Schema:** <schema-name>
|
|
119
|
+
**Progress:** 4/7 tasks complete
|
|
120
|
+
|
|
121
|
+
### Issue Encountered
|
|
122
|
+
<description of the issue>
|
|
123
|
+
|
|
124
|
+
**Options:**
|
|
125
|
+
1. <option 1>
|
|
126
|
+
2. <option 2>
|
|
127
|
+
3. Other approach
|
|
128
|
+
|
|
129
|
+
What would you like to do?
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Guardrails**
|
|
133
|
+
- Keep going through tasks until done or blocked
|
|
134
|
+
- Always read context files before starting (from the apply instructions output)
|
|
135
|
+
- If task is ambiguous, pause and ask before implementing
|
|
136
|
+
- If implementation reveals issues, pause and suggest artifact updates
|
|
137
|
+
- Keep code changes minimal and scoped to each task
|
|
138
|
+
- Update task checkbox immediately after completing each task
|
|
139
|
+
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
140
|
+
- Use contextFiles from CLI output, don't assume specific file names
|
|
141
|
+
|
|
142
|
+
**Fluid Workflow Integration**
|
|
143
|
+
|
|
144
|
+
This skill supports the "actions on a change" model:
|
|
145
|
+
|
|
146
|
+
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
147
|
+
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# /opsx-archive - 归档 OpenSpec 变更
|
|
2
|
+
|
|
3
|
+
Archive a completed change in the experimental workflow.
|
|
4
|
+
|
|
5
|
+
**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
6
|
+
|
|
7
|
+
**Steps**
|
|
8
|
+
|
|
9
|
+
1. **If no change name provided, prompt for selection**
|
|
10
|
+
|
|
11
|
+
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
|
|
12
|
+
|
|
13
|
+
Show only active changes (not already archived).
|
|
14
|
+
Include the schema used for each change if available.
|
|
15
|
+
|
|
16
|
+
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
|
|
17
|
+
|
|
18
|
+
2. **Check artifact completion status**
|
|
19
|
+
|
|
20
|
+
Run `openspec status --change "<name>" --json` to check artifact completion.
|
|
21
|
+
|
|
22
|
+
Parse the JSON to understand:
|
|
23
|
+
- `schemaName`: The workflow being used
|
|
24
|
+
- `artifacts`: List of artifacts with their status (`done` or other)
|
|
25
|
+
|
|
26
|
+
**If any artifacts are not `done`:**
|
|
27
|
+
- Display warning listing incomplete artifacts
|
|
28
|
+
- Use **AskUserQuestion tool** to confirm user wants to proceed
|
|
29
|
+
- Proceed if user confirms
|
|
30
|
+
|
|
31
|
+
3. **Check task completion status**
|
|
32
|
+
|
|
33
|
+
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
|
|
34
|
+
|
|
35
|
+
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
36
|
+
|
|
37
|
+
**If incomplete tasks found:**
|
|
38
|
+
- Display warning showing count of incomplete tasks
|
|
39
|
+
- Use **AskUserQuestion tool** to confirm user wants to proceed
|
|
40
|
+
- Proceed if user confirms
|
|
41
|
+
|
|
42
|
+
**If no tasks file exists:** Proceed without task-related warning.
|
|
43
|
+
|
|
44
|
+
4. **Assess delta spec sync state**
|
|
45
|
+
|
|
46
|
+
Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
|
|
47
|
+
|
|
48
|
+
**If delta specs exist:**
|
|
49
|
+
- Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
|
|
50
|
+
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
51
|
+
- Show a combined summary before prompting
|
|
52
|
+
|
|
53
|
+
**Prompt options:**
|
|
54
|
+
- If changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
55
|
+
- If already synced: "Archive now", "Sync anyway", "Cancel"
|
|
56
|
+
|
|
57
|
+
If user chooses sync, execute /opsx:sync logic (use the openspec-sync-specs skill). Proceed to archive regardless of choice.
|
|
58
|
+
|
|
59
|
+
5. **Perform the archive**
|
|
60
|
+
|
|
61
|
+
Create the archive directory if it doesn't exist:
|
|
62
|
+
```bash
|
|
63
|
+
mkdir -p openspec/changes/archive
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Generate target name using current date: `YYYY-MM-DD-<change-name>`
|
|
67
|
+
|
|
68
|
+
**Check if target already exists:**
|
|
69
|
+
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
70
|
+
- If no: Move the change directory to archive
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
6. **Display summary**
|
|
77
|
+
|
|
78
|
+
Show archive completion summary including:
|
|
79
|
+
- Change name
|
|
80
|
+
- Schema that was used
|
|
81
|
+
- Archive location
|
|
82
|
+
- Whether specs were synced (if applicable)
|
|
83
|
+
- Note about any warnings (incomplete artifacts/tasks)
|
|
84
|
+
|
|
85
|
+
**Output On Success**
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
## Archive Complete
|
|
89
|
+
|
|
90
|
+
**Change:** <change-name>
|
|
91
|
+
**Schema:** <schema-name>
|
|
92
|
+
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
93
|
+
**Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")
|
|
94
|
+
|
|
95
|
+
All artifacts complete. All tasks complete.
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Guardrails**
|
|
99
|
+
- Always prompt for change selection if not provided
|
|
100
|
+
- Use artifact graph (openspec status --json) for completion checking
|
|
101
|
+
- Don't block archive on warnings - just inform and confirm
|
|
102
|
+
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
|
|
103
|
+
- Show clear summary of what happened
|
|
104
|
+
- If sync is requested, use openspec-sync-specs approach (agent-driven)
|
|
105
|
+
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|