zcode-expert-system 0.0.0-stage → 3.2.2
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/.zcode-plugin/plugin.json +25 -0
- package/LICENSE +30 -0
- package/README.md +680 -2
- package/README_CN.md +587 -0
- package/SKILL.md +357 -0
- package/agents/expert-academic-anthropologist.md +124 -0
- package/agents/expert-academic-geographer.md +126 -0
- package/agents/expert-academic-historian.md +122 -0
- package/agents/expert-academic-narratologist.md +117 -0
- package/agents/expert-academic-psychologist.md +117 -0
- package/agents/expert-academic-statistician.md +40 -0
- package/agents/expert-academic-study-planner.md +262 -0
- package/agents/expert-accounts-payable-agent.md +102 -0
- package/agents/expert-agentic-identity-trust.md +388 -0
- package/agents/expert-agents-orchestrator.md +366 -0
- package/agents/expert-authenticity-appraiser.md +38 -0
- package/agents/expert-automation-governance-architect.md +215 -0
- package/agents/expert-blender-addon-engineer.md +233 -0
- package/agents/expert-business-strategist.md +487 -0
- package/agents/expert-change-management-consultant.md +495 -0
- package/agents/expert-chief-executive-officer.md +104 -0
- package/agents/expert-chief-financial-officer.md +390 -0
- package/agents/expert-chief-marketing-officer.md +95 -0
- package/agents/expert-chief-of-staff.md +278 -0
- package/agents/expert-chief-operating-officer.md +88 -0
- package/agents/expert-chief-product-officer.md +91 -0
- package/agents/expert-chief-technology-officer.md +98 -0
- package/agents/expert-corporate-training-designer.md +191 -0
- package/agents/expert-customer-service.md +40 -0
- package/agents/expert-customer-success-manager.md +458 -0
- package/agents/expert-data-consolidation-agent.md +327 -0
- package/agents/expert-data-privacy-officer.md +411 -0
- package/agents/expert-design-brand-guardian.md +321 -0
- package/agents/expert-design-image-prompt-engineer.md +255 -0
- package/agents/expert-design-inclusive-visuals-specialist.md +177 -0
- package/agents/expert-design-persona-walkthrough.md +271 -0
- package/agents/expert-design-ui-designer.md +382 -0
- package/agents/expert-design-ui-finish-gate-reviewer.md +40 -0
- package/agents/expert-design-ux-architect.md +482 -0
- package/agents/expert-design-ux-researcher.md +328 -0
- package/agents/expert-design-video-prompt-engineer.md +110 -0
- package/agents/expert-design-visual-storyteller.md +159 -0
- package/agents/expert-design-whimsy-injector.md +453 -0
- package/agents/expert-economy-designer.md +40 -0
- package/agents/expert-engineering-ai-data-remediation-engineer.md +209 -0
- package/agents/expert-engineering-ai-engineer.md +161 -0
- package/agents/expert-engineering-api-platform-engineer.md +40 -0
- package/agents/expert-engineering-ats-validator-architect.md +38 -0
- package/agents/expert-engineering-autonomous-optimization-architect.md +115 -0
- package/agents/expert-engineering-backend-architect.md +234 -0
- package/agents/expert-engineering-china-network-engineer.md +33 -0
- package/agents/expert-engineering-cms-developer.md +534 -0
- package/agents/expert-engineering-code-reviewer.md +172 -0
- package/agents/expert-engineering-codebase-onboarding-engineer.md +172 -0
- package/agents/expert-engineering-data-engineer.md +324 -0
- package/agents/expert-engineering-data-visualization-engineer.md +40 -0
- package/agents/expert-engineering-database-optimizer.md +175 -0
- package/agents/expert-engineering-database-reliability-engineer.md +40 -0
- package/agents/expert-engineering-desktop-app-engineer.md +40 -0
- package/agents/expert-engineering-developer-tooling-engineer.md +40 -0
- package/agents/expert-engineering-devops-automator.md +375 -0
- package/agents/expert-engineering-dingtalk-integration-developer.md +574 -0
- package/agents/expert-engineering-drupal-performance.md +40 -0
- package/agents/expert-engineering-drupal-shopping-cart.md +359 -0
- package/agents/expert-engineering-email-intelligence-engineer.md +349 -0
- package/agents/expert-engineering-embedded-firmware-engineer.md +168 -0
- package/agents/expert-engineering-embedded-linux-driver-engineer.md +255 -0
- package/agents/expert-engineering-feishu-integration-developer.md +597 -0
- package/agents/expert-engineering-filament-optimization-specialist.md +283 -0
- package/agents/expert-engineering-finops-engineer.md +40 -0
- package/agents/expert-engineering-fpga-digital-design-engineer.md +227 -0
- package/agents/expert-engineering-frontend-developer.md +224 -0
- package/agents/expert-engineering-gaussdb-expert.md +40 -0
- package/agents/expert-engineering-git-workflow-master.md +220 -0
- package/agents/expert-engineering-i18n-engineer.md +40 -0
- package/agents/expert-engineering-identity-access-engineer.md +40 -0
- package/agents/expert-engineering-incident-response-commander.md +465 -0
- package/agents/expert-engineering-iot-fleet-engineer.md +40 -0
- package/agents/expert-engineering-iot-solution-architect.md +220 -0
- package/agents/expert-engineering-it-service-manager.md +560 -0
- package/agents/expert-engineering-knowledge-graph-engineer.md +40 -0
- package/agents/expert-engineering-llm-post-training-engineer.md +40 -0
- package/agents/expert-engineering-mechanical-design-engineer.md +311 -0
- package/agents/expert-engineering-minimal-change-engineer.md +206 -0
- package/agents/expert-engineering-mobile-app-builder.md +434 -0
- package/agents/expert-engineering-mobile-release-engineer.md +40 -0
- package/agents/expert-engineering-multi-agent-systems-architect.md +599 -0
- package/agents/expert-engineering-network-engineer-china.md +162 -0
- package/agents/expert-engineering-network-engineer.md +40 -0
- package/agents/expert-engineering-orgscript-engineer.md +112 -0
- package/agents/expert-engineering-payments-billing-engineer.md +40 -0
- package/agents/expert-engineering-pc-host-engineer.md +231 -0
- package/agents/expert-engineering-pdf-engine-architect.md +32 -0
- package/agents/expert-engineering-platform-engineer.md +32 -0
- package/agents/expert-engineering-privacy-engineer.md +40 -0
- package/agents/expert-engineering-prompt-engineer.md +203 -0
- package/agents/expert-engineering-rag-pipeline-engineer.md +40 -0
- package/agents/expert-engineering-rapid-prototyper.md +461 -0
- package/agents/expert-engineering-realtime-collaboration-engineer.md +40 -0
- package/agents/expert-engineering-rust-refactoring-specialist.md +40 -0
- package/agents/expert-engineering-search-relevance-engineer.md +40 -0
- package/agents/expert-engineering-section-508-specialist.md +40 -0
- package/agents/expert-engineering-security-engineer.md +303 -0
- package/agents/expert-engineering-senior-developer.md +177 -0
- package/agents/expert-engineering-servicenow-developer-mentor.md +32 -0
- package/agents/expert-engineering-software-architect.md +200 -0
- package/agents/expert-engineering-solidity-smart-contract-engineer.md +541 -0
- package/agents/expert-engineering-sre.md +233 -0
- package/agents/expert-engineering-technical-writer.md +409 -0
- package/agents/expert-engineering-threat-detection-engineer.md +553 -0
- package/agents/expert-engineering-universal-document-compiler.md +32 -0
- package/agents/expert-engineering-uswds-developer.md +40 -0
- package/agents/expert-engineering-video-streaming-engineer.md +40 -0
- package/agents/expert-engineering-voice-ai-integration-engineer.md +560 -0
- package/agents/expert-engineering-webassembly-engineer.md +40 -0
- package/agents/expert-engineering-wechat-mini-program-developer.md +288 -0
- package/agents/expert-engineering-wordpress-performance.md +40 -0
- package/agents/expert-engineering-wordpress-shopping-cart.md +345 -0
- package/agents/expert-esg-sustainability-officer.md +395 -0
- package/agents/expert-finance-bookkeeper-controller.md +271 -0
- package/agents/expert-finance-financial-analyst.md +244 -0
- package/agents/expert-finance-financial-forecaster.md +213 -0
- package/agents/expert-finance-fpa-analyst.md +272 -0
- package/agents/expert-finance-fraud-detector.md +241 -0
- package/agents/expert-finance-hk-stock-compliance-reviewer.md +316 -0
- package/agents/expert-finance-investment-researcher.md +283 -0
- package/agents/expert-finance-invoice-manager.md +242 -0
- package/agents/expert-finance-tax-strategist.md +250 -0
- package/agents/expert-game-audio-engineer.md +265 -0
- package/agents/expert-game-designer.md +168 -0
- package/agents/expert-gaokao-college-advisor.md +333 -0
- package/agents/expert-gis-3d-scene-developer.md +110 -0
- package/agents/expert-gis-analyst.md +90 -0
- package/agents/expert-gis-bim-specialist.md +107 -0
- package/agents/expert-gis-cartography-designer.md +149 -0
- package/agents/expert-gis-drone-reality-mapping.md +119 -0
- package/agents/expert-gis-geoai-ml-engineer.md +104 -0
- package/agents/expert-gis-geoprocessing-specialist.md +96 -0
- package/agents/expert-gis-qa-engineer.md +132 -0
- package/agents/expert-gis-solution-engineer.md +100 -0
- package/agents/expert-gis-spatial-data-engineer.md +96 -0
- package/agents/expert-gis-spatial-data-scientist.md +110 -0
- package/agents/expert-gis-technical-consultant.md +85 -0
- package/agents/expert-gis-web-gis-developer.md +107 -0
- package/agents/expert-godot-gameplay-scripter.md +335 -0
- package/agents/expert-godot-multiplayer-engineer.md +296 -0
- package/agents/expert-godot-shader-developer.md +267 -0
- package/agents/expert-government-digital-presales-consultant.md +362 -0
- package/agents/expert-grant-writer.md +510 -0
- package/agents/expert-healthcare-aging-parent-care-companion.md +40 -0
- package/agents/expert-healthcare-clinical-evidence-agent.md +40 -0
- package/agents/expert-healthcare-customer-service.md +388 -0
- package/agents/expert-healthcare-innovation-strategist.md +40 -0
- package/agents/expert-healthcare-marketing-compliance.md +394 -0
- package/agents/expert-healthcare-sovereign-health-systems-agent.md +40 -0
- package/agents/expert-hospitality-guest-services.md +597 -0
- package/agents/expert-hr-onboarding.md +450 -0
- package/agents/expert-hr-performance-reviewer.md +248 -0
- package/agents/expert-hr-recruiter.md +232 -0
- package/agents/expert-identity-graph-operator.md +270 -0
- package/agents/expert-language-translator.md +275 -0
- package/agents/expert-legal-billing-time-tracking.md +566 -0
- package/agents/expert-legal-client-intake.md +487 -0
- package/agents/expert-legal-contract-reviewer.md +240 -0
- package/agents/expert-legal-document-review.md +452 -0
- package/agents/expert-legal-policy-writer.md +308 -0
- package/agents/expert-level-designer.md +209 -0
- package/agents/expert-livestock-archive-auditor.md +135 -0
- package/agents/expert-loan-officer-assistant.md +549 -0
- package/agents/expert-lsp-index-engineer.md +334 -0
- package/agents/expert-ma-integration-manager.md +426 -0
- package/agents/expert-macos-spatial-metal-engineer.md +337 -0
- package/agents/expert-marketing-aeo-foundations.md +263 -0
- package/agents/expert-marketing-agentic-search-optimizer.md +312 -0
- package/agents/expert-marketing-ai-citation-strategist.md +169 -0
- package/agents/expert-marketing-app-store-optimizer.md +319 -0
- package/agents/expert-marketing-baidu-seo-specialist.md +220 -0
- package/agents/expert-marketing-bilibili-content-strategist.md +40 -0
- package/agents/expert-marketing-bilibili-strategist.md +194 -0
- package/agents/expert-marketing-book-co-author.md +109 -0
- package/agents/expert-marketing-carousel-growth-engine.md +215 -0
- package/agents/expert-marketing-china-ecommerce-operator.md +277 -0
- package/agents/expert-marketing-china-market-localization-strategist.md +282 -0
- package/agents/expert-marketing-content-creator.md +145 -0
- package/agents/expert-marketing-cross-border-ecommerce.md +260 -0
- package/agents/expert-marketing-daily-news-briefing.md +303 -0
- package/agents/expert-marketing-developer-community-builder.md +32 -0
- package/agents/expert-marketing-douyin-strategist.md +150 -0
- package/agents/expert-marketing-ecommerce-operator.md +216 -0
- package/agents/expert-marketing-email-strategist.md +248 -0
- package/agents/expert-marketing-global-podcast-strategist.md +204 -0
- package/agents/expert-marketing-growth-hacker.md +121 -0
- package/agents/expert-marketing-instagram-curator.md +179 -0
- package/agents/expert-marketing-knowledge-commerce-strategist.md +384 -0
- package/agents/expert-marketing-kuaishou-strategist.md +182 -0
- package/agents/expert-marketing-linkedin-content-creator.md +232 -0
- package/agents/expert-marketing-livestream-commerce-coach.md +303 -0
- package/agents/expert-marketing-multi-platform-publisher.md +216 -0
- package/agents/expert-marketing-podcast-strategist.md +278 -0
- package/agents/expert-marketing-pr-communications-manager.md +472 -0
- package/agents/expert-marketing-private-domain-operator.md +309 -0
- package/agents/expert-marketing-reddit-community-builder.md +127 -0
- package/agents/expert-marketing-search-growth-orchestrator.md +372 -0
- package/agents/expert-marketing-seo-specialist.md +298 -0
- package/agents/expert-marketing-short-video-editing-coach.md +413 -0
- package/agents/expert-marketing-social-media-strategist.md +118 -0
- package/agents/expert-marketing-tiktok-strategist.md +124 -0
- package/agents/expert-marketing-twitter-engager.md +132 -0
- package/agents/expert-marketing-video-optimization-specialist.md +128 -0
- package/agents/expert-marketing-wechat-official-account.md +158 -0
- package/agents/expert-marketing-wechat-operator.md +156 -0
- package/agents/expert-marketing-weibo-strategist.md +241 -0
- package/agents/expert-marketing-weixin-channels-strategist.md +297 -0
- package/agents/expert-marketing-x-twitter-intelligence-analyst.md +160 -0
- package/agents/expert-marketing-xiaohongshu-operator.md +139 -0
- package/agents/expert-marketing-xiaohongshu-specialist.md +151 -0
- package/agents/expert-marketing-zhihu-strategist.md +175 -0
- package/agents/expert-medical-billing-coding-specialist.md +489 -0
- package/agents/expert-narrative-designer.md +244 -0
- package/agents/expert-operations-manager.md +398 -0
- package/agents/expert-organizational-psychologist.md +390 -0
- package/agents/expert-paid-media-auditor.md +170 -0
- package/agents/expert-paid-media-creative-strategist.md +173 -0
- package/agents/expert-paid-media-paid-social-strategist.md +180 -0
- package/agents/expert-paid-media-ppc-strategist.md +180 -0
- package/agents/expert-paid-media-programmatic-buyer.md +177 -0
- package/agents/expert-paid-media-search-query-analyst.md +182 -0
- package/agents/expert-paid-media-tracking-specialist.md +199 -0
- package/agents/expert-personal-growth-mentor.md +158 -0
- package/agents/expert-product-behavioral-nudge-engine.md +246 -0
- package/agents/expert-product-dx-engineer.md +32 -0
- package/agents/expert-product-feedback-synthesizer.md +175 -0
- package/agents/expert-product-manager.md +474 -0
- package/agents/expert-product-sprint-prioritizer.md +133 -0
- package/agents/expert-product-trend-researcher.md +143 -0
- package/agents/expert-project-management-experiment-tracker.md +206 -0
- package/agents/expert-project-management-jira-workflow-steward.md +249 -0
- package/agents/expert-project-management-meeting-notes-specialist.md +94 -0
- package/agents/expert-project-management-project-shepherd.md +202 -0
- package/agents/expert-project-management-studio-operations.md +208 -0
- package/agents/expert-project-management-studio-producer.md +211 -0
- package/agents/expert-project-manager-senior.md +135 -0
- package/agents/expert-prompt-engineer.md +176 -0
- package/agents/expert-real-estate-buyer-seller.md +594 -0
- package/agents/expert-recruitment-specialist.md +49 -0
- package/agents/expert-report-distribution-agent.md +354 -0
- package/agents/expert-research-synthesist.md +40 -0
- package/agents/expert-resume-tailor.md +40 -0
- package/agents/expert-retail-customer-returns.md +564 -0
- package/agents/expert-roblox-avatar-creator.md +298 -0
- package/agents/expert-roblox-experience-designer.md +306 -0
- package/agents/expert-roblox-systems-scripter.md +325 -0
- package/agents/expert-sales-account-strategist.md +243 -0
- package/agents/expert-sales-coach.md +291 -0
- package/agents/expert-sales-data-extraction-agent.md +159 -0
- package/agents/expert-sales-deal-strategist.md +204 -0
- package/agents/expert-sales-discovery-coach.md +230 -0
- package/agents/expert-sales-engineer.md +200 -0
- package/agents/expert-sales-offer-lead-gen-strategist.md +256 -0
- package/agents/expert-sales-outbound-strategist.md +208 -0
- package/agents/expert-sales-outreach.md +40 -0
- package/agents/expert-sales-pipeline-analyst.md +284 -0
- package/agents/expert-sales-proposal-strategist.md +233 -0
- package/agents/expert-security-ai-generated-code-auditor.md +40 -0
- package/agents/expert-security-appsec-engineer.md +490 -0
- package/agents/expert-security-architect.md +303 -0
- package/agents/expert-security-blockchain-security-auditor.md +462 -0
- package/agents/expert-security-cloud-security-architect.md +522 -0
- package/agents/expert-security-compliance-auditor.md +157 -0
- package/agents/expert-security-incident-responder.md +436 -0
- package/agents/expert-security-penetration-tester.md +398 -0
- package/agents/expert-security-secrets-credential-engineer.md +40 -0
- package/agents/expert-security-senior-secops.md +751 -0
- package/agents/expert-security-threat-detection-engineer.md +533 -0
- package/agents/expert-security-threat-intelligence-analyst.md +643 -0
- package/agents/expert-specialized-ai-policy-writer.md +217 -0
- package/agents/expert-specialized-chief-of-staff.md +40 -0
- package/agents/expert-specialized-civil-engineer.md +355 -0
- package/agents/expert-specialized-codebase-archaeologist.md +40 -0
- package/agents/expert-specialized-cultural-intelligence-strategist.md +168 -0
- package/agents/expert-specialized-developer-advocate.md +334 -0
- package/agents/expert-specialized-document-generator.md +346 -0
- package/agents/expert-specialized-fedramp-rmf-compliance.md +40 -0
- package/agents/expert-specialized-focus-music-architect.md +32 -0
- package/agents/expert-specialized-french-consulting-market.md +46 -0
- package/agents/expert-specialized-korean-business-navigator.md +46 -0
- package/agents/expert-specialized-master-plan-architect.md +40 -0
- package/agents/expert-specialized-mcp-builder.md +351 -0
- package/agents/expert-specialized-meeting-assistant.md +236 -0
- package/agents/expert-specialized-model-qa.md +507 -0
- package/agents/expert-specialized-pricing-analyst.md +242 -0
- package/agents/expert-specialized-pricing-optimizer.md +254 -0
- package/agents/expert-specialized-risk-assessor.md +240 -0
- package/agents/expert-specialized-salesforce-architect.md +179 -0
- package/agents/expert-specialized-strategy-duel-agent.md +129 -0
- package/agents/expert-specialized-workflow-architect.md +596 -0
- package/agents/expert-study-abroad-advisor.md +281 -0
- package/agents/expert-supply-chain-garment-factory-planning-engineer.md +262 -0
- package/agents/expert-supply-chain-inventory-forecaster.md +212 -0
- package/agents/expert-supply-chain-route-optimizer.md +224 -0
- package/agents/expert-supply-chain-strategist.md +581 -0
- package/agents/expert-supply-chain-vendor-evaluator.md +232 -0
- package/agents/expert-support-analytics-reporter.md +364 -0
- package/agents/expert-support-executive-summary-generator.md +217 -0
- package/agents/expert-support-finance-tracker.md +447 -0
- package/agents/expert-support-infrastructure-maintainer.md +623 -0
- package/agents/expert-support-legal-compliance-checker.md +587 -0
- package/agents/expert-support-recruitment-specialist.md +508 -0
- package/agents/expert-support-support-responder.md +584 -0
- package/agents/expert-technical-artist.md +230 -0
- package/agents/expert-technical-translator-agent.md +167 -0
- package/agents/expert-terminal-integration-specialist.md +236 -0
- package/agents/expert-testing-accessibility-auditor.md +329 -0
- package/agents/expert-testing-api-tester.md +305 -0
- package/agents/expert-testing-embedded-qa-engineer.md +258 -0
- package/agents/expert-testing-evidence-collector.md +153 -0
- package/agents/expert-testing-performance-benchmarker.md +196 -0
- package/agents/expert-testing-reality-checker.md +235 -0
- package/agents/expert-testing-test-automation-engineer.md +40 -0
- package/agents/expert-testing-test-results-analyzer.md +313 -0
- package/agents/expert-testing-tool-evaluator.md +402 -0
- package/agents/expert-testing-workflow-optimizer.md +458 -0
- package/agents/expert-travel-planner.md +38 -0
- package/agents/expert-unity-architect.md +272 -0
- package/agents/expert-unity-editor-tool-developer.md +300 -0
- package/agents/expert-unity-multiplayer-engineer.md +238 -0
- package/agents/expert-unity-shader-graph-artist.md +270 -0
- package/agents/expert-unreal-multiplayer-architect.md +314 -0
- package/agents/expert-unreal-systems-engineer.md +311 -0
- package/agents/expert-unreal-technical-artist.md +256 -0
- package/agents/expert-unreal-world-builder.md +274 -0
- package/agents/expert-visionos-spatial-engineer.md +282 -0
- package/agents/expert-xr-cockpit-interaction-specialist.md +220 -0
- package/agents/expert-xr-immersive-developer.md +229 -0
- package/agents/expert-xr-interface-architect.md +253 -0
- package/agents/expert-zk-steward.md +228 -0
- package/agents/manager-academic-research.md +96 -0
- package/agents/manager-agent-governance.md +90 -0
- package/agents/manager-ai-llm.md +94 -0
- package/agents/manager-backend-architecture.md +106 -0
- package/agents/manager-business-strategy.md +102 -0
- package/agents/manager-business-support.md +96 -0
- package/agents/manager-customer-support.md +95 -0
- package/agents/manager-data-database.md +92 -0
- package/agents/manager-data-knowledge.md +88 -0
- package/agents/manager-data-testing.md +105 -0
- package/agents/manager-design-creative.md +103 -0
- package/agents/manager-devops-operations.md +92 -0
- package/agents/manager-embedded-iot.md +90 -0
- package/agents/manager-engineering-quality.md +94 -0
- package/agents/manager-finance-tax.md +99 -0
- package/agents/manager-frontend-client.md +116 -0
- package/agents/manager-game-dev.md +120 -0
- package/agents/manager-gis.md +104 -0
- package/agents/manager-government-public.md +84 -0
- package/agents/manager-healthcare.md +88 -0
- package/agents/manager-hr.md +87 -0
- package/agents/manager-language-translation.md +82 -0
- package/agents/manager-legal-compliance.md +86 -0
- package/agents/manager-marketing-growth.md +138 -0
- package/agents/manager-network-engineering.md +83 -0
- package/agents/manager-paid-media.md +92 -0
- package/agents/manager-product-management.md +90 -0
- package/agents/manager-project-management.md +94 -0
- package/agents/manager-sales-customer.md +97 -0
- package/agents/manager-security-compliance.md +109 -0
- package/agents/manager-spatial-computing.md +90 -0
- package/agents/manager-supply-chain.md +87 -0
- package/bin/cli.js +84 -0
- package/commands/wf/archive.md +111 -0
- package/commands/wf/check.md +68 -0
- package/commands/wf/deliver.md +76 -0
- package/commands/wf/design.md +56 -0
- package/commands/wf/dispatch.md +90 -0
- package/commands/wf/env.md +81 -0
- package/commands/wf/implement.md +96 -0
- package/commands/wf/plan.md +78 -0
- package/commands/wf/resume.md +59 -0
- package/commands/wf/spec.md +88 -0
- package/commands/wf/triage.md +50 -0
- package/commands/wf/verify.md +93 -0
- package/config/categories.json +557 -0
- package/config/experts.json +3318 -0
- package/config/workflow.json +848 -0
- package/context/context-manager.py +339 -0
- package/docs/workflow-fusion-design.md +239 -0
- package/hooks/claude-hooks.json +16 -0
- package/hooks/hooks.json +20 -0
- package/hooks/prepend-global-rules-reminder.mjs +342 -0
- package/icon.png +0 -0
- package/package.json +61 -3
- package/references/openspec-manual-mode.md +97 -0
- package/references/roles/analyst.md +62 -0
- package/references/roles/implementer.md +67 -0
- package/references/roles/investigator.md +88 -0
- package/references/roles/orchestrator.md +66 -0
- package/references/roles/reviewer.md +103 -0
- package/references/stage-S0-triage.md +68 -0
- package/references/stage-S1-design.md +53 -0
- package/references/stage-S2-spec.md +135 -0
- package/references/stage-S3-plan.md +84 -0
- package/references/stage-S4-env-baseline.md +81 -0
- package/references/stage-S5-implement.md +139 -0
- package/references/stage-S6-verify-review.md +80 -0
- package/references/stage-S7-deliver.md +81 -0
- package/references/stage-S8-sync-archive.md +168 -0
- package/references/workflow-tree.md +98 -0
- package/scripts/cc-uninstall.js +123 -0
- package/scripts/embedding_client.py +44 -0
- package/scripts/install-claude-code.js +477 -0
- package/scripts/install.js +1592 -0
- package/scripts/llm_client.py +202 -0
- package/scripts/openspec_engine.py +707 -0
- package/scripts/sdd/review-package +65 -0
- package/scripts/sdd/sdd-workspace +108 -0
- package/scripts/sdd/task-brief +49 -0
- package/scripts/target-menu.js +125 -0
- package/scripts/workflow_check.py +1955 -0
- package/skill_entry.py +193 -0
- package/templates/bug-report.md +86 -0
- package/templates/minimal-contract.md +54 -0
- package/templates/plan-sections.md +190 -0
- package/templates/progress.md +89 -0
- package/templates/review-report.md +51 -0
- package/templates/task-report.md +84 -0
- package/vendor/skills/LICENSE +21 -0
- package/vendor/skills/PROVENANCE.md +79 -0
- package/vendor/skills/zes-brainstorming/SKILL.md +302 -0
- package/vendor/skills/zes-brainstorming/builder-check-prompt.md +23 -0
- package/vendor/skills/zes-code-review/SKILL.md +103 -0
- package/vendor/skills/zes-finishing/SKILL.md +233 -0
- package/vendor/skills/zes-openspec-apply-change/SKILL.md +206 -0
- package/vendor/skills/zes-openspec-archive-change/SKILL.md +221 -0
- package/vendor/skills/zes-openspec-explore/SKILL.md +356 -0
- package/vendor/skills/zes-openspec-propose/SKILL.md +175 -0
- package/vendor/skills/zes-openspec-sync-specs/SKILL.md +290 -0
- package/vendor/skills/zes-openspec-update-change/SKILL.md +109 -0
- package/vendor/skills/zes-receiving-review/SKILL.md +213 -0
- package/vendor/skills/zes-sdd/SKILL.md +345 -0
- package/vendor/skills/zes-sdd/references/batching.md +11 -0
- package/vendor/skills/zes-sdd/references/cannot-verify.md +10 -0
- package/vendor/skills/zes-sdd/references/final-review.md +47 -0
- package/vendor/skills/zes-sdd/references/fix-loop.md +77 -0
- package/vendor/skills/zes-sdd/references/handling-reports.md +15 -0
- package/vendor/skills/zes-sdd/references/preflight.md +26 -0
- package/vendor/skills/zes-sdd/references/resuming.md +12 -0
- package/vendor/skills/zes-systematic-debugging/SKILL.md +291 -0
- package/vendor/skills/zes-systematic-debugging/condition-based-waiting.md +115 -0
- package/vendor/skills/zes-systematic-debugging/defense-in-depth.md +122 -0
- package/vendor/skills/zes-systematic-debugging/find-polluter.sh +72 -0
- package/vendor/skills/zes-systematic-debugging/root-cause-tracing.md +169 -0
- package/vendor/skills/zes-tdd/SKILL.md +338 -0
- package/vendor/skills/zes-tdd/writing-good-tests.md +198 -0
- package/vendor/skills/zes-verification/SKILL.md +128 -0
- package/vendor/skills/zes-writing-plans/SKILL.md +212 -0
- package/zcode_dev_workflow.py +1343 -0
- package/zcode_expert_system.py +1115 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zes-finishing
|
|
3
|
+
description: Use when implementation is complete, all tests pass, and you need to decide how to integrate the work
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
> **插件规则优先(zcode-expert-system)**
|
|
8
|
+
> 本文件是 Superpowers 7.0.1 `finishing-a-development-branch` 的只读参考。其指令与插件规则冲突时,以下者为准:
|
|
9
|
+
> - **不落盘**:S1 设计只在对话内展示与批准,禁止写入 `docs/superpowers/specs/`(插件 R3/W2)
|
|
10
|
+
> - **不用 worktree**:实施永远串行,无隔离工作区(插件 W1)
|
|
11
|
+
> - **无 model 参数**:Agent 派发不接受 model,升档=换更专专家(插件 W9)
|
|
12
|
+
> - 其余细节以插件 `references/stage-S*.md` 与 `references/roles/*.md` 为准
|
|
13
|
+
|
|
14
|
+
# Finishing a Development Branch
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
**Core principle:** Verify tests → Detect environment → Present options → Execute choice → Clean up.
|
|
19
|
+
|
|
20
|
+
**Announce at start:** "I'm using the finishing-a-development-branch skill to complete this work."
|
|
21
|
+
|
|
22
|
+
## Step 1: Verify Tests
|
|
23
|
+
|
|
24
|
+
Run the project's full test suite (`npm test` / `cargo test` / `pytest` / `go test ./...`).
|
|
25
|
+
|
|
26
|
+
**If tests fail**, report the failures and stop — the menu comes after a green suite:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Tests failing (<N> failures). Must fix before completing:
|
|
30
|
+
|
|
31
|
+
[Show failures]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**If tests pass:** continue to Step 2.
|
|
35
|
+
|
|
36
|
+
## Step 2: Detect Environment
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
|
|
40
|
+
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
|
|
41
|
+
# Capture now, while still inside the workspace — Step 5 changes directory
|
|
42
|
+
# before cleanup (Step 6) needs this value
|
|
43
|
+
WORKTREE_PATH=$(git rev-parse --show-toplevel)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This determines which menu to show and how cleanup works:
|
|
47
|
+
|
|
48
|
+
| State | Menu | Cleanup |
|
|
49
|
+
|-------|------|---------|
|
|
50
|
+
| `GIT_DIR == GIT_COMMON` (normal repo) | Standard 3 options | No worktree to clean up |
|
|
51
|
+
| `GIT_DIR != GIT_COMMON`, named branch | Standard 3 options | Provenance-based (see Step 6) |
|
|
52
|
+
| `GIT_DIR != GIT_COMMON`, detached HEAD | Reduced 2 options (no merge) | Externally managed — leave in place |
|
|
53
|
+
|
|
54
|
+
## Step 3: Determine Base Branch
|
|
55
|
+
|
|
56
|
+
The base branch is whatever this work forked from — usually named in the
|
|
57
|
+
plan, the conversation, or the branch's upstream. If it is not already
|
|
58
|
+
known, ask: "This branch split from <your best guess> - is that correct?"
|
|
59
|
+
Confirm before merging: merging into the wrong base is expensive to undo.
|
|
60
|
+
|
|
61
|
+
## Step 4: Present Options
|
|
62
|
+
|
|
63
|
+
**Normal repo and named-branch worktree — present exactly these 3 options:**
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Implementation complete. What would you like to do?
|
|
67
|
+
|
|
68
|
+
1. Merge back to <base-branch> locally
|
|
69
|
+
2. Push and create a Pull Request
|
|
70
|
+
3. Keep the branch as-is (I'll handle it later)
|
|
71
|
+
|
|
72
|
+
Which option?
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Detached HEAD — present exactly these 2 options:**
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Implementation complete. You're on a detached HEAD (externally managed workspace).
|
|
79
|
+
|
|
80
|
+
1. Push as new branch and create a Pull Request
|
|
81
|
+
2. Keep as-is (I'll handle it later)
|
|
82
|
+
|
|
83
|
+
Which option?
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Present the menu exactly as written — concise, with every option coming
|
|
87
|
+
from the list above. Discarding the work happens only in response to your
|
|
88
|
+
human partner explicitly asking for it (see "If your human partner asks to
|
|
89
|
+
discard the work" below). Wait for their answer; the integration decision
|
|
90
|
+
is theirs.
|
|
91
|
+
|
|
92
|
+
## Step 5: Execute Choice
|
|
93
|
+
|
|
94
|
+
### Option 1: Merge Locally
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Get main repo root for CWD safety
|
|
98
|
+
MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-toplevel)
|
|
99
|
+
cd "$MAIN_ROOT"
|
|
100
|
+
|
|
101
|
+
# Merge first — verify success before removing anything
|
|
102
|
+
git checkout <base-branch>
|
|
103
|
+
git pull
|
|
104
|
+
git merge <feature-branch>
|
|
105
|
+
|
|
106
|
+
# Verify tests on merged result
|
|
107
|
+
<test command>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
If tests fail on the merged result: stop, leave the worktree and branch in
|
|
111
|
+
place, and investigate — nothing has been pushed, so the merge is local
|
|
112
|
+
and recoverable.
|
|
113
|
+
|
|
114
|
+
Once the merged result is green: clean up the worktree (Step 6), then
|
|
115
|
+
delete the branch:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
git branch -d <feature-branch>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Option 2: Push and Create PR
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
git push -u origin <feature-branch>
|
|
125
|
+
# From a detached HEAD, name the new branch on the remote:
|
|
126
|
+
# git push origin HEAD:refs/heads/<new-branch>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Then create the pull/merge request against <base-branch> with the forge's
|
|
130
|
+
tooling — its CLI if one is available, or the creation URL most forges
|
|
131
|
+
print when you push — following the repo's PR template and conventions if
|
|
132
|
+
present, and report the URL to your human partner.
|
|
133
|
+
|
|
134
|
+
Keep the worktree — your human partner iterates on PR feedback there.
|
|
135
|
+
|
|
136
|
+
### Option 3: Keep As-Is
|
|
137
|
+
|
|
138
|
+
Report: "Keeping branch <name>. Worktree preserved at <path>."
|
|
139
|
+
|
|
140
|
+
### If your human partner asks to discard the work
|
|
141
|
+
|
|
142
|
+
This path exists only as a response to an explicit request to throw the
|
|
143
|
+
work away. Confirm first:
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
This will permanently delete:
|
|
147
|
+
- Branch <name>
|
|
148
|
+
- All commits: <commit-list>
|
|
149
|
+
- Worktree at <path>
|
|
150
|
+
|
|
151
|
+
Type 'discard' to confirm.
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Wait for that exact confirmation. When it arrives:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-toplevel)
|
|
158
|
+
cd "$MAIN_ROOT"
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Then clean up the worktree (Step 6) and force-delete the branch:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
git branch -D <feature-branch>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Step 6: Cleanup Workspace
|
|
168
|
+
|
|
169
|
+
**Runs for Option 1 and confirmed discards.** Options 2 and 3 always
|
|
170
|
+
preserve the worktree. Both callers have already changed directory to the
|
|
171
|
+
main repo root — worktree removal must run from outside the worktree —
|
|
172
|
+
and use the `GIT_DIR`/`GIT_COMMON`/`WORKTREE_PATH` values captured in
|
|
173
|
+
Step 2, from before that directory change.
|
|
174
|
+
|
|
175
|
+
**If `GIT_DIR == GIT_COMMON`:** Normal repo, no worktree to clean up. Done.
|
|
176
|
+
|
|
177
|
+
**If `WORKTREE_PATH` is under `.worktrees/` or `worktrees/`:** Superpowers
|
|
178
|
+
created this worktree — we own cleanup:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
git worktree remove "$WORKTREE_PATH"
|
|
182
|
+
git worktree prune # Self-healing: clean up any stale registrations
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**If removal is refused** (`contains modified or untracked files`): the
|
|
186
|
+
worktree holds files that exist nowhere else — uncommitted plans, notes,
|
|
187
|
+
or scratch work. Never `--force` on your own initiative. Show your human
|
|
188
|
+
partner what is at stake and ask:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
git -C "$WORKTREE_PATH" status --porcelain -uall
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
Worktree removal refused — these files were never committed:
|
|
196
|
+
|
|
197
|
+
<file list>
|
|
198
|
+
|
|
199
|
+
1. Commit them to <branch> before cleanup
|
|
200
|
+
2. Move them into <main repo root>
|
|
201
|
+
3. Delete them (unrecoverable)
|
|
202
|
+
|
|
203
|
+
Which?
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Carry out the choice, then remove the worktree.
|
|
207
|
+
|
|
208
|
+
**Otherwise:** The host environment owns this workspace — leave it in
|
|
209
|
+
place. If your platform provides a workspace-exit tool, use it.
|
|
210
|
+
|
|
211
|
+
## Quick Reference
|
|
212
|
+
|
|
213
|
+
| Option | Merge | Push | Keep Worktree | Cleanup Branch |
|
|
214
|
+
|--------|-------|------|---------------|----------------|
|
|
215
|
+
| 1. Merge locally | yes | - | - | yes |
|
|
216
|
+
| 2. Create PR | - | yes | yes | - |
|
|
217
|
+
| 3. Keep as-is | - | - | yes | - |
|
|
218
|
+
| Discard (explicit request only) | - | - | - | yes (force) |
|
|
219
|
+
|
|
220
|
+
## Common Rationalizations
|
|
221
|
+
|
|
222
|
+
| Excuse | Reality |
|
|
223
|
+
|--------|---------|
|
|
224
|
+
| "Tests passed earlier this session" | Run the suite on the tree you are about to integrate. A green run only proves the tree it ran on. |
|
|
225
|
+
| "They obviously want it merged" | Integration is your human partner's decision. Present the menu and wait. |
|
|
226
|
+
| "They seem done with this feature — I'll offer to discard it" | The menu is complete as written. Discard happens only when your human partner asks for it in so many words. |
|
|
227
|
+
| "'Yeah, get rid of it' counts as confirmation" | Only the typed word `discard` authorizes deletion. |
|
|
228
|
+
| "The PR is up, so the worktree is clutter now" | PR feedback gets fixed in that worktree. It stays until the work lands. |
|
|
229
|
+
| "This other worktree looks stale — I'll clean it too" | Clean up only worktrees under `.worktrees/` or `worktrees/`. Everything else belongs to the host. |
|
|
230
|
+
| "Removal refused — `--force` is just finishing the cleanup" | The refusal means files exist only in that worktree. `--force` destroys them permanently. Show your human partner and ask. |
|
|
231
|
+
| "The merged-result failure is probably flaky" | A failing merged result stops everything. Branch and worktree stay put while you investigate. |
|
|
232
|
+
| "The base branch is obviously main" | Confirm the fork point or ask. Merging into the wrong base is expensive to undo. |
|
|
233
|
+
| "The push was rejected — force-push will fix it" | A rejected push means the remote moved. Investigate; force-push only on your human partner's explicit request. |
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zes-openspec-apply-change
|
|
3
|
+
description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. Also use when the user says "openspec apply", "opsx apply", or "openspec implement".
|
|
4
|
+
allowed-tools: Bash(openspec:*)
|
|
5
|
+
license: MIT
|
|
6
|
+
compatibility: Requires openspec CLI.
|
|
7
|
+
metadata:
|
|
8
|
+
author: openspec
|
|
9
|
+
version: "1.0"
|
|
10
|
+
generatedBy: "1.16.1"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Implement tasks from an OpenSpec change.
|
|
14
|
+
|
|
15
|
+
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
|
|
16
|
+
|
|
17
|
+
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
|
|
18
|
+
|
|
19
|
+
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
|
|
20
|
+
|
|
21
|
+
Otherwise, with no root, what happens next depends on how this workflow was reached:
|
|
22
|
+
|
|
23
|
+
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
|
|
24
|
+
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
|
|
25
|
+
|
|
26
|
+
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
|
|
27
|
+
|
|
28
|
+
**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.
|
|
29
|
+
|
|
30
|
+
**Steps**
|
|
31
|
+
|
|
32
|
+
1. **Select the change**
|
|
33
|
+
|
|
34
|
+
If a name is provided, use it. Otherwise:
|
|
35
|
+
- Infer from conversation context if the user mentioned a change
|
|
36
|
+
- Auto-select if only one active change exists
|
|
37
|
+
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
|
|
38
|
+
|
|
39
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
|
|
40
|
+
|
|
41
|
+
2. **Check status to understand the schema**
|
|
42
|
+
```bash
|
|
43
|
+
python <ZCODE_PLUGIN_ROOT>/skills/zcode-expert-system/scripts/openspec_engine.py status --change "<name>" --json
|
|
44
|
+
```
|
|
45
|
+
Parse the JSON to understand:
|
|
46
|
+
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
47
|
+
- `planningHome`, `changeRoot`, and `actionContext`: planning scope and edit constraints
|
|
48
|
+
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
49
|
+
|
|
50
|
+
3. **Get apply instructions**
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
python <ZCODE_PLUGIN_ROOT>/skills/zcode-expert-system/scripts/openspec_engine.py instructions apply --change "<name>" --json
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This returns:
|
|
57
|
+
- `contextFiles`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
|
|
58
|
+
- Progress (total, complete, remaining)
|
|
59
|
+
- Task list with status, source path, and source line
|
|
60
|
+
- Dynamic instruction based on current state
|
|
61
|
+
- Optional `context`: current required project instruction input from the selected root
|
|
62
|
+
- Optional `operationGuidance`: current advisory guidance for apply
|
|
63
|
+
- `missingArtifacts` (when present): required artifact ids with no output
|
|
64
|
+
|
|
65
|
+
**Handle states:**
|
|
66
|
+
- If `state: "blocked"`: show the message and pause implementation.
|
|
67
|
+
- If `missingArtifacts` is non-empty: suggest completing the missing artifacts. Run `openspec status --change "<name>" --json`, select the next `ready` artifact (not `skipped` or `blocked`), and use `openspec instructions "<artifact-id>" --change "<name>" --json` for its rules and template. Keep the selected `--store <id>` on both commands.
|
|
68
|
+
- Otherwise, follow the CLI instruction to create or repair the schema-configured tracking file from existing planning artifacts. Do not assume another artifact is ready or start implementation while blocked.
|
|
69
|
+
- If `state: "all_done"`: report that all tracked tasks are complete and suggest review or verification as appropriate before archiving
|
|
70
|
+
- Otherwise: proceed to implementation
|
|
71
|
+
|
|
72
|
+
Treat `context` as a required prompt-level input. Read and consider it, and
|
|
73
|
+
apply relevant project facts, conventions, and constraints while implementing.
|
|
74
|
+
Treat `operationGuidance` as optional additive advice. Read and consider every
|
|
75
|
+
entry, and follow entries that are applicable and compatible with the built-in
|
|
76
|
+
workflow.
|
|
77
|
+
|
|
78
|
+
Keep both fields separate from CLI-returned state, missing artifacts, tasks,
|
|
79
|
+
progress, `contextFiles`, and the built-in `instruction`. They are not
|
|
80
|
+
evidence of task completion, do not replace the built-in instruction, and do
|
|
81
|
+
not permit bypassing a blocked state. If context conflicts with the built-in
|
|
82
|
+
instruction, an explicit user choice, or a CLI-controlled value, report the
|
|
83
|
+
conflict and preserve the controlling value. If guidance is inapplicable or
|
|
84
|
+
conflicts with those controlling inputs, do not follow it and explain why.
|
|
85
|
+
These are prompt-level behavior contracts, not enforceable checks.
|
|
86
|
+
|
|
87
|
+
4. **Read context files**
|
|
88
|
+
|
|
89
|
+
Read every file path listed under `contextFiles` from the apply instructions output.
|
|
90
|
+
The files depend on the schema being used:
|
|
91
|
+
- **spec-driven**: proposal, specs, design, tasks
|
|
92
|
+
- Other schemas: follow the contextFiles from CLI output
|
|
93
|
+
|
|
94
|
+
Do not copy `context` or `operationGuidance` verbatim into implementation
|
|
95
|
+
files or planning artifacts unless the user separately asks for that content.
|
|
96
|
+
|
|
97
|
+
5. **Show current progress**
|
|
98
|
+
|
|
99
|
+
Display:
|
|
100
|
+
- Schema being used
|
|
101
|
+
- Progress: "N/M tasks complete"
|
|
102
|
+
- Remaining tasks overview
|
|
103
|
+
- Dynamic instruction from CLI
|
|
104
|
+
|
|
105
|
+
6. **Implement tasks (loop until done or blocked)**
|
|
106
|
+
|
|
107
|
+
For each pending task:
|
|
108
|
+
- Show which task is being worked on
|
|
109
|
+
- Make the code changes required
|
|
110
|
+
- Keep changes minimal and focused
|
|
111
|
+
- Before editing, confirm the checkbox at the returned `sourcePath` and `line` still matches the task description; if it does not, rerun the apply instructions and use the refreshed location
|
|
112
|
+
- Mark the task complete at its returned `sourcePath` and `line`: `- [ ]` → `- [x]`
|
|
113
|
+
- Rerun the apply instructions and confirm that task is now done and progress changed
|
|
114
|
+
- Continue to next task
|
|
115
|
+
|
|
116
|
+
**Pause if:**
|
|
117
|
+
- Task is unclear → ask for clarification
|
|
118
|
+
- Implementation reveals a design issue → suggest updating artifacts
|
|
119
|
+
- A task needs work beyond what the spec and tasks describe, or you are tempted to drop, narrow, defer, or accept exceptions to specified behavior to make it fit → surface the added scope and ask; do not absorb it silently
|
|
120
|
+
- Error or blocker encountered → report and wait for guidance
|
|
121
|
+
- User interrupts
|
|
122
|
+
|
|
123
|
+
7. **On completion or pause, show status**
|
|
124
|
+
|
|
125
|
+
Display:
|
|
126
|
+
- Tasks completed this session
|
|
127
|
+
- Overall progress: "N/M tasks complete"
|
|
128
|
+
- If all done: report that tracked tasks are complete and suggest review or verification as appropriate before archiving
|
|
129
|
+
- If paused: explain why and wait for guidance
|
|
130
|
+
|
|
131
|
+
**Output During Implementation**
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
## Implementing: <change-name> (schema: <schema-name>)
|
|
135
|
+
|
|
136
|
+
Working on task 3/7: <task description>
|
|
137
|
+
[...implementation happening...]
|
|
138
|
+
✓ Task complete
|
|
139
|
+
|
|
140
|
+
Working on task 4/7: <task description>
|
|
141
|
+
[...implementation happening...]
|
|
142
|
+
✓ Task complete
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
**Output On Completion**
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
## Implementation Complete
|
|
149
|
+
|
|
150
|
+
**Change:** <change-name>
|
|
151
|
+
**Schema:** <schema-name>
|
|
152
|
+
**Progress:** 7/7 tasks complete ✓
|
|
153
|
+
|
|
154
|
+
### Completed This Session
|
|
155
|
+
- [x] Task 1
|
|
156
|
+
- [x] Task 2
|
|
157
|
+
...
|
|
158
|
+
|
|
159
|
+
All tracked tasks are complete. Review or verify the change as appropriate
|
|
160
|
+
before archiving. You can archive this change with `/opsx:archive`.
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Output On Pause (Issue Encountered)**
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
## Implementation Paused
|
|
167
|
+
|
|
168
|
+
**Change:** <change-name>
|
|
169
|
+
**Schema:** <schema-name>
|
|
170
|
+
**Progress:** 4/7 tasks complete
|
|
171
|
+
|
|
172
|
+
### Issue Encountered
|
|
173
|
+
<description of the issue>
|
|
174
|
+
|
|
175
|
+
**Options:**
|
|
176
|
+
1. <option 1>
|
|
177
|
+
2. <option 2>
|
|
178
|
+
3. Other approach
|
|
179
|
+
|
|
180
|
+
What would you like to do?
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Guardrails**
|
|
184
|
+
- Keep going through tasks until done or blocked
|
|
185
|
+
- Always read context files before starting (from the apply instructions output)
|
|
186
|
+
- If task is ambiguous, pause and ask before implementing
|
|
187
|
+
- If implementation reveals issues, pause and suggest artifact updates
|
|
188
|
+
- Keep code changes minimal and scoped to each task
|
|
189
|
+
- Update task checkbox immediately after completing each task
|
|
190
|
+
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
191
|
+
- When a task needs work beyond what the spec describes, surface the added scope and pause - never silently narrow, defer, or simplify away specified behavior
|
|
192
|
+
- Only mark a task `- [x]` when its specified behavior is fully implemented, not when it is partially done or deferred
|
|
193
|
+
- Use contextFiles from CLI output, don't assume specific file names
|
|
194
|
+
- Use each task's sourcePath and line to update its exact checkbox
|
|
195
|
+
- Do not use context or operation guidance as proof that a task is complete
|
|
196
|
+
- Apply relevant project context; report conflicts with controlling workflow inputs
|
|
197
|
+
- Consider every guidance entry; explain any inapplicable or conflicting advice
|
|
198
|
+
- Do not copy runtime context or operation guidance into implementation files or planning artifacts
|
|
199
|
+
- Preserve CLI-controlled blocked/ready/all-done behavior and completion criteria
|
|
200
|
+
|
|
201
|
+
**Fluid Workflow Integration**
|
|
202
|
+
|
|
203
|
+
This skill supports the "actions on a change" model:
|
|
204
|
+
|
|
205
|
+
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
206
|
+
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: zes-openspec-archive-change
|
|
3
|
+
description: Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete. Also use when the user says "openspec archive" or "opsx archive".
|
|
4
|
+
allowed-tools: Bash(openspec:*)
|
|
5
|
+
license: MIT
|
|
6
|
+
compatibility: Requires openspec CLI.
|
|
7
|
+
metadata:
|
|
8
|
+
author: openspec
|
|
9
|
+
version: "1.0"
|
|
10
|
+
generatedBy: "1.16.1"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Archive a completed change in the experimental workflow.
|
|
14
|
+
|
|
15
|
+
**Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
|
|
16
|
+
|
|
17
|
+
**Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
|
|
18
|
+
|
|
19
|
+
One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
|
|
20
|
+
|
|
21
|
+
Otherwise, with no root, what happens next depends on how this workflow was reached:
|
|
22
|
+
|
|
23
|
+
- **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or running its slash command. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
|
|
24
|
+
- **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or ran its slash command. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
|
|
25
|
+
|
|
26
|
+
In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
|
|
27
|
+
|
|
28
|
+
`<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve the full path from each delta spec when resolving its main spec.
|
|
29
|
+
|
|
30
|
+
**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.
|
|
31
|
+
|
|
32
|
+
**Steps**
|
|
33
|
+
|
|
34
|
+
1. **Select the change**
|
|
35
|
+
|
|
36
|
+
If a name is provided, use it. Otherwise:
|
|
37
|
+
- Infer from conversation context if the user mentioned a change
|
|
38
|
+
- Auto-select if only one active change exists
|
|
39
|
+
- If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
|
|
40
|
+
|
|
41
|
+
When prompting, show only active changes (not already archived).
|
|
42
|
+
Include the schema used for each change if available.
|
|
43
|
+
|
|
44
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:archive <other>`).
|
|
45
|
+
|
|
46
|
+
**Load current archive inputs before the existing archive checks:**
|
|
47
|
+
|
|
48
|
+
After resolving the selected change and planning root, run:
|
|
49
|
+
```bash
|
|
50
|
+
python <ZCODE_PLUGIN_ROOT>/skills/zcode-expert-system/scripts/openspec_engine.py instructions archive --change "<name>" --json
|
|
51
|
+
```
|
|
52
|
+
Keep the same selected-root flags on this command. This lookup is advisory and
|
|
53
|
+
optional: it only supplies extra prompt inputs, so it must never block archiving.
|
|
54
|
+
If it exits non-zero or returns invalid JSON — for example on an older CLI that
|
|
55
|
+
does not support this command yet — continue the archive workflow with no
|
|
56
|
+
context and no operation guidance. Do not report an error and do not stop.
|
|
57
|
+
|
|
58
|
+
A successful response may omit both optional fields. Treat `context` as a
|
|
59
|
+
required prompt-level input: read and consider it, and apply relevant project
|
|
60
|
+
facts, conventions, and constraints. Treat `operationGuidance` as optional
|
|
61
|
+
additive advice: read and consider every entry, and follow entries that are
|
|
62
|
+
applicable and compatible with the built-in archive workflow.
|
|
63
|
+
|
|
64
|
+
Keep both fields separate from built-in steps, explicit user choices, resolved
|
|
65
|
+
paths, CLI checks, and command contracts. If context conflicts with one of those
|
|
66
|
+
controlling inputs, report the conflict and preserve the controlling value. If
|
|
67
|
+
guidance is inapplicable or conflicts with a controlling input, do not follow it
|
|
68
|
+
and explain why. Do not infer replacement paths, skipped prompts, or flags from
|
|
69
|
+
either field, and do not copy their text verbatim into specs, change artifacts,
|
|
70
|
+
or archive summaries unless the user separately asks for it. These are
|
|
71
|
+
prompt-level behavior contracts, not enforceable checks.
|
|
72
|
+
|
|
73
|
+
2. **Check artifact completion status**
|
|
74
|
+
|
|
75
|
+
Run `openspec status --change "<name>" --json` to check artifact completion.
|
|
76
|
+
|
|
77
|
+
Parse the JSON to understand:
|
|
78
|
+
- `schemaName`: The workflow being used
|
|
79
|
+
- `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context
|
|
80
|
+
- `artifacts`: List of artifacts with their status (`done`, `skipped`, or other)
|
|
81
|
+
|
|
82
|
+
**If any artifacts are neither `done` nor `skipped`** (skipped artifacts satisfy the requirement - the change declares skip_specs):
|
|
83
|
+
- Display warning listing incomplete artifacts
|
|
84
|
+
- Ask the user to confirm they want to proceed
|
|
85
|
+
- Proceed if user confirms
|
|
86
|
+
|
|
87
|
+
3. **Check task completion status**
|
|
88
|
+
|
|
89
|
+
Run `openspec list --json` with the same selected-root flags and find the
|
|
90
|
+
entry in `changes` whose `name` exactly matches the selected change.
|
|
91
|
+
Require exactly one match and nonnegative integer `totalTasks` and
|
|
92
|
+
`completedTasks`, with `completedTasks <= totalTasks`. The CLI resolves
|
|
93
|
+
the schema's tracked task files, including custom artifact names, output
|
|
94
|
+
paths, and globs.
|
|
95
|
+
Incomplete tasks = `totalTasks - completedTasks`.
|
|
96
|
+
|
|
97
|
+
Do not infer task completion from artifact status or the absence of a
|
|
98
|
+
top-level `tasks.md`. If the lookup fails, returns invalid JSON, omits or
|
|
99
|
+
duplicates the selected change, or returns invalid counts, report the problem
|
|
100
|
+
and stop before syncing or archiving.
|
|
101
|
+
The CLI counts only `x`/`X` checkbox markers as complete;
|
|
102
|
+
other markers, including unfamiliar ones, remain incomplete.
|
|
103
|
+
|
|
104
|
+
**If incomplete tasks found:**
|
|
105
|
+
- Display warning showing count of incomplete tasks
|
|
106
|
+
- Ask the user to confirm they want to proceed
|
|
107
|
+
- Proceed if user confirms
|
|
108
|
+
|
|
109
|
+
**If `totalTasks` is zero:** Proceed without a task-related warning.
|
|
110
|
+
|
|
111
|
+
4. **Assess delta spec sync state**
|
|
112
|
+
|
|
113
|
+
Use `artifactPaths.specs.existingOutputPaths` from status JSON as the only
|
|
114
|
+
delta-spec source. If the `specs` entry is missing or
|
|
115
|
+
`existingOutputPaths` is empty, proceed without a sync prompt and do not infer
|
|
116
|
+
delta specs from other artifacts.
|
|
117
|
+
|
|
118
|
+
**If delta specs exist:**
|
|
119
|
+
- Compare each delta spec with its corresponding main spec at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (use the store-aware `planningHome.root` from step 2, not a hardcoded repo path)
|
|
120
|
+
- A missing main spec is **not automatically** "already synced". For a new capability, the main spec is an *output* of the sync, not an input:
|
|
121
|
+
- If the delta has MODIFIED or RENAMED requirements, report that only ADDED requirements can create a new main spec and mark that capability as sync-blocked. Never invent a requirement that has no current version.
|
|
122
|
+
- Otherwise, if the delta has only REMOVED requirements and the change's `.openspec.yaml` declares `retire_capabilities: true`, the capability is already retired: count it as already synced, warn that there is nothing left to remove, and do not recreate the main spec. Apply this rule both now and when verifying a completed sync.
|
|
123
|
+
- Otherwise, if the delta has no ADDED requirements, report that no sync is possible and mark that capability as sync-blocked. For a REMOVED-only delta, warn that there is no main spec to remove from and leave the main-spec tree unchanged. `openspec archive` refuses the unmarked REMOVED-only case with `Spec must have at least one requirement`.
|
|
124
|
+
- Otherwise, count the capability as needing sync and name it in the summary (`<capability-path>: new main spec will be created`). If the delta also has REMOVED requirements, warn that they will be ignored because there is no main spec to remove from. The sync creates the main spec from only the delta's ADDED requirements, exactly as `openspec archive` does.
|
|
125
|
+
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
126
|
+
- Continue assessing the remaining capabilities even when one is sync-blocked. Show a combined summary before prompting.
|
|
127
|
+
|
|
128
|
+
**Prompt options:**
|
|
129
|
+
- If any capability is sync-blocked: explain why and offer only "Archive without syncing", "Cancel"
|
|
130
|
+
- Otherwise, if changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
131
|
+
- Otherwise, if already synced: "Archive now", "Sync anyway", "Cancel"
|
|
132
|
+
|
|
133
|
+
Route on the answer:
|
|
134
|
+
- "Cancel" — stop, do not archive
|
|
135
|
+
- "Archive without syncing" or "Archive now" — proceed to archive
|
|
136
|
+
- "Sync now" or "Sync anyway" — sync, then verify (below). Do not start any sync while a capability is sync-blocked; explain the blocker and repeat the available choices.
|
|
137
|
+
- Anything else — ask again rather than archiving
|
|
138
|
+
|
|
139
|
+
Before a selected sync writes any main spec, run
|
|
140
|
+
`python <ZCODE_PLUGIN_ROOT>/skills/zcode-expert-system/scripts/openspec_engine.py instructions`
|
|
141
|
+
selected-root flags. Require a zero exit status and valid artifact-instruction
|
|
142
|
+
JSON. If the lookup fails or returns invalid JSON, report the error and stop
|
|
143
|
+
before writing any main spec or moving the change. A valid response with omitted
|
|
144
|
+
`rules` is the no-rules case. Apply returned `rules` only to the content and
|
|
145
|
+
form of main specs produced by this merge; do not use them as archive guidance,
|
|
146
|
+
change CLI behavior, or copy the rule text into any output file.
|
|
147
|
+
|
|
148
|
+
Then run the `zes-openspec-sync-specs` workflow inline (agent-driven intelligent merge) for change '<name>', passing the delta spec analysis and the fetched specs-rule snapshot from above, and wait for it to finish. The inline sync must reuse that snapshot without fetching `specs` instructions again. Do not delegate it to a background task — step 5 would move `changeRoot` out from under a sync that is still reading it, leaving the change archived and the main specs never updated. If your agent can only run it by delegation, delegate synchronously and wait for the result.
|
|
149
|
+
|
|
150
|
+
If the sync reports any stop or blocking condition, treat the sync as failed.
|
|
151
|
+
Stop the archive immediately. Do not perform the post-sync content comparison and do not move its `changeRoot`.
|
|
152
|
+
Nothing has moved, so the user can fix the blocking condition or re-run the sync.
|
|
153
|
+
|
|
154
|
+
After the sync writes each main spec, verify its structure against the canonical sync contract:
|
|
155
|
+
- A new main spec starts with a `# <capability> Specification` title. An existing main spec keeps its title exactly as it is.
|
|
156
|
+
- Preserve existing `## Purpose` sections completely untouched for established main specs.
|
|
157
|
+
- For a new main spec, copy the delta `## Purpose` verbatim. Warn only if the purpose text is shorter than standard validation expects. Do not regenerate or rewrite existing authored purpose. If no usable `## Purpose` is provided, use the existing TBD Purpose behavior and warning.
|
|
158
|
+
- Verify that no delta-style section headers (`## ADDED Requirements`, `## MODIFIED Requirements`, `## REMOVED Requirements`, `## RENAMED Requirements`) remain in the main spec, adhering strictly to the sync workflow formatting rules.
|
|
159
|
+
- Requirement blocks the sync wrote or changed use `### Requirement:` headings, and their scenarios use `#### Scenario:` headings, under the spec's `## Requirements` section. Leave content the delta does not mention exactly as it is.
|
|
160
|
+
|
|
161
|
+
Then re-run the comparison from the top of this step, including the explicitly retired, missing-spec case, against every capability that has a delta spec in `artifactPaths.specs.existingOutputPaths` — not only the ones the sync reports it touched. A successful sync leaves nothing left to apply, so each capability must now read as already synced:
|
|
162
|
+
- ADDED requirements present
|
|
163
|
+
- MODIFIED requirements carrying the scenario and description changes named in the delta, with their other scenarios intact
|
|
164
|
+
- REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving `## Requirements` empty), its main spec deleted rather than left empty.
|
|
165
|
+
- RENAMED requirements present under the new name and absent under the old one
|
|
166
|
+
|
|
167
|
+
If the sync failed, or any capability does not match, report what differs and stop — do not archive. Nothing has moved and `changeRoot` is intact, so the user can fix the mismatch or re-run the sync and start the archive again.
|
|
168
|
+
|
|
169
|
+
5. **Perform the archive**
|
|
170
|
+
|
|
171
|
+
Create an `archive` directory under `planningHome.changesDir` if it doesn't exist:
|
|
172
|
+
```bash
|
|
173
|
+
mkdir -p "<planningHome.changesDir>/archive"
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Generate the target name: use the change name as-is when it already starts with a `YYYY-MM-DD-` prefix; otherwise prepend the current date as `YYYY-MM-DD-<change-name>`. Never stack a second date (same rule as `openspec archive`).
|
|
177
|
+
|
|
178
|
+
**Check if target already exists:**
|
|
179
|
+
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
180
|
+
- If no: Move `changeRoot` to the archive directory
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
mv "<changeRoot>" "<planningHome.changesDir>/archive/<target-name>"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
6. **Display summary**
|
|
187
|
+
|
|
188
|
+
Show archive completion summary including:
|
|
189
|
+
- Change name
|
|
190
|
+
- Schema that was used
|
|
191
|
+
- Archive location
|
|
192
|
+
- Whether specs were synced (if applicable)
|
|
193
|
+
- Note about any warnings (incomplete artifacts/tasks)
|
|
194
|
+
|
|
195
|
+
**Output On Success**
|
|
196
|
+
|
|
197
|
+
```markdown
|
|
198
|
+
## Archive Complete
|
|
199
|
+
|
|
200
|
+
**Change:** <change-name>
|
|
201
|
+
**Schema:** <schema-name>
|
|
202
|
+
**Archived to:** the archive path derived from `planningHome.changesDir`/<target-name>/
|
|
203
|
+
**Specs:** <"✓ Synced to main specs" only if the step 4 verification passed; otherwise "No delta specs" or "Sync skipped">
|
|
204
|
+
|
|
205
|
+
<"All artifacts complete. All tasks complete." — or, if archived with warnings, list them instead (e.g. "Archived with 2 incomplete tasks")>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Guardrails**
|
|
209
|
+
- Announce the selected change; prompt for selection when it is ambiguous
|
|
210
|
+
- Use artifact graph (openspec status --json) for completion checking
|
|
211
|
+
- Don't block archive on warnings - just inform and confirm
|
|
212
|
+
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
|
|
213
|
+
- Show clear summary of what happened
|
|
214
|
+
- If sync is requested, run the `zes-openspec-sync-specs` workflow inline (agent-driven)
|
|
215
|
+
- Never archive while a spec sync is still in flight — run the sync inline and verify the main specs before moving `changeRoot`
|
|
216
|
+
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|
|
217
|
+
- Apply relevant runtime context and report conflicts; operation guidance remains advisory
|
|
218
|
+
- Consider every guidance entry and explain any inapplicable or conflicting advice
|
|
219
|
+
- Existing CLI checks, resolved paths, prompts, and command contracts are unchanged
|
|
220
|
+
- Artifact rules constrain only the specs being written and are never operation guidance
|
|
221
|
+
- Never copy runtime context, operation guidance, or artifact-rule text verbatim into output files
|