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,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-context-scan
|
|
3
|
+
description: |
|
|
4
|
+
Detect drift between the current AI session's mental model and
|
|
5
|
+
disk reality. The defensive cousin of /god-status. Use in long
|
|
6
|
+
sessions or when an output starts feeling wrong. Surfaces
|
|
7
|
+
hallucinated facts, missed updates, stale memories, and
|
|
8
|
+
context-rot before they cause bad commits.
|
|
9
|
+
|
|
10
|
+
Triggers on: "god context scan", "/god-context-scan", "check
|
|
11
|
+
drift", "am I out of date", "verify my context"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /god-context-scan
|
|
15
|
+
|
|
16
|
+
Detect when the AI's working memory has diverged from disk.
|
|
17
|
+
|
|
18
|
+
## When to use
|
|
19
|
+
|
|
20
|
+
- **Long sessions** (more than ~50 turns) where the AI's window
|
|
21
|
+
has had to summarize old context away.
|
|
22
|
+
- **Before any commit** in a session that has been running for
|
|
23
|
+
more than 30 minutes.
|
|
24
|
+
- **After a pause and resume** when the AI might have been talked
|
|
25
|
+
out of an earlier decision.
|
|
26
|
+
- **Whenever an AI output starts feeling wrong** - faster than
|
|
27
|
+
re-reading state by hand.
|
|
28
|
+
|
|
29
|
+
## What it does
|
|
30
|
+
|
|
31
|
+
This skill is unusual: it asks the AI to dump its current
|
|
32
|
+
understanding, then compares that to disk. Discrepancies are
|
|
33
|
+
called drifts.
|
|
34
|
+
|
|
35
|
+
### Process
|
|
36
|
+
|
|
37
|
+
1. AI writes down its claimed model of state in a structured form:
|
|
38
|
+
```yaml
|
|
39
|
+
claim:
|
|
40
|
+
project: <name>
|
|
41
|
+
mode: <A/B/C/E>
|
|
42
|
+
currentTier: <tier>
|
|
43
|
+
currentSubstep: <substep>
|
|
44
|
+
lastAction: <name>
|
|
45
|
+
lastArtifactWritten: <path>
|
|
46
|
+
openTodos: [...]
|
|
47
|
+
heldFacts: [...]
|
|
48
|
+
```
|
|
49
|
+
2. `lib/checkpoint.diff(projectRoot, claim)` compares the claim to
|
|
50
|
+
`.godpowers/CHECKPOINT.md` frontmatter + facts.
|
|
51
|
+
3. `lib/state.detectDrift(projectRoot)` cross-checks artifacts on
|
|
52
|
+
disk match their recorded hashes.
|
|
53
|
+
4. `lib/events.readRun(projectRoot, latestRun)` last 30 events
|
|
54
|
+
verified for hash-chain continuity (when v0.13+ event hash
|
|
55
|
+
chain is in place).
|
|
56
|
+
5. Drift findings are presented with severity:
|
|
57
|
+
- **error**: claim contradicts disk (e.g. AI thinks PRD is in
|
|
58
|
+
progress, disk says done)
|
|
59
|
+
- **warn**: claim has stale data (e.g. AI doesn't know about
|
|
60
|
+
last 3 events)
|
|
61
|
+
- **info**: claim mentions facts not in CHECKPOINT held-facts
|
|
62
|
+
(might be new, worth recording)
|
|
63
|
+
6. Suggested actions: `/god-locate` to re-orient, `/god-repair`
|
|
64
|
+
for state drift, or accept the new facts via `/god-checkpoint
|
|
65
|
+
--record-facts`.
|
|
66
|
+
|
|
67
|
+
### Output
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
GODPOWERS CONTEXT SCAN
|
|
71
|
+
|
|
72
|
+
Claims compared: 8
|
|
73
|
+
Matches: 6
|
|
74
|
+
Drifts: 2
|
|
75
|
+
|
|
76
|
+
ERROR drifts:
|
|
77
|
+
- field: currentSubstep
|
|
78
|
+
claimed: prd-in-progress
|
|
79
|
+
actual: arch-pending
|
|
80
|
+
-> the PRD was completed and you started ARCH; refresh memory
|
|
81
|
+
|
|
82
|
+
WARN drifts:
|
|
83
|
+
- field: openTodos
|
|
84
|
+
claimed: 3 open
|
|
85
|
+
actual: 5 open (2 were added after your last sync)
|
|
86
|
+
|
|
87
|
+
Suggested next:
|
|
88
|
+
1. /god-locate (re-orient against disk)
|
|
89
|
+
2. Accept the 2 new todos: /god-check-todos
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## What this does NOT do
|
|
93
|
+
|
|
94
|
+
- Does not modify state. Read-only.
|
|
95
|
+
- Does not "fix" the AI's context (only the AI can do that, by
|
|
96
|
+
re-reading the relevant files).
|
|
97
|
+
- Does not catch hallucinations about content the AI never claimed.
|
|
98
|
+
It can only compare what the AI explicitly states.
|
|
99
|
+
|
|
100
|
+
## Subcommands
|
|
101
|
+
|
|
102
|
+
### `/god-context-scan`
|
|
103
|
+
Full scan: AI states model, system compares, reports drifts.
|
|
104
|
+
|
|
105
|
+
### `/god-context-scan --quick`
|
|
106
|
+
Compare only the top 5 highest-value fields (mode, currentTier,
|
|
107
|
+
currentSubstep, lastAction, openTodoCount).
|
|
108
|
+
|
|
109
|
+
### `/god-context-scan --auto`
|
|
110
|
+
Skips the "AI states model" step and just compares
|
|
111
|
+
CHECKPOINT.md timestamp against state.json timestamp +
|
|
112
|
+
recent-events count. Useful in autonomous mode.
|
|
113
|
+
|
|
114
|
+
## Implementation
|
|
115
|
+
|
|
116
|
+
Built-in. Reads `lib/checkpoint.js`, `lib/state.js`,
|
|
117
|
+
`lib/events.js`. The "ask AI to state its model" step is the AI's
|
|
118
|
+
own work; the comparison is library code.
|
|
119
|
+
|
|
120
|
+
## Related
|
|
121
|
+
|
|
122
|
+
- `/god-locate` - orient a NEW session
|
|
123
|
+
- `/god-status` - full state report
|
|
124
|
+
- `/god-doctor` - install + state integrity
|
|
125
|
+
- `/god-repair` - reconcile state drift
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-context
|
|
3
|
+
description: |
|
|
4
|
+
Manage the Godpowers fenced section in project-level AI instruction files
|
|
5
|
+
(AGENTS.md, CLAUDE.md, GEMINI.md, .cursor/rules/, .windsurfrules,
|
|
6
|
+
.github/copilot-instructions.md, .clinerules, .roo/, .continue/).
|
|
7
|
+
|
|
8
|
+
Triggers on: "god context", "/god-context", "tell ai tools", "ai instructions",
|
|
9
|
+
"context off", "context status", "agents.md", "claude.md", "gemini.md"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /god-context
|
|
13
|
+
|
|
14
|
+
Tell your AI coding tools that this is a Godpowers project. The skill writes
|
|
15
|
+
a fenced section to `AGENTS.md` (canonical) and 1-line pointer fences to any
|
|
16
|
+
detected tool's instruction file (CLAUDE.md, GEMINI.md, etc.). You can turn
|
|
17
|
+
it off, check status, or refresh on demand.
|
|
18
|
+
|
|
19
|
+
## Subcommands
|
|
20
|
+
|
|
21
|
+
| Form | What it does |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `/god-context` (no args) | Same as `status`. |
|
|
24
|
+
| `/god-context on` | Write AGENTS.md and pointers for any detected AI tools. |
|
|
25
|
+
| `/god-context off` | Remove the Godpowers fence from every target file. |
|
|
26
|
+
| `/god-context status` | Show which targets have a fence and which tools were detected. |
|
|
27
|
+
| `/god-context refresh` | Same as `on`. Re-derives content from current state. |
|
|
28
|
+
|
|
29
|
+
## Process
|
|
30
|
+
|
|
31
|
+
1. Verify `.godpowers/` exists. If not, suggest `/god-init` first.
|
|
32
|
+
2. Read `.godpowers/state.json`.
|
|
33
|
+
3. Spawn `god-context-writer` agent with the requested mode.
|
|
34
|
+
4. Report results.
|
|
35
|
+
|
|
36
|
+
## What gets written
|
|
37
|
+
|
|
38
|
+
**Always (canonical):**
|
|
39
|
+
|
|
40
|
+
- `AGENTS.md` - full Godpowers section (under 30 lines)
|
|
41
|
+
|
|
42
|
+
**Only if detected (pointer):**
|
|
43
|
+
|
|
44
|
+
| Tool detected via | Pointer target |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `.claude/` directory | `CLAUDE.md` |
|
|
47
|
+
| `.gemini/` directory or existing `GEMINI.md` | `GEMINI.md` |
|
|
48
|
+
| `.cursor/` directory | `.cursor/rules/godpowers.mdc` |
|
|
49
|
+
| `.cursorrules` file | `.cursorrules` |
|
|
50
|
+
| `.windsurf/` directory | `.windsurf/rules/godpowers.md` |
|
|
51
|
+
| `.windsurfrules` file | `.windsurfrules` |
|
|
52
|
+
| `.github/copilot-instructions.md` | same |
|
|
53
|
+
| `.clinerules` file | same |
|
|
54
|
+
| `.roo/` directory | `.roo/rules/godpowers.md` |
|
|
55
|
+
| `.continue/` directory | `.continue/rules/godpowers.md` |
|
|
56
|
+
|
|
57
|
+
If none of these are detected, only `AGENTS.md` is written (which is the
|
|
58
|
+
universal standard).
|
|
59
|
+
|
|
60
|
+
## Fence rules
|
|
61
|
+
|
|
62
|
+
The Godpowers section is wrapped in:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
<!-- godpowers:begin -->
|
|
66
|
+
...
|
|
67
|
+
<!-- godpowers:end -->
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Anything outside the fence is yours and is never touched. If you have your
|
|
71
|
+
own AGENTS.md content, keep it. The fence inserts itself either at the end
|
|
72
|
+
of an existing file or in a new one.
|
|
73
|
+
|
|
74
|
+
## Examples
|
|
75
|
+
|
|
76
|
+
### First-time setup
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
$ /god-context on
|
|
80
|
+
|
|
81
|
+
Detecting AI tools...
|
|
82
|
+
+ Claude Code (.claude/)
|
|
83
|
+
+ Cursor (.cursor/)
|
|
84
|
+
|
|
85
|
+
Writing context files:
|
|
86
|
+
+ AGENTS.md (created, canonical)
|
|
87
|
+
+ CLAUDE.md (created, pointer)
|
|
88
|
+
+ .cursor/rules/godpowers.mdc (created, pointer)
|
|
89
|
+
|
|
90
|
+
Done. AI tools opening this project will now see Godpowers context.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Status
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
$ /god-context status
|
|
97
|
+
|
|
98
|
+
AGENTS.md fence present
|
|
99
|
+
CLAUDE.md fence present
|
|
100
|
+
GEMINI.md not detected (.gemini/ missing)
|
|
101
|
+
.cursor/rules/... fence present
|
|
102
|
+
.windsurfrules not detected
|
|
103
|
+
|
|
104
|
+
Run /god-context refresh to re-derive content from current state.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Off
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
$ /god-context off
|
|
111
|
+
|
|
112
|
+
Removing context fences:
|
|
113
|
+
- AGENTS.md (kept, user content remained)
|
|
114
|
+
- CLAUDE.md (deleted, was Godpowers-only)
|
|
115
|
+
|
|
116
|
+
Done. AI tools will no longer see Godpowers context on this project.
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Auto-refresh
|
|
120
|
+
|
|
121
|
+
When `/god-sync` runs (post-arc, or any sync), `god-updater` calls this skill
|
|
122
|
+
with `refresh` to keep `AGENTS.md` content aligned with the latest project
|
|
123
|
+
state (mode, scale, completed tiers, active artifacts).
|
|
124
|
+
|
|
125
|
+
You can disable this by running `/god-context off`. It won't be re-enabled
|
|
126
|
+
without your explicit `/god-context on`.
|
|
127
|
+
|
|
128
|
+
## Privacy / portability
|
|
129
|
+
|
|
130
|
+
The fenced content contains:
|
|
131
|
+
- Project name (from state.json)
|
|
132
|
+
- Mode (greenfield/brownfield/audit) and scale
|
|
133
|
+
- A short list of completed-tier artifact paths
|
|
134
|
+
- Quarterback rule reminder
|
|
135
|
+
- Top 4 useful slash commands
|
|
136
|
+
|
|
137
|
+
It does NOT contain:
|
|
138
|
+
- Secrets, credentials, API keys
|
|
139
|
+
- PRD body, ARCH body, or any artifact full text
|
|
140
|
+
- User PII
|
|
141
|
+
|
|
142
|
+
Heavy content stays in `.godpowers/`. The fence just points to it.
|
|
143
|
+
|
|
144
|
+
## Output
|
|
145
|
+
|
|
146
|
+
This skill produces no new artifacts under `.godpowers/`. It modifies
|
|
147
|
+
project-root files (AGENTS.md and tool-specific pointers) only.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-cost
|
|
3
|
+
description: |
|
|
4
|
+
Token cost + dollar accounting report. Shows spend, savings (via
|
|
5
|
+
cache hits), and breakdowns per tier / agent / model across one or
|
|
6
|
+
all runs. Use to spot expensive tiers, justify cache enablement,
|
|
7
|
+
or measure the impact of /god-budget tightening.
|
|
8
|
+
|
|
9
|
+
Triggers on: "god cost", "/god-cost", "how much did this cost",
|
|
10
|
+
"token spend", "show savings"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# /god-cost
|
|
14
|
+
|
|
15
|
+
Report token + dollar spend across runs.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
### `/god-cost`
|
|
20
|
+
Aggregate across every run in the project.
|
|
21
|
+
|
|
22
|
+
### `/god-cost <run-id>`
|
|
23
|
+
One specific run.
|
|
24
|
+
|
|
25
|
+
### `/god-cost --since=<duration>`
|
|
26
|
+
E.g. `--since=24h`, `--since=7d`.
|
|
27
|
+
|
|
28
|
+
### `/god-cost --json`
|
|
29
|
+
Machine-readable.
|
|
30
|
+
|
|
31
|
+
### `/god-cost --pricing=<file>`
|
|
32
|
+
Use custom pricing table (JSON) instead of the built-in approximate
|
|
33
|
+
table. Useful if you have negotiated rates.
|
|
34
|
+
|
|
35
|
+
### `/god-cost --strict`
|
|
36
|
+
Exit non-zero if any `cost.recorded` event has `source: 'estimated'`.
|
|
37
|
+
Use in CI when you have wired live token reporting and want the
|
|
38
|
+
build to fail the moment estimation creeps back in.
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
GODPOWERS COST REPORT
|
|
44
|
+
|
|
45
|
+
Spent: $0.4823 across 18 model calls (124,500 tokens)
|
|
46
|
+
Live: $0.4012 (15 calls, 100,400 tokens)
|
|
47
|
+
Estimated: $0.0811 (3 calls, 24,100 tokens)
|
|
48
|
+
Saved: $0.1842 via 7 cache hits (47,200 tokens)
|
|
49
|
+
Cache hit rate: 28.0% (7/25)
|
|
50
|
+
|
|
51
|
+
Per tier:
|
|
52
|
+
tier-1: $0.2134 (8 calls, 3 hits, $0.0892 saved)
|
|
53
|
+
tier-2: $0.1542 (6 calls, 2 hits, $0.0521 saved)
|
|
54
|
+
tier-3: $0.1147 (4 calls, 2 hits, $0.0429 saved)
|
|
55
|
+
|
|
56
|
+
Per agent (top 5 by spend):
|
|
57
|
+
god-architect: $0.1245 (3 calls)
|
|
58
|
+
god-pm: $0.0889 (2 calls)
|
|
59
|
+
god-executor: $0.0856 (5 calls)
|
|
60
|
+
god-roadmapper:$0.0445 (2 calls)
|
|
61
|
+
god-harden-auditor: $0.0388 (1 call)
|
|
62
|
+
|
|
63
|
+
Per model:
|
|
64
|
+
claude-3-5-sonnet: $0.4012 (15 calls)
|
|
65
|
+
claude-3-5-haiku: $0.0811 (3 calls)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Where the data comes from
|
|
69
|
+
|
|
70
|
+
- `cost.recorded` events: every LLM call records `{model, tokens_in,
|
|
71
|
+
tokens_out, cost_usd, agent, tier, source}`. Aggregated by tier /
|
|
72
|
+
agent / model.
|
|
73
|
+
- `cache.hit` events: each hit records `{savings_tokens, savings_usd,
|
|
74
|
+
agent, tier}`. Counts toward savings.
|
|
75
|
+
- `cache.miss` events: counted to compute hit rate.
|
|
76
|
+
|
|
77
|
+
## Live vs estimated (source field)
|
|
78
|
+
|
|
79
|
+
Every `cost.recorded` carries `source: 'live'` or `source: 'estimated'`:
|
|
80
|
+
|
|
81
|
+
- **live**: the AI tool surfaced real per-call token counts from the
|
|
82
|
+
provider API response. Numbers reflect actual spend. Emitted by
|
|
83
|
+
`cost.recordModelCall(handle, {...})` from `lib/cost-tracker.js`.
|
|
84
|
+
- **estimated** (default): the orchestrator inferred token counts from
|
|
85
|
+
byte heuristics (~4 bytes per token). Useful as a fallback when the
|
|
86
|
+
AI tool does not expose usage, but the totals are approximate and
|
|
87
|
+
should not be used for billing or budget enforcement.
|
|
88
|
+
|
|
89
|
+
`--strict` exits non-zero if any record in scope is estimated. Wire it
|
|
90
|
+
into CI once your tooling reliably reports live usage.
|
|
91
|
+
|
|
92
|
+
## Pricing table
|
|
93
|
+
|
|
94
|
+
The default pricing table is the May 2026 ballpark for major models.
|
|
95
|
+
It's approximate; do not use for billing. Customize with
|
|
96
|
+
`--pricing=<file>`:
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"claude-3-5-sonnet": { "in": 3.0, "out": 15.0 },
|
|
101
|
+
"gpt-4o": { "in": 2.5, "out": 10.0 },
|
|
102
|
+
...
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Values are USD per 1M tokens.
|
|
107
|
+
|
|
108
|
+
## Implementation
|
|
109
|
+
|
|
110
|
+
Built-in. Reads events.jsonl via `lib/event-reader.js`; aggregates via
|
|
111
|
+
`lib/cost-tracker.js aggregate(...)`. No agent spawn.
|
|
112
|
+
|
|
113
|
+
## Related
|
|
114
|
+
|
|
115
|
+
- `/god-budget` - view + set context-budget caps
|
|
116
|
+
- `/god-cache-clear` - invalidate cache (next run = no hits)
|
|
117
|
+
- `/god-metrics` - durations + pauses + errors per tier
|
|
118
|
+
- `/god-logs` - timeline of events
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-debug
|
|
3
|
+
description: |
|
|
4
|
+
Systematic 4-phase debugging. Spawns the god-debugger agent in a fresh
|
|
5
|
+
context. Evidence-driven root cause analysis with regression tests.
|
|
6
|
+
|
|
7
|
+
Triggers on: "god debug", "/god-debug", "debug this", "why is this broken", "fix this bug"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /god-debug
|
|
11
|
+
|
|
12
|
+
Spawn the **god-debugger** agent in a fresh context via Task tool.
|
|
13
|
+
|
|
14
|
+
## Setup
|
|
15
|
+
|
|
16
|
+
1. Gather user's bug description (or use the most recent failure context)
|
|
17
|
+
2. Spawn god-debugger with:
|
|
18
|
+
- Bug description
|
|
19
|
+
- Repository context
|
|
20
|
+
- Recent commits (`git log --oneline -20`)
|
|
21
|
+
3. The agent runs the 4-phase process: Observe, Hypothesize, Test, Conclude
|
|
22
|
+
4. The agent writes a regression test FIRST, then the fix
|
|
23
|
+
5. The agent commits with explanation of root cause
|
|
24
|
+
|
|
25
|
+
## Verification
|
|
26
|
+
|
|
27
|
+
After god-debugger returns:
|
|
28
|
+
1. Verify the regression test exists and now passes
|
|
29
|
+
2. Verify the full test suite passes (no regressions)
|
|
30
|
+
3. Verify the commit message explains root cause
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-deploy
|
|
3
|
+
description: |
|
|
4
|
+
Set up deploy pipeline. Spawns the god-deploy-engineer agent in a fresh
|
|
5
|
+
context. Gated on Build.
|
|
6
|
+
|
|
7
|
+
Triggers on: "god deploy", "/god-deploy", "deploy this", "CI/CD", "ship it"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /god-deploy
|
|
11
|
+
|
|
12
|
+
Spawn the **god-deploy-engineer** agent in a fresh context via Task tool.
|
|
13
|
+
|
|
14
|
+
## Setup
|
|
15
|
+
|
|
16
|
+
1. Verify build is complete (`.godpowers/build/STATE.md` exists with passing state).
|
|
17
|
+
2. Verify all tests pass.
|
|
18
|
+
3. Spawn god-deploy-engineer with ARCH and stack DECISION paths.
|
|
19
|
+
4. The agent writes `.godpowers/deploy/STATE.md`.
|
|
20
|
+
|
|
21
|
+
## Verification
|
|
22
|
+
|
|
23
|
+
After god-deploy-engineer returns:
|
|
24
|
+
1. Verify STATE.md exists on disk
|
|
25
|
+
2. Verify rollback procedure has been tested (not paper-only)
|
|
26
|
+
3. Update `.godpowers/PROGRESS.md`: Deploy status = done
|
|
27
|
+
|
|
28
|
+
## On Completion
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
Deploy pipeline complete: .godpowers/deploy/STATE.md
|
|
32
|
+
|
|
33
|
+
Suggested next: /god-observe (wire SLOs, alerts, runbooks)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Re-invocation contract
|
|
38
|
+
|
|
39
|
+
What happens if `/god-deploy` is run when `.godpowers/deploy/STATE.md` already exists:
|
|
40
|
+
|
|
41
|
+
| Existing state | Behavior |
|
|
42
|
+
|---|---|
|
|
43
|
+
| File does not exist | Spawn god-deploy-engineer; produce file; mark sub-step done |
|
|
44
|
+
| File exists, passes lint, state.json says `done` | Pause: ask user (A) re-run anyway with diff preview, (B) treat as imported (no-op), (C) cancel |
|
|
45
|
+
| File exists, fails lint or have-nots | Spawn god-deploy-engineer in update mode with current file + findings as input. Diff preview before overwrite. |
|
|
46
|
+
| File exists, state.json says `pending` | Treat as imported: hash + register, no agent spawn. User can `/god-deploy --force` to re-run. |
|
|
47
|
+
| `--force` flag passed | Snapshot existing file to `.godpowers/.trash/god-deploy-<ts>/`. Spawn agent fresh. |
|
|
48
|
+
| `--dry-run` flag passed | Show what would happen; touch nothing |
|
|
49
|
+
|
|
50
|
+
Snapshots in `.trash/` are recoverable via `/god-restore` for 30 days.
|
|
51
|
+
The reflog records every god-deploy invocation as `op:god-deploy` for `/god-undo`.
|
|
52
|
+
|
|
53
|
+
### Idempotency guarantees
|
|
54
|
+
|
|
55
|
+
- Running `/god-deploy` twice with no user input between them is a no-op
|
|
56
|
+
(second call detects the artifact and pauses).
|
|
57
|
+
- Running `/god-deploy --dry-run` is always read-only.
|
|
58
|
+
- An interrupted `/god-deploy` (agent crashes mid-run) leaves state.json
|
|
59
|
+
with `status: failed` and the artifact path either missing or marked
|
|
60
|
+
for `/god-repair` review. Re-running picks up cleanly.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## Locking
|
|
64
|
+
|
|
65
|
+
The orchestrator acquires a state-lock before this skill mutates anything,
|
|
66
|
+
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
67
|
+
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
68
|
+
same holder; force-reclaimable if stale via `/god-repair`.
|
|
69
|
+
|
|
70
|
+
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
71
|
+
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
72
|
+
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
73
|
+
writer pauses or routes elsewhere via `/god-next`.
|
|
74
|
+
|
|
75
|
+
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
76
|
+
the full contract.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: god-design-impact
|
|
3
|
+
description: |
|
|
4
|
+
Predict the impact of a proposed DESIGN.md change without committing.
|
|
5
|
+
Reports affected components, files, and severity. Useful for "what
|
|
6
|
+
if I make primary darker?" exploration before running god-design.
|
|
7
|
+
|
|
8
|
+
Triggers on: "god design impact", "/god-design-impact", "what changes if",
|
|
9
|
+
"impact analysis", "affected files"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /god-design-impact
|
|
13
|
+
|
|
14
|
+
What-if analysis on DESIGN.md changes. Does NOT modify the design;
|
|
15
|
+
returns a structured report of what would be affected.
|
|
16
|
+
|
|
17
|
+
## Forms
|
|
18
|
+
|
|
19
|
+
| Form | Action |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `/god-design-impact "<plain English change description>"` | Predict + analyze |
|
|
22
|
+
| `/god-design-impact --file <new-design.md>` | Compare current DESIGN.md vs the proposed file |
|
|
23
|
+
| `/god-design-impact --token <path> --new <value>` | Single-token change preview |
|
|
24
|
+
|
|
25
|
+
## Process
|
|
26
|
+
|
|
27
|
+
1. Verify `DESIGN.md` exists. If not: "no design to analyze."
|
|
28
|
+
2. Compute proposed new content:
|
|
29
|
+
- Plain English: paraphrase the change into a token edit (best effort).
|
|
30
|
+
If ambiguous, ask one clarifying question.
|
|
31
|
+
- `--file`: read the candidate file.
|
|
32
|
+
- `--token X --new V`: replace token value in current DESIGN.md.
|
|
33
|
+
3. Call `lib/impact.forDesign(projectRoot, oldContent, newContent)`.
|
|
34
|
+
4. Format the report:
|
|
35
|
+
- Token changes (added / removed / modified)
|
|
36
|
+
- Component changes (added / removed / modified)
|
|
37
|
+
- Affected files (linked via the linkage map)
|
|
38
|
+
- Severity (error if removals, warning if modifications, info if additions)
|
|
39
|
+
5. If `--depth 2` flag given: include transitive dependents via
|
|
40
|
+
`lib/impact.transitive`.
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
/god-design-impact: "make primary darker"
|
|
46
|
+
|
|
47
|
+
Proposed changes:
|
|
48
|
+
- colors.primary: oklch(20% 0.01 250) -> oklch(15% 0.01 250)
|
|
49
|
+
|
|
50
|
+
Token changes (1):
|
|
51
|
+
modified colors.primary oklch(20% 0.01 250) -> oklch(15% 0.01 250)
|
|
52
|
+
|
|
53
|
+
Component changes (0):
|
|
54
|
+
(none directly)
|
|
55
|
+
|
|
56
|
+
Affected files (3):
|
|
57
|
+
src/components/Button.tsx
|
|
58
|
+
src/components/Header.tsx
|
|
59
|
+
src/styles/globals.css
|
|
60
|
+
|
|
61
|
+
Severity: warning (modification, no removals)
|
|
62
|
+
|
|
63
|
+
Transitive (depth 2):
|
|
64
|
+
src/pages/index.tsx (depends on Button, Header)
|
|
65
|
+
|
|
66
|
+
Recommendation: Run /god-design with this change to apply.
|
|
67
|
+
god-design-reviewer will gate via two-stage review.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## When this skill helps
|
|
71
|
+
|
|
72
|
+
- "What if we tone down the bold accent?"
|
|
73
|
+
- "Can I rename `card` to `panel`?"
|
|
74
|
+
- "If I remove `colors.tertiary`, what breaks?"
|
|
75
|
+
- "Show me before I commit."
|
|
76
|
+
|
|
77
|
+
## What it does NOT do
|
|
78
|
+
|
|
79
|
+
- Apply the change (use `/god-design` for that)
|
|
80
|
+
- Run impeccable critique (that's part of the actual review gate)
|
|
81
|
+
- Persist anything to disk (purely informational)
|
|
82
|
+
|
|
83
|
+
## Output
|
|
84
|
+
|
|
85
|
+
No artifact changes. No state.json updates. Findings to stdout (or JSON
|
|
86
|
+
with `--json`).
|