@ruaruababa/vibe-kit 1.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/CATALOG.md +317 -0
- package/README.md +121 -0
- package/aliases.json +65 -0
- package/bin/vibe.js +2 -0
- package/bundles.json +265 -0
- package/catalog.json +1560 -0
- package/dist/antigravity-skills/bin/cli.js +438 -0
- package/dist/antigravity-skills/lib/skill-utils.js +158 -0
- package/dist/antigravity-skills/scripts/build-catalog.js +305 -0
- package/dist/antigravity-skills/scripts/normalize-frontmatter.js +144 -0
- package/dist/antigravity-skills/scripts/validate-skills.js +230 -0
- package/dist/bin/vibe.js +2 -0
- package/dist/dist/src/cli/index.js +26 -0
- package/dist/lib/skill-utils.js +158 -0
- package/dist/scripts/build-catalog.js +50 -0
- package/dist/scripts/normalize-frontmatter.js +144 -0
- package/dist/scripts/validate-skills.js +56 -0
- package/dist/src/cli/index.js +146 -0
- package/dist/src/types/index.js +13 -0
- package/dist/src/utils/fs.js +1 -0
- package/package.json +43 -0
- package/skills/accessibility-compliance-accessibility-audit/SKILL.md +42 -0
- package/skills/accessibility-compliance-accessibility-audit/resources/implementation-playbook.md +502 -0
- package/skills/agent-orchestration-improve-agent/SKILL.md +349 -0
- package/skills/agent-orchestration-multi-agent-optimize/SKILL.md +239 -0
- package/skills/agent-orchestrator/SKILL.md +24 -0
- package/skills/ai-engineer/SKILL.md +171 -0
- package/skills/airflow-dag-patterns/SKILL.md +41 -0
- package/skills/airflow-dag-patterns/resources/implementation-playbook.md +509 -0
- package/skills/angular-migration/SKILL.md +428 -0
- package/skills/anti-reversing-techniques/SKILL.md +42 -0
- package/skills/anti-reversing-techniques/resources/implementation-playbook.md +539 -0
- package/skills/api-design-principles/SKILL.md +37 -0
- package/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/skills/api-design-principles/resources/implementation-playbook.md +513 -0
- package/skills/api-documenter/SKILL.md +184 -0
- package/skills/api-testing-observability-api-mock/SKILL.md +46 -0
- package/skills/api-testing-observability-api-mock/resources/implementation-playbook.md +1327 -0
- package/skills/application-performance-performance-optimization/SKILL.md +154 -0
- package/skills/architect-review/SKILL.md +174 -0
- package/skills/architecture-decision-records/SKILL.md +441 -0
- package/skills/architecture-patterns/SKILL.md +37 -0
- package/skills/architecture-patterns/resources/implementation-playbook.md +479 -0
- package/skills/arm-cortex-expert/SKILL.md +306 -0
- package/skills/async-python-patterns/SKILL.md +39 -0
- package/skills/async-python-patterns/resources/implementation-playbook.md +678 -0
- package/skills/attack-tree-construction/SKILL.md +38 -0
- package/skills/attack-tree-construction/resources/implementation-playbook.md +671 -0
- package/skills/auth-implementation-patterns/SKILL.md +39 -0
- package/skills/auth-implementation-patterns/resources/implementation-playbook.md +618 -0
- package/skills/backend-architect/SKILL.md +333 -0
- package/skills/backend-development-feature-development/SKILL.md +180 -0
- package/skills/backend-security-coder/SKILL.md +156 -0
- package/skills/backtesting-frameworks/SKILL.md +39 -0
- package/skills/backtesting-frameworks/resources/implementation-playbook.md +647 -0
- package/skills/bash-defensive-patterns/SKILL.md +43 -0
- package/skills/bash-defensive-patterns/resources/implementation-playbook.md +517 -0
- package/skills/bash-pro/SKILL.md +310 -0
- package/skills/bats-testing-patterns/SKILL.md +34 -0
- package/skills/bats-testing-patterns/resources/implementation-playbook.md +614 -0
- package/skills/bazel-build-optimization/SKILL.md +397 -0
- package/skills/billing-automation/SKILL.md +42 -0
- package/skills/billing-automation/resources/implementation-playbook.md +544 -0
- package/skills/binary-analysis-patterns/SKILL.md +450 -0
- package/skills/blockchain-developer/SKILL.md +208 -0
- package/skills/business-analyst/SKILL.md +182 -0
- package/skills/c-pro/SKILL.md +56 -0
- package/skills/c4-architecture-c4-architecture/SKILL.md +389 -0
- package/skills/c4-code/SKILL.md +244 -0
- package/skills/c4-component/SKILL.md +153 -0
- package/skills/c4-container/SKILL.md +171 -0
- package/skills/c4-context/SKILL.md +150 -0
- package/skills/changelog-automation/SKILL.md +38 -0
- package/skills/changelog-automation/resources/implementation-playbook.md +538 -0
- package/skills/cicd-automation-workflow-automate/SKILL.md +51 -0
- package/skills/cicd-automation-workflow-automate/resources/implementation-playbook.md +1333 -0
- package/skills/clean-markdown/SKILL.md +23 -0
- package/skills/cloud-architect/SKILL.md +135 -0
- package/skills/code-documentation-code-explain/SKILL.md +46 -0
- package/skills/code-documentation-code-explain/resources/implementation-playbook.md +802 -0
- package/skills/code-documentation-doc-generate/SKILL.md +48 -0
- package/skills/code-documentation-doc-generate/resources/implementation-playbook.md +640 -0
- package/skills/code-refactoring-context-restore/SKILL.md +179 -0
- package/skills/code-refactoring-refactor-clean/SKILL.md +51 -0
- package/skills/code-refactoring-refactor-clean/resources/implementation-playbook.md +879 -0
- package/skills/code-refactoring-tech-debt/SKILL.md +386 -0
- package/skills/code-review-ai-ai-review/SKILL.md +450 -0
- package/skills/code-review-excellence/SKILL.md +40 -0
- package/skills/code-review-excellence/resources/implementation-playbook.md +515 -0
- package/skills/code-reviewer/SKILL.md +178 -0
- package/skills/codebase-cleanup-deps-audit/SKILL.md +51 -0
- package/skills/codebase-cleanup-deps-audit/resources/implementation-playbook.md +766 -0
- package/skills/codebase-cleanup-refactor-clean/SKILL.md +51 -0
- package/skills/codebase-cleanup-refactor-clean/resources/implementation-playbook.md +879 -0
- package/skills/codebase-cleanup-tech-debt/SKILL.md +386 -0
- package/skills/competitive-landscape/SKILL.md +34 -0
- package/skills/competitive-landscape/resources/implementation-playbook.md +494 -0
- package/skills/comprehensive-review-full-review/SKILL.md +146 -0
- package/skills/comprehensive-review-pr-enhance/SKILL.md +46 -0
- package/skills/comprehensive-review-pr-enhance/resources/implementation-playbook.md +691 -0
- package/skills/conductor-implement/SKILL.md +388 -0
- package/skills/conductor-manage/SKILL.md +39 -0
- package/skills/conductor-manage/resources/implementation-playbook.md +1120 -0
- package/skills/conductor-new-track/SKILL.md +433 -0
- package/skills/conductor-revert/SKILL.md +372 -0
- package/skills/conductor-setup/SKILL.md +426 -0
- package/skills/conductor-status/SKILL.md +338 -0
- package/skills/conductor-validator/SKILL.md +62 -0
- package/skills/content-marketer/SKILL.md +170 -0
- package/skills/context-driven-development/SKILL.md +400 -0
- package/skills/context-management-context-restore/SKILL.md +179 -0
- package/skills/context-management-context-save/SKILL.md +177 -0
- package/skills/context-manager/SKILL.md +185 -0
- package/skills/cost-optimization/SKILL.md +286 -0
- package/skills/cpp-pro/SKILL.md +59 -0
- package/skills/cqrs-implementation/SKILL.md +35 -0
- package/skills/cqrs-implementation/resources/implementation-playbook.md +540 -0
- package/skills/csharp-pro/SKILL.md +59 -0
- package/skills/customer-support/SKILL.md +170 -0
- package/skills/data-engineer/SKILL.md +224 -0
- package/skills/data-engineering-data-driven-feature/SKILL.md +182 -0
- package/skills/data-engineering-data-pipeline/SKILL.md +201 -0
- package/skills/data-quality-frameworks/SKILL.md +40 -0
- package/skills/data-quality-frameworks/resources/implementation-playbook.md +573 -0
- package/skills/data-scientist/SKILL.md +199 -0
- package/skills/data-storytelling/SKILL.md +465 -0
- package/skills/database-admin/SKILL.md +165 -0
- package/skills/database-architect/SKILL.md +268 -0
- package/skills/database-cloud-optimization-cost-optimize/SKILL.md +44 -0
- package/skills/database-cloud-optimization-cost-optimize/resources/implementation-playbook.md +1441 -0
- package/skills/database-migration/SKILL.md +436 -0
- package/skills/database-migrations-migration-observability/SKILL.md +420 -0
- package/skills/database-migrations-sql-migrations/SKILL.md +53 -0
- package/skills/database-migrations-sql-migrations/resources/implementation-playbook.md +499 -0
- package/skills/database-optimizer/SKILL.md +167 -0
- package/skills/dbt-transformation-patterns/SKILL.md +34 -0
- package/skills/dbt-transformation-patterns/resources/implementation-playbook.md +547 -0
- package/skills/debugger/SKILL.md +49 -0
- package/skills/debugging-strategies/SKILL.md +34 -0
- package/skills/debugging-strategies/resources/implementation-playbook.md +511 -0
- package/skills/debugging-toolkit-smart-debug/SKILL.md +197 -0
- package/skills/defi-protocol-templates/SKILL.md +466 -0
- package/skills/dependency-management-deps-audit/SKILL.md +44 -0
- package/skills/dependency-management-deps-audit/resources/implementation-playbook.md +766 -0
- package/skills/dependency-upgrade/SKILL.md +421 -0
- package/skills/deployment-engineer/SKILL.md +170 -0
- package/skills/deployment-pipeline-design/SKILL.md +371 -0
- package/skills/deployment-validation-config-validate/SKILL.md +496 -0
- package/skills/devops-troubleshooter/SKILL.md +161 -0
- package/skills/distributed-debugging-debug-trace/SKILL.md +44 -0
- package/skills/distributed-debugging-debug-trace/resources/implementation-playbook.md +1307 -0
- package/skills/distributed-tracing/SKILL.md +450 -0
- package/skills/django-pro/SKILL.md +180 -0
- package/skills/docs-architect/SKILL.md +98 -0
- package/skills/documentation-generation-doc-generate/SKILL.md +48 -0
- package/skills/documentation-generation-doc-generate/resources/implementation-playbook.md +640 -0
- package/skills/dotnet-architect/SKILL.md +197 -0
- package/skills/dotnet-backend-patterns/SKILL.md +37 -0
- package/skills/dotnet-backend-patterns/assets/repository-template.cs +523 -0
- package/skills/dotnet-backend-patterns/assets/service-template.cs +336 -0
- package/skills/dotnet-backend-patterns/references/dapper-patterns.md +544 -0
- package/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +355 -0
- package/skills/dotnet-backend-patterns/resources/implementation-playbook.md +799 -0
- package/skills/dummy-skill/SKILL.md +5 -0
- package/skills/dx-optimizer/SKILL.md +83 -0
- package/skills/e2e-testing-patterns/SKILL.md +41 -0
- package/skills/e2e-testing-patterns/resources/implementation-playbook.md +531 -0
- package/skills/elixir-pro/SKILL.md +59 -0
- package/skills/embedding-strategies/SKILL.md +491 -0
- package/skills/employment-contract-templates/SKILL.md +39 -0
- package/skills/employment-contract-templates/resources/implementation-playbook.md +493 -0
- package/skills/error-debugging-error-analysis/SKILL.md +47 -0
- package/skills/error-debugging-error-analysis/resources/implementation-playbook.md +1143 -0
- package/skills/error-debugging-error-trace/SKILL.md +43 -0
- package/skills/error-debugging-error-trace/resources/implementation-playbook.md +1361 -0
- package/skills/error-debugging-multi-agent-review/SKILL.md +216 -0
- package/skills/error-detective/SKILL.md +53 -0
- package/skills/error-diagnostics-error-analysis/SKILL.md +47 -0
- package/skills/error-diagnostics-error-analysis/resources/implementation-playbook.md +1143 -0
- package/skills/error-diagnostics-error-trace/SKILL.md +48 -0
- package/skills/error-diagnostics-error-trace/resources/implementation-playbook.md +1371 -0
- package/skills/error-diagnostics-smart-debug/SKILL.md +197 -0
- package/skills/error-handling-patterns/SKILL.md +35 -0
- package/skills/error-handling-patterns/resources/implementation-playbook.md +635 -0
- package/skills/event-sourcing-architect/SKILL.md +58 -0
- package/skills/event-store-design/SKILL.md +449 -0
- package/skills/fastapi-pro/SKILL.md +192 -0
- package/skills/fastapi-templates/SKILL.md +32 -0
- package/skills/fastapi-templates/resources/implementation-playbook.md +566 -0
- package/skills/final-test/SKILL.md +5 -0
- package/skills/firmware-analyst/SKILL.md +320 -0
- package/skills/flutter-expert/SKILL.md +200 -0
- package/skills/framework-migration-code-migrate/SKILL.md +48 -0
- package/skills/framework-migration-code-migrate/resources/implementation-playbook.md +1052 -0
- package/skills/framework-migration-deps-upgrade/SKILL.md +48 -0
- package/skills/framework-migration-deps-upgrade/resources/implementation-playbook.md +755 -0
- package/skills/framework-migration-legacy-modernize/SKILL.md +132 -0
- package/skills/frontend-developer/SKILL.md +171 -0
- package/skills/frontend-mobile-development-component-scaffold/SKILL.md +403 -0
- package/skills/frontend-mobile-security-xss-scan/SKILL.md +322 -0
- package/skills/frontend-security-coder/SKILL.md +170 -0
- package/skills/full-stack-orchestration-full-stack-feature/SKILL.md +135 -0
- package/skills/gdpr-data-handling/SKILL.md +33 -0
- package/skills/gdpr-data-handling/resources/implementation-playbook.md +615 -0
- package/skills/git-advanced-workflows/SKILL.md +412 -0
- package/skills/git-pr-workflows-git-workflow/SKILL.md +140 -0
- package/skills/git-pr-workflows-onboard/SKILL.md +416 -0
- package/skills/git-pr-workflows-pr-enhance/SKILL.md +48 -0
- package/skills/git-pr-workflows-pr-enhance/resources/implementation-playbook.md +701 -0
- package/skills/github-actions-templates/SKILL.md +345 -0
- package/skills/gitlab-ci-patterns/SKILL.md +283 -0
- package/skills/gitops-workflow/SKILL.md +303 -0
- package/skills/gitops-workflow/references/argocd-setup.md +134 -0
- package/skills/gitops-workflow/references/sync-policies.md +131 -0
- package/skills/go-concurrency-patterns/SKILL.md +33 -0
- package/skills/go-concurrency-patterns/resources/implementation-playbook.md +654 -0
- package/skills/godot-gdscript-patterns/SKILL.md +33 -0
- package/skills/godot-gdscript-patterns/resources/implementation-playbook.md +804 -0
- package/skills/golang-pro/SKILL.md +179 -0
- package/skills/grafana-dashboards/SKILL.md +381 -0
- package/skills/graphql-architect/SKILL.md +182 -0
- package/skills/haskell-pro/SKILL.md +56 -0
- package/skills/helm-chart-scaffolding/SKILL.md +34 -0
- package/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/skills/helm-chart-scaffolding/references/chart-structure.md +500 -0
- package/skills/helm-chart-scaffolding/resources/implementation-playbook.md +543 -0
- package/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/skills/hr-pro/SKILL.md +126 -0
- package/skills/hybrid-cloud-architect/SKILL.md +168 -0
- package/skills/hybrid-cloud-networking/SKILL.md +238 -0
- package/skills/hybrid-search-implementation/SKILL.md +32 -0
- package/skills/hybrid-search-implementation/resources/implementation-playbook.md +567 -0
- package/skills/incident-responder/SKILL.md +213 -0
- package/skills/incident-response-incident-response/SKILL.md +168 -0
- package/skills/incident-response-smart-fix/SKILL.md +29 -0
- package/skills/incident-response-smart-fix/resources/implementation-playbook.md +838 -0
- package/skills/incident-runbook-templates/SKILL.md +395 -0
- package/skills/ios-developer/SKILL.md +219 -0
- package/skills/istio-traffic-management/SKILL.md +337 -0
- package/skills/java-pro/SKILL.md +177 -0
- package/skills/javascript-pro/SKILL.md +57 -0
- package/skills/javascript-testing-patterns/SKILL.md +35 -0
- package/skills/javascript-testing-patterns/resources/implementation-playbook.md +1024 -0
- package/skills/javascript-typescript-typescript-scaffold/SKILL.md +361 -0
- package/skills/julia-pro/SKILL.md +209 -0
- package/skills/k8s-manifest-generator/SKILL.md +35 -0
- package/skills/k8s-manifest-generator/assets/configmap-template.yaml +296 -0
- package/skills/k8s-manifest-generator/assets/deployment-template.yaml +203 -0
- package/skills/k8s-manifest-generator/assets/service-template.yaml +171 -0
- package/skills/k8s-manifest-generator/references/deployment-spec.md +753 -0
- package/skills/k8s-manifest-generator/references/service-spec.md +724 -0
- package/skills/k8s-manifest-generator/resources/implementation-playbook.md +510 -0
- package/skills/k8s-security-policies/SKILL.md +346 -0
- package/skills/k8s-security-policies/assets/network-policy-template.yaml +177 -0
- package/skills/k8s-security-policies/references/rbac-patterns.md +187 -0
- package/skills/kpi-dashboard-design/SKILL.md +440 -0
- package/skills/kubernetes-architect/SKILL.md +170 -0
- package/skills/langchain-architecture/SKILL.md +350 -0
- package/skills/legacy-modernizer/SKILL.md +53 -0
- package/skills/legal-advisor/SKILL.md +70 -0
- package/skills/linkerd-patterns/SKILL.md +321 -0
- package/skills/llm-application-dev-ai-assistant/SKILL.md +35 -0
- package/skills/llm-application-dev-ai-assistant/resources/implementation-playbook.md +1236 -0
- package/skills/llm-application-dev-langchain-agent/SKILL.md +246 -0
- package/skills/llm-application-dev-prompt-optimize/SKILL.md +37 -0
- package/skills/llm-application-dev-prompt-optimize/resources/implementation-playbook.md +591 -0
- package/skills/llm-evaluation/SKILL.md +483 -0
- package/skills/machine-learning-ops-ml-pipeline/SKILL.md +314 -0
- package/skills/malware-analyst/SKILL.md +247 -0
- package/skills/market-sizing-analysis/SKILL.md +425 -0
- package/skills/market-sizing-analysis/examples/saas-market-sizing.md +349 -0
- package/skills/market-sizing-analysis/references/data-sources.md +360 -0
- package/skills/memory-forensics/SKILL.md +491 -0
- package/skills/memory-safety-patterns/SKILL.md +33 -0
- package/skills/memory-safety-patterns/resources/implementation-playbook.md +603 -0
- package/skills/mermaid-expert/SKILL.md +59 -0
- package/skills/microservices-patterns/SKILL.md +35 -0
- package/skills/microservices-patterns/resources/implementation-playbook.md +607 -0
- package/skills/minecraft-bukkit-pro/SKILL.md +126 -0
- package/skills/ml-engineer/SKILL.md +168 -0
- package/skills/ml-pipeline-workflow/SKILL.md +257 -0
- package/skills/mlops-engineer/SKILL.md +219 -0
- package/skills/mobile-developer/SKILL.md +205 -0
- package/skills/mobile-security-coder/SKILL.md +184 -0
- package/skills/modern-javascript-patterns/SKILL.md +35 -0
- package/skills/modern-javascript-patterns/resources/implementation-playbook.md +910 -0
- package/skills/monorepo-architect/SKILL.md +61 -0
- package/skills/monorepo-management/SKILL.md +35 -0
- package/skills/monorepo-management/resources/implementation-playbook.md +621 -0
- package/skills/mtls-configuration/SKILL.md +359 -0
- package/skills/multi-cloud-architecture/SKILL.md +189 -0
- package/skills/multi-platform-apps-multi-platform/SKILL.md +203 -0
- package/skills/network-engineer/SKILL.md +169 -0
- package/skills/nextjs-app-router-patterns/SKILL.md +33 -0
- package/skills/nextjs-app-router-patterns/resources/implementation-playbook.md +543 -0
- package/skills/nft-standards/SKILL.md +395 -0
- package/skills/node-expert/SKILL.md +23 -0
- package/skills/nodejs-backend-patterns/SKILL.md +35 -0
- package/skills/nodejs-backend-patterns/resources/implementation-playbook.md +1019 -0
- package/skills/nx-workspace-patterns/SKILL.md +464 -0
- package/skills/observability-engineer/SKILL.md +237 -0
- package/skills/observability-monitoring-monitor-setup/SKILL.md +48 -0
- package/skills/observability-monitoring-monitor-setup/resources/implementation-playbook.md +505 -0
- package/skills/observability-monitoring-slo-implement/SKILL.md +43 -0
- package/skills/observability-monitoring-slo-implement/resources/implementation-playbook.md +1077 -0
- package/skills/on-call-handoff-patterns/SKILL.md +453 -0
- package/skills/openapi-spec-generation/SKILL.md +33 -0
- package/skills/openapi-spec-generation/resources/implementation-playbook.md +1027 -0
- package/skills/payment-integration/SKILL.md +77 -0
- package/skills/paypal-integration/SKILL.md +479 -0
- package/skills/pci-compliance/SKILL.md +478 -0
- package/skills/performance-engineer/SKILL.md +180 -0
- package/skills/performance-testing-review-ai-review/SKILL.md +450 -0
- package/skills/performance-testing-review-multi-agent-review/SKILL.md +216 -0
- package/skills/php-pro/SKILL.md +63 -0
- package/skills/posix-shell-pro/SKILL.md +304 -0
- package/skills/postgresql/SKILL.md +230 -0
- package/skills/postmortem-writing/SKILL.md +386 -0
- package/skills/projection-patterns/SKILL.md +33 -0
- package/skills/projection-patterns/resources/implementation-playbook.md +501 -0
- package/skills/prometheus-configuration/SKILL.md +404 -0
- package/skills/prompt-engineer/SKILL.md +272 -0
- package/skills/prompt-engineering-patterns/SKILL.md +213 -0
- package/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/skills/prompt-engineering-patterns/assets/prompt-template-library.md +246 -0
- package/skills/prompt-engineering-patterns/references/chain-of-thought.md +399 -0
- package/skills/prompt-engineering-patterns/references/few-shot-learning.md +369 -0
- package/skills/prompt-engineering-patterns/references/prompt-optimization.md +414 -0
- package/skills/prompt-engineering-patterns/references/prompt-templates.md +470 -0
- package/skills/prompt-engineering-patterns/references/system-prompts.md +189 -0
- package/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/skills/protocol-reverse-engineering/SKILL.md +29 -0
- package/skills/protocol-reverse-engineering/resources/implementation-playbook.md +509 -0
- package/skills/python-development-python-scaffold/SKILL.md +331 -0
- package/skills/python-packaging/SKILL.md +36 -0
- package/skills/python-packaging/resources/implementation-playbook.md +869 -0
- package/skills/python-performance-optimization/SKILL.md +36 -0
- package/skills/python-performance-optimization/resources/implementation-playbook.md +868 -0
- package/skills/python-pro/SKILL.md +158 -0
- package/skills/python-testing-patterns/SKILL.md +37 -0
- package/skills/python-testing-patterns/resources/implementation-playbook.md +906 -0
- package/skills/quant-analyst/SKILL.md +53 -0
- package/skills/rag-implementation/SKILL.md +421 -0
- package/skills/react-modernization/SKILL.md +34 -0
- package/skills/react-modernization/resources/implementation-playbook.md +512 -0
- package/skills/react-native-architecture/SKILL.md +33 -0
- package/skills/react-native-architecture/resources/implementation-playbook.md +670 -0
- package/skills/react-state-management/SKILL.md +441 -0
- package/skills/reference-builder/SKILL.md +188 -0
- package/skills/reverse-engineer/SKILL.md +173 -0
- package/skills/risk-manager/SKILL.md +61 -0
- package/skills/risk-metrics-calculation/SKILL.md +33 -0
- package/skills/risk-metrics-calculation/resources/implementation-playbook.md +554 -0
- package/skills/ruby-pro/SKILL.md +56 -0
- package/skills/rust-async-patterns/SKILL.md +33 -0
- package/skills/rust-async-patterns/resources/implementation-playbook.md +516 -0
- package/skills/rust-pro/SKILL.md +178 -0
- package/skills/saga-orchestration/SKILL.md +496 -0
- package/skills/sales-automator/SKILL.md +55 -0
- package/skills/sast-configuration/SKILL.md +212 -0
- package/skills/scala-pro/SKILL.md +82 -0
- package/skills/screen-reader-testing/SKILL.md +33 -0
- package/skills/screen-reader-testing/resources/implementation-playbook.md +544 -0
- package/skills/search-specialist/SKILL.md +80 -0
- package/skills/secrets-management/SKILL.md +364 -0
- package/skills/security-auditor/SKILL.md +169 -0
- package/skills/security-compliance-compliance-check/SKILL.md +55 -0
- package/skills/security-compliance-compliance-check/resources/implementation-playbook.md +963 -0
- package/skills/security-requirement-extraction/SKILL.md +33 -0
- package/skills/security-requirement-extraction/resources/implementation-playbook.md +676 -0
- package/skills/security-scanning-security-dependencies/SKILL.md +43 -0
- package/skills/security-scanning-security-dependencies/resources/implementation-playbook.md +544 -0
- package/skills/security-scanning-security-hardening/SKILL.md +147 -0
- package/skills/security-scanning-security-sast/SKILL.md +495 -0
- package/skills/seo-authority-builder/SKILL.md +136 -0
- package/skills/seo-cannibalization-detector/SKILL.md +123 -0
- package/skills/seo-content-auditor/SKILL.md +83 -0
- package/skills/seo-content-planner/SKILL.md +108 -0
- package/skills/seo-content-refresher/SKILL.md +118 -0
- package/skills/seo-content-writer/SKILL.md +96 -0
- package/skills/seo-keyword-strategist/SKILL.md +95 -0
- package/skills/seo-meta-optimizer/SKILL.md +92 -0
- package/skills/seo-snippet-hunter/SKILL.md +114 -0
- package/skills/seo-structure-architect/SKILL.md +108 -0
- package/skills/service-mesh-expert/SKILL.md +58 -0
- package/skills/service-mesh-observability/SKILL.md +395 -0
- package/skills/shellcheck-configuration/SKILL.md +466 -0
- package/skills/similarity-search-patterns/SKILL.md +33 -0
- package/skills/similarity-search-patterns/resources/implementation-playbook.md +557 -0
- package/skills/slo-implementation/SKILL.md +341 -0
- package/skills/solidity-security/SKILL.md +34 -0
- package/skills/solidity-security/resources/implementation-playbook.md +524 -0
- package/skills/spark-optimization/SKILL.md +427 -0
- package/skills/sql-optimization-patterns/SKILL.md +35 -0
- package/skills/sql-optimization-patterns/resources/implementation-playbook.md +504 -0
- package/skills/sql-pro/SKILL.md +173 -0
- package/skills/startup-analyst/SKILL.md +328 -0
- package/skills/startup-business-analyst-business-case/SKILL.md +487 -0
- package/skills/startup-business-analyst-financial-projections/SKILL.md +353 -0
- package/skills/startup-business-analyst-market-opportunity/SKILL.md +240 -0
- package/skills/startup-financial-modeling/SKILL.md +467 -0
- package/skills/startup-metrics-framework/SKILL.md +34 -0
- package/skills/startup-metrics-framework/resources/implementation-playbook.md +500 -0
- package/skills/stride-analysis-patterns/SKILL.md +33 -0
- package/skills/stride-analysis-patterns/resources/implementation-playbook.md +655 -0
- package/skills/stripe-integration/SKILL.md +454 -0
- package/skills/systems-programming-rust-project/SKILL.md +440 -0
- package/skills/tailwind-design-system/SKILL.md +33 -0
- package/skills/tailwind-design-system/resources/implementation-playbook.md +665 -0
- package/skills/tdd-orchestrator/SKILL.md +205 -0
- package/skills/tdd-workflows-tdd-cycle/SKILL.md +221 -0
- package/skills/tdd-workflows-tdd-green/SKILL.md +73 -0
- package/skills/tdd-workflows-tdd-green/resources/implementation-playbook.md +870 -0
- package/skills/tdd-workflows-tdd-red/SKILL.md +164 -0
- package/skills/tdd-workflows-tdd-refactor/SKILL.md +187 -0
- package/skills/team-collaboration-issue/SKILL.md +37 -0
- package/skills/team-collaboration-issue/resources/implementation-playbook.md +640 -0
- package/skills/team-collaboration-standup-notes/SKILL.md +44 -0
- package/skills/team-collaboration-standup-notes/resources/implementation-playbook.md +768 -0
- package/skills/team-composition-analysis/SKILL.md +413 -0
- package/skills/temporal-python-pro/SKILL.md +370 -0
- package/skills/temporal-python-testing/SKILL.md +170 -0
- package/skills/temporal-python-testing/resources/integration-testing.md +455 -0
- package/skills/temporal-python-testing/resources/local-setup.md +553 -0
- package/skills/temporal-python-testing/resources/replay-testing.md +462 -0
- package/skills/temporal-python-testing/resources/unit-testing.md +328 -0
- package/skills/terraform-module-library/SKILL.md +261 -0
- package/skills/terraform-module-library/references/aws-modules.md +63 -0
- package/skills/terraform-specialist/SKILL.md +166 -0
- package/skills/test-automator/SKILL.md +224 -0
- package/skills/threat-mitigation-mapping/SKILL.md +33 -0
- package/skills/threat-mitigation-mapping/resources/implementation-playbook.md +744 -0
- package/skills/threat-modeling-expert/SKILL.md +60 -0
- package/skills/track-management/SKILL.md +38 -0
- package/skills/track-management/resources/implementation-playbook.md +591 -0
- package/skills/turborepo-caching/SKILL.md +419 -0
- package/skills/tutorial-engineer/SKILL.md +139 -0
- package/skills/typescript-advanced-types/SKILL.md +35 -0
- package/skills/typescript-advanced-types/resources/implementation-playbook.md +716 -0
- package/skills/typescript-pro/SKILL.md +55 -0
- package/skills/ui-minimal/SKILL.md +23 -0
- package/skills/ui-ux-designer/SKILL.md +209 -0
- package/skills/ui-visual-validator/SKILL.md +214 -0
- package/skills/unit-testing-test-generate/SKILL.md +319 -0
- package/skills/unity-developer/SKILL.md +230 -0
- package/skills/unity-ecs-patterns/SKILL.md +33 -0
- package/skills/unity-ecs-patterns/resources/implementation-playbook.md +625 -0
- package/skills/uv-package-manager/SKILL.md +37 -0
- package/skills/uv-package-manager/resources/implementation-playbook.md +830 -0
- package/skills/vector-database-engineer/SKILL.md +60 -0
- package/skills/vector-index-tuning/SKILL.md +42 -0
- package/skills/vector-index-tuning/resources/implementation-playbook.md +507 -0
- package/skills/wcag-audit-patterns/SKILL.md +41 -0
- package/skills/wcag-audit-patterns/resources/implementation-playbook.md +541 -0
- package/skills/web3-testing/SKILL.md +427 -0
- package/skills/workflow-orchestration-patterns/SKILL.md +333 -0
- package/skills/workflow-patterns/SKILL.md +38 -0
- package/skills/workflow-patterns/resources/implementation-playbook.md +621 -0
|
@@ -0,0 +1,1120 @@
|
|
|
1
|
+
# Track Manager Implementation Playbook
|
|
2
|
+
|
|
3
|
+
This file contains detailed patterns, checklists, and code samples referenced by the skill.
|
|
4
|
+
|
|
5
|
+
## Pre-flight Checks
|
|
6
|
+
|
|
7
|
+
1. Verify Conductor is initialized:
|
|
8
|
+
- Check `conductor/product.md` exists
|
|
9
|
+
- Check `conductor/tracks.md` exists
|
|
10
|
+
- Check `conductor/tracks/` directory exists
|
|
11
|
+
- If missing: Display error and suggest running `/conductor:setup` first
|
|
12
|
+
|
|
13
|
+
2. Ensure archive directory exists (for archive/restore operations):
|
|
14
|
+
- Check if `conductor/tracks/_archive/` exists
|
|
15
|
+
- Create if needed when performing archive operation
|
|
16
|
+
|
|
17
|
+
## Mode Detection
|
|
18
|
+
|
|
19
|
+
Parse arguments to determine operation mode:
|
|
20
|
+
|
|
21
|
+
| Argument | Mode | Description |
|
|
22
|
+
| ---------------------- | ------------ | ------------------------------------------------------- |
|
|
23
|
+
| `--list [filter]` | List | Show all tracks (optional: active, completed, archived) |
|
|
24
|
+
| `--archive <id>` | Archive | Move completed track to archive |
|
|
25
|
+
| `--archive --bulk` | Bulk Archive | Multi-select completed tracks |
|
|
26
|
+
| `--restore <id>` | Restore | Restore archived track to active |
|
|
27
|
+
| `--delete <id>` | Delete | Permanently remove a track |
|
|
28
|
+
| `--rename <old> <new>` | Rename | Change track ID |
|
|
29
|
+
| `--cleanup` | Cleanup | Detect and fix orphaned artifacts |
|
|
30
|
+
| (none) | Interactive | Menu-driven operation selection |
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Interactive Mode (no argument)
|
|
35
|
+
|
|
36
|
+
When invoked without arguments, display the main menu:
|
|
37
|
+
|
|
38
|
+
### 1. Gather Quick Stats
|
|
39
|
+
|
|
40
|
+
Read `conductor/tracks.md` and scan directories:
|
|
41
|
+
|
|
42
|
+
- Count active tracks (status `[ ]` or `[~]`)
|
|
43
|
+
- Count completed tracks (status `[x]`, not archived)
|
|
44
|
+
- Count archived tracks (in `_archive/` directory)
|
|
45
|
+
|
|
46
|
+
### 2. Display Main Menu
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
================================================================================
|
|
50
|
+
TRACK MANAGER
|
|
51
|
+
================================================================================
|
|
52
|
+
|
|
53
|
+
What would you like to do?
|
|
54
|
+
|
|
55
|
+
1. List all tracks
|
|
56
|
+
2. Archive a completed track
|
|
57
|
+
3. Restore an archived track
|
|
58
|
+
4. Delete a track permanently
|
|
59
|
+
5. Rename a track
|
|
60
|
+
6. Cleanup orphaned artifacts
|
|
61
|
+
7. Exit
|
|
62
|
+
|
|
63
|
+
Quick stats:
|
|
64
|
+
- {N} active tracks
|
|
65
|
+
- {M} completed (ready to archive)
|
|
66
|
+
- {P} archived
|
|
67
|
+
|
|
68
|
+
Select option:
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 3. Handle Selection
|
|
72
|
+
|
|
73
|
+
- Option 1: Execute List Mode
|
|
74
|
+
- Option 2: Execute Archive Mode (without argument)
|
|
75
|
+
- Option 3: Execute Restore Mode (without argument)
|
|
76
|
+
- Option 4: Execute Delete Mode (without argument)
|
|
77
|
+
- Option 5: Execute Rename Mode (without argument)
|
|
78
|
+
- Option 6: Execute Cleanup Mode
|
|
79
|
+
- Option 7: Exit with "Track management cancelled."
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## List Mode (`--list`)
|
|
84
|
+
|
|
85
|
+
Display comprehensive track overview with optional filtering.
|
|
86
|
+
|
|
87
|
+
### 1. Data Collection
|
|
88
|
+
|
|
89
|
+
**For Active Tracks:**
|
|
90
|
+
|
|
91
|
+
- Read `conductor/tracks.md`
|
|
92
|
+
- For each track with status `[ ]` or `[~]`:
|
|
93
|
+
- Read `conductor/tracks/{trackId}/metadata.json` for type, dates
|
|
94
|
+
- Read `conductor/tracks/{trackId}/plan.md` for task counts
|
|
95
|
+
- Calculate progress percentage
|
|
96
|
+
|
|
97
|
+
**For Completed Tracks:**
|
|
98
|
+
|
|
99
|
+
- Find tracks with status `[x]` not in `_archive/`
|
|
100
|
+
- Read metadata for completion dates
|
|
101
|
+
|
|
102
|
+
**For Archived Tracks:**
|
|
103
|
+
|
|
104
|
+
- Scan `conductor/tracks/_archive/` directory
|
|
105
|
+
- Read each `metadata.json` for archive reason and date
|
|
106
|
+
|
|
107
|
+
### 2. Output Format
|
|
108
|
+
|
|
109
|
+
**Full list (no filter):**
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
================================================================================
|
|
113
|
+
TRACK MANAGER
|
|
114
|
+
================================================================================
|
|
115
|
+
|
|
116
|
+
ACTIVE TRACKS ({count})
|
|
117
|
+
| Status | Track ID | Type | Progress | Updated |
|
|
118
|
+
|--------|-------------------|---------|-------------|------------|
|
|
119
|
+
| [~] | dashboard_20250112| feature | 7/15 (47%) | 2025-01-15 |
|
|
120
|
+
| [ ] | nav-fix_20250114 | bug | 0/4 (0%) | 2025-01-14 |
|
|
121
|
+
|
|
122
|
+
COMPLETED TRACKS ({count})
|
|
123
|
+
| Track ID | Type | Completed | Duration |
|
|
124
|
+
|-------------------|---------|------------|----------|
|
|
125
|
+
| auth_20250110 | feature | 2025-01-12 | 2 days |
|
|
126
|
+
|
|
127
|
+
ARCHIVED TRACKS ({count})
|
|
128
|
+
| Track ID | Type | Reason | Archived |
|
|
129
|
+
|-----------------------|---------|------------|------------|
|
|
130
|
+
| old-feature_20241201 | feature | Superseded | 2025-01-05 |
|
|
131
|
+
|
|
132
|
+
================================================================================
|
|
133
|
+
Commands: /conductor:manage --archive | --restore | --delete | --rename | --cleanup
|
|
134
|
+
================================================================================
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Filtered list (`--list active`, `--list completed`, `--list archived`):**
|
|
138
|
+
|
|
139
|
+
Show only the requested section with the same format.
|
|
140
|
+
|
|
141
|
+
### 3. Empty States
|
|
142
|
+
|
|
143
|
+
**No tracks at all:**
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
================================================================================
|
|
147
|
+
TRACK MANAGER
|
|
148
|
+
================================================================================
|
|
149
|
+
|
|
150
|
+
No tracks found.
|
|
151
|
+
|
|
152
|
+
To create your first track: /conductor:new-track
|
|
153
|
+
|
|
154
|
+
================================================================================
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**No tracks in filter:**
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
================================================================================
|
|
161
|
+
TRACK MANAGER
|
|
162
|
+
================================================================================
|
|
163
|
+
|
|
164
|
+
No {filter} tracks found.
|
|
165
|
+
|
|
166
|
+
================================================================================
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Archive Mode (`--archive`)
|
|
172
|
+
|
|
173
|
+
Move completed tracks to the archive directory.
|
|
174
|
+
|
|
175
|
+
### With Argument (`--archive <track-id>`)
|
|
176
|
+
|
|
177
|
+
#### 1. Validate Track
|
|
178
|
+
|
|
179
|
+
- Check track exists in `conductor/tracks/{track-id}/`
|
|
180
|
+
- If not found, display error with available tracks:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
ERROR: Track not found: {track-id}
|
|
184
|
+
|
|
185
|
+
Available tracks:
|
|
186
|
+
- auth_20250110 (completed)
|
|
187
|
+
- dashboard_20250112 (in progress)
|
|
188
|
+
|
|
189
|
+
Usage: /conductor:manage --archive <track-id>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
- Check track is not already archived (not in `_archive/`)
|
|
193
|
+
- If archived:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
ERROR: Track '{track-id}' is already archived.
|
|
197
|
+
|
|
198
|
+
Archived: {archived_at}
|
|
199
|
+
Reason: {archive_reason}
|
|
200
|
+
Location: conductor/tracks/_archive/{track-id}/
|
|
201
|
+
|
|
202
|
+
To restore: /conductor:manage --restore {track-id}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
#### 2. Verify Completion Status
|
|
206
|
+
|
|
207
|
+
Read `conductor/tracks/{track-id}/metadata.json` and `plan.md`:
|
|
208
|
+
|
|
209
|
+
- If status is not `completed` or `[x]`:
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
Track '{track-id}' is not marked as complete.
|
|
213
|
+
|
|
214
|
+
Current status: {status}
|
|
215
|
+
Tasks: {completed}/{total} complete
|
|
216
|
+
|
|
217
|
+
Options:
|
|
218
|
+
1. Archive anyway (not recommended)
|
|
219
|
+
2. Cancel and complete the track first
|
|
220
|
+
3. View track status
|
|
221
|
+
|
|
222
|
+
Select option:
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
- If option 1 selected, proceed with warning
|
|
226
|
+
- If option 2 or 3 selected, exit or show status
|
|
227
|
+
|
|
228
|
+
#### 3. Prompt for Archive Reason
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
Why are you archiving this track?
|
|
232
|
+
|
|
233
|
+
1. Completed - Work finished successfully
|
|
234
|
+
2. Superseded - Replaced by another track
|
|
235
|
+
3. Abandoned - No longer needed
|
|
236
|
+
4. Other (specify)
|
|
237
|
+
|
|
238
|
+
Select reason:
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
If "Other" selected, prompt for custom reason.
|
|
242
|
+
|
|
243
|
+
#### 4. Display Confirmation
|
|
244
|
+
|
|
245
|
+
```
|
|
246
|
+
================================================================================
|
|
247
|
+
ARCHIVE CONFIRMATION
|
|
248
|
+
================================================================================
|
|
249
|
+
|
|
250
|
+
Track: {track-id} - {title}
|
|
251
|
+
Type: {type}
|
|
252
|
+
Status: {status}
|
|
253
|
+
Tasks: {completed}/{total} complete
|
|
254
|
+
Reason: {reason}
|
|
255
|
+
|
|
256
|
+
Actions:
|
|
257
|
+
- Move conductor/tracks/{track-id}/ to conductor/tracks/_archive/{track-id}/
|
|
258
|
+
- Update conductor/tracks.md (move to Archived Tracks section)
|
|
259
|
+
- Update metadata.json with archive info
|
|
260
|
+
- Create git commit: chore(conductor): Archive track '{title}'
|
|
261
|
+
|
|
262
|
+
================================================================================
|
|
263
|
+
|
|
264
|
+
Type 'YES' to proceed, or anything else to cancel:
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**CRITICAL: Require explicit 'YES' confirmation.**
|
|
268
|
+
|
|
269
|
+
#### 5. Execute Archive
|
|
270
|
+
|
|
271
|
+
1. Create `conductor/tracks/_archive/` if not exists:
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
mkdir -p conductor/tracks/_archive
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
2. Move track directory:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
mv conductor/tracks/{track-id} conductor/tracks/_archive/
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
3. Update `conductor/tracks/_archive/{track-id}/metadata.json`:
|
|
284
|
+
|
|
285
|
+
```json
|
|
286
|
+
{
|
|
287
|
+
"archived": true,
|
|
288
|
+
"archived_at": "ISO_TIMESTAMP",
|
|
289
|
+
"archive_reason": "{reason}",
|
|
290
|
+
"status": "archived"
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
4. Update `conductor/tracks.md`:
|
|
295
|
+
- Remove entry from Active Tracks or Completed Tracks section
|
|
296
|
+
- Add entry to Archived Tracks section with format:
|
|
297
|
+
```markdown
|
|
298
|
+
### {track-id}: {title}
|
|
299
|
+
|
|
300
|
+
**Reason:** {reason}
|
|
301
|
+
**Archived:** YYYY-MM-DD
|
|
302
|
+
**Folder:** [./tracks/\_archive/{track-id}/](./tracks/_archive/{track-id}/)
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
5. Git commit:
|
|
306
|
+
```bash
|
|
307
|
+
git add conductor/tracks/_archive/{track-id} conductor/tracks.md
|
|
308
|
+
git commit -m "chore(conductor): Archive track '{title}'"
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
#### 6. Success Output
|
|
312
|
+
|
|
313
|
+
```
|
|
314
|
+
================================================================================
|
|
315
|
+
ARCHIVE COMPLETE
|
|
316
|
+
================================================================================
|
|
317
|
+
|
|
318
|
+
Track archived: {track-id} - {title}
|
|
319
|
+
|
|
320
|
+
Location: conductor/tracks/_archive/{track-id}/
|
|
321
|
+
Reason: {reason}
|
|
322
|
+
Commit: {sha}
|
|
323
|
+
|
|
324
|
+
To restore: /conductor:manage --restore {track-id}
|
|
325
|
+
To list: /conductor:manage --list archived
|
|
326
|
+
|
|
327
|
+
================================================================================
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Without Argument (`--archive`)
|
|
331
|
+
|
|
332
|
+
#### 1. Find Archivable Tracks
|
|
333
|
+
|
|
334
|
+
Scan for completed tracks not yet archived:
|
|
335
|
+
|
|
336
|
+
- Status `[x]` in tracks.md
|
|
337
|
+
- Not in `_archive/` directory
|
|
338
|
+
|
|
339
|
+
#### 2. Display Selection Menu
|
|
340
|
+
|
|
341
|
+
```
|
|
342
|
+
================================================================================
|
|
343
|
+
ARCHIVE TRACKS
|
|
344
|
+
================================================================================
|
|
345
|
+
|
|
346
|
+
Completed tracks available for archiving:
|
|
347
|
+
|
|
348
|
+
1. [x] auth_20250110 - User Authentication (completed 2025-01-12)
|
|
349
|
+
2. [x] setup-ci_20250108 - CI Pipeline Setup (completed 2025-01-09)
|
|
350
|
+
|
|
351
|
+
Already archived: {N} tracks
|
|
352
|
+
|
|
353
|
+
--------------------------------------------------------------------------------
|
|
354
|
+
|
|
355
|
+
Options:
|
|
356
|
+
1-{N}. Select a track to archive
|
|
357
|
+
A. Archive all completed tracks
|
|
358
|
+
C. Cancel
|
|
359
|
+
|
|
360
|
+
Select option:
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
- If numeric, proceed with single archive flow
|
|
364
|
+
- If 'A', proceed with bulk archive
|
|
365
|
+
- If 'C', exit
|
|
366
|
+
|
|
367
|
+
#### 3. No Archivable Tracks
|
|
368
|
+
|
|
369
|
+
```
|
|
370
|
+
================================================================================
|
|
371
|
+
ARCHIVE TRACKS
|
|
372
|
+
================================================================================
|
|
373
|
+
|
|
374
|
+
No completed tracks available for archiving.
|
|
375
|
+
|
|
376
|
+
Current tracks:
|
|
377
|
+
- [~] nav-fix_20250114 - In progress
|
|
378
|
+
- [ ] api-v2_20250115 - Pending
|
|
379
|
+
|
|
380
|
+
Already archived: {N} tracks (use --list archived to view)
|
|
381
|
+
|
|
382
|
+
================================================================================
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Bulk Archive (`--archive --bulk`)
|
|
386
|
+
|
|
387
|
+
#### 1. Display Multi-Select
|
|
388
|
+
|
|
389
|
+
```
|
|
390
|
+
================================================================================
|
|
391
|
+
BULK ARCHIVE SELECTION
|
|
392
|
+
================================================================================
|
|
393
|
+
|
|
394
|
+
Select tracks to archive (comma-separated numbers, or 'all'):
|
|
395
|
+
|
|
396
|
+
Completed Tracks:
|
|
397
|
+
[ ] 1. auth_20250110 - User Authentication (completed 2025-01-12)
|
|
398
|
+
[ ] 2. setup-ci_20250108 - CI Pipeline Setup (completed 2025-01-09)
|
|
399
|
+
[ ] 3. docs-update_20250105 - Documentation Update (completed 2025-01-06)
|
|
400
|
+
|
|
401
|
+
Enter selection (e.g., "1,3" or "all"):
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
#### 2. Confirm Selection
|
|
405
|
+
|
|
406
|
+
```
|
|
407
|
+
================================================================================
|
|
408
|
+
BULK ARCHIVE CONFIRMATION
|
|
409
|
+
================================================================================
|
|
410
|
+
|
|
411
|
+
Tracks to archive:
|
|
412
|
+
|
|
413
|
+
1. auth_20250110 - User Authentication
|
|
414
|
+
2. setup-ci_20250108 - CI Pipeline Setup
|
|
415
|
+
|
|
416
|
+
Archive reason for all: Completed
|
|
417
|
+
|
|
418
|
+
Actions:
|
|
419
|
+
- Move 2 track directories to conductor/tracks/_archive/
|
|
420
|
+
- Update conductor/tracks.md
|
|
421
|
+
- Create git commit: chore(conductor): Archive 2 completed tracks
|
|
422
|
+
|
|
423
|
+
================================================================================
|
|
424
|
+
|
|
425
|
+
Type 'YES' to proceed, or anything else to cancel:
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
#### 3. Execute Bulk Archive
|
|
429
|
+
|
|
430
|
+
- Archive each track sequentially
|
|
431
|
+
- Single git commit for all:
|
|
432
|
+
```bash
|
|
433
|
+
git add conductor/tracks/_archive/ conductor/tracks.md
|
|
434
|
+
git commit -m "chore(conductor): Archive {N} completed tracks"
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## Restore Mode (`--restore`)
|
|
440
|
+
|
|
441
|
+
Restore archived tracks back to active status.
|
|
442
|
+
|
|
443
|
+
### With Argument (`--restore <track-id>`)
|
|
444
|
+
|
|
445
|
+
#### 1. Validate Track
|
|
446
|
+
|
|
447
|
+
- Check track exists in `conductor/tracks/_archive/{track-id}/`
|
|
448
|
+
- If not found:
|
|
449
|
+
|
|
450
|
+
```
|
|
451
|
+
ERROR: Archived track not found: {track-id}
|
|
452
|
+
|
|
453
|
+
Available archived tracks:
|
|
454
|
+
- old-feature_20241201 (archived 2025-01-05)
|
|
455
|
+
|
|
456
|
+
Usage: /conductor:manage --restore <track-id>
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
#### 2. Check for Conflicts
|
|
460
|
+
|
|
461
|
+
- Verify no active track with same ID exists in `conductor/tracks/`
|
|
462
|
+
- If conflict:
|
|
463
|
+
|
|
464
|
+
```
|
|
465
|
+
ERROR: Cannot restore '{track-id}' - a track with this ID already exists.
|
|
466
|
+
|
|
467
|
+
Active track: conductor/tracks/{track-id}/
|
|
468
|
+
|
|
469
|
+
Options:
|
|
470
|
+
1. Delete existing track first
|
|
471
|
+
2. Restore with different ID (will prompt for new ID)
|
|
472
|
+
3. Cancel
|
|
473
|
+
|
|
474
|
+
Select option:
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
#### 3. Display Confirmation
|
|
478
|
+
|
|
479
|
+
```
|
|
480
|
+
================================================================================
|
|
481
|
+
RESTORE CONFIRMATION
|
|
482
|
+
================================================================================
|
|
483
|
+
|
|
484
|
+
Restoring archived track:
|
|
485
|
+
|
|
486
|
+
Track: {track-id} - {title}
|
|
487
|
+
Type: {type}
|
|
488
|
+
Archived: {archived_at}
|
|
489
|
+
Reason: {archive_reason}
|
|
490
|
+
|
|
491
|
+
Actions:
|
|
492
|
+
- Move conductor/tracks/_archive/{track-id}/ to conductor/tracks/{track-id}/
|
|
493
|
+
- Update conductor/tracks.md (move to Completed Tracks section)
|
|
494
|
+
- Update metadata.json
|
|
495
|
+
- Create git commit: chore(conductor): Restore track '{title}'
|
|
496
|
+
|
|
497
|
+
Note: Track will be restored with status 'completed'. Use /conductor:implement
|
|
498
|
+
to resume work if needed.
|
|
499
|
+
|
|
500
|
+
================================================================================
|
|
501
|
+
|
|
502
|
+
Type 'YES' to proceed, or anything else to cancel:
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
#### 4. Execute Restore
|
|
506
|
+
|
|
507
|
+
1. Move track directory:
|
|
508
|
+
|
|
509
|
+
```bash
|
|
510
|
+
mv conductor/tracks/_archive/{track-id} conductor/tracks/
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
2. Update `conductor/tracks/{track-id}/metadata.json`:
|
|
514
|
+
|
|
515
|
+
```json
|
|
516
|
+
{
|
|
517
|
+
"archived": false,
|
|
518
|
+
"restored_at": "ISO_TIMESTAMP",
|
|
519
|
+
"status": "completed"
|
|
520
|
+
}
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
3. Update `conductor/tracks.md`:
|
|
524
|
+
- Remove entry from Archived Tracks section
|
|
525
|
+
- Add entry to Completed Tracks section
|
|
526
|
+
|
|
527
|
+
4. Git commit:
|
|
528
|
+
```bash
|
|
529
|
+
git add conductor/tracks/{track-id} conductor/tracks.md
|
|
530
|
+
git commit -m "chore(conductor): Restore track '{title}'"
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
#### 5. Success Output
|
|
534
|
+
|
|
535
|
+
```
|
|
536
|
+
================================================================================
|
|
537
|
+
RESTORE COMPLETE
|
|
538
|
+
================================================================================
|
|
539
|
+
|
|
540
|
+
Track restored: {track-id} - {title}
|
|
541
|
+
|
|
542
|
+
Location: conductor/tracks/{track-id}/
|
|
543
|
+
Status: completed
|
|
544
|
+
|
|
545
|
+
Next steps:
|
|
546
|
+
- Run /conductor:status {track-id} to see track details
|
|
547
|
+
- Run /conductor:implement {track-id} to resume work (if needed)
|
|
548
|
+
|
|
549
|
+
================================================================================
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
### Without Argument (`--restore`)
|
|
553
|
+
|
|
554
|
+
Display menu of archived tracks for selection:
|
|
555
|
+
|
|
556
|
+
```
|
|
557
|
+
================================================================================
|
|
558
|
+
RESTORE TRACKS
|
|
559
|
+
================================================================================
|
|
560
|
+
|
|
561
|
+
Archived tracks available for restoration:
|
|
562
|
+
|
|
563
|
+
1. old-feature_20241201 - Old Feature (archived 2025-01-05, reason: Superseded)
|
|
564
|
+
2. cleanup-api_20241215 - API Cleanup (archived 2025-01-10, reason: Completed)
|
|
565
|
+
|
|
566
|
+
--------------------------------------------------------------------------------
|
|
567
|
+
|
|
568
|
+
Options:
|
|
569
|
+
1-{N}. Select a track to restore
|
|
570
|
+
C. Cancel
|
|
571
|
+
|
|
572
|
+
Select option:
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Delete Mode (`--delete`)
|
|
578
|
+
|
|
579
|
+
Permanently remove tracks with safety confirmations.
|
|
580
|
+
|
|
581
|
+
### With Argument (`--delete <track-id>`)
|
|
582
|
+
|
|
583
|
+
#### 1. Find Track
|
|
584
|
+
|
|
585
|
+
Search for track in:
|
|
586
|
+
|
|
587
|
+
1. `conductor/tracks/{track-id}/` (active/completed)
|
|
588
|
+
2. `conductor/tracks/_archive/{track-id}/` (archived)
|
|
589
|
+
|
|
590
|
+
If not found:
|
|
591
|
+
|
|
592
|
+
```
|
|
593
|
+
ERROR: Track not found: {track-id}
|
|
594
|
+
|
|
595
|
+
Available tracks:
|
|
596
|
+
Active:
|
|
597
|
+
- dashboard_20250112
|
|
598
|
+
|
|
599
|
+
Archived:
|
|
600
|
+
- old-feature_20241201
|
|
601
|
+
|
|
602
|
+
Usage: /conductor:manage --delete <track-id>
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
#### 2. Check In-Progress Status
|
|
606
|
+
|
|
607
|
+
If track status is `[~]` (in progress):
|
|
608
|
+
|
|
609
|
+
```
|
|
610
|
+
================================================================================
|
|
611
|
+
!! WARNING !!
|
|
612
|
+
================================================================================
|
|
613
|
+
|
|
614
|
+
Track '{track-id}' is currently IN PROGRESS.
|
|
615
|
+
|
|
616
|
+
Current task: Task 2.3 - {description}
|
|
617
|
+
Progress: 7/15 tasks (47%)
|
|
618
|
+
|
|
619
|
+
Deleting an in-progress track may result in lost work.
|
|
620
|
+
|
|
621
|
+
Options:
|
|
622
|
+
1. Delete anyway (use --force to skip this warning)
|
|
623
|
+
2. Archive instead (recommended)
|
|
624
|
+
3. Cancel
|
|
625
|
+
|
|
626
|
+
Select option:
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
Without `--force` flag, require explicit selection.
|
|
630
|
+
|
|
631
|
+
#### 3. Display Full Warning
|
|
632
|
+
|
|
633
|
+
```
|
|
634
|
+
================================================================================
|
|
635
|
+
!! PERMANENT DELETION WARNING !!
|
|
636
|
+
================================================================================
|
|
637
|
+
|
|
638
|
+
Track: {track-id} - {title}
|
|
639
|
+
Type: {type}
|
|
640
|
+
Status: {status}
|
|
641
|
+
Location: conductor/tracks/{track-id}/ (or _archive/)
|
|
642
|
+
Created: {created_date}
|
|
643
|
+
Files: {count} (spec.md, plan.md, metadata.json, index.md)
|
|
644
|
+
Commits: {count} related commits (will NOT be deleted)
|
|
645
|
+
|
|
646
|
+
This action CANNOT be undone. The track directory and all contents
|
|
647
|
+
will be permanently removed.
|
|
648
|
+
|
|
649
|
+
Consider archiving instead: /conductor:manage --archive {track-id}
|
|
650
|
+
|
|
651
|
+
================================================================================
|
|
652
|
+
|
|
653
|
+
Type 'DELETE' to permanently remove, or anything else to cancel:
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
**CRITICAL: Require exact 'DELETE' string, not 'yes' or 'y'.**
|
|
657
|
+
|
|
658
|
+
#### 4. Execute Delete
|
|
659
|
+
|
|
660
|
+
1. Remove track directory:
|
|
661
|
+
|
|
662
|
+
```bash
|
|
663
|
+
rm -rf conductor/tracks/{track-id}
|
|
664
|
+
# or
|
|
665
|
+
rm -rf conductor/tracks/_archive/{track-id}
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
2. Update `conductor/tracks.md`:
|
|
669
|
+
- Remove entry from appropriate section (Active, Completed, or Archived)
|
|
670
|
+
|
|
671
|
+
3. Git commit:
|
|
672
|
+
```bash
|
|
673
|
+
git add conductor/tracks.md
|
|
674
|
+
git commit -m "chore(conductor): Delete track '{title}'"
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
Note: The git commit records the deletion but does not remove historical commits.
|
|
678
|
+
|
|
679
|
+
#### 5. Success Output
|
|
680
|
+
|
|
681
|
+
```
|
|
682
|
+
================================================================================
|
|
683
|
+
DELETE COMPLETE
|
|
684
|
+
================================================================================
|
|
685
|
+
|
|
686
|
+
Track permanently deleted: {track-id} - {title}
|
|
687
|
+
|
|
688
|
+
Note: Git history still contains commits referencing this track.
|
|
689
|
+
The track directory and registry entry have been removed.
|
|
690
|
+
|
|
691
|
+
================================================================================
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
### Without Argument (`--delete`)
|
|
695
|
+
|
|
696
|
+
Display menu of all tracks for selection:
|
|
697
|
+
|
|
698
|
+
```
|
|
699
|
+
================================================================================
|
|
700
|
+
DELETE TRACKS
|
|
701
|
+
================================================================================
|
|
702
|
+
|
|
703
|
+
!! This will PERMANENTLY delete a track !!
|
|
704
|
+
|
|
705
|
+
Select a track to delete:
|
|
706
|
+
|
|
707
|
+
Active/Completed:
|
|
708
|
+
1. [ ] nav-fix_20250114 - Navigation Bug Fix
|
|
709
|
+
2. [x] auth_20250110 - User Authentication
|
|
710
|
+
|
|
711
|
+
Archived:
|
|
712
|
+
3. old-feature_20241201 - Old Feature
|
|
713
|
+
|
|
714
|
+
--------------------------------------------------------------------------------
|
|
715
|
+
|
|
716
|
+
Options:
|
|
717
|
+
1-{N}. Select a track to delete
|
|
718
|
+
C. Cancel
|
|
719
|
+
|
|
720
|
+
Select option:
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
---
|
|
724
|
+
|
|
725
|
+
## Rename Mode (`--rename`)
|
|
726
|
+
|
|
727
|
+
Change track IDs with full reference updates.
|
|
728
|
+
|
|
729
|
+
### With Arguments (`--rename <old-id> <new-id>`)
|
|
730
|
+
|
|
731
|
+
#### 1. Validate Old Track Exists
|
|
732
|
+
|
|
733
|
+
Check track exists in:
|
|
734
|
+
|
|
735
|
+
- `conductor/tracks/{old-id}/`
|
|
736
|
+
- `conductor/tracks/_archive/{old-id}/`
|
|
737
|
+
|
|
738
|
+
If not found:
|
|
739
|
+
|
|
740
|
+
```
|
|
741
|
+
ERROR: Track not found: {old-id}
|
|
742
|
+
|
|
743
|
+
Available tracks:
|
|
744
|
+
- auth_20250110
|
|
745
|
+
- dashboard_20250112
|
|
746
|
+
|
|
747
|
+
Usage: /conductor:manage --rename <old-id> <new-id>
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
#### 2. Validate New ID
|
|
751
|
+
|
|
752
|
+
**Check format** (must match `{shortname}_{YYYYMMDD}`):
|
|
753
|
+
|
|
754
|
+
```
|
|
755
|
+
ERROR: Invalid track ID format: {new-id}
|
|
756
|
+
|
|
757
|
+
Track IDs must follow the pattern: {shortname}_{YYYYMMDD}
|
|
758
|
+
Examples:
|
|
759
|
+
- user-auth_20250115
|
|
760
|
+
- fix-login_20250114
|
|
761
|
+
- api-v2_20250110
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
**Check no conflict:**
|
|
765
|
+
|
|
766
|
+
```
|
|
767
|
+
ERROR: Track '{new-id}' already exists.
|
|
768
|
+
|
|
769
|
+
Choose a different ID or delete the existing track first.
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
#### 3. Display Confirmation
|
|
773
|
+
|
|
774
|
+
```
|
|
775
|
+
================================================================================
|
|
776
|
+
RENAME TRACK
|
|
777
|
+
================================================================================
|
|
778
|
+
|
|
779
|
+
Current: {old-id} - {title}
|
|
780
|
+
New ID: {new-id}
|
|
781
|
+
|
|
782
|
+
Changes:
|
|
783
|
+
- Rename conductor/tracks/{old-id}/ to {new-id}/
|
|
784
|
+
- Update tracks.md entry
|
|
785
|
+
- Update metadata.json id field
|
|
786
|
+
- Update plan.md track ID header
|
|
787
|
+
|
|
788
|
+
Note: Git commit history will retain original track ID references.
|
|
789
|
+
Related commits cannot be renamed.
|
|
790
|
+
|
|
791
|
+
================================================================================
|
|
792
|
+
|
|
793
|
+
Type 'YES' to proceed, or anything else to cancel:
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
#### 4. Execute Rename
|
|
797
|
+
|
|
798
|
+
1. Rename directory:
|
|
799
|
+
|
|
800
|
+
```bash
|
|
801
|
+
mv conductor/tracks/{old-id} conductor/tracks/{new-id}
|
|
802
|
+
# or for archived:
|
|
803
|
+
mv conductor/tracks/_archive/{old-id} conductor/tracks/_archive/{new-id}
|
|
804
|
+
```
|
|
805
|
+
|
|
806
|
+
2. Update `conductor/tracks/{new-id}/metadata.json`:
|
|
807
|
+
|
|
808
|
+
```json
|
|
809
|
+
{
|
|
810
|
+
"id": "{new-id}",
|
|
811
|
+
"previous_ids": ["{old-id}"],
|
|
812
|
+
"renamed_at": "ISO_TIMESTAMP"
|
|
813
|
+
}
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
If `previous_ids` already exists, append the old ID.
|
|
817
|
+
|
|
818
|
+
3. Update `conductor/tracks/{new-id}/plan.md`:
|
|
819
|
+
- Change track ID in header line
|
|
820
|
+
|
|
821
|
+
4. Update `conductor/tracks.md`:
|
|
822
|
+
- Update the track ID in the appropriate section
|
|
823
|
+
- Update folder link path
|
|
824
|
+
|
|
825
|
+
5. Git commit:
|
|
826
|
+
```bash
|
|
827
|
+
git add conductor/tracks/{new-id} conductor/tracks.md
|
|
828
|
+
git commit -m "chore(conductor): Rename track '{old-id}' to '{new-id}'"
|
|
829
|
+
```
|
|
830
|
+
|
|
831
|
+
#### 5. Success Output
|
|
832
|
+
|
|
833
|
+
```
|
|
834
|
+
================================================================================
|
|
835
|
+
RENAME COMPLETE
|
|
836
|
+
================================================================================
|
|
837
|
+
|
|
838
|
+
Track renamed: {old-id} → {new-id}
|
|
839
|
+
|
|
840
|
+
New location: conductor/tracks/{new-id}/
|
|
841
|
+
|
|
842
|
+
Note: Historical git commits still reference '{old-id}'.
|
|
843
|
+
|
|
844
|
+
================================================================================
|
|
845
|
+
```
|
|
846
|
+
|
|
847
|
+
### Without Arguments (`--rename`)
|
|
848
|
+
|
|
849
|
+
Interactive mode:
|
|
850
|
+
|
|
851
|
+
```
|
|
852
|
+
================================================================================
|
|
853
|
+
RENAME TRACK
|
|
854
|
+
================================================================================
|
|
855
|
+
|
|
856
|
+
Select a track to rename:
|
|
857
|
+
|
|
858
|
+
1. auth_20250110 - User Authentication
|
|
859
|
+
2. dashboard_20250112 - Dashboard Feature
|
|
860
|
+
3. nav-fix_20250114 - Navigation Bug Fix
|
|
861
|
+
|
|
862
|
+
--------------------------------------------------------------------------------
|
|
863
|
+
|
|
864
|
+
Options:
|
|
865
|
+
1-{N}. Select a track
|
|
866
|
+
C. Cancel
|
|
867
|
+
|
|
868
|
+
Select option:
|
|
869
|
+
```
|
|
870
|
+
|
|
871
|
+
After selection:
|
|
872
|
+
|
|
873
|
+
```
|
|
874
|
+
Enter new track ID for '{old-id}':
|
|
875
|
+
|
|
876
|
+
Format: {shortname}_{YYYYMMDD}
|
|
877
|
+
Current: {old-id}
|
|
878
|
+
|
|
879
|
+
New ID:
|
|
880
|
+
```
|
|
881
|
+
|
|
882
|
+
---
|
|
883
|
+
|
|
884
|
+
## Cleanup Mode (`--cleanup`)
|
|
885
|
+
|
|
886
|
+
Detect and fix orphaned track artifacts.
|
|
887
|
+
|
|
888
|
+
### 1. Scan for Issues
|
|
889
|
+
|
|
890
|
+
**Directory Orphans:**
|
|
891
|
+
|
|
892
|
+
- Scan `conductor/tracks/` for directories
|
|
893
|
+
- Check each against tracks.md entries
|
|
894
|
+
- Flag directories not in registry
|
|
895
|
+
|
|
896
|
+
**Registry Orphans:**
|
|
897
|
+
|
|
898
|
+
- Parse tracks.md for all track entries
|
|
899
|
+
- Check each has a corresponding directory
|
|
900
|
+
- Flag entries without directories
|
|
901
|
+
|
|
902
|
+
**Incomplete Tracks:**
|
|
903
|
+
|
|
904
|
+
- For each track directory, verify required files exist:
|
|
905
|
+
- `spec.md`
|
|
906
|
+
- `plan.md`
|
|
907
|
+
- `metadata.json`
|
|
908
|
+
- Flag tracks missing required files
|
|
909
|
+
|
|
910
|
+
**Stale In-Progress:**
|
|
911
|
+
|
|
912
|
+
- Find tracks with status `[~]`
|
|
913
|
+
- Check `metadata.json` `updated` timestamp
|
|
914
|
+
- Flag if untouched for > 7 days
|
|
915
|
+
|
|
916
|
+
### 2. Display Results
|
|
917
|
+
|
|
918
|
+
```
|
|
919
|
+
================================================================================
|
|
920
|
+
TRACK CLEANUP
|
|
921
|
+
================================================================================
|
|
922
|
+
|
|
923
|
+
Scanning for issues...
|
|
924
|
+
|
|
925
|
+
ORPHANED DIRECTORIES (not in tracks.md):
|
|
926
|
+
1. conductor/tracks/test-feature_20241201/
|
|
927
|
+
2. conductor/tracks/experiment_20241220/
|
|
928
|
+
|
|
929
|
+
REGISTRY ORPHANS (no matching folder):
|
|
930
|
+
3. broken-track_20250101 (listed in tracks.md)
|
|
931
|
+
|
|
932
|
+
INCOMPLETE TRACKS (missing files):
|
|
933
|
+
4. partial_20250105/ - missing: metadata.json, index.md
|
|
934
|
+
|
|
935
|
+
STALE IN-PROGRESS (untouched >7 days):
|
|
936
|
+
5. old-work_20250101 - last updated: 2025-01-02
|
|
937
|
+
|
|
938
|
+
================================================================================
|
|
939
|
+
|
|
940
|
+
Found {N} issues.
|
|
941
|
+
|
|
942
|
+
Actions:
|
|
943
|
+
1. Add orphaned directories to tracks.md
|
|
944
|
+
2. Remove registry orphans from tracks.md
|
|
945
|
+
3. Create missing files from templates
|
|
946
|
+
4. Archive stale tracks
|
|
947
|
+
A. Fix all issues automatically
|
|
948
|
+
S. Skip and review manually
|
|
949
|
+
C. Cancel
|
|
950
|
+
|
|
951
|
+
Select action:
|
|
952
|
+
```
|
|
953
|
+
|
|
954
|
+
### 3. Handle No Issues
|
|
955
|
+
|
|
956
|
+
```
|
|
957
|
+
================================================================================
|
|
958
|
+
TRACK CLEANUP
|
|
959
|
+
================================================================================
|
|
960
|
+
|
|
961
|
+
Scanning for issues...
|
|
962
|
+
|
|
963
|
+
No issues found.
|
|
964
|
+
|
|
965
|
+
All tracks are properly registered and complete.
|
|
966
|
+
|
|
967
|
+
================================================================================
|
|
968
|
+
```
|
|
969
|
+
|
|
970
|
+
### 4. Execute Fixes
|
|
971
|
+
|
|
972
|
+
**For Directory Orphans (Action 1):**
|
|
973
|
+
|
|
974
|
+
```
|
|
975
|
+
Adding orphaned directories to tracks.md...
|
|
976
|
+
|
|
977
|
+
For each directory:
|
|
978
|
+
- Read metadata.json if exists for track info
|
|
979
|
+
- If no metadata, prompt for track details:
|
|
980
|
+
|
|
981
|
+
Found: conductor/tracks/test-feature_20241201/
|
|
982
|
+
|
|
983
|
+
Enter track title (or 'skip' to ignore):
|
|
984
|
+
Enter track type (feature/bug/chore/refactor):
|
|
985
|
+
|
|
986
|
+
- Add entry to appropriate section in tracks.md
|
|
987
|
+
- Create metadata.json if missing
|
|
988
|
+
```
|
|
989
|
+
|
|
990
|
+
**For Registry Orphans (Action 2):**
|
|
991
|
+
|
|
992
|
+
```
|
|
993
|
+
Removing registry orphans from tracks.md...
|
|
994
|
+
|
|
995
|
+
Removed entries:
|
|
996
|
+
- broken-track_20250101
|
|
997
|
+
|
|
998
|
+
Note: No files were deleted, only tracks.md was updated.
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
**For Incomplete Tracks (Action 3):**
|
|
1002
|
+
|
|
1003
|
+
```
|
|
1004
|
+
Creating missing files from templates...
|
|
1005
|
+
|
|
1006
|
+
partial_20250105/:
|
|
1007
|
+
- Created metadata.json from template
|
|
1008
|
+
- Created index.md from template
|
|
1009
|
+
|
|
1010
|
+
Note: You may need to populate these files with actual content.
|
|
1011
|
+
```
|
|
1012
|
+
|
|
1013
|
+
**For Stale In-Progress (Action 4):**
|
|
1014
|
+
|
|
1015
|
+
```
|
|
1016
|
+
Archiving stale tracks...
|
|
1017
|
+
|
|
1018
|
+
old-work_20250101:
|
|
1019
|
+
- Archived with reason: Stale (untouched since 2025-01-02)
|
|
1020
|
+
```
|
|
1021
|
+
|
|
1022
|
+
**For All Issues (Action A):**
|
|
1023
|
+
|
|
1024
|
+
Execute all applicable fixes in sequence, then:
|
|
1025
|
+
|
|
1026
|
+
```bash
|
|
1027
|
+
git add conductor/
|
|
1028
|
+
git commit -m "chore(conductor): Clean up {N} orphaned track artifacts"
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
### 5. Completion Output
|
|
1032
|
+
|
|
1033
|
+
```
|
|
1034
|
+
================================================================================
|
|
1035
|
+
CLEANUP COMPLETE
|
|
1036
|
+
================================================================================
|
|
1037
|
+
|
|
1038
|
+
Fixed {N} issues:
|
|
1039
|
+
- Added {X} orphaned directories to tracks.md
|
|
1040
|
+
- Removed {Y} registry orphans
|
|
1041
|
+
- Created missing files for {Z} incomplete tracks
|
|
1042
|
+
- Archived {W} stale tracks
|
|
1043
|
+
|
|
1044
|
+
Commit: {sha}
|
|
1045
|
+
|
|
1046
|
+
================================================================================
|
|
1047
|
+
```
|
|
1048
|
+
|
|
1049
|
+
---
|
|
1050
|
+
|
|
1051
|
+
## Error Handling
|
|
1052
|
+
|
|
1053
|
+
### Git Operation Failures
|
|
1054
|
+
|
|
1055
|
+
```
|
|
1056
|
+
GIT ERROR: {error message}
|
|
1057
|
+
|
|
1058
|
+
The operation partially completed:
|
|
1059
|
+
- Directory moved: Yes/No
|
|
1060
|
+
- tracks.md updated: Yes/No
|
|
1061
|
+
- Commit created: No
|
|
1062
|
+
|
|
1063
|
+
You may need to manually:
|
|
1064
|
+
1. Complete the git commit
|
|
1065
|
+
2. Restore files from their current locations
|
|
1066
|
+
|
|
1067
|
+
Current state:
|
|
1068
|
+
- Track location: {path}
|
|
1069
|
+
- tracks.md: {status}
|
|
1070
|
+
|
|
1071
|
+
To retry the commit:
|
|
1072
|
+
git add conductor/tracks.md conductor/tracks/{track-id}
|
|
1073
|
+
git commit -m "{intended message}"
|
|
1074
|
+
```
|
|
1075
|
+
|
|
1076
|
+
### File System Errors
|
|
1077
|
+
|
|
1078
|
+
```
|
|
1079
|
+
ERROR: Failed to {operation}: {error}
|
|
1080
|
+
|
|
1081
|
+
Possible causes:
|
|
1082
|
+
- Permission denied
|
|
1083
|
+
- Disk full
|
|
1084
|
+
- File in use
|
|
1085
|
+
|
|
1086
|
+
No changes were made. Please resolve the issue and try again.
|
|
1087
|
+
```
|
|
1088
|
+
|
|
1089
|
+
### Invalid Arguments
|
|
1090
|
+
|
|
1091
|
+
```
|
|
1092
|
+
ERROR: Invalid argument: {argument}
|
|
1093
|
+
|
|
1094
|
+
Usage: /conductor:manage [--archive | --restore | --delete | --rename | --list | --cleanup]
|
|
1095
|
+
|
|
1096
|
+
Examples:
|
|
1097
|
+
/conductor:manage # Interactive mode
|
|
1098
|
+
/conductor:manage --list # List all tracks
|
|
1099
|
+
/conductor:manage --list archived # List archived tracks only
|
|
1100
|
+
/conductor:manage --archive track-id # Archive specific track
|
|
1101
|
+
/conductor:manage --restore track-id # Restore archived track
|
|
1102
|
+
/conductor:manage --delete track-id # Delete track permanently
|
|
1103
|
+
/conductor:manage --rename old new # Rename track ID
|
|
1104
|
+
/conductor:manage --cleanup # Fix orphaned artifacts
|
|
1105
|
+
```
|
|
1106
|
+
|
|
1107
|
+
---
|
|
1108
|
+
|
|
1109
|
+
## Critical Rules
|
|
1110
|
+
|
|
1111
|
+
1. **ALWAYS verify track existence** before any operation
|
|
1112
|
+
2. **REQUIRE explicit confirmation** for destructive operations:
|
|
1113
|
+
- 'YES' for archive, restore, rename
|
|
1114
|
+
- 'DELETE' for permanent deletion
|
|
1115
|
+
3. **HALT on any error** - Do not attempt to continue past failures
|
|
1116
|
+
4. **UPDATE tracks.md** - Keep registry in sync with file system
|
|
1117
|
+
5. **COMMIT changes** - Create git commits for traceability
|
|
1118
|
+
6. **PRESERVE history** - Git commits are never modified or deleted
|
|
1119
|
+
7. **WARN for in-progress** - Extra caution when modifying active work
|
|
1120
|
+
8. **OFFER alternatives** - Suggest archive before delete
|