@ngocsangairvds/vsaf 3.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/skills/bmad-advanced-elicitation/SKILL.md +136 -0
- package/.claude/skills/bmad-advanced-elicitation/methods.csv +51 -0
- package/.claude/skills/bmad-agent-analyst/SKILL.md +59 -0
- package/.claude/skills/bmad-agent-analyst/bmad-skill-manifest.yaml +11 -0
- package/.claude/skills/bmad-agent-architect/SKILL.md +54 -0
- package/.claude/skills/bmad-agent-architect/bmad-skill-manifest.yaml +11 -0
- package/.claude/skills/bmad-agent-dev/SKILL.md +69 -0
- package/.claude/skills/bmad-agent-dev/bmad-skill-manifest.yaml +11 -0
- package/.claude/skills/bmad-agent-pm/SKILL.md +59 -0
- package/.claude/skills/bmad-agent-pm/bmad-skill-manifest.yaml +11 -0
- package/.claude/skills/bmad-agent-tech-writer/SKILL.md +57 -0
- package/.claude/skills/bmad-agent-tech-writer/bmad-skill-manifest.yaml +11 -0
- package/.claude/skills/bmad-agent-tech-writer/explain-concept.md +20 -0
- package/.claude/skills/bmad-agent-tech-writer/mermaid-gen.md +20 -0
- package/.claude/skills/bmad-agent-tech-writer/validate-doc.md +19 -0
- package/.claude/skills/bmad-agent-tech-writer/write-document.md +20 -0
- package/.claude/skills/bmad-agent-ux-designer/SKILL.md +55 -0
- package/.claude/skills/bmad-agent-ux-designer/bmad-skill-manifest.yaml +11 -0
- package/.claude/skills/bmad-brainstorming/SKILL.md +6 -0
- package/.claude/skills/bmad-brainstorming/brain-methods.csv +62 -0
- package/.claude/skills/bmad-brainstorming/steps/step-01-session-setup.md +214 -0
- package/.claude/skills/bmad-brainstorming/steps/step-01b-continue.md +124 -0
- package/.claude/skills/bmad-brainstorming/steps/step-02a-user-selected.md +229 -0
- package/.claude/skills/bmad-brainstorming/steps/step-02b-ai-recommended.md +239 -0
- package/.claude/skills/bmad-brainstorming/steps/step-02c-random-selection.md +211 -0
- package/.claude/skills/bmad-brainstorming/steps/step-02d-progressive-flow.md +266 -0
- package/.claude/skills/bmad-brainstorming/steps/step-03-technique-execution.md +401 -0
- package/.claude/skills/bmad-brainstorming/steps/step-04-idea-organization.md +305 -0
- package/.claude/skills/bmad-brainstorming/template.md +15 -0
- package/.claude/skills/bmad-brainstorming/workflow.md +53 -0
- package/.claude/skills/bmad-check-implementation-readiness/SKILL.md +6 -0
- package/.claude/skills/bmad-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
- package/.claude/skills/bmad-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
- package/.claude/skills/bmad-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
- package/.claude/skills/bmad-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
- package/.claude/skills/bmad-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
- package/.claude/skills/bmad-check-implementation-readiness/steps/step-06-final-assessment.md +126 -0
- package/.claude/skills/bmad-check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/.claude/skills/bmad-check-implementation-readiness/workflow.md +47 -0
- package/.claude/skills/bmad-checkpoint-preview/SKILL.md +29 -0
- package/.claude/skills/bmad-checkpoint-preview/generate-trail.md +38 -0
- package/.claude/skills/bmad-checkpoint-preview/step-01-orientation.md +105 -0
- package/.claude/skills/bmad-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/.claude/skills/bmad-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/.claude/skills/bmad-checkpoint-preview/step-04-testing.md +74 -0
- package/.claude/skills/bmad-checkpoint-preview/step-05-wrapup.md +24 -0
- package/.claude/skills/bmad-code-review/SKILL.md +6 -0
- package/.claude/skills/bmad-code-review/steps/step-01-gather-context.md +85 -0
- package/.claude/skills/bmad-code-review/steps/step-02-review.md +34 -0
- package/.claude/skills/bmad-code-review/steps/step-03-triage.md +49 -0
- package/.claude/skills/bmad-code-review/steps/step-04-present.md +129 -0
- package/.claude/skills/bmad-code-review/workflow.md +55 -0
- package/.claude/skills/bmad-correct-course/SKILL.md +6 -0
- package/.claude/skills/bmad-correct-course/checklist.md +288 -0
- package/.claude/skills/bmad-correct-course/workflow.md +267 -0
- package/.claude/skills/bmad-create-architecture/SKILL.md +6 -0
- package/.claude/skills/bmad-create-architecture/architecture-decision-template.md +12 -0
- package/.claude/skills/bmad-create-architecture/data/domain-complexity.csv +13 -0
- package/.claude/skills/bmad-create-architecture/data/project-types.csv +7 -0
- package/.claude/skills/bmad-create-architecture/steps/step-01-init.md +153 -0
- package/.claude/skills/bmad-create-architecture/steps/step-01b-continue.md +173 -0
- package/.claude/skills/bmad-create-architecture/steps/step-02-context.md +224 -0
- package/.claude/skills/bmad-create-architecture/steps/step-03-starter.md +329 -0
- package/.claude/skills/bmad-create-architecture/steps/step-04-decisions.md +318 -0
- package/.claude/skills/bmad-create-architecture/steps/step-05-patterns.md +359 -0
- package/.claude/skills/bmad-create-architecture/steps/step-06-structure.md +379 -0
- package/.claude/skills/bmad-create-architecture/steps/step-07-validation.md +359 -0
- package/.claude/skills/bmad-create-architecture/steps/step-08-complete.md +76 -0
- package/.claude/skills/bmad-create-architecture/workflow.md +32 -0
- package/.claude/skills/bmad-create-epics-and-stories/SKILL.md +6 -0
- package/.claude/skills/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +255 -0
- package/.claude/skills/bmad-create-epics-and-stories/steps/step-02-design-epics.md +212 -0
- package/.claude/skills/bmad-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
- package/.claude/skills/bmad-create-epics-and-stories/steps/step-04-final-validation.md +131 -0
- package/.claude/skills/bmad-create-epics-and-stories/templates/epics-template.md +61 -0
- package/.claude/skills/bmad-create-epics-and-stories/workflow.md +51 -0
- package/.claude/skills/bmad-create-prd/SKILL.md +6 -0
- package/.claude/skills/bmad-create-prd/data/domain-complexity.csv +15 -0
- package/.claude/skills/bmad-create-prd/data/prd-purpose.md +197 -0
- package/.claude/skills/bmad-create-prd/data/project-types.csv +11 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-01-init.md +178 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-01b-continue.md +161 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-02-discovery.md +208 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-02b-vision.md +142 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-02c-executive-summary.md +158 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-03-success.md +214 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-04-journeys.md +201 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-05-domain.md +194 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-06-innovation.md +211 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-07-project-type.md +222 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-08-scoping.md +216 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-09-functional.md +219 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-10-nonfunctional.md +230 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-11-polish.md +221 -0
- package/.claude/skills/bmad-create-prd/steps-c/step-12-complete.md +115 -0
- package/.claude/skills/bmad-create-prd/templates/prd-template.md +10 -0
- package/.claude/skills/bmad-create-prd/workflow.md +61 -0
- package/.claude/skills/bmad-create-story/SKILL.md +6 -0
- package/.claude/skills/bmad-create-story/checklist.md +357 -0
- package/.claude/skills/bmad-create-story/discover-inputs.md +88 -0
- package/.claude/skills/bmad-create-story/template.md +49 -0
- package/.claude/skills/bmad-create-story/workflow.md +380 -0
- package/.claude/skills/bmad-create-ux-design/SKILL.md +6 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-01-init.md +135 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-01b-continue.md +127 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-02-discovery.md +190 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-03-core-experience.md +217 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-04-emotional-response.md +220 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-05-inspiration.md +235 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-06-design-system.md +253 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-07-defining-experience.md +255 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-08-visual-foundation.md +225 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-09-design-directions.md +225 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-10-user-journeys.md +242 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-11-component-strategy.md +249 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-12-ux-patterns.md +238 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +265 -0
- package/.claude/skills/bmad-create-ux-design/steps/step-14-complete.md +171 -0
- package/.claude/skills/bmad-create-ux-design/ux-design-template.md +13 -0
- package/.claude/skills/bmad-create-ux-design/workflow.md +35 -0
- package/.claude/skills/bmad-dev-story/SKILL.md +6 -0
- package/.claude/skills/bmad-dev-story/checklist.md +80 -0
- package/.claude/skills/bmad-dev-story/workflow.md +450 -0
- package/.claude/skills/bmad-distillator/SKILL.md +177 -0
- package/.claude/skills/bmad-distillator/agents/distillate-compressor.md +116 -0
- package/.claude/skills/bmad-distillator/agents/round-trip-reconstructor.md +68 -0
- package/.claude/skills/bmad-distillator/resources/compression-rules.md +51 -0
- package/.claude/skills/bmad-distillator/resources/distillate-format-reference.md +227 -0
- package/.claude/skills/bmad-distillator/resources/splitting-strategy.md +78 -0
- package/.claude/skills/bmad-distillator/scripts/analyze_sources.py +300 -0
- package/.claude/skills/bmad-distillator/scripts/tests/test_analyze_sources.py +204 -0
- package/.claude/skills/bmad-document-project/SKILL.md +6 -0
- package/.claude/skills/bmad-document-project/checklist.md +245 -0
- package/.claude/skills/bmad-document-project/documentation-requirements.csv +12 -0
- package/.claude/skills/bmad-document-project/instructions.md +128 -0
- package/.claude/skills/bmad-document-project/templates/deep-dive-template.md +345 -0
- package/.claude/skills/bmad-document-project/templates/index-template.md +169 -0
- package/.claude/skills/bmad-document-project/templates/project-overview-template.md +103 -0
- package/.claude/skills/bmad-document-project/templates/project-scan-report-schema.json +160 -0
- package/.claude/skills/bmad-document-project/templates/source-tree-template.md +135 -0
- package/.claude/skills/bmad-document-project/workflow.md +25 -0
- package/.claude/skills/bmad-document-project/workflows/deep-dive-instructions.md +299 -0
- package/.claude/skills/bmad-document-project/workflows/deep-dive-workflow.md +34 -0
- package/.claude/skills/bmad-document-project/workflows/full-scan-instructions.md +1107 -0
- package/.claude/skills/bmad-document-project/workflows/full-scan-workflow.md +34 -0
- package/.claude/skills/bmad-domain-research/SKILL.md +6 -0
- package/.claude/skills/bmad-domain-research/domain-steps/step-01-init.md +137 -0
- package/.claude/skills/bmad-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
- package/.claude/skills/bmad-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/.claude/skills/bmad-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/.claude/skills/bmad-domain-research/domain-steps/step-05-technical-trends.md +234 -0
- package/.claude/skills/bmad-domain-research/domain-steps/step-06-research-synthesis.md +444 -0
- package/.claude/skills/bmad-domain-research/research.template.md +29 -0
- package/.claude/skills/bmad-domain-research/workflow.md +51 -0
- package/.claude/skills/bmad-edit-prd/SKILL.md +6 -0
- package/.claude/skills/bmad-edit-prd/data/prd-purpose.md +197 -0
- package/.claude/skills/bmad-edit-prd/steps-e/step-e-01-discovery.md +242 -0
- package/.claude/skills/bmad-edit-prd/steps-e/step-e-01b-legacy-conversion.md +204 -0
- package/.claude/skills/bmad-edit-prd/steps-e/step-e-02-review.md +245 -0
- package/.claude/skills/bmad-edit-prd/steps-e/step-e-03-edit.md +250 -0
- package/.claude/skills/bmad-edit-prd/steps-e/step-e-04-complete.md +163 -0
- package/.claude/skills/bmad-edit-prd/workflow.md +62 -0
- package/.claude/skills/bmad-editorial-review-prose/SKILL.md +86 -0
- package/.claude/skills/bmad-editorial-review-structure/SKILL.md +179 -0
- package/.claude/skills/bmad-generate-project-context/SKILL.md +6 -0
- package/.claude/skills/bmad-generate-project-context/project-context-template.md +21 -0
- package/.claude/skills/bmad-generate-project-context/steps/step-01-discover.md +186 -0
- package/.claude/skills/bmad-generate-project-context/steps/step-02-generate.md +321 -0
- package/.claude/skills/bmad-generate-project-context/steps/step-03-complete.md +278 -0
- package/.claude/skills/bmad-generate-project-context/workflow.md +39 -0
- package/.claude/skills/bmad-help/SKILL.md +75 -0
- package/.claude/skills/bmad-index-docs/SKILL.md +66 -0
- package/.claude/skills/bmad-market-research/SKILL.md +6 -0
- package/.claude/skills/bmad-market-research/research.template.md +29 -0
- package/.claude/skills/bmad-market-research/steps/step-01-init.md +184 -0
- package/.claude/skills/bmad-market-research/steps/step-02-customer-behavior.md +239 -0
- package/.claude/skills/bmad-market-research/steps/step-03-customer-pain-points.md +251 -0
- package/.claude/skills/bmad-market-research/steps/step-04-customer-decisions.md +261 -0
- package/.claude/skills/bmad-market-research/steps/step-05-competitive-analysis.md +173 -0
- package/.claude/skills/bmad-market-research/steps/step-06-research-completion.md +478 -0
- package/.claude/skills/bmad-market-research/workflow.md +51 -0
- package/.claude/skills/bmad-party-mode/SKILL.md +125 -0
- package/.claude/skills/bmad-prfaq/SKILL.md +96 -0
- package/.claude/skills/bmad-prfaq/agents/artifact-analyzer.md +60 -0
- package/.claude/skills/bmad-prfaq/agents/web-researcher.md +49 -0
- package/.claude/skills/bmad-prfaq/assets/prfaq-template.md +62 -0
- package/.claude/skills/bmad-prfaq/bmad-manifest.json +16 -0
- package/.claude/skills/bmad-prfaq/references/customer-faq.md +55 -0
- package/.claude/skills/bmad-prfaq/references/internal-faq.md +51 -0
- package/.claude/skills/bmad-prfaq/references/press-release.md +60 -0
- package/.claude/skills/bmad-prfaq/references/verdict.md +79 -0
- package/.claude/skills/bmad-product-brief/SKILL.md +82 -0
- package/.claude/skills/bmad-product-brief/agents/artifact-analyzer.md +60 -0
- package/.claude/skills/bmad-product-brief/agents/opportunity-reviewer.md +44 -0
- package/.claude/skills/bmad-product-brief/agents/skeptic-reviewer.md +44 -0
- package/.claude/skills/bmad-product-brief/agents/web-researcher.md +49 -0
- package/.claude/skills/bmad-product-brief/bmad-manifest.json +17 -0
- package/.claude/skills/bmad-product-brief/prompts/contextual-discovery.md +57 -0
- package/.claude/skills/bmad-product-brief/prompts/draft-and-review.md +86 -0
- package/.claude/skills/bmad-product-brief/prompts/finalize.md +75 -0
- package/.claude/skills/bmad-product-brief/prompts/guided-elicitation.md +70 -0
- package/.claude/skills/bmad-product-brief/resources/brief-template.md +60 -0
- package/.claude/skills/bmad-qa-generate-e2e-tests/SKILL.md +6 -0
- package/.claude/skills/bmad-qa-generate-e2e-tests/checklist.md +33 -0
- package/.claude/skills/bmad-qa-generate-e2e-tests/workflow.md +136 -0
- package/.claude/skills/bmad-quick-dev/SKILL.md +6 -0
- package/.claude/skills/bmad-quick-dev/compile-epic-context.md +62 -0
- package/.claude/skills/bmad-quick-dev/spec-template.md +88 -0
- package/.claude/skills/bmad-quick-dev/step-01-clarify-and-route.md +91 -0
- package/.claude/skills/bmad-quick-dev/step-02-plan.md +47 -0
- package/.claude/skills/bmad-quick-dev/step-03-implement.md +39 -0
- package/.claude/skills/bmad-quick-dev/step-04-review.md +49 -0
- package/.claude/skills/bmad-quick-dev/step-05-present.md +63 -0
- package/.claude/skills/bmad-quick-dev/step-oneshot.md +61 -0
- package/.claude/skills/bmad-quick-dev/workflow.md +75 -0
- package/.claude/skills/bmad-retrospective/SKILL.md +6 -0
- package/.claude/skills/bmad-retrospective/workflow.md +1479 -0
- package/.claude/skills/bmad-review-adversarial-general/SKILL.md +37 -0
- package/.claude/skills/bmad-review-edge-case-hunter/SKILL.md +67 -0
- package/.claude/skills/bmad-shard-doc/SKILL.md +105 -0
- package/.claude/skills/bmad-sprint-planning/SKILL.md +6 -0
- package/.claude/skills/bmad-sprint-planning/checklist.md +33 -0
- package/.claude/skills/bmad-sprint-planning/sprint-status-template.yaml +56 -0
- package/.claude/skills/bmad-sprint-planning/workflow.md +263 -0
- package/.claude/skills/bmad-sprint-status/SKILL.md +6 -0
- package/.claude/skills/bmad-sprint-status/workflow.md +261 -0
- package/.claude/skills/bmad-technical-research/SKILL.md +6 -0
- package/.claude/skills/bmad-technical-research/research.template.md +29 -0
- package/.claude/skills/bmad-technical-research/technical-steps/step-01-init.md +137 -0
- package/.claude/skills/bmad-technical-research/technical-steps/step-02-technical-overview.md +239 -0
- package/.claude/skills/bmad-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
- package/.claude/skills/bmad-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/.claude/skills/bmad-technical-research/technical-steps/step-05-implementation-research.md +233 -0
- package/.claude/skills/bmad-technical-research/technical-steps/step-06-research-synthesis.md +487 -0
- package/.claude/skills/bmad-technical-research/workflow.md +52 -0
- package/.claude/skills/bmad-validate-prd/SKILL.md +6 -0
- package/.claude/skills/bmad-validate-prd/data/domain-complexity.csv +15 -0
- package/.claude/skills/bmad-validate-prd/data/prd-purpose.md +197 -0
- package/.claude/skills/bmad-validate-prd/data/project-types.csv +11 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-01-discovery.md +221 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-02-format-detection.md +188 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-02b-parity-check.md +206 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-03-density-validation.md +171 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +211 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md +225 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md +214 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +202 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +240 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md +260 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-10-smart-validation.md +206 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +261 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md +239 -0
- package/.claude/skills/bmad-validate-prd/steps-v/step-v-13-report-complete.md +229 -0
- package/.claude/skills/bmad-validate-prd/workflow.md +61 -0
- package/.claude/skills/gitnexus/gitnexus-cli/SKILL.md +82 -0
- package/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md +89 -0
- package/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md +78 -0
- package/.claude/skills/gitnexus/gitnexus-guide/SKILL.md +64 -0
- package/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +97 -0
- package/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md +121 -0
- package/.claude/skills/openspec-apply-change/SKILL.md +156 -0
- package/.claude/skills/openspec-archive-change/SKILL.md +114 -0
- package/.claude/skills/openspec-explore/SKILL.md +288 -0
- package/.claude/skills/openspec-propose/SKILL.md +110 -0
- package/.claude/skills/vsaf-build/SKILL.md +52 -0
- package/.claude/skills/vsaf-doc/SKILL.md +66 -0
- package/.claude/skills/vsaf-memory-protocol.md +51 -0
- package/.claude/skills/vsaf-onboard/SKILL.md +55 -0
- package/.claude/skills/vsaf-plan/SKILL.md +68 -0
- package/.claude/skills/vsaf-ship/SKILL.md +76 -0
- package/.claude/skills/vsaf-test/SKILL.md +70 -0
- package/README.md +124 -0
- package/assets/templates/.claude/settings.json +82 -0
- package/assets/templates/CLAUDE.md +248 -0
- package/assets/templates/Makefile +77 -0
- package/assets/templates/scripts/session-end-check.sh +28 -0
- package/bin/vsaf.js +68 -0
- package/package.json +22 -0
- package/src/global.js +98 -0
- package/src/project.js +94 -0
- package/src/status.js +51 -0
- package/src/utils.js +42 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitnexus-impact-analysis
|
|
3
|
+
description: "Use when the user wants to know what will break if they change something, or needs safety analysis before editing code. Examples: \"Is it safe to change X?\", \"What depends on this?\", \"What will break?\""
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Impact Analysis with GitNexus
|
|
7
|
+
|
|
8
|
+
## When to Use
|
|
9
|
+
|
|
10
|
+
- "Is it safe to change this function?"
|
|
11
|
+
- "What will break if I modify X?"
|
|
12
|
+
- "Show me the blast radius"
|
|
13
|
+
- "Who uses this code?"
|
|
14
|
+
- Before making non-trivial code changes
|
|
15
|
+
- Before committing — to understand what your changes affect
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
1. gitnexus_impact({target: "X", direction: "upstream"}) → What depends on this
|
|
21
|
+
2. READ gitnexus://repo/{name}/processes → Check affected execution flows
|
|
22
|
+
3. gitnexus_detect_changes() → Map current git changes to affected flows
|
|
23
|
+
4. Assess risk and report to user
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> If "Index is stale" → run `npx gitnexus analyze` in terminal.
|
|
27
|
+
|
|
28
|
+
## Checklist
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
- [ ] gitnexus_impact({target, direction: "upstream"}) to find dependents
|
|
32
|
+
- [ ] Review d=1 items first (these WILL BREAK)
|
|
33
|
+
- [ ] Check high-confidence (>0.8) dependencies
|
|
34
|
+
- [ ] READ processes to check affected execution flows
|
|
35
|
+
- [ ] gitnexus_detect_changes() for pre-commit check
|
|
36
|
+
- [ ] Assess risk level and report to user
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Understanding Output
|
|
40
|
+
|
|
41
|
+
| Depth | Risk Level | Meaning |
|
|
42
|
+
| ----- | ---------------- | ------------------------ |
|
|
43
|
+
| d=1 | **WILL BREAK** | Direct callers/importers |
|
|
44
|
+
| d=2 | LIKELY AFFECTED | Indirect dependencies |
|
|
45
|
+
| d=3 | MAY NEED TESTING | Transitive effects |
|
|
46
|
+
|
|
47
|
+
## Risk Assessment
|
|
48
|
+
|
|
49
|
+
| Affected | Risk |
|
|
50
|
+
| ------------------------------ | -------- |
|
|
51
|
+
| <5 symbols, few processes | LOW |
|
|
52
|
+
| 5-15 symbols, 2-5 processes | MEDIUM |
|
|
53
|
+
| >15 symbols or many processes | HIGH |
|
|
54
|
+
| Critical path (auth, payments) | CRITICAL |
|
|
55
|
+
|
|
56
|
+
## Tools
|
|
57
|
+
|
|
58
|
+
**gitnexus_impact** — the primary tool for symbol blast radius:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
gitnexus_impact({
|
|
62
|
+
target: "validateUser",
|
|
63
|
+
direction: "upstream",
|
|
64
|
+
minConfidence: 0.8,
|
|
65
|
+
maxDepth: 3
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
→ d=1 (WILL BREAK):
|
|
69
|
+
- loginHandler (src/auth/login.ts:42) [CALLS, 100%]
|
|
70
|
+
- apiMiddleware (src/api/middleware.ts:15) [CALLS, 100%]
|
|
71
|
+
|
|
72
|
+
→ d=2 (LIKELY AFFECTED):
|
|
73
|
+
- authRouter (src/routes/auth.ts:22) [CALLS, 95%]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**gitnexus_detect_changes** — git-diff based impact analysis:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
gitnexus_detect_changes({scope: "staged"})
|
|
80
|
+
|
|
81
|
+
→ Changed: 5 symbols in 3 files
|
|
82
|
+
→ Affected: LoginFlow, TokenRefresh, APIMiddlewarePipeline
|
|
83
|
+
→ Risk: MEDIUM
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Example: "What breaks if I change validateUser?"
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
1. gitnexus_impact({target: "validateUser", direction: "upstream"})
|
|
90
|
+
→ d=1: loginHandler, apiMiddleware (WILL BREAK)
|
|
91
|
+
→ d=2: authRouter, sessionManager (LIKELY AFFECTED)
|
|
92
|
+
|
|
93
|
+
2. READ gitnexus://repo/my-app/processes
|
|
94
|
+
→ LoginFlow and TokenRefresh touch validateUser
|
|
95
|
+
|
|
96
|
+
3. Risk: 2 direct callers, 2 processes = MEDIUM
|
|
97
|
+
```
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gitnexus-refactoring
|
|
3
|
+
description: "Use when the user wants to rename, extract, split, move, or restructure code safely. Examples: \"Rename this function\", \"Extract this into a module\", \"Refactor this class\", \"Move this to a separate file\""
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Refactoring with GitNexus
|
|
7
|
+
|
|
8
|
+
## When to Use
|
|
9
|
+
|
|
10
|
+
- "Rename this function safely"
|
|
11
|
+
- "Extract this into a module"
|
|
12
|
+
- "Split this service"
|
|
13
|
+
- "Move this to a new file"
|
|
14
|
+
- Any task involving renaming, extracting, splitting, or restructuring code
|
|
15
|
+
|
|
16
|
+
## Workflow
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
1. gitnexus_impact({target: "X", direction: "upstream"}) → Map all dependents
|
|
20
|
+
2. gitnexus_query({query: "X"}) → Find execution flows involving X
|
|
21
|
+
3. gitnexus_context({name: "X"}) → See all incoming/outgoing refs
|
|
22
|
+
4. Plan update order: interfaces → implementations → callers → tests
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
> If "Index is stale" → run `npx gitnexus analyze` in terminal.
|
|
26
|
+
|
|
27
|
+
## Checklists
|
|
28
|
+
|
|
29
|
+
### Rename Symbol
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
- [ ] gitnexus_rename({symbol_name: "oldName", new_name: "newName", dry_run: true}) — preview all edits
|
|
33
|
+
- [ ] Review graph edits (high confidence) and ast_search edits (review carefully)
|
|
34
|
+
- [ ] If satisfied: gitnexus_rename({..., dry_run: false}) — apply edits
|
|
35
|
+
- [ ] gitnexus_detect_changes() — verify only expected files changed
|
|
36
|
+
- [ ] Run tests for affected processes
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Extract Module
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
- [ ] gitnexus_context({name: target}) — see all incoming/outgoing refs
|
|
43
|
+
- [ ] gitnexus_impact({target, direction: "upstream"}) — find all external callers
|
|
44
|
+
- [ ] Define new module interface
|
|
45
|
+
- [ ] Extract code, update imports
|
|
46
|
+
- [ ] gitnexus_detect_changes() — verify affected scope
|
|
47
|
+
- [ ] Run tests for affected processes
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Split Function/Service
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
- [ ] gitnexus_context({name: target}) — understand all callees
|
|
54
|
+
- [ ] Group callees by responsibility
|
|
55
|
+
- [ ] gitnexus_impact({target, direction: "upstream"}) — map callers to update
|
|
56
|
+
- [ ] Create new functions/services
|
|
57
|
+
- [ ] Update callers
|
|
58
|
+
- [ ] gitnexus_detect_changes() — verify affected scope
|
|
59
|
+
- [ ] Run tests for affected processes
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Tools
|
|
63
|
+
|
|
64
|
+
**gitnexus_rename** — automated multi-file rename:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true})
|
|
68
|
+
→ 12 edits across 8 files
|
|
69
|
+
→ 10 graph edits (high confidence), 2 ast_search edits (review)
|
|
70
|
+
→ Changes: [{file_path, edits: [{line, old_text, new_text, confidence}]}]
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**gitnexus_impact** — map all dependents first:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
gitnexus_impact({target: "validateUser", direction: "upstream"})
|
|
77
|
+
→ d=1: loginHandler, apiMiddleware, testUtils
|
|
78
|
+
→ Affected Processes: LoginFlow, TokenRefresh
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**gitnexus_detect_changes** — verify your changes after refactoring:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
gitnexus_detect_changes({scope: "all"})
|
|
85
|
+
→ Changed: 8 files, 12 symbols
|
|
86
|
+
→ Affected processes: LoginFlow, TokenRefresh
|
|
87
|
+
→ Risk: MEDIUM
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**gitnexus_cypher** — custom reference queries:
|
|
91
|
+
|
|
92
|
+
```cypher
|
|
93
|
+
MATCH (caller)-[:CodeRelation {type: 'CALLS'}]->(f:Function {name: "validateUser"})
|
|
94
|
+
RETURN caller.name, caller.filePath ORDER BY caller.filePath
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Risk Rules
|
|
98
|
+
|
|
99
|
+
| Risk Factor | Mitigation |
|
|
100
|
+
| ------------------- | ----------------------------------------- |
|
|
101
|
+
| Many callers (>5) | Use gitnexus_rename for automated updates |
|
|
102
|
+
| Cross-area refs | Use detect_changes after to verify scope |
|
|
103
|
+
| String/dynamic refs | gitnexus_query to find them |
|
|
104
|
+
| External/public API | Version and deprecate properly |
|
|
105
|
+
|
|
106
|
+
## Example: Rename `validateUser` to `authenticateUser`
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
1. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: true})
|
|
110
|
+
→ 12 edits: 10 graph (safe), 2 ast_search (review)
|
|
111
|
+
→ Files: validator.ts, login.ts, middleware.ts, config.json...
|
|
112
|
+
|
|
113
|
+
2. Review ast_search edits (config.json: dynamic reference!)
|
|
114
|
+
|
|
115
|
+
3. gitnexus_rename({symbol_name: "validateUser", new_name: "authenticateUser", dry_run: false})
|
|
116
|
+
→ Applied 12 edits across 8 files
|
|
117
|
+
|
|
118
|
+
4. gitnexus_detect_changes({scope: "all"})
|
|
119
|
+
→ Affected: LoginFlow, TokenRefresh
|
|
120
|
+
→ Risk: MEDIUM — run tests for these flows
|
|
121
|
+
```
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 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.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires openspec CLI.
|
|
6
|
+
metadata:
|
|
7
|
+
author: openspec
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.3.0"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Implement tasks from an OpenSpec change.
|
|
13
|
+
|
|
14
|
+
**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.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **Select the change**
|
|
19
|
+
|
|
20
|
+
If a name is provided, use it. Otherwise:
|
|
21
|
+
- Infer from conversation context if the user mentioned a change
|
|
22
|
+
- Auto-select if only one active change exists
|
|
23
|
+
- If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select
|
|
24
|
+
|
|
25
|
+
Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
|
|
26
|
+
|
|
27
|
+
2. **Check status to understand the schema**
|
|
28
|
+
```bash
|
|
29
|
+
openspec status --change "<name>" --json
|
|
30
|
+
```
|
|
31
|
+
Parse the JSON to understand:
|
|
32
|
+
- `schemaName`: The workflow being used (e.g., "spec-driven")
|
|
33
|
+
- Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others)
|
|
34
|
+
|
|
35
|
+
3. **Get apply instructions**
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
openspec instructions apply --change "<name>" --json
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This returns:
|
|
42
|
+
- Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
|
|
43
|
+
- Progress (total, complete, remaining)
|
|
44
|
+
- Task list with status
|
|
45
|
+
- Dynamic instruction based on current state
|
|
46
|
+
|
|
47
|
+
**Handle states:**
|
|
48
|
+
- If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change
|
|
49
|
+
- If `state: "all_done"`: congratulate, suggest archive
|
|
50
|
+
- Otherwise: proceed to implementation
|
|
51
|
+
|
|
52
|
+
4. **Read context files**
|
|
53
|
+
|
|
54
|
+
Read the files listed in `contextFiles` from the apply instructions output.
|
|
55
|
+
The files depend on the schema being used:
|
|
56
|
+
- **spec-driven**: proposal, specs, design, tasks
|
|
57
|
+
- Other schemas: follow the contextFiles from CLI output
|
|
58
|
+
|
|
59
|
+
5. **Show current progress**
|
|
60
|
+
|
|
61
|
+
Display:
|
|
62
|
+
- Schema being used
|
|
63
|
+
- Progress: "N/M tasks complete"
|
|
64
|
+
- Remaining tasks overview
|
|
65
|
+
- Dynamic instruction from CLI
|
|
66
|
+
|
|
67
|
+
6. **Implement tasks (loop until done or blocked)**
|
|
68
|
+
|
|
69
|
+
For each pending task:
|
|
70
|
+
- Show which task is being worked on
|
|
71
|
+
- Make the code changes required
|
|
72
|
+
- Keep changes minimal and focused
|
|
73
|
+
- Mark task complete in the tasks file: `- [ ]` → `- [x]`
|
|
74
|
+
- Continue to next task
|
|
75
|
+
|
|
76
|
+
**Pause if:**
|
|
77
|
+
- Task is unclear → ask for clarification
|
|
78
|
+
- Implementation reveals a design issue → suggest updating artifacts
|
|
79
|
+
- Error or blocker encountered → report and wait for guidance
|
|
80
|
+
- User interrupts
|
|
81
|
+
|
|
82
|
+
7. **On completion or pause, show status**
|
|
83
|
+
|
|
84
|
+
Display:
|
|
85
|
+
- Tasks completed this session
|
|
86
|
+
- Overall progress: "N/M tasks complete"
|
|
87
|
+
- If all done: suggest archive
|
|
88
|
+
- If paused: explain why and wait for guidance
|
|
89
|
+
|
|
90
|
+
**Output During Implementation**
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
## Implementing: <change-name> (schema: <schema-name>)
|
|
94
|
+
|
|
95
|
+
Working on task 3/7: <task description>
|
|
96
|
+
[...implementation happening...]
|
|
97
|
+
✓ Task complete
|
|
98
|
+
|
|
99
|
+
Working on task 4/7: <task description>
|
|
100
|
+
[...implementation happening...]
|
|
101
|
+
✓ Task complete
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Output On Completion**
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
## Implementation Complete
|
|
108
|
+
|
|
109
|
+
**Change:** <change-name>
|
|
110
|
+
**Schema:** <schema-name>
|
|
111
|
+
**Progress:** 7/7 tasks complete ✓
|
|
112
|
+
|
|
113
|
+
### Completed This Session
|
|
114
|
+
- [x] Task 1
|
|
115
|
+
- [x] Task 2
|
|
116
|
+
...
|
|
117
|
+
|
|
118
|
+
All tasks complete! Ready to archive this change.
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Output On Pause (Issue Encountered)**
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
## Implementation Paused
|
|
125
|
+
|
|
126
|
+
**Change:** <change-name>
|
|
127
|
+
**Schema:** <schema-name>
|
|
128
|
+
**Progress:** 4/7 tasks complete
|
|
129
|
+
|
|
130
|
+
### Issue Encountered
|
|
131
|
+
<description of the issue>
|
|
132
|
+
|
|
133
|
+
**Options:**
|
|
134
|
+
1. <option 1>
|
|
135
|
+
2. <option 2>
|
|
136
|
+
3. Other approach
|
|
137
|
+
|
|
138
|
+
What would you like to do?
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Guardrails**
|
|
142
|
+
- Keep going through tasks until done or blocked
|
|
143
|
+
- Always read context files before starting (from the apply instructions output)
|
|
144
|
+
- If task is ambiguous, pause and ask before implementing
|
|
145
|
+
- If implementation reveals issues, pause and suggest artifact updates
|
|
146
|
+
- Keep code changes minimal and scoped to each task
|
|
147
|
+
- Update task checkbox immediately after completing each task
|
|
148
|
+
- Pause on errors, blockers, or unclear requirements - don't guess
|
|
149
|
+
- Use contextFiles from CLI output, don't assume specific file names
|
|
150
|
+
|
|
151
|
+
**Fluid Workflow Integration**
|
|
152
|
+
|
|
153
|
+
This skill supports the "actions on a change" model:
|
|
154
|
+
|
|
155
|
+
- **Can be invoked anytime**: Before all artifacts are done (if tasks exist), after partial implementation, interleaved with other actions
|
|
156
|
+
- **Allows artifact updates**: If implementation reveals design issues, suggest updating artifacts - not phase-locked, work fluidly
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openspec-archive-change
|
|
3
|
+
description: Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: Requires openspec CLI.
|
|
6
|
+
metadata:
|
|
7
|
+
author: openspec
|
|
8
|
+
version: "1.0"
|
|
9
|
+
generatedBy: "1.3.0"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
Archive a completed change in the experimental workflow.
|
|
13
|
+
|
|
14
|
+
**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.
|
|
15
|
+
|
|
16
|
+
**Steps**
|
|
17
|
+
|
|
18
|
+
1. **If no change name provided, prompt for selection**
|
|
19
|
+
|
|
20
|
+
Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
|
|
21
|
+
|
|
22
|
+
Show only active changes (not already archived).
|
|
23
|
+
Include the schema used for each change if available.
|
|
24
|
+
|
|
25
|
+
**IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
|
|
26
|
+
|
|
27
|
+
2. **Check artifact completion status**
|
|
28
|
+
|
|
29
|
+
Run `openspec status --change "<name>" --json` to check artifact completion.
|
|
30
|
+
|
|
31
|
+
Parse the JSON to understand:
|
|
32
|
+
- `schemaName`: The workflow being used
|
|
33
|
+
- `artifacts`: List of artifacts with their status (`done` or other)
|
|
34
|
+
|
|
35
|
+
**If any artifacts are not `done`:**
|
|
36
|
+
- Display warning listing incomplete artifacts
|
|
37
|
+
- Use **AskUserQuestion tool** to confirm user wants to proceed
|
|
38
|
+
- Proceed if user confirms
|
|
39
|
+
|
|
40
|
+
3. **Check task completion status**
|
|
41
|
+
|
|
42
|
+
Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
|
|
43
|
+
|
|
44
|
+
Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
|
|
45
|
+
|
|
46
|
+
**If incomplete tasks found:**
|
|
47
|
+
- Display warning showing count of incomplete tasks
|
|
48
|
+
- Use **AskUserQuestion tool** to confirm user wants to proceed
|
|
49
|
+
- Proceed if user confirms
|
|
50
|
+
|
|
51
|
+
**If no tasks file exists:** Proceed without task-related warning.
|
|
52
|
+
|
|
53
|
+
4. **Assess delta spec sync state**
|
|
54
|
+
|
|
55
|
+
Check for delta specs at `openspec/changes/<name>/specs/`. If none exist, proceed without sync prompt.
|
|
56
|
+
|
|
57
|
+
**If delta specs exist:**
|
|
58
|
+
- Compare each delta spec with its corresponding main spec at `openspec/specs/<capability>/spec.md`
|
|
59
|
+
- Determine what changes would be applied (adds, modifications, removals, renames)
|
|
60
|
+
- Show a combined summary before prompting
|
|
61
|
+
|
|
62
|
+
**Prompt options:**
|
|
63
|
+
- If changes needed: "Sync now (recommended)", "Archive without syncing"
|
|
64
|
+
- If already synced: "Archive now", "Sync anyway", "Cancel"
|
|
65
|
+
|
|
66
|
+
If user chooses sync, use Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke openspec-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). Proceed to archive regardless of choice.
|
|
67
|
+
|
|
68
|
+
5. **Perform the archive**
|
|
69
|
+
|
|
70
|
+
Create the archive directory if it doesn't exist:
|
|
71
|
+
```bash
|
|
72
|
+
mkdir -p openspec/changes/archive
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Generate target name using current date: `YYYY-MM-DD-<change-name>`
|
|
76
|
+
|
|
77
|
+
**Check if target already exists:**
|
|
78
|
+
- If yes: Fail with error, suggest renaming existing archive or using different date
|
|
79
|
+
- If no: Move the change directory to archive
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
6. **Display summary**
|
|
86
|
+
|
|
87
|
+
Show archive completion summary including:
|
|
88
|
+
- Change name
|
|
89
|
+
- Schema that was used
|
|
90
|
+
- Archive location
|
|
91
|
+
- Whether specs were synced (if applicable)
|
|
92
|
+
- Note about any warnings (incomplete artifacts/tasks)
|
|
93
|
+
|
|
94
|
+
**Output On Success**
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
## Archive Complete
|
|
98
|
+
|
|
99
|
+
**Change:** <change-name>
|
|
100
|
+
**Schema:** <schema-name>
|
|
101
|
+
**Archived to:** openspec/changes/archive/YYYY-MM-DD-<name>/
|
|
102
|
+
**Specs:** ✓ Synced to main specs (or "No delta specs" or "Sync skipped")
|
|
103
|
+
|
|
104
|
+
All artifacts complete. All tasks complete.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Guardrails**
|
|
108
|
+
- Always prompt for change selection if not provided
|
|
109
|
+
- Use artifact graph (openspec status --json) for completion checking
|
|
110
|
+
- Don't block archive on warnings - just inform and confirm
|
|
111
|
+
- Preserve .openspec.yaml when moving to archive (it moves with the directory)
|
|
112
|
+
- Show clear summary of what happened
|
|
113
|
+
- If sync is requested, use openspec-sync-specs approach (agent-driven)
|
|
114
|
+
- If delta specs exist, always run the sync assessment and show the combined summary before prompting
|