godpowers 0.15.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/AGENTS.md +37 -0
- package/CHANGELOG.md +639 -0
- package/INSPIRATION.md +52 -0
- package/LICENSE +21 -0
- package/README.md +232 -0
- package/SKILL.md +500 -0
- package/agents/god-archaeologist.md +139 -0
- package/agents/god-architect.md +92 -0
- package/agents/god-auditor.md +150 -0
- package/agents/god-browser-tester.md +144 -0
- package/agents/god-context-writer.md +137 -0
- package/agents/god-coordinator.md +138 -0
- package/agents/god-debt-assessor.md +132 -0
- package/agents/god-debugger.md +77 -0
- package/agents/god-deploy-engineer.md +87 -0
- package/agents/god-deps-auditor.md +111 -0
- package/agents/god-design-reviewer.md +137 -0
- package/agents/god-designer.md +171 -0
- package/agents/god-docs-writer.md +102 -0
- package/agents/god-executor.md +76 -0
- package/agents/god-explorer.md +110 -0
- package/agents/god-harden-auditor.md +163 -0
- package/agents/god-incident-investigator.md +144 -0
- package/agents/god-launch-strategist.md +103 -0
- package/agents/god-migration-strategist.md +126 -0
- package/agents/god-observability-engineer.md +76 -0
- package/agents/god-orchestrator.md +728 -0
- package/agents/god-org-context-loader.md +124 -0
- package/agents/god-planner.md +73 -0
- package/agents/god-pm.md +105 -0
- package/agents/god-quality-reviewer.md +74 -0
- package/agents/god-reconciler.md +230 -0
- package/agents/god-reconstructor.md +124 -0
- package/agents/god-repo-scaffolder.md +60 -0
- package/agents/god-retrospective.md +109 -0
- package/agents/god-roadmap-reconciler.md +123 -0
- package/agents/god-roadmap-updater.md +89 -0
- package/agents/god-roadmapper.md +82 -0
- package/agents/god-spec-reviewer.md +70 -0
- package/agents/god-spike-runner.md +119 -0
- package/agents/god-stack-selector.md +93 -0
- package/agents/god-standards-check.md +132 -0
- package/agents/god-storyteller.md +116 -0
- package/agents/god-updater.md +174 -0
- package/bin/install.js +514 -0
- package/extensions/data-pack/README.md +33 -0
- package/extensions/data-pack/agents/god-dashboard-builder.md +66 -0
- package/extensions/data-pack/agents/god-etl-engineer.md +64 -0
- package/extensions/data-pack/agents/god-ml-feature-engineer.md +66 -0
- package/extensions/data-pack/manifest.yaml +39 -0
- package/extensions/data-pack/package.json +42 -0
- package/extensions/data-pack/skills/god-dashboard.md +28 -0
- package/extensions/data-pack/skills/god-etl.md +28 -0
- package/extensions/data-pack/skills/god-ml-feature.md +28 -0
- package/extensions/data-pack/workflows/dashboard-arc.yaml +13 -0
- package/extensions/data-pack/workflows/etl-arc.yaml +13 -0
- package/extensions/data-pack/workflows/ml-feature-arc.yaml +13 -0
- package/extensions/launch-pack/README.md +36 -0
- package/extensions/launch-pack/agents/god-indie-hackers-strategist.md +128 -0
- package/extensions/launch-pack/agents/god-oss-release-strategist.md +125 -0
- package/extensions/launch-pack/agents/god-product-hunt-strategist.md +118 -0
- package/extensions/launch-pack/agents/god-show-hn-strategist.md +113 -0
- package/extensions/launch-pack/manifest.yaml +45 -0
- package/extensions/launch-pack/package.json +41 -0
- package/extensions/launch-pack/skills/god-indie-hackers.md +39 -0
- package/extensions/launch-pack/skills/god-oss-release.md +43 -0
- package/extensions/launch-pack/skills/god-product-hunt.md +41 -0
- package/extensions/launch-pack/skills/god-show-hn.md +40 -0
- package/extensions/launch-pack/workflows/indie-hackers.yaml +13 -0
- package/extensions/launch-pack/workflows/oss-release.yaml +13 -0
- package/extensions/launch-pack/workflows/product-hunt.yaml +13 -0
- package/extensions/launch-pack/workflows/show-hn.yaml +13 -0
- package/extensions/security-pack/README.md +48 -0
- package/extensions/security-pack/agents/god-hipaa-auditor.md +117 -0
- package/extensions/security-pack/agents/god-pci-auditor.md +100 -0
- package/extensions/security-pack/agents/god-soc2-auditor.md +107 -0
- package/extensions/security-pack/manifest.yaml +39 -0
- package/extensions/security-pack/package.json +42 -0
- package/extensions/security-pack/skills/god-hipaa-audit.md +41 -0
- package/extensions/security-pack/skills/god-pci-audit.md +40 -0
- package/extensions/security-pack/skills/god-soc2-audit.md +42 -0
- package/extensions/security-pack/workflows/hipaa-arc.yaml +15 -0
- package/extensions/security-pack/workflows/pci-arc.yaml +15 -0
- package/extensions/security-pack/workflows/soc2-arc.yaml +15 -0
- package/hooks/pre-tool-use.sh +40 -0
- package/hooks/session-start.sh +74 -0
- package/lib/README.md +28 -0
- package/lib/agent-browser-driver.js +215 -0
- package/lib/agent-cache.js +194 -0
- package/lib/agent-validator.js +275 -0
- package/lib/artifact-diff.js +168 -0
- package/lib/artifact-linter.js +142 -0
- package/lib/awesome-design.js +312 -0
- package/lib/browser-bridge.js +209 -0
- package/lib/budget.js +215 -0
- package/lib/checkpoint.js +390 -0
- package/lib/code-scanner.js +262 -0
- package/lib/context-budget.js +170 -0
- package/lib/context-writer.js +348 -0
- package/lib/cost-tracker.js +325 -0
- package/lib/cross-artifact-impact.js +162 -0
- package/lib/cross-repo-linkage.js +150 -0
- package/lib/design-detector.js +167 -0
- package/lib/design-spec.js +348 -0
- package/lib/drift-detector.js +212 -0
- package/lib/event-reader.js +174 -0
- package/lib/events.js +183 -0
- package/lib/extensions.js +257 -0
- package/lib/have-nots-validator.js +647 -0
- package/lib/impact.js +314 -0
- package/lib/impeccable-bridge.js +139 -0
- package/lib/intent.js +177 -0
- package/lib/linkage.js +232 -0
- package/lib/meta-linter.js +263 -0
- package/lib/multi-repo-detector.js +182 -0
- package/lib/otel-exporter.js +308 -0
- package/lib/recipes.js +186 -0
- package/lib/reverse-sync.js +332 -0
- package/lib/review-required.js +224 -0
- package/lib/router.js +278 -0
- package/lib/runtime-audit.js +455 -0
- package/lib/runtime-test.js +309 -0
- package/lib/skillui-bridge.js +216 -0
- package/lib/state-lock.js +201 -0
- package/lib/state.js +142 -0
- package/lib/story-validator.js +301 -0
- package/lib/suite-state.js +220 -0
- package/lib/workflow-parser.js +109 -0
- package/lib/workflow-runner.js +221 -0
- package/package.json +63 -0
- package/references/HAVE-NOTS.md +573 -0
- package/references/building/BUILD-ANTIPATTERNS.md +102 -0
- package/references/building/BUILD-VERTICAL-SLICES.md +75 -0
- package/references/building/BUILD-WAVES.md +61 -0
- package/references/building/README.md +17 -0
- package/references/design/COLOR.md +122 -0
- package/references/design/DESIGN-ANATOMY.md +121 -0
- package/references/design/DESIGN-ANTIPATTERNS.md +108 -0
- package/references/design/INTERACTION.md +148 -0
- package/references/design/MOTION.md +120 -0
- package/references/design/RESPONSIVE.md +157 -0
- package/references/design/SPATIAL.md +109 -0
- package/references/design/TYPOGRAPHY.md +121 -0
- package/references/design/UX-WRITING.md +135 -0
- package/references/orchestration/MODE-DETECTION.md +74 -0
- package/references/orchestration/README.md +18 -0
- package/references/orchestration/SCALE-DETECTION.md +81 -0
- package/references/planning/ARCH-ANATOMY.md +143 -0
- package/references/planning/ARCH-ANTIPATTERNS.md +52 -0
- package/references/planning/PRD-ANATOMY.md +117 -0
- package/references/planning/PRD-ANTIPATTERNS.md +138 -0
- package/references/planning/README.md +16 -0
- package/references/planning/ROADMAP-ANATOMY.md +43 -0
- package/references/planning/ROADMAP-ANTIPATTERNS.md +94 -0
- package/references/planning/STACK-ANATOMY.md +60 -0
- package/references/planning/STACK-ANTIPATTERNS.md +95 -0
- package/references/shared/GLOSSARY.md +80 -0
- package/references/shared/ORCHESTRATORS.md +76 -0
- package/references/shared/README.md +14 -0
- package/references/shipping/DEPLOY-ANTIPATTERNS.md +64 -0
- package/references/shipping/DEPLOY-PATTERNS.md +110 -0
- package/references/shipping/HARDEN-ANTIPATTERNS.md +66 -0
- package/references/shipping/HARDEN-OWASP-WORKSHEETS.md +89 -0
- package/references/shipping/LAUNCH-ANTIPATTERNS.md +68 -0
- package/references/shipping/OBSERVE-ANTIPATTERNS.md +62 -0
- package/references/shipping/OBSERVE-SLO-EXAMPLES.md +107 -0
- package/references/shipping/README.md +18 -0
- package/routing/god-add-backlog.yaml +24 -0
- package/routing/god-add-tests.yaml +27 -0
- package/routing/god-add-todo.yaml +24 -0
- package/routing/god-agent-audit.yaml +24 -0
- package/routing/god-arch.yaml +46 -0
- package/routing/god-archaeology.yaml +28 -0
- package/routing/god-audit.yaml +32 -0
- package/routing/god-budget.yaml +24 -0
- package/routing/god-build-agent.yaml +24 -0
- package/routing/god-build.yaml +46 -0
- package/routing/god-cache-clear.yaml +24 -0
- package/routing/god-check-todos.yaml +24 -0
- package/routing/god-context-scan.yaml +24 -0
- package/routing/god-context.yaml +44 -0
- package/routing/god-cost.yaml +24 -0
- package/routing/god-debug.yaml +28 -0
- package/routing/god-deploy.yaml +34 -0
- package/routing/god-design-impact.yaml +25 -0
- package/routing/god-design.yaml +67 -0
- package/routing/god-discuss.yaml +27 -0
- package/routing/god-docs.yaml +33 -0
- package/routing/god-doctor.yaml +27 -0
- package/routing/god-explore.yaml +27 -0
- package/routing/god-extension-add.yaml +24 -0
- package/routing/god-extension-info.yaml +24 -0
- package/routing/god-extension-list.yaml +24 -0
- package/routing/god-extension-remove.yaml +24 -0
- package/routing/god-extract-learnings.yaml +24 -0
- package/routing/god-fast.yaml +27 -0
- package/routing/god-feature.yaml +34 -0
- package/routing/god-graph.yaml +24 -0
- package/routing/god-harden.yaml +41 -0
- package/routing/god-help.yaml +27 -0
- package/routing/god-hotfix.yaml +34 -0
- package/routing/god-hygiene.yaml +28 -0
- package/routing/god-init.yaml +37 -0
- package/routing/god-intel.yaml +24 -0
- package/routing/god-launch.yaml +41 -0
- package/routing/god-lifecycle.yaml +27 -0
- package/routing/god-link.yaml +24 -0
- package/routing/god-lint.yaml +24 -0
- package/routing/god-list-assumptions.yaml +27 -0
- package/routing/god-locate.yaml +24 -0
- package/routing/god-logs.yaml +24 -0
- package/routing/god-map-codebase.yaml +24 -0
- package/routing/god-metrics.yaml +24 -0
- package/routing/god-mode.yaml +31 -0
- package/routing/god-next.yaml +27 -0
- package/routing/god-note.yaml +24 -0
- package/routing/god-observe.yaml +34 -0
- package/routing/god-org-context.yaml +28 -0
- package/routing/god-party.yaml +24 -0
- package/routing/god-pause-work.yaml +27 -0
- package/routing/god-plant-seed.yaml +24 -0
- package/routing/god-postmortem.yaml +34 -0
- package/routing/god-pr-branch.yaml +25 -0
- package/routing/god-prd.yaml +49 -0
- package/routing/god-quick.yaml +28 -0
- package/routing/god-reconcile.yaml +48 -0
- package/routing/god-reconstruct.yaml +36 -0
- package/routing/god-redo.yaml +27 -0
- package/routing/god-refactor.yaml +36 -0
- package/routing/god-repair.yaml +27 -0
- package/routing/god-repo.yaml +35 -0
- package/routing/god-restore.yaml +27 -0
- package/routing/god-resume-work.yaml +27 -0
- package/routing/god-review-changes.yaml +25 -0
- package/routing/god-review.yaml +28 -0
- package/routing/god-roadmap-check.yaml +39 -0
- package/routing/god-roadmap-update.yaml +37 -0
- package/routing/god-roadmap.yaml +42 -0
- package/routing/god-rollback.yaml +27 -0
- package/routing/god-scan.yaml +24 -0
- package/routing/god-set-profile.yaml +24 -0
- package/routing/god-settings.yaml +24 -0
- package/routing/god-skip.yaml +27 -0
- package/routing/god-smite.yaml +29 -0
- package/routing/god-spike.yaml +35 -0
- package/routing/god-sprint.yaml +25 -0
- package/routing/god-stack.yaml +41 -0
- package/routing/god-standards.yaml +24 -0
- package/routing/god-status.yaml +27 -0
- package/routing/god-stories.yaml +24 -0
- package/routing/god-story-build.yaml +25 -0
- package/routing/god-story-close.yaml +25 -0
- package/routing/god-story-verify.yaml +25 -0
- package/routing/god-story.yaml +24 -0
- package/routing/god-suite-init.yaml +24 -0
- package/routing/god-suite-patch.yaml +25 -0
- package/routing/god-suite-release.yaml +25 -0
- package/routing/god-suite-status.yaml +25 -0
- package/routing/god-suite-sync.yaml +25 -0
- package/routing/god-sync.yaml +33 -0
- package/routing/god-tech-debt.yaml +32 -0
- package/routing/god-test-extension.yaml +24 -0
- package/routing/god-test-runtime.yaml +25 -0
- package/routing/god-thread.yaml +24 -0
- package/routing/god-trace.yaml +24 -0
- package/routing/god-undo.yaml +27 -0
- package/routing/god-update-deps.yaml +39 -0
- package/routing/god-upgrade.yaml +33 -0
- package/routing/god-version.yaml +24 -0
- package/routing/god-workstream.yaml +24 -0
- package/routing/god.yaml +24 -0
- package/routing/recipes/add-feature-defer-current-milestone.yaml +21 -0
- package/routing/recipes/add-feature-future-conditional.yaml +21 -0
- package/routing/recipes/add-feature-mid-arc-pause.yaml +33 -0
- package/routing/recipes/add-feature-next-milestone.yaml +23 -0
- package/routing/recipes/add-feature-parallel.yaml +29 -0
- package/routing/recipes/add-feature-prd-update.yaml +21 -0
- package/routing/recipes/add-feature-small.yaml +24 -0
- package/routing/recipes/add-feature-tiny.yaml +24 -0
- package/routing/recipes/bluefield-org-aware.yaml +27 -0
- package/routing/recipes/broken-install.yaml +22 -0
- package/routing/recipes/brownfield-onboarding.yaml +32 -0
- package/routing/recipes/bug-no-urgency.yaml +21 -0
- package/routing/recipes/capture-idea.yaml +22 -0
- package/routing/recipes/capture-todo.yaml +21 -0
- package/routing/recipes/clean-pr.yaml +21 -0
- package/routing/recipes/code-cleanup.yaml +23 -0
- package/routing/recipes/docs-drift.yaml +21 -0
- package/routing/recipes/existing-codebase-onboarding.yaml +32 -0
- package/routing/recipes/extract-learnings.yaml +22 -0
- package/routing/recipes/greenfield-fast.yaml +25 -0
- package/routing/recipes/greenfield-manual.yaml +32 -0
- package/routing/recipes/greenfield-with-ideation.yaml +29 -0
- package/routing/recipes/incident-postmortem.yaml +24 -0
- package/routing/recipes/major-framework-upgrade.yaml +23 -0
- package/routing/recipes/monthly-deps.yaml +22 -0
- package/routing/recipes/multi-repo-suite.yaml +56 -0
- package/routing/recipes/parallel-engineers.yaml +26 -0
- package/routing/recipes/pause-handoff.yaml +21 -0
- package/routing/recipes/production-broken.yaml +26 -0
- package/routing/recipes/rerun-tier.yaml +21 -0
- package/routing/recipes/returning-after-break.yaml +31 -0
- package/routing/recipes/state-drift.yaml +21 -0
- package/routing/recipes/undo-last.yaml +21 -0
- package/routing/recipes/weekly-health-check.yaml +24 -0
- package/routing/recipes/whats-next.yaml +22 -0
- package/routing/recipes/where-am-i.yaml +21 -0
- package/schema/events.v1.json +63 -0
- package/schema/extension-manifest.v1.json +84 -0
- package/schema/intent.v1.yaml.json +116 -0
- package/schema/recipe.v1.json +120 -0
- package/schema/routing.v1.json +163 -0
- package/schema/state.v1.json +146 -0
- package/schema/workflow.v1.json +96 -0
- package/skills/god-add-backlog.md +40 -0
- package/skills/god-add-tests.md +53 -0
- package/skills/god-add-todo.md +32 -0
- package/skills/god-agent-audit.md +87 -0
- package/skills/god-arch.md +81 -0
- package/skills/god-archaeology.md +48 -0
- package/skills/god-audit.md +65 -0
- package/skills/god-budget.md +103 -0
- package/skills/god-build-agent.md +91 -0
- package/skills/god-build.md +90 -0
- package/skills/god-cache-clear.md +75 -0
- package/skills/god-check-todos.md +42 -0
- package/skills/god-context-scan.md +125 -0
- package/skills/god-context.md +147 -0
- package/skills/god-cost.md +118 -0
- package/skills/god-debug.md +30 -0
- package/skills/god-deploy.md +76 -0
- package/skills/god-design-impact.md +86 -0
- package/skills/god-design.md +275 -0
- package/skills/god-discuss.md +46 -0
- package/skills/god-docs.md +81 -0
- package/skills/god-doctor.md +94 -0
- package/skills/god-explore.md +50 -0
- package/skills/god-export-otel.md +87 -0
- package/skills/god-extension-add.md +79 -0
- package/skills/god-extension-info.md +75 -0
- package/skills/god-extension-list.md +55 -0
- package/skills/god-extension-remove.md +66 -0
- package/skills/god-extract-learnings.md +60 -0
- package/skills/god-fast.md +47 -0
- package/skills/god-feature.md +114 -0
- package/skills/god-graph.md +56 -0
- package/skills/god-harden.md +106 -0
- package/skills/god-help.md +66 -0
- package/skills/god-hotfix.md +139 -0
- package/skills/god-hygiene.md +104 -0
- package/skills/god-init.md +161 -0
- package/skills/god-intel.md +36 -0
- package/skills/god-launch.md +86 -0
- package/skills/god-lifecycle.md +119 -0
- package/skills/god-link.md +90 -0
- package/skills/god-lint.md +128 -0
- package/skills/god-list-assumptions.md +56 -0
- package/skills/god-locate.md +97 -0
- package/skills/god-logs.md +57 -0
- package/skills/god-map-codebase.md +45 -0
- package/skills/god-metrics.md +51 -0
- package/skills/god-mode.md +159 -0
- package/skills/god-next.md +257 -0
- package/skills/god-note.md +39 -0
- package/skills/god-observe.md +76 -0
- package/skills/god-org-context.md +81 -0
- package/skills/god-party.md +87 -0
- package/skills/god-pause-work.md +64 -0
- package/skills/god-plant-seed.md +59 -0
- package/skills/god-postmortem.md +103 -0
- package/skills/god-pr-branch.md +50 -0
- package/skills/god-prd.md +90 -0
- package/skills/god-quick.md +50 -0
- package/skills/god-reconcile.md +90 -0
- package/skills/god-reconstruct.md +72 -0
- package/skills/god-redo.md +73 -0
- package/skills/god-refactor.md +137 -0
- package/skills/god-repair.md +82 -0
- package/skills/god-repo.md +49 -0
- package/skills/god-restore.md +91 -0
- package/skills/god-resume-work.md +42 -0
- package/skills/god-review-changes.md +93 -0
- package/skills/god-review.md +52 -0
- package/skills/god-roadmap-check.md +66 -0
- package/skills/god-roadmap-update.md +64 -0
- package/skills/god-roadmap.md +77 -0
- package/skills/god-rollback.md +88 -0
- package/skills/god-scan.md +106 -0
- package/skills/god-set-profile.md +58 -0
- package/skills/god-settings.md +44 -0
- package/skills/god-skip.md +78 -0
- package/skills/god-smite.md +86 -0
- package/skills/god-spike.md +120 -0
- package/skills/god-sprint.md +77 -0
- package/skills/god-stack.md +74 -0
- package/skills/god-standards.md +62 -0
- package/skills/god-status.md +99 -0
- package/skills/god-stories.md +60 -0
- package/skills/god-story-build.md +76 -0
- package/skills/god-story-close.md +82 -0
- package/skills/god-story-verify.md +71 -0
- package/skills/god-story.md +55 -0
- package/skills/god-suite-init.md +75 -0
- package/skills/god-suite-patch.md +64 -0
- package/skills/god-suite-release.md +58 -0
- package/skills/god-suite-status.md +63 -0
- package/skills/god-suite-sync.md +49 -0
- package/skills/god-sync.md +102 -0
- package/skills/god-tech-debt.md +56 -0
- package/skills/god-test-extension.md +87 -0
- package/skills/god-test-runtime.md +144 -0
- package/skills/god-thread.md +39 -0
- package/skills/god-trace.md +50 -0
- package/skills/god-undo.md +68 -0
- package/skills/god-update-deps.md +134 -0
- package/skills/god-upgrade.md +139 -0
- package/skills/god-version.md +37 -0
- package/skills/god-workstream.md +61 -0
- package/skills/god.md +207 -0
- package/templates/ARCH.md +99 -0
- package/templates/DEPS-AUDIT.md +66 -0
- package/templates/DESIGN.md +71 -0
- package/templates/DOCS-UPDATE-LOG.md +64 -0
- package/templates/HARDEN-FINDINGS.md +69 -0
- package/templates/MIGRATION.md +86 -0
- package/templates/POSTMORTEM.md +88 -0
- package/templates/PRD.md +80 -0
- package/templates/PROGRESS.md +49 -0
- package/templates/ROADMAP.md +47 -0
- package/templates/SPIKE.md +72 -0
- package/templates/STACK-DECISION.md +61 -0
- package/workflows/audit-only.yaml +22 -0
- package/workflows/bluefield-arc.yaml +87 -0
- package/workflows/brownfield-arc.yaml +44 -0
- package/workflows/deps-audit.yaml +56 -0
- package/workflows/docs-arc.yaml +22 -0
- package/workflows/feature-arc.yaml +59 -0
- package/workflows/full-arc.yaml +84 -0
- package/workflows/hotfix-arc.yaml +59 -0
- package/workflows/hygiene.yaml +43 -0
- package/workflows/migration-arc.yaml +73 -0
- package/workflows/postmortem.yaml +31 -0
- package/workflows/refactor-arc.yaml +59 -0
- package/workflows/spike.yaml +23 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-refactor
|
|
3
|
+
description: |
|
|
4
|
+
Safe refactor with strict TDD. Refactors are regression-heavy; this workflow
|
|
5
|
+
enforces tests-before-changes, slice-by-slice incremental change, and
|
|
6
|
+
two-stage review per slice.
|
|
7
|
+
|
|
8
|
+
Triggers on: "god refactor", "/god-refactor", "refactor this", "clean up",
|
|
9
|
+
"extract", "rename"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /god-refactor
|
|
13
|
+
|
|
14
|
+
Refactor without breaking things.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- The feature works; you want to improve the code
|
|
19
|
+
- Renaming, extracting, restructuring without behavior change
|
|
20
|
+
- Performance improvements with measurable target
|
|
21
|
+
|
|
22
|
+
## When NOT to use
|
|
23
|
+
|
|
24
|
+
- The behavior should change: that's a feature, use /god-feature
|
|
25
|
+
- The bug is in production: use /god-hotfix
|
|
26
|
+
- It's a one-line rename: use /god-fast
|
|
27
|
+
|
|
28
|
+
## Orchestration
|
|
29
|
+
|
|
30
|
+
### Phase 1: Scope (god-explorer)
|
|
31
|
+
Spawn **god-explorer** in fresh context with:
|
|
32
|
+
"Help scope a refactor. The user wants to refactor X. Identify:
|
|
33
|
+
- What specifically changes (files, modules)
|
|
34
|
+
- What does NOT change (behavior, public API)
|
|
35
|
+
- Risks: where is regression most likely
|
|
36
|
+
- Existing test coverage on the affected surface"
|
|
37
|
+
|
|
38
|
+
### Phase 2: Test Coverage Audit
|
|
39
|
+
Before refactoring, verify:
|
|
40
|
+
- All affected behavior is covered by tests
|
|
41
|
+
- Run the test suite: it must currently pass
|
|
42
|
+
- If gaps exist: ADD TESTS FIRST (not refactor first then test)
|
|
43
|
+
- These tests are the safety net during refactor
|
|
44
|
+
|
|
45
|
+
If coverage is insufficient and tests can't be added economically: STOP. The
|
|
46
|
+
refactor is too risky. Spawn god-pm to write a [HYPOTHESIS] doc explaining
|
|
47
|
+
why and what would unblock it.
|
|
48
|
+
|
|
49
|
+
### Phase 3: Plan Slices (god-planner)
|
|
50
|
+
Spawn **god-planner** with refactor-mode instructions:
|
|
51
|
+
"Plan the refactor as a sequence of behavior-preserving slices. Each slice:
|
|
52
|
+
- Compiles
|
|
53
|
+
- All tests still pass
|
|
54
|
+
- Can be reverted independently
|
|
55
|
+
|
|
56
|
+
Avoid 'big leap' slices that break and re-fix in one commit."
|
|
57
|
+
|
|
58
|
+
### Phase 4: Execute Slices (god-executor + reviewers)
|
|
59
|
+
For each slice:
|
|
60
|
+
1. Spawn **god-executor**:
|
|
61
|
+
- Make the change
|
|
62
|
+
- Run all tests
|
|
63
|
+
- All tests must pass (this is the contract)
|
|
64
|
+
2. Spawn **god-spec-reviewer**:
|
|
65
|
+
- Did behavior change? (must be NO)
|
|
66
|
+
- Did public API change? (must be unchanged unless plan said so)
|
|
67
|
+
3. Spawn **god-quality-reviewer**:
|
|
68
|
+
- Is the code cleaner than before? (the whole point)
|
|
69
|
+
- Any new technical debt?
|
|
70
|
+
4. Atomic commit: `refactor: <description> (no behavior change)`
|
|
71
|
+
|
|
72
|
+
### Phase 5: Verify
|
|
73
|
+
Run full test suite one more time. Run lint. Run any benchmarks if performance
|
|
74
|
+
was a goal.
|
|
75
|
+
|
|
76
|
+
### Phase 6: Deploy (incrementally)
|
|
77
|
+
For non-trivial refactors, deploy gradually. Watch metrics for any signal of
|
|
78
|
+
regression beyond what tests caught.
|
|
79
|
+
|
|
80
|
+
## On Completion
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
Refactor complete.
|
|
84
|
+
Slices: N committed
|
|
85
|
+
Tests: all passing
|
|
86
|
+
Behavior: unchanged
|
|
87
|
+
|
|
88
|
+
Suggested next: /god-status or continue with /god-feature
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Have-Nots
|
|
92
|
+
|
|
93
|
+
Refactor FAILS if:
|
|
94
|
+
- Tests didn't exist before; refactor proceeded anyway
|
|
95
|
+
- Behavior changed (that's a feature, not a refactor)
|
|
96
|
+
- Public API changed without explicit plan
|
|
97
|
+
- Single big commit instead of slices
|
|
98
|
+
- Tests skipped or disabled to make refactor pass
|
|
99
|
+
|
|
100
|
+
## Linkage and reverse-sync
|
|
101
|
+
|
|
102
|
+
Per Phase 13 of the production-ready plan, this workflow participates
|
|
103
|
+
in the linkage system:
|
|
104
|
+
|
|
105
|
+
- On completion of any code change, `lib/reverse-sync.run(projectRoot)`
|
|
106
|
+
is called via god-updater. This:
|
|
107
|
+
- Scans new/modified code for linkage annotations (// Implements: P-MUST-NN, etc.)
|
|
108
|
+
- Updates `.godpowers/links/{artifact-to-code,code-to-artifact}.json`
|
|
109
|
+
- Detects drift via `lib/drift-detector`
|
|
110
|
+
- Appends fenced footers to PRD/ARCH/ROADMAP/STACK/DESIGN
|
|
111
|
+
- Surfaces drift findings to REVIEW-REQUIRED.md
|
|
112
|
+
|
|
113
|
+
- Stable IDs MUST be used in artifact deltas (P-MUST-NN, ADR-NNN,
|
|
114
|
+
C-{slug}, M-{slug}, S-{slug}, D-{slug}, token paths). The scanner
|
|
115
|
+
picks them up automatically via comment annotations.
|
|
116
|
+
|
|
117
|
+
- For UI work: agent-browser audit may run as part of /god-build
|
|
118
|
+
post-wave or /god-launch gate (see `/god-test-runtime`).
|
|
119
|
+
|
|
120
|
+
- Findings flow into the standard REVIEW-REQUIRED.md walkthrough
|
|
121
|
+
via `/god-review-changes`.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## Locking
|
|
125
|
+
|
|
126
|
+
The orchestrator acquires a state-lock before this skill mutates anything,
|
|
127
|
+
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
128
|
+
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
129
|
+
same holder; force-reclaimable if stale via `/god-repair`.
|
|
130
|
+
|
|
131
|
+
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
132
|
+
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
133
|
+
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
134
|
+
writer pauses or routes elsewhere via `/god-next`.
|
|
135
|
+
|
|
136
|
+
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
137
|
+
the full contract.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-repair
|
|
3
|
+
description: |
|
|
4
|
+
Fix detected drift between state.json and actual disk state. Drift
|
|
5
|
+
happens when files are edited outside Godpowers, when an agent crashes
|
|
6
|
+
mid-operation, or when state.json is hand-edited incorrectly. Repair
|
|
7
|
+
reconciles disk reality with state.
|
|
8
|
+
|
|
9
|
+
Triggers on: "god repair", "/god-repair", "fix drift", "reconcile
|
|
10
|
+
state", "state is broken"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# /god-repair
|
|
14
|
+
|
|
15
|
+
Detect and fix drift between `state.json` and disk.
|
|
16
|
+
|
|
17
|
+
## What it repairs
|
|
18
|
+
|
|
19
|
+
| Drift kind | Fix |
|
|
20
|
+
|---|---|
|
|
21
|
+
| state.json says PRD done; PRD.md missing | mark PRD pending, alert user |
|
|
22
|
+
| state.json says PRD pending; PRD.md exists and passes lint | mark PRD imported |
|
|
23
|
+
| state.json file hash differs from current PRD.md hash | re-hash and update |
|
|
24
|
+
| linkage.json entry points at deleted code file | remove entry, mark artifact for review |
|
|
25
|
+
| linkage.json entry missing for an annotated code file | scan + add |
|
|
26
|
+
| Schema version in state.json older than installed | migrate (if path exists) |
|
|
27
|
+
| .trash/ contains items older than 30 days | offer to permanently delete |
|
|
28
|
+
|
|
29
|
+
## Process
|
|
30
|
+
|
|
31
|
+
1. Run `lib/drift-detector.js detect()` to enumerate drift.
|
|
32
|
+
2. Categorize: safe-auto-fix vs needs-confirmation vs blocks-progress.
|
|
33
|
+
3. Apply safe-auto-fix immediately (re-hashing, re-running scan).
|
|
34
|
+
4. Show needs-confirmation drift to user; ask Y/N for each.
|
|
35
|
+
5. For blocks-progress drift, instruct the user (e.g. "manually
|
|
36
|
+
recreate PRD.md or run /god-rollback prd").
|
|
37
|
+
6. Append `op:repair` event to reflog with the fix list.
|
|
38
|
+
|
|
39
|
+
## Subcommands
|
|
40
|
+
|
|
41
|
+
### `/god-repair`
|
|
42
|
+
Run repair across the whole project.
|
|
43
|
+
|
|
44
|
+
### `/god-repair --dry-run`
|
|
45
|
+
Detect drift; do nothing.
|
|
46
|
+
|
|
47
|
+
### `/god-repair --category=<linkage|hashes|trash|schema>`
|
|
48
|
+
Only repair one category.
|
|
49
|
+
|
|
50
|
+
### `/god-repair --interactive`
|
|
51
|
+
Walk every drift item with the user, even safe-auto-fixes.
|
|
52
|
+
|
|
53
|
+
## Difference from related commands
|
|
54
|
+
|
|
55
|
+
- `/god-doctor`: read-only diagnostic; suggests `/god-repair` for fixable items
|
|
56
|
+
- `/god-scan`: rebuilds the linkage map (one specific kind of drift)
|
|
57
|
+
- `/god-repair`: covers all drift categories including linkage
|
|
58
|
+
|
|
59
|
+
## Implementation
|
|
60
|
+
|
|
61
|
+
Built-in. Reads + writes:
|
|
62
|
+
- `.godpowers/state.json`
|
|
63
|
+
- `.godpowers/linkage.json`
|
|
64
|
+
- `.godpowers/log` (appends repair event)
|
|
65
|
+
|
|
66
|
+
Calls into `lib/drift-detector.js`, `lib/code-scanner.js`, `lib/reverse-sync.js`.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## Locking
|
|
70
|
+
|
|
71
|
+
The orchestrator acquires a state-lock before this skill mutates anything,
|
|
72
|
+
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
73
|
+
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
74
|
+
same holder; force-reclaimable if stale via `/god-repair`.
|
|
75
|
+
|
|
76
|
+
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
77
|
+
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
78
|
+
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
79
|
+
writer pauses or routes elsewhere via `/god-next`.
|
|
80
|
+
|
|
81
|
+
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
82
|
+
the full contract.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-repo
|
|
3
|
+
description: |
|
|
4
|
+
Scaffold a production-grade repository. Spawns the god-repo-scaffolder agent
|
|
5
|
+
in a fresh context. Gated on Stack.
|
|
6
|
+
|
|
7
|
+
Triggers on: "god repo", "/god-repo", "scaffold the repo", "set up the repo"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /god-repo
|
|
11
|
+
|
|
12
|
+
Spawn the **god-repo-scaffolder** agent in a fresh context via Task tool.
|
|
13
|
+
|
|
14
|
+
## Setup
|
|
15
|
+
|
|
16
|
+
1. Verify `.godpowers/stack/DECISION.md` exists. If not, tell user to run `/god-stack` first.
|
|
17
|
+
2. Spawn god-repo-scaffolder with the stack DECISION path.
|
|
18
|
+
3. The agent scaffolds the repo and writes `.godpowers/repo/AUDIT.md`.
|
|
19
|
+
|
|
20
|
+
## Verification
|
|
21
|
+
|
|
22
|
+
After god-repo-scaffolder returns:
|
|
23
|
+
1. Verify AUDIT.md exists on disk
|
|
24
|
+
2. Verify CI passes on the empty scaffold
|
|
25
|
+
3. Update `.godpowers/PROGRESS.md`: Repo status = done
|
|
26
|
+
|
|
27
|
+
## On Completion
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
Repo scaffolded: .godpowers/repo/AUDIT.md
|
|
31
|
+
|
|
32
|
+
Suggested next: /god-build (start building the first milestone)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Locking
|
|
37
|
+
|
|
38
|
+
The orchestrator acquires a state-lock before this skill mutates anything,
|
|
39
|
+
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
40
|
+
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
41
|
+
same holder; force-reclaimable if stale via `/god-repair`.
|
|
42
|
+
|
|
43
|
+
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
44
|
+
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
45
|
+
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
46
|
+
writer pauses or routes elsewhere via `/god-next`.
|
|
47
|
+
|
|
48
|
+
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
49
|
+
the full contract.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-restore
|
|
3
|
+
description: |
|
|
4
|
+
Recover files from .godpowers/.trash/. Lists trash contents, lets the
|
|
5
|
+
user pick what to restore, and moves files back to their original
|
|
6
|
+
location. Pairs with /god-rollback and /god-undo, both of which
|
|
7
|
+
send files to .trash/ rather than permanently deleting.
|
|
8
|
+
|
|
9
|
+
Triggers on: "god restore", "/god-restore", "recover deleted",
|
|
10
|
+
"undo the rollback", "where did my prd go"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# /god-restore
|
|
14
|
+
|
|
15
|
+
Recover files from `.godpowers/.trash/`.
|
|
16
|
+
|
|
17
|
+
## What's in .trash/
|
|
18
|
+
|
|
19
|
+
Anything that godpowers operations moved out of the active project:
|
|
20
|
+
- `.trash/rollback-<id>/` - from `/god-rollback`
|
|
21
|
+
- `.trash/redo-<id>/` - pre-redo snapshots
|
|
22
|
+
- `.trash/undo-<id>/` - pre-undo snapshots
|
|
23
|
+
- `.trash/expired-<date>/` - auto-cleanup candidates
|
|
24
|
+
|
|
25
|
+
Files in `.trash/` are not deleted until explicit `/god-restore --purge`
|
|
26
|
+
or after 30 days (configurable in intent.yaml).
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
### `/god-restore`
|
|
31
|
+
List trash contents grouped by operation id with timestamps. Interactive
|
|
32
|
+
selection.
|
|
33
|
+
|
|
34
|
+
### `/god-restore <op-id>`
|
|
35
|
+
Restore everything from a specific operation, e.g.
|
|
36
|
+
`/god-restore rollback-abc123`.
|
|
37
|
+
|
|
38
|
+
### `/god-restore <path>`
|
|
39
|
+
Restore a specific file by its trash-relative path.
|
|
40
|
+
|
|
41
|
+
## Process
|
|
42
|
+
|
|
43
|
+
1. Enumerate `.trash/` entries.
|
|
44
|
+
2. Present user with the list (or filter by argument).
|
|
45
|
+
3. For each restoration:
|
|
46
|
+
- Check whether the destination still exists. If yes: confirm overwrite.
|
|
47
|
+
- Move file from `.trash/` back to its original path.
|
|
48
|
+
- Run `/god-scan` to refresh linkage for restored artifacts.
|
|
49
|
+
4. Append `op:restore` event to reflog.
|
|
50
|
+
5. Optionally: re-run `/god-repair` to reconcile state.json with restored content.
|
|
51
|
+
|
|
52
|
+
## Subcommands
|
|
53
|
+
|
|
54
|
+
### `/god-restore --purge [<op-id>]`
|
|
55
|
+
Permanently delete trash entries. Asks for typed confirmation. Use to
|
|
56
|
+
free disk or to commit to a rollback decision.
|
|
57
|
+
|
|
58
|
+
### `/god-restore --list`
|
|
59
|
+
Show trash contents without entering interactive mode.
|
|
60
|
+
|
|
61
|
+
### `/god-restore --age=<days>`
|
|
62
|
+
Show only trash entries older than N days (auto-cleanup candidates).
|
|
63
|
+
|
|
64
|
+
## Safety
|
|
65
|
+
|
|
66
|
+
- Restore never silently overwrites without user confirmation.
|
|
67
|
+
- The trash is per-project, not global. Multiple projects each have
|
|
68
|
+
their own `.godpowers/.trash/`.
|
|
69
|
+
- Trash auto-cleanup is age-based and configurable; default 30 days.
|
|
70
|
+
|
|
71
|
+
## Implementation
|
|
72
|
+
|
|
73
|
+
Built-in. Reads `.godpowers/.trash/` directory tree. Writes restored
|
|
74
|
+
files back via standard fs operations. Calls `/god-scan` after restore
|
|
75
|
+
to refresh linkage map.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## Locking
|
|
79
|
+
|
|
80
|
+
The orchestrator acquires a state-lock before this skill mutates anything,
|
|
81
|
+
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
82
|
+
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
83
|
+
same holder; force-reclaimable if stale via `/god-repair`.
|
|
84
|
+
|
|
85
|
+
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
86
|
+
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
87
|
+
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
88
|
+
writer pauses or routes elsewhere via `/god-next`.
|
|
89
|
+
|
|
90
|
+
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
91
|
+
the full contract.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-resume-work
|
|
3
|
+
description: |
|
|
4
|
+
Resume work from a previous session. Reads .godpowers/HANDOFF.md if it
|
|
5
|
+
exists, otherwise re-derives state from PROGRESS.md and disk. Continues
|
|
6
|
+
from the last incomplete sub-step.
|
|
7
|
+
|
|
8
|
+
Triggers on: "god resume", "/god-resume-work", "resume work", "continue",
|
|
9
|
+
"pick up where I left off"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /god-resume-work
|
|
13
|
+
|
|
14
|
+
Load context and continue.
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
1. Check for `.godpowers/HANDOFF.md`:
|
|
19
|
+
- If exists: read it, summarize for user, ask if context is correct
|
|
20
|
+
- If not: fall back to /god-status (re-derive from disk)
|
|
21
|
+
|
|
22
|
+
2. If HANDOFF.md exists:
|
|
23
|
+
- Display "Where We Were", "Active Work", "Open Threads"
|
|
24
|
+
- Confirm with user: "Pick up here?"
|
|
25
|
+
- If yes: route to the specific next action
|
|
26
|
+
|
|
27
|
+
3. If only PROGRESS.md exists:
|
|
28
|
+
- Run the same logic as /god-next
|
|
29
|
+
- Suggest the next command based on state
|
|
30
|
+
|
|
31
|
+
4. After resuming, archive HANDOFF.md:
|
|
32
|
+
- Move to `.godpowers/archive/HANDOFF-[timestamp].md` so the trail is preserved
|
|
33
|
+
- Reset `.godpowers/HANDOFF.md` (or delete) so future pauses start clean
|
|
34
|
+
|
|
35
|
+
## On Completion
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Resumed from [timestamp pause].
|
|
39
|
+
|
|
40
|
+
Continuing: [specific action]
|
|
41
|
+
Next: [/god-X command or specific work]
|
|
42
|
+
```
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-review-changes
|
|
3
|
+
description: |
|
|
4
|
+
Walk REVIEW-REQUIRED.md interactively. Surface each pending review
|
|
5
|
+
with affected files and suggested actions. Mark items as addressed
|
|
6
|
+
to clear them from the pending list.
|
|
7
|
+
|
|
8
|
+
Triggers on: "god review changes", "/god-review-changes", "pending reviews",
|
|
9
|
+
"what needs review", "address reviews"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /god-review-changes
|
|
13
|
+
|
|
14
|
+
Walk through pending review items in `REVIEW-REQUIRED.md` one batch at
|
|
15
|
+
a time. For each: show what changed, which files are affected, propose
|
|
16
|
+
remediation, and let the user mark addressed (or defer).
|
|
17
|
+
|
|
18
|
+
## Forms
|
|
19
|
+
|
|
20
|
+
| Form | Action |
|
|
21
|
+
|---|---|
|
|
22
|
+
| `/god-review-changes` | Walk all batches interactively |
|
|
23
|
+
| `/god-review-changes --list` | List all pending items, no action |
|
|
24
|
+
| `/god-review-changes --clear` | Clear `REVIEW-REQUIRED.md` (only if empty or after explicit confirm) |
|
|
25
|
+
| `/god-review-changes --json` | Output structured JSON, no interaction |
|
|
26
|
+
|
|
27
|
+
## Process
|
|
28
|
+
|
|
29
|
+
1. Read `REVIEW-REQUIRED.md` via `lib/review-required.readEntries`.
|
|
30
|
+
2. If empty: report "No pending reviews."
|
|
31
|
+
3. For each batch, surface:
|
|
32
|
+
- Batch ID, source, summary, timestamp
|
|
33
|
+
- Each item with severity, ID, file path, message, suggestion
|
|
34
|
+
4. For each item, ask: address now / defer / mark resolved.
|
|
35
|
+
5. If addressed: open the affected file(s) for editing.
|
|
36
|
+
6. After all items in a batch are addressed: prompt to clear the batch.
|
|
37
|
+
7. After all batches cleared: delete `REVIEW-REQUIRED.md`.
|
|
38
|
+
|
|
39
|
+
## Auto-clear policy
|
|
40
|
+
|
|
41
|
+
Per plan question 3: REVIEW-REQUIRED.md does NOT auto-clear under
|
|
42
|
+
--yolo. Clearing requires either:
|
|
43
|
+
- Walking through and marking items
|
|
44
|
+
- Explicit `--clear` flag with confirmation
|
|
45
|
+
|
|
46
|
+
This forces the user to look at what changed, which is the whole point
|
|
47
|
+
of the artifact.
|
|
48
|
+
|
|
49
|
+
## Integration with linkage
|
|
50
|
+
|
|
51
|
+
When showing "affected files," this skill cross-references
|
|
52
|
+
`lib/linkage.queryByFile(projectRoot, file)` so the user sees which
|
|
53
|
+
artifact IDs that file is linked to. Helps decide what to fix.
|
|
54
|
+
|
|
55
|
+
## Output
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
/god-review-changes
|
|
59
|
+
|
|
60
|
+
3 pending batches in REVIEW-REQUIRED.md:
|
|
61
|
+
|
|
62
|
+
Batch 1: Design token change
|
|
63
|
+
Source: design-impact
|
|
64
|
+
Timestamp: 2026-05-10T14:23:11Z
|
|
65
|
+
Summary: colors.primary darkened; affects 3 files
|
|
66
|
+
|
|
67
|
+
Items (3):
|
|
68
|
+
[WARNING] [colors.primary] src/components/Button.tsx: token value changed
|
|
69
|
+
Linked to: D-button-primary
|
|
70
|
+
Suggestion: review computed contrast on Button against background
|
|
71
|
+
|
|
72
|
+
[WARNING] [colors.primary] src/components/Header.tsx: token value changed
|
|
73
|
+
Linked to: D-header
|
|
74
|
+
Suggestion: review header hierarchy
|
|
75
|
+
|
|
76
|
+
[WARNING] [colors.primary] src/styles/globals.css: token value changed
|
|
77
|
+
Linked to: (style file)
|
|
78
|
+
Suggestion: re-render visual regression test
|
|
79
|
+
|
|
80
|
+
Address now / defer / mark resolved? [a/d/r]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## What this skill does NOT do
|
|
84
|
+
|
|
85
|
+
- Modify any artifact (DESIGN.md, PRD.md, etc.)
|
|
86
|
+
- Run lint or impeccable (those are separate skills)
|
|
87
|
+
- Run reverse-sync (god-updater on /god-sync)
|
|
88
|
+
- Auto-fix any issue (always requires human review)
|
|
89
|
+
|
|
90
|
+
## Output
|
|
91
|
+
|
|
92
|
+
Updates `REVIEW-REQUIRED.md` (clearing addressed items). No other
|
|
93
|
+
artifact changes.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-review
|
|
3
|
+
description: |
|
|
4
|
+
Two-stage code review. Spawns god-spec-reviewer (Stage 1) followed by
|
|
5
|
+
god-quality-reviewer (Stage 2). Both must PASS for the review to pass.
|
|
6
|
+
|
|
7
|
+
Triggers on: "god review", "/god-review", "review this", "code review"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /god-review
|
|
11
|
+
|
|
12
|
+
Spawn two specialist review agents in fresh contexts via Task tool.
|
|
13
|
+
|
|
14
|
+
## Setup
|
|
15
|
+
|
|
16
|
+
1. Gather context: what code is being reviewed? (recent diff, specific files, PR)
|
|
17
|
+
2. Locate the relevant plan or PRD acceptance criteria
|
|
18
|
+
3. Run Stage 1 first, then Stage 2 only if Stage 1 passes
|
|
19
|
+
|
|
20
|
+
## Stage 1: Spec Compliance
|
|
21
|
+
|
|
22
|
+
Spawn **god-spec-reviewer** in fresh context with:
|
|
23
|
+
- The code to review
|
|
24
|
+
- The plan or PRD acceptance criteria
|
|
25
|
+
- The test results
|
|
26
|
+
|
|
27
|
+
If FAIL: report findings and STOP. The code must be fixed before Stage 2.
|
|
28
|
+
If PASS: proceed to Stage 2.
|
|
29
|
+
|
|
30
|
+
## Stage 2: Code Quality
|
|
31
|
+
|
|
32
|
+
Spawn **god-quality-reviewer** in fresh context with:
|
|
33
|
+
- The code to review (independent of stage 1 findings)
|
|
34
|
+
|
|
35
|
+
If FAIL: report findings.
|
|
36
|
+
If PASS: review complete.
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
## Code Review Verdict
|
|
42
|
+
|
|
43
|
+
### Stage 1: Spec Compliance - [PASS/FAIL]
|
|
44
|
+
[findings from god-spec-reviewer]
|
|
45
|
+
|
|
46
|
+
### Stage 2: Code Quality - [PASS/FAIL]
|
|
47
|
+
[findings from god-quality-reviewer]
|
|
48
|
+
|
|
49
|
+
### Overall: [PASS/FAIL]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Both stages must PASS for the review to PASS.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-roadmap-check
|
|
3
|
+
description: |
|
|
4
|
+
Check if user intent overlaps with the existing ROADMAP.md before doing
|
|
5
|
+
feature work. Returns: already-done, in-progress, enhancement,
|
|
6
|
+
prerequisite-needed, new, or ambiguous. Auto-invoked by /god-next when
|
|
7
|
+
matched recipe is feature-addition category; can also run manually.
|
|
8
|
+
|
|
9
|
+
Triggers on: "god roadmap check", "/god-roadmap-check", "is this on the roadmap",
|
|
10
|
+
"does this exist", "should this be a new feature"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# /god-roadmap-check
|
|
14
|
+
|
|
15
|
+
Reconcile intent against ROADMAP.md before adding work.
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
1. Verify `.godpowers/roadmap/ROADMAP.md` exists. If not: nothing to reconcile against; suggest /god-roadmap or /god-feature directly.
|
|
20
|
+
2. Spawn god-roadmap-reconciler with the user's intent description and the roadmap path.
|
|
21
|
+
|
|
22
|
+
## Output
|
|
23
|
+
|
|
24
|
+
The reconciler returns a verdict (one of 6 statuses). Display to user:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
Roadmap reconciliation: <intent>
|
|
28
|
+
|
|
29
|
+
Status: ENHANCEMENT
|
|
30
|
+
Match: Milestone 2 (Now): "User can connect Stripe and see basic MRR"
|
|
31
|
+
Feature: "MRR breakdown views"
|
|
32
|
+
Match strength: high
|
|
33
|
+
|
|
34
|
+
Recommendation: This should be added to Milestone 2, not done as a separate
|
|
35
|
+
feature. Two options:
|
|
36
|
+
|
|
37
|
+
A: /god-feature scoped to Milestone 2
|
|
38
|
+
(extends Milestone 2 with this work)
|
|
39
|
+
|
|
40
|
+
B: /god-roadmap update
|
|
41
|
+
(amend Milestone 2's feature list, then continue building)
|
|
42
|
+
|
|
43
|
+
Default: A (folds into existing milestone for cohesion)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
For each status, the recommendation differs:
|
|
47
|
+
- **already-done**: "/god-status to verify; /god-graph trace to find code"
|
|
48
|
+
- **in-progress**: "/god-status; the work is underway"
|
|
49
|
+
- **enhancement**: "Fold into the existing milestone"
|
|
50
|
+
- **prerequisite-needed**: "Complete X first via Y, OR /god-add-backlog"
|
|
51
|
+
- **new**: "4 options: add to Now / add to Next / backlog / seed"
|
|
52
|
+
- **ambiguous**: "Pick from these matches"
|
|
53
|
+
|
|
54
|
+
## Verification
|
|
55
|
+
|
|
56
|
+
After god-roadmap-reconciler returns:
|
|
57
|
+
1. Verify the verdict has a status from the canonical 6
|
|
58
|
+
2. Verify recommendation has a concrete action
|
|
59
|
+
3. Display to user; await decision before proceeding
|
|
60
|
+
|
|
61
|
+
## When called manually
|
|
62
|
+
|
|
63
|
+
User runs `/god-roadmap-check` with an intent description. Useful for:
|
|
64
|
+
- Sanity check before starting feature work
|
|
65
|
+
- Resolving "should this be a new milestone or part of an existing one?"
|
|
66
|
+
- Reviewing whether backlog items overlap with current plan
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-roadmap-update
|
|
3
|
+
description: |
|
|
4
|
+
After feature work, update ROADMAP.md to reflect what changed. Marks
|
|
5
|
+
milestones complete, appends new entries, moves work between Now/Next/Later,
|
|
6
|
+
records changes in a changelog section.
|
|
7
|
+
|
|
8
|
+
Triggers on: "god roadmap update", "/god-roadmap-update", "update roadmap",
|
|
9
|
+
"mark milestone complete", "amend roadmap"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /god-roadmap-update
|
|
13
|
+
|
|
14
|
+
Keep ROADMAP.md as a living artifact.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
|
|
18
|
+
- After completing a milestone (mark done, gate passed)
|
|
19
|
+
- After adding a feature mid-arc that wasn't on the original roadmap
|
|
20
|
+
- When priorities shift (move between Now / Next / Later)
|
|
21
|
+
- When a planned milestone is superseded
|
|
22
|
+
|
|
23
|
+
## Setup
|
|
24
|
+
|
|
25
|
+
1. Verify `.godpowers/roadmap/ROADMAP.md` exists
|
|
26
|
+
2. Determine the operation:
|
|
27
|
+
- Mark complete: which milestone?
|
|
28
|
+
- Append: where (Now/Next/Later) and what?
|
|
29
|
+
- Move: which milestone, where to?
|
|
30
|
+
- Remove: which milestone, why?
|
|
31
|
+
|
|
32
|
+
## Process
|
|
33
|
+
|
|
34
|
+
Spawn **god-roadmap-updater** in fresh context with:
|
|
35
|
+
- Current ROADMAP.md
|
|
36
|
+
- Description of the change
|
|
37
|
+
- Optional: changeset (commits)
|
|
38
|
+
|
|
39
|
+
Agent updates the roadmap and re-validates have-nots.
|
|
40
|
+
|
|
41
|
+
## Verification
|
|
42
|
+
|
|
43
|
+
After god-roadmap-updater returns:
|
|
44
|
+
1. Verify ROADMAP.md still passes have-nots (R-01 through R-07)
|
|
45
|
+
2. Verify Roadmap Changelog section is appended
|
|
46
|
+
3. Update PROGRESS.md if applicable
|
|
47
|
+
|
|
48
|
+
## On Completion
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
Roadmap updated: .godpowers/roadmap/ROADMAP.md
|
|
52
|
+
|
|
53
|
+
Change: [description]
|
|
54
|
+
Have-nots: still passing
|
|
55
|
+
|
|
56
|
+
Suggested next: /god-status (see overall state)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Special: PRD divergence detection
|
|
60
|
+
|
|
61
|
+
If the update adds a feature not in PRD.md:
|
|
62
|
+
- Surface this as a have-not (P-13: moving-target PRD)
|
|
63
|
+
- Recommend `/god-redo prd` to add the requirement
|
|
64
|
+
- Don't silently let roadmap diverge from PRD
|