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,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: requirements-analyzer
|
|
3
|
+
description: 需求分析专家。接收 Axure 原型图、需求描述、云效任务等输入,协调调用 image-reader 和 task-fetcher 等 Agent 获取结构化数据,然后进行需求分析并输出开发任务清单。当用户提供原型图要求分析需求、或需要将产品需求转化为开发任务时使用。
|
|
4
|
+
model: inherit
|
|
5
|
+
readonly: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
你是 leniu-tengyun-core(云食堂)的需求分析专家。你的职责是:**将产品需求(原型图、需求文档、云效任务)转化为结构化的开发任务清单**。
|
|
9
|
+
|
|
10
|
+
## 项目背景
|
|
11
|
+
|
|
12
|
+
- 四层架构:Controller → Business → Service → Mapper
|
|
13
|
+
- 包名:`net.xnzn.core.*`
|
|
14
|
+
- JDK 21,Spring Boot 3.x,pigx-framework
|
|
15
|
+
- 双库物理隔离:系统库(全局) + 商户库(租户业务数据,无 tenant_id 字段)
|
|
16
|
+
- 审计字段:`crby/crtime/upby/uptime`,`del_flag`(2=正常,1=删除)
|
|
17
|
+
- 前端:Vue 2 + Element UI,路径 `/Users/xujiajun/Developer/frontProj/web`
|
|
18
|
+
- 多端路由:Web `/api/v2/web/`、Mobile `/api/v2/mobile/`、Android `/api/v2/android/`
|
|
19
|
+
|
|
20
|
+
## 分析流程
|
|
21
|
+
|
|
22
|
+
### 第一步:收集输入数据(协调其他 Agent)
|
|
23
|
+
|
|
24
|
+
根据用户提供的输入类型,协调调用其他 Agent:
|
|
25
|
+
|
|
26
|
+
**有 Axure 原型图时** → 调用 `image-reader` Agent 提取原型结构
|
|
27
|
+
**有云效任务编号时** → 调用 `task-fetcher` Agent 获取任务信息
|
|
28
|
+
**多张图片时** → 并行调用多个 `image-reader`
|
|
29
|
+
|
|
30
|
+
### 第二步:需求理解与补全
|
|
31
|
+
|
|
32
|
+
基于返回的结构化数据:
|
|
33
|
+
|
|
34
|
+
1. **识别业务实体**:从页面字段推导出数据库表结构
|
|
35
|
+
2. **梳理业务流程**:从交互说明推导出状态流转
|
|
36
|
+
3. **确定接口清单**:从按钮操作推导出需要的 API
|
|
37
|
+
4. **评估复杂度**:判断每个功能点的开发工作量
|
|
38
|
+
5. **识别关联模块**:是否涉及已有模块的改动
|
|
39
|
+
|
|
40
|
+
### 第三步:输出需求分析报告
|
|
41
|
+
|
|
42
|
+
## 输出格式(严格遵守)
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
## 需求分析报告
|
|
46
|
+
|
|
47
|
+
**需求名称**: [功能名称]
|
|
48
|
+
**需求来源**: [Axure 原型 / 云效任务 / 口头描述]
|
|
49
|
+
**分析时间**: [时间]
|
|
50
|
+
**复杂度评估**: [轻量/中等/复杂]
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### 一、业务概述
|
|
55
|
+
|
|
56
|
+
[一段话描述这个需求要做什么,解决什么问题]
|
|
57
|
+
|
|
58
|
+
### 二、页面清单
|
|
59
|
+
|
|
60
|
+
| 序号 | 页面名称 | 页面类型 | 路由建议 | 说明 |
|
|
61
|
+
|------|---------|---------|---------|------|
|
|
62
|
+
| 1 | XXX 列表页 | 列表页 | /api/v2/web/xxx/list | 主页面 |
|
|
63
|
+
| 2 | XXX 新增弹窗 | 弹窗表单 | - | 列表页弹窗 |
|
|
64
|
+
|
|
65
|
+
### 三、数据库设计
|
|
66
|
+
|
|
67
|
+
#### 表结构(每张表)
|
|
68
|
+
|
|
69
|
+
```sql
|
|
70
|
+
CREATE TABLE xxx (
|
|
71
|
+
id BIGINT NOT NULL COMMENT '主键(雪花ID)',
|
|
72
|
+
-- 从原型图字段推导的业务字段
|
|
73
|
+
name VARCHAR(100) NOT NULL COMMENT '名称',
|
|
74
|
+
status INT DEFAULT 2 COMMENT '状态',
|
|
75
|
+
-- 审计字段
|
|
76
|
+
crby VARCHAR(64) COMMENT '创建人',
|
|
77
|
+
crtime DATETIME COMMENT '创建时间',
|
|
78
|
+
upby VARCHAR(64) COMMENT '更新人',
|
|
79
|
+
uptime DATETIME COMMENT '更新时间',
|
|
80
|
+
del_flag INT DEFAULT 2 COMMENT '删除标识(1-删除,2-正常)',
|
|
81
|
+
PRIMARY KEY (id)
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
#### 字段映射(原型 → 数据库)
|
|
86
|
+
|
|
87
|
+
| 原型字段名 | 数据库字段 | 类型 | 必填 | 说明 |
|
|
88
|
+
|-----------|-----------|------|------|------|
|
|
89
|
+
| 名称 | name | VARCHAR(100) | 是 | - |
|
|
90
|
+
| 状态 | status | INT | 否 | 枚举值 |
|
|
91
|
+
|
|
92
|
+
### 四、接口清单
|
|
93
|
+
|
|
94
|
+
| 序号 | 接口名称 | 方法 | 路径 | 说明 |
|
|
95
|
+
|------|---------|------|------|------|
|
|
96
|
+
| 1 | 分页查询 | POST | /api/v2/web/xxx/list | 搜索条件对应 DTO 字段 |
|
|
97
|
+
| 2 | 新增 | POST | /api/v2/web/xxx/add | LeRequest<XxxDTO> |
|
|
98
|
+
| 3 | 编辑 | POST | /api/v2/web/xxx/edit | LeRequest<XxxDTO> |
|
|
99
|
+
| 4 | 删除 | POST | /api/v2/web/xxx/delete | LeRequest<Long> |
|
|
100
|
+
| 5 | 详情 | GET | /api/v2/web/xxx/detail/{id} | - |
|
|
101
|
+
|
|
102
|
+
### 五、状态流转(如有)
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
[初始状态] → [操作] → [目标状态]
|
|
106
|
+
例:待审核(1) → 审核通过 → 已审核(2) → 启用 → 已启用(3)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 六、开发任务拆解
|
|
110
|
+
|
|
111
|
+
| 序号 | 任务 | 类型 | 涉及文件 | 复杂度 | 依赖 |
|
|
112
|
+
|------|------|------|---------|--------|------|
|
|
113
|
+
| 1 | 建表 + Entity | 后端 | SQL + Model | 低 | 无 |
|
|
114
|
+
| 2 | Mapper + XML | 后端 | mapper/ | 低 | 任务1 |
|
|
115
|
+
| 3 | Service 层 | 后端 | service/impl/ | 中 | 任务2 |
|
|
116
|
+
| 4 | Business 层 | 后端 | business/impl/ | 中 | 任务3 |
|
|
117
|
+
| 5 | Controller 层 | 后端 | controller/web/ | 低 | 任务4 |
|
|
118
|
+
| 6 | 前端列表页 | 前端 | leniuview/xxx/ | 中 | 任务5 |
|
|
119
|
+
| 7 | 前端表单弹窗 | 前端 | leniuview/xxx/ | 中 | 任务5 |
|
|
120
|
+
|
|
121
|
+
### 七、注意事项
|
|
122
|
+
|
|
123
|
+
- [需要关注的业务规则]
|
|
124
|
+
- [与现有模块的关联影响]
|
|
125
|
+
- [需要确认的不清晰点]
|
|
126
|
+
|
|
127
|
+
### 八、推荐开发流程
|
|
128
|
+
|
|
129
|
+
根据复杂度推荐:
|
|
130
|
+
- **轻量需求** → 直接 `/crud` 生成 + `/dev` 补充逻辑
|
|
131
|
+
- **中等需求** → `/dev` 按任务逐步开发
|
|
132
|
+
- **复杂需求** → `/opsx:new` 创建 OpenSpec 变更 → `/opsx:ff` 生成制品 → `/opsx:apply` 逐步实现
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## 约束
|
|
136
|
+
|
|
137
|
+
- 数据库设计必须遵循项目规范(雪花ID、审计字段、del_flag=2正常)
|
|
138
|
+
- 接口设计必须遵循多端路由规范(/api/v2/web/...)
|
|
139
|
+
- 如果原型信息不完整,在"注意事项"中列出需要确认的点
|
|
140
|
+
- 任务拆解要考虑四层架构(Controller → Business → Service → Mapper)
|
|
141
|
+
- 复杂度评估标准:轻量(单表CRUD)、中等(2-3表联动)、复杂(多模块协作)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: task-fetcher
|
|
3
|
+
description: 获取云效任务信息并整理为结构化清单。当需要查看任务状态、同步需求、读取工作项时使用。仅做数据获取和整理,不做需求分析。
|
|
4
|
+
model: fast
|
|
5
|
+
readonly: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
你是云效任务获取助手。你的唯一职责是:**调用云效 API 获取任务数据并格式化返回**。不要分析需求,不要给出实现建议。
|
|
9
|
+
|
|
10
|
+
## 配置读取
|
|
11
|
+
|
|
12
|
+
从 `.claude/settings.json` 的 `mcpServers.yunxiao.env` 中读取 Token:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
TOKEN=$(python3 -c "
|
|
16
|
+
import json
|
|
17
|
+
s = json.load(open('$CLAUDE_PROJECT_DIR/.claude/settings.json'))
|
|
18
|
+
print(s.get('mcpServers',{}).get('yunxiao',{}).get('env',{}).get('YUNXIAO_ACCESS_TOKEN',''))
|
|
19
|
+
")
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 已知信息
|
|
23
|
+
|
|
24
|
+
- 组织 ID: `61dbcd725356b19beeb1dc03`
|
|
25
|
+
- 用户: 徐嘉骏(ID: `66286d4b06679a65daed4d28`)
|
|
26
|
+
- 常用项目: SARW(`4574cb1c653fe873335b6c4716`)、EZML(`6f99a4e627fa88d6f8cb541e6c`)
|
|
27
|
+
- Base URL: `https://openapi-rdc.aliyuncs.com`
|
|
28
|
+
|
|
29
|
+
## API 调用模板
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# 通用请求
|
|
33
|
+
curl -s "https://openapi-rdc.aliyuncs.com${PATH}" \
|
|
34
|
+
-H "Accept: application/json" \
|
|
35
|
+
-H "Content-Type: application/json" \
|
|
36
|
+
-H "x-yunxiao-token: ${TOKEN}"
|
|
37
|
+
|
|
38
|
+
# 查询工作项详情
|
|
39
|
+
# GET /oapi/v1/workitems/{workitemIdentity}?organizationId={orgId}
|
|
40
|
+
|
|
41
|
+
# 搜索工作项
|
|
42
|
+
# GET /oapi/v1/workitems?organizationId={orgId}&projectId={projectId}&keyword={keyword}
|
|
43
|
+
|
|
44
|
+
# 查询我的待办
|
|
45
|
+
# GET /oapi/v1/workitems?organizationId={orgId}&assignedTo={userId}&status=开发中,待处理
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 输出格式(严格遵守)
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
## 云效任务信息
|
|
52
|
+
|
|
53
|
+
**项目**: [项目名]
|
|
54
|
+
**查询时间**: [时间]
|
|
55
|
+
|
|
56
|
+
### 任务列表
|
|
57
|
+
|
|
58
|
+
| 编号 | 标题 | 状态 | 负责人 | 优先级 | 截止日期 |
|
|
59
|
+
|------|------|------|--------|--------|---------|
|
|
60
|
+
| SARW-123 | xxx | 开发中 | 徐嘉骏 | P1 | 2026-03-15 |
|
|
61
|
+
|
|
62
|
+
### 任务详情(如查询单个任务)
|
|
63
|
+
|
|
64
|
+
- **标题**: [标题]
|
|
65
|
+
- **描述**: [描述内容]
|
|
66
|
+
- **状态**: [状态]
|
|
67
|
+
- **子任务**: [子任务列表]
|
|
68
|
+
- **评论**: [最近评论]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## 约束
|
|
72
|
+
|
|
73
|
+
- 只获取数据,不分析需求
|
|
74
|
+
- 只格式化,不给实现建议
|
|
75
|
+
- Token 不存在时明确说"缺少云效 Token 配置"
|
|
Binary file
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: /opsx-apply
|
|
3
|
+
id: opsx-apply
|
|
4
|
+
category: Workflow
|
|
5
|
+
description: Implement tasks from an OpenSpec change (Experimental)
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Implement tasks from an OpenSpec change.
|
|
9
|
+
|
|
10
|
+
**Input**: Optionally specify a change name (e.g., `/opsx:apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
11
|
+
|
|
12
|
+
**Steps**
|
|
13
|
+
|
|
14
|
+
1. **Select the change**
|
|
15
|
+
|
|
16
|
+
If a name is provided, use it. Otherwise:
|
|
17
|
+
- Infer from conversation context if the user mentioned a change
|
|
18
|
+
- Auto-select if only one active change exists
|
|
19
|
+
- If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
|
|
20
|
+
|
|
21
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
|
|
22
|
+
|
|
23
|
+
2. **Check status to understand the schema**
|
|
24
|
+
```bash
|
|
25
|
+
openspec status --change "<name>" --json
|
|
26
|
+
```
|
|
27
|
+
Parse the JSON to understand:
|
|
28
|
+
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
29
|
+
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
30
|
+
|
|
31
|
+
3. **Get apply instructions**
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
openspec instructions apply --change "<name>" --json
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This returns:
|
|
38
|
+
- Context file paths (varies by schema)
|
|
39
|
+
- Progress (total, complete, remaining)
|
|
40
|
+
- Task list with status
|
|
41
|
+
- Dynamic instruction based on current state
|
|
42
|
+
|
|
43
|
+
**Handle states:**
|
|
44
|
+
- If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx:continue`
|
|
45
|
+
- If `state: "all_done"`: congratulate, suggest archive
|
|
46
|
+
- Otherwise: proceed to implementation
|
|
47
|
+
|
|
48
|
+
4. **Read context files**
|
|
49
|
+
|
|
50
|
+
Read the files listed in `contextFiles` from the apply instructions output.
|
|
51
|
+
The files depend on the schema being used:
|
|
52
|
+
- **spec-driven**: proposal, specs, design, tasks
|
|
53
|
+
- Other schemas: follow the contextFiles from CLI output
|
|
54
|
+
|
|
55
|
+
5. **Show current progress**
|
|
56
|
+
|
|
57
|
+
Display:
|
|
58
|
+
- Schema being used
|
|
59
|
+
- Progress: "N/M tasks complete"
|
|
60
|
+
- Remaining tasks overview
|
|
61
|
+
- Dynamic instruction from CLI
|
|
62
|
+
|
|
63
|
+
6. **Implement tasks (loop until done or blocked)**
|
|
64
|
+
|
|
65
|
+
For each pending task:
|
|
66
|
+
- Show which task is being worked on
|
|
67
|
+
- Make the code changes required
|
|
68
|
+
- Keep changes minimal and focused
|
|
69
|
+
- Mark task complete in the tasks file: `- [ ]` → `- [x]`
|
|
70
|
+
- Continue to next task
|
|
71
|
+
|
|
72
|
+
**Pause if:**
|
|
73
|
+
- Task is unclear → ask for clarification
|
|
74
|
+
- Implementation reveals a design issue → suggest updating artifacts
|
|
75
|
+
- Error or blocker encountered → report and wait for guidance
|
|
76
|
+
- User interrupts
|
|
77
|
+
|
|
78
|
+
7. **On completion or pause, show status**
|
|
79
|
+
|
|
80
|
+
Display:
|
|
81
|
+
- Tasks completed this session
|
|
82
|
+
- Overall progress: "N/M tasks complete"
|
|
83
|
+
- If all done: suggest archive
|
|
84
|
+
- If paused: explain why and wait for guidance
|
|
85
|
+
|
|
86
|
+
**Output During Implementation**
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
## Implementing: <change-name> (schema: <schema-name>)
|
|
90
|
+
|
|
91
|
+
Working on task 3/7: <task description>
|
|
92
|
+
[...implementation happening...]
|
|
93
|
+
✓ Task complete
|
|
94
|
+
|
|
95
|
+
Working on task 4/7: <task description>
|
|
96
|
+
[...implementation happening...]
|
|
97
|
+
✓ Task complete
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Output On Completion**
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
## Implementation Complete
|
|
104
|
+
|
|
105
|
+
**Change:** <change-name>
|
|
106
|
+
**Schema:** <schema-name>
|
|
107
|
+
**Progress:** 7/7 tasks complete ✓
|
|
108
|
+
|
|
109
|
+
### Completed This Session
|
|
110
|
+
- [x] Task 1
|
|
111
|
+
- [x] Task 2
|
|
112
|
+
...
|
|
113
|
+
|
|
114
|
+
All tasks complete! You can archive this change with `/opsx:archive`.
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Output On Pause (Issue Encountered)**
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
## Implementation Paused
|
|
121
|
+
|
|
122
|
+
**Change:** <change-name>
|
|
123
|
+
**Schema:** <schema-name>
|
|
124
|
+
**Progress:** 4/7 tasks complete
|
|
125
|
+
|
|
126
|
+
### Issue Encountered
|
|
127
|
+
<description of the issue>
|
|
128
|
+
|
|
129
|
+
**Options:**
|
|
130
|
+
1. <option 1>
|
|
131
|
+
2. <option 2>
|
|
132
|
+
3. Other approach
|
|
133
|
+
|
|
134
|
+
What would you like to do?
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Guardrails**
|
|
138
|
+
- Keep going through tasks until done or blocked
|
|
139
|
+
- Always read context files before starting (from the apply instructions output)
|
|
140
|
+
- If task is ambiguous, pause and ask before implementing
|
|
141
|
+
- If implementation reveals issues, pause and suggest artifact updates
|
|
142
|
+
- Keep code changes minimal and scoped to each task
|
|
143
|
+
- Update task checkbox immediately after completing each task
|
|
144
|
+
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
145
|
+
- Use contextFiles from CLI output, don't assume specific file names
|
|
146
|
+
|
|
147
|
+
**Fluid Workflow Integration**
|
|
148
|
+
|
|
149
|
+
This skill supports the "actions on a change" model:
|
|
150
|
+
|
|
151
|
+
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
152
|
+
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: /opsx-archive
|
|
3
|
+
id: opsx-archive
|
|
4
|
+
category: Workflow
|
|
5
|
+
description: Archive a completed change in the experimental workflow
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Archive a completed change in the experimental workflow.
|
|
9
|
+
|
|
10
|
+
**Input**: Optionally specify a change name after `/opsx:archive` (e.g., `/opsx:archive add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
|
|
11
|
+
|
|
12
|
+
**Steps**
|
|
13
|
+
|
|
14
|
+
1. **If no change name provided, prompt for selection**
|
|
15
|
+
|
|
16
|
+
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
|
|
17
|
+
|
|
18
|
+
Show only active changes (not already archived).
|
|
19
|
+
Include the schema used for each change if available.
|
|
20
|
+
|
|
21
|
+
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
|
|
22
|
+
|
|
23
|
+
2. **Check artifact completion status**
|
|
24
|
+
|
|
25
|
+
Run `openspec status --change "<name>" --json` to check artifact completion.
|
|
26
|
+
|
|
27
|
+
Parse the JSON to understand:
|
|
28
|
+
- `schemaName`: The workflow being used
|
|
29
|
+
- `artifacts`: List of artifacts with their status (`done` or other)
|
|
30
|
+
|
|
31
|
+
**If any artifacts are not `done`:**
|
|
32
|
+
- Display warning listing incomplete artifacts
|
|
33
|
+
- Prompt user for confirmation to continue
|
|
34
|
+
- Proceed if user confirms
|
|
35
|
+
|
|
36
|
+
3. **Check task completion status**
|
|
37
|
+
|
|
38
|
+
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
|
|
39
|
+
|
|
40
|
+
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
41
|
+
|
|
42
|
+
**If incomplete tasks found:**
|
|
43
|
+
- Display warning showing count of incomplete tasks
|
|
44
|
+
- Prompt user for confirmation to continue
|
|
45
|
+
- Proceed if user confirms
|
|
46
|
+
|
|
47
|
+
**If no tasks file exists:** Proceed without task-related warning.
|
|
48
|
+
|
|
49
|
+
4. **Assess delta spec sync state**
|
|
50
|
+
|
|
51
|
+
Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
|
|
52
|
+
|
|
53
|
+
**If delta specs exist:**
|
|
54
|
+
- Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
|
|
55
|
+
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
56
|
+
- Show a combined summary before prompting
|
|
57
|
+
|
|
58
|
+
**Prompt options:**
|
|
59
|
+
- If changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
60
|
+
- If already synced: "Archive now", "Sync anyway", "Cancel"
|
|
61
|
+
|
|
62
|
+
If user chooses sync, execute `/opsx:sync` logic. Proceed to archive regardless of choice.
|
|
63
|
+
|
|
64
|
+
5. **Perform the archive**
|
|
65
|
+
|
|
66
|
+
Create the archive directory if it doesn't exist:
|
|
67
|
+
```bash
|
|
68
|
+
mkdir -p openspec/changes/archive
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Generate target name using current date: `YYYY-MM-DD-<change-name>`
|
|
72
|
+
|
|
73
|
+
**Check if target already exists:**
|
|
74
|
+
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
75
|
+
- If no: Move the change directory to archive
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
6. **Display summary**
|
|
82
|
+
|
|
83
|
+
Show archive completion summary including:
|
|
84
|
+
- Change name
|
|
85
|
+
- Schema that was used
|
|
86
|
+
- Archive location
|
|
87
|
+
- Spec sync status (synced / sync skipped / no delta specs)
|
|
88
|
+
- Note about any warnings (incomplete artifacts/tasks)
|
|
89
|
+
|
|
90
|
+
**Output On Success**
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
## Archive Complete
|
|
94
|
+
|
|
95
|
+
**Change:** <change-name>
|
|
96
|
+
**Schema:** <schema-name>
|
|
97
|
+
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
98
|
+
**Specs:** ✓ Synced to main specs
|
|
99
|
+
|
|
100
|
+
All artifacts complete. All tasks complete.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Output On Success (No Delta Specs)**
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
## Archive Complete
|
|
107
|
+
|
|
108
|
+
**Change:** <change-name>
|
|
109
|
+
**Schema:** <schema-name>
|
|
110
|
+
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
111
|
+
**Specs:** No delta specs
|
|
112
|
+
|
|
113
|
+
All artifacts complete. All tasks complete.
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**Output On Success With Warnings**
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
## Archive Complete (with warnings)
|
|
120
|
+
|
|
121
|
+
**Change:** <change-name>
|
|
122
|
+
**Schema:** <schema-name>
|
|
123
|
+
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
124
|
+
**Specs:** Sync skipped (user chose to skip)
|
|
125
|
+
|
|
126
|
+
**Warnings:**
|
|
127
|
+
- Archived with 2 incomplete artifacts
|
|
128
|
+
- Archived with 3 incomplete tasks
|
|
129
|
+
- Delta spec sync was skipped (user chose to skip)
|
|
130
|
+
|
|
131
|
+
Review the archive if this was not intentional.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Output On Error (Archive Exists)**
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
## Archive Failed
|
|
138
|
+
|
|
139
|
+
**Change:** <change-name>
|
|
140
|
+
**Target:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
141
|
+
|
|
142
|
+
Target archive directory already exists.
|
|
143
|
+
|
|
144
|
+
**Options:**
|
|
145
|
+
1. Rename the existing archive
|
|
146
|
+
2. Delete the existing archive if it's a duplicate
|
|
147
|
+
3. Wait until a different date to archive
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Guardrails**
|
|
151
|
+
- Always prompt for change selection if not provided
|
|
152
|
+
- Use artifact graph (openspec status --json) for completion checking
|
|
153
|
+
- Don't block archive on warnings - just inform and confirm
|
|
154
|
+
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
|
|
155
|
+
- Show clear summary of what happened
|
|
156
|
+
- If sync is requested, use /opsx:sync approach (agent-driven)
|
|
157
|
+
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|