@therocketcode/gsd-core 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +23 -0
- package/GEMINI.md +53 -0
- package/LICENSE +21 -0
- package/README.ja-JP.md +125 -0
- package/README.ko-KR.md +125 -0
- package/README.md +144 -0
- package/README.pt-BR.md +125 -0
- package/README.zh-CN.md +125 -0
- package/agents/gsd-advisor-researcher.md +108 -0
- package/agents/gsd-ai-researcher.md +114 -0
- package/agents/gsd-assumptions-analyzer.md +105 -0
- package/agents/gsd-code-fixer.md +668 -0
- package/agents/gsd-code-reviewer.md +387 -0
- package/agents/gsd-codebase-mapper.md +853 -0
- package/agents/gsd-debug-session-manager.md +314 -0
- package/agents/gsd-debugger.md +1452 -0
- package/agents/gsd-doc-classifier.md +168 -0
- package/agents/gsd-doc-synthesizer.md +204 -0
- package/agents/gsd-doc-verifier.md +217 -0
- package/agents/gsd-doc-writer.md +616 -0
- package/agents/gsd-domain-researcher.md +147 -0
- package/agents/gsd-eval-auditor.md +191 -0
- package/agents/gsd-eval-planner.md +154 -0
- package/agents/gsd-executor.md +785 -0
- package/agents/gsd-framework-selector.md +160 -0
- package/agents/gsd-integration-checker.md +470 -0
- package/agents/gsd-intel-updater.md +342 -0
- package/agents/gsd-nyquist-auditor.md +203 -0
- package/agents/gsd-pattern-mapper.md +335 -0
- package/agents/gsd-phase-researcher.md +867 -0
- package/agents/gsd-plan-checker.md +978 -0
- package/agents/gsd-planner.md +1204 -0
- package/agents/gsd-project-researcher.md +611 -0
- package/agents/gsd-research-synthesizer.md +259 -0
- package/agents/gsd-roadmapper.md +688 -0
- package/agents/gsd-security-auditor.md +155 -0
- package/agents/gsd-ui-auditor.md +495 -0
- package/agents/gsd-ui-checker.md +309 -0
- package/agents/gsd-ui-researcher.md +374 -0
- package/agents/gsd-user-profiler.md +171 -0
- package/agents/gsd-verifier.md +923 -0
- package/assets/gsd-logo-2000-transparent.png +0 -0
- package/assets/gsd-logo-2000-transparent.svg +17 -0
- package/assets/gsd-logo-2000.png +0 -0
- package/assets/gsd-logo-2000.svg +21 -0
- package/assets/terminal.svg +68 -0
- package/bin/install.js +12726 -0
- package/bin/lib/ui-safety-gate.cjs +107 -0
- package/commands/gsd/add-tests.md +42 -0
- package/commands/gsd/ai-integration-phase.md +37 -0
- package/commands/gsd/audit-fix.md +34 -0
- package/commands/gsd/audit-milestone.md +37 -0
- package/commands/gsd/audit-uat.md +24 -0
- package/commands/gsd/autonomous.md +48 -0
- package/commands/gsd/capture.md +62 -0
- package/commands/gsd/cleanup.md +24 -0
- package/commands/gsd/code-review.md +59 -0
- package/commands/gsd/complete-milestone.md +143 -0
- package/commands/gsd/config.md +56 -0
- package/commands/gsd/debug.md +52 -0
- package/commands/gsd/discover-product.md +65 -0
- package/commands/gsd/discuss-phase.md +77 -0
- package/commands/gsd/docs-update.md +49 -0
- package/commands/gsd/eval-review.md +33 -0
- package/commands/gsd/execute-phase.md +66 -0
- package/commands/gsd/explore.md +27 -0
- package/commands/gsd/extract-learnings.md +23 -0
- package/commands/gsd/fast.md +31 -0
- package/commands/gsd/forensics.md +57 -0
- package/commands/gsd/graphify.md +204 -0
- package/commands/gsd/health.md +31 -0
- package/commands/gsd/help.md +28 -0
- package/commands/gsd/import.md +45 -0
- package/commands/gsd/inbox.md +39 -0
- package/commands/gsd/ingest-docs.md +42 -0
- package/commands/gsd/manager.md +45 -0
- package/commands/gsd/map-codebase.md +83 -0
- package/commands/gsd/milestone-summary.md +51 -0
- package/commands/gsd/model-domain.md +65 -0
- package/commands/gsd/mvp-phase.md +45 -0
- package/commands/gsd/new-milestone.md +45 -0
- package/commands/gsd/new-project.md +47 -0
- package/commands/gsd/ns-context.md +23 -0
- package/commands/gsd/ns-ideate.md +24 -0
- package/commands/gsd/ns-manage.md +29 -0
- package/commands/gsd/ns-project.md +22 -0
- package/commands/gsd/ns-review.md +26 -0
- package/commands/gsd/ns-workflow.md +28 -0
- package/commands/gsd/pause-work.md +43 -0
- package/commands/gsd/phase.md +56 -0
- package/commands/gsd/plan-phase.md +64 -0
- package/commands/gsd/plan-review-convergence.md +59 -0
- package/commands/gsd/pr-branch.md +26 -0
- package/commands/gsd/profile-user.md +46 -0
- package/commands/gsd/progress.md +48 -0
- package/commands/gsd/quick.md +174 -0
- package/commands/gsd/recommend-architecture.md +64 -0
- package/commands/gsd/resume-work.md +30 -0
- package/commands/gsd/review-backlog.md +63 -0
- package/commands/gsd/review.md +42 -0
- package/commands/gsd/secure-phase.md +36 -0
- package/commands/gsd/settings.md +29 -0
- package/commands/gsd/ship.md +24 -0
- package/commands/gsd/sketch.md +60 -0
- package/commands/gsd/spec-phase.md +63 -0
- package/commands/gsd/spike.md +57 -0
- package/commands/gsd/stats.md +20 -0
- package/commands/gsd/surface.md +155 -0
- package/commands/gsd/testing-strategy.md +65 -0
- package/commands/gsd/thread.md +24 -0
- package/commands/gsd/ui-phase.md +35 -0
- package/commands/gsd/ui-review.md +33 -0
- package/commands/gsd/ultraplan-phase.md +34 -0
- package/commands/gsd/undo.md +35 -0
- package/commands/gsd/update.md +49 -0
- package/commands/gsd/validate-phase.md +36 -0
- package/commands/gsd/verify-work.md +39 -0
- package/commands/gsd/workspace.md +52 -0
- package/commands/gsd/workstreams.md +70 -0
- package/gemini-extension.json +6 -0
- package/gsd-core/bin/check-latest-version.cjs +161 -0
- package/gsd-core/bin/gsd-tools.cjs +1928 -0
- package/gsd-core/bin/lib/active-workstream-store.cjs +291 -0
- package/gsd-core/bin/lib/adr-parser.cjs +399 -0
- package/gsd-core/bin/lib/agent-command-router.cjs +68 -0
- package/gsd-core/bin/lib/artifacts.cjs +51 -0
- package/gsd-core/bin/lib/audit.cjs +743 -0
- package/gsd-core/bin/lib/check-command-router.cjs +343 -0
- package/gsd-core/bin/lib/cjs-command-router-adapter.cjs +81 -0
- package/gsd-core/bin/lib/cli-exit.cjs +42 -0
- package/gsd-core/bin/lib/clock.cjs +95 -0
- package/gsd-core/bin/lib/clusters.cjs +132 -0
- package/gsd-core/bin/lib/code-review-flags.cjs +59 -0
- package/gsd-core/bin/lib/command-aliases.cjs +809 -0
- package/gsd-core/bin/lib/command-arg-projection.cjs +55 -0
- package/gsd-core/bin/lib/command-routing-hub.cjs +300 -0
- package/gsd-core/bin/lib/commands.cjs +1203 -0
- package/gsd-core/bin/lib/config-schema.cjs +29 -0
- package/gsd-core/bin/lib/config-types.cjs +19 -0
- package/gsd-core/bin/lib/config.cjs +738 -0
- package/gsd-core/bin/lib/configuration.cjs +239 -0
- package/gsd-core/bin/lib/context-utilization.cjs +48 -0
- package/gsd-core/bin/lib/core.cjs +2051 -0
- package/gsd-core/bin/lib/decisions.cjs +118 -0
- package/gsd-core/bin/lib/docs.cjs +252 -0
- package/gsd-core/bin/lib/drift.cjs +364 -0
- package/gsd-core/bin/lib/fallow-runner.cjs +115 -0
- package/gsd-core/bin/lib/frontmatter.cjs +442 -0
- package/gsd-core/bin/lib/gap-checker.cjs +257 -0
- package/gsd-core/bin/lib/graphify.cjs +496 -0
- package/gsd-core/bin/lib/gsd2-import.cjs +456 -0
- package/gsd-core/bin/lib/init-command-router.cjs +62 -0
- package/gsd-core/bin/lib/init.cjs +1815 -0
- package/gsd-core/bin/lib/install-profiles.cjs +584 -0
- package/gsd-core/bin/lib/installer-migration-authoring.cjs +122 -0
- package/gsd-core/bin/lib/installer-migration-report.cjs +350 -0
- package/gsd-core/bin/lib/installer-migrations/000-first-time-baseline.cjs +218 -0
- package/gsd-core/bin/lib/installer-migrations/001-legacy-orphan-files.cjs +48 -0
- package/gsd-core/bin/lib/installer-migrations/002-codex-legacy-hooks-json.cjs +94 -0
- package/gsd-core/bin/lib/installer-migrations/003-rename-get-shit-done-to-gsd-core.cjs +108 -0
- package/gsd-core/bin/lib/installer-migrations.cjs +823 -0
- package/gsd-core/bin/lib/intel.cjs +590 -0
- package/gsd-core/bin/lib/learnings.cjs +270 -0
- package/gsd-core/bin/lib/legacy-cleanup.cjs +253 -0
- package/gsd-core/bin/lib/milestone.cjs +373 -0
- package/gsd-core/bin/lib/model-catalog.cjs +154 -0
- package/gsd-core/bin/lib/model-profiles.cjs +24 -0
- package/gsd-core/bin/lib/observability/event.cjs +51 -0
- package/gsd-core/bin/lib/observability/logger.cjs +146 -0
- package/gsd-core/bin/lib/observability/redaction.cjs +48 -0
- package/gsd-core/bin/lib/package-identity.cjs +35 -0
- package/gsd-core/bin/lib/package-legitimacy.cjs +368 -0
- package/gsd-core/bin/lib/phase-command-router.cjs +189 -0
- package/gsd-core/bin/lib/phase-lifecycle.cjs +74 -0
- package/gsd-core/bin/lib/phase.cjs +1307 -0
- package/gsd-core/bin/lib/phases-command-router.cjs +43 -0
- package/gsd-core/bin/lib/plan-scan.cjs +91 -0
- package/gsd-core/bin/lib/planning-workspace.cjs +245 -0
- package/gsd-core/bin/lib/profile-output.cjs +1120 -0
- package/gsd-core/bin/lib/profile-pipeline.cjs +517 -0
- package/gsd-core/bin/lib/project-root.cjs +119 -0
- package/gsd-core/bin/lib/prompt-budget.cjs +305 -0
- package/gsd-core/bin/lib/research-provider.cjs +137 -0
- package/gsd-core/bin/lib/research-store.cjs +167 -0
- package/gsd-core/bin/lib/review-reviewer-selection.cjs +121 -0
- package/gsd-core/bin/lib/roadmap-command-router.cjs +166 -0
- package/gsd-core/bin/lib/roadmap-upgrade.cjs +476 -0
- package/gsd-core/bin/lib/roadmap.cjs +600 -0
- package/gsd-core/bin/lib/runtime-artifact-layout.cjs +312 -0
- package/gsd-core/bin/lib/runtime-config-adapter-registry.cjs +56 -0
- package/gsd-core/bin/lib/runtime-homes.cjs +190 -0
- package/gsd-core/bin/lib/runtime-name-policy.cjs +96 -0
- package/gsd-core/bin/lib/runtime-slash.cjs +119 -0
- package/gsd-core/bin/lib/schema-detect.cjs +159 -0
- package/gsd-core/bin/lib/secrets.cjs +34 -0
- package/gsd-core/bin/lib/security.cjs +480 -0
- package/gsd-core/bin/lib/semver-compare.cjs +42 -0
- package/gsd-core/bin/lib/shell-command-projection.cjs +533 -0
- package/gsd-core/bin/lib/state-command-router.cjs +160 -0
- package/gsd-core/bin/lib/state-document.cjs +259 -0
- package/gsd-core/bin/lib/state.cjs +2010 -0
- package/gsd-core/bin/lib/surface.cjs +449 -0
- package/gsd-core/bin/lib/task-command-router.cjs +85 -0
- package/gsd-core/bin/lib/template.cjs +237 -0
- package/gsd-core/bin/lib/uat.cjs +297 -0
- package/gsd-core/bin/lib/ui-safety-gate.cjs +98 -0
- package/gsd-core/bin/lib/update-context.cjs +218 -0
- package/gsd-core/bin/lib/validate-command-router.cjs +91 -0
- package/gsd-core/bin/lib/validate.cjs +112 -0
- package/gsd-core/bin/lib/verification-command-router.cjs +31 -0
- package/gsd-core/bin/lib/verification.cjs +193 -0
- package/gsd-core/bin/lib/verify-command-router.cjs +44 -0
- package/gsd-core/bin/lib/verify.cjs +1451 -0
- package/gsd-core/bin/lib/workstream-inventory-builder.cjs +81 -0
- package/gsd-core/bin/lib/workstream-inventory.cjs +147 -0
- package/gsd-core/bin/lib/workstream-name-policy.cjs +91 -0
- package/gsd-core/bin/lib/workstream.cjs +380 -0
- package/gsd-core/bin/lib/worktree-base-ref.cjs +325 -0
- package/gsd-core/bin/lib/worktree-safety.cjs +943 -0
- package/gsd-core/bin/shared/config-defaults.manifest.json +98 -0
- package/gsd-core/bin/shared/config-schema.manifest.json +192 -0
- package/gsd-core/bin/shared/model-catalog.json +149 -0
- package/gsd-core/bin/shared/runtime-aliases.manifest.json +75 -0
- package/gsd-core/bin/verify-reapply-patches.cjs +349 -0
- package/gsd-core/contexts/dev.md +21 -0
- package/gsd-core/contexts/research.md +22 -0
- package/gsd-core/contexts/review.md +23 -0
- package/gsd-core/references/agent-contracts.md +79 -0
- package/gsd-core/references/ai-evals.md +156 -0
- package/gsd-core/references/ai-frameworks.md +186 -0
- package/gsd-core/references/architecture-decision.md +74 -0
- package/gsd-core/references/artifact-types.md +131 -0
- package/gsd-core/references/auth-in-tests.md +91 -0
- package/gsd-core/references/autonomous-smart-discuss.md +277 -0
- package/gsd-core/references/checkpoints.md +814 -0
- package/gsd-core/references/common-bug-patterns.md +114 -0
- package/gsd-core/references/context-budget.md +85 -0
- package/gsd-core/references/continuation-format.md +253 -0
- package/gsd-core/references/db-test-isolation.md +54 -0
- package/gsd-core/references/debugger-philosophy.md +76 -0
- package/gsd-core/references/decimal-phase-calculation.md +64 -0
- package/gsd-core/references/doc-conflict-engine.md +91 -0
- package/gsd-core/references/domain-modeling.md +80 -0
- package/gsd-core/references/domain-probes.md +125 -0
- package/gsd-core/references/e2e-tiering.md +35 -0
- package/gsd-core/references/execute-mvp-tdd.md +81 -0
- package/gsd-core/references/executor-examples.md +110 -0
- package/gsd-core/references/few-shot-examples/plan-checker.md +73 -0
- package/gsd-core/references/few-shot-examples/verifier.md +109 -0
- package/gsd-core/references/flaky-test-checklist.md +22 -0
- package/gsd-core/references/gate-prompts.md +100 -0
- package/gsd-core/references/gates.md +70 -0
- package/gsd-core/references/git-integration.md +298 -0
- package/gsd-core/references/git-planning-commit.md +40 -0
- package/gsd-core/references/ios-scaffold.md +123 -0
- package/gsd-core/references/mandatory-initial-read.md +2 -0
- package/gsd-core/references/model-profile-resolution.md +38 -0
- package/gsd-core/references/model-profiles.md +245 -0
- package/gsd-core/references/mvp-concepts.md +49 -0
- package/gsd-core/references/phase-argument-parsing.md +61 -0
- package/gsd-core/references/planner-antipatterns.md +89 -0
- package/gsd-core/references/planner-chunked.md +49 -0
- package/gsd-core/references/planner-gap-closure.md +62 -0
- package/gsd-core/references/planner-graphify-auto-update.md +67 -0
- package/gsd-core/references/planner-human-verify-mode.md +57 -0
- package/gsd-core/references/planner-interface-context.md +62 -0
- package/gsd-core/references/planner-load-graph-context.md +36 -0
- package/gsd-core/references/planner-mvp-mode.md +53 -0
- package/gsd-core/references/planner-reviews.md +39 -0
- package/gsd-core/references/planner-revision.md +87 -0
- package/gsd-core/references/planner-source-audit.md +73 -0
- package/gsd-core/references/planning-config.md +473 -0
- package/gsd-core/references/product-discovery.md +49 -0
- package/gsd-core/references/project-skills-discovery.md +19 -0
- package/gsd-core/references/questioning.md +162 -0
- package/gsd-core/references/realistic-test-data.md +44 -0
- package/gsd-core/references/research-documentation-lookup.md +29 -0
- package/gsd-core/references/research-philosophy.md +29 -0
- package/gsd-core/references/research-verification-protocol.md +27 -0
- package/gsd-core/references/revision-loop.md +97 -0
- package/gsd-core/references/scout-codebase.md +51 -0
- package/gsd-core/references/skeleton-template.md +48 -0
- package/gsd-core/references/sketch-interactivity.md +41 -0
- package/gsd-core/references/sketch-theme-system.md +94 -0
- package/gsd-core/references/sketch-tooling.md +45 -0
- package/gsd-core/references/sketch-variant-patterns.md +81 -0
- package/gsd-core/references/spidr-splitting.md +69 -0
- package/gsd-core/references/tdd.md +330 -0
- package/gsd-core/references/test-containers.md +55 -0
- package/gsd-core/references/test-strategy.md +75 -0
- package/gsd-core/references/thinking-models-debug.md +44 -0
- package/gsd-core/references/thinking-models-execution.md +50 -0
- package/gsd-core/references/thinking-models-planning.md +62 -0
- package/gsd-core/references/thinking-models-research.md +50 -0
- package/gsd-core/references/thinking-models-verification.md +55 -0
- package/gsd-core/references/thinking-partner.md +96 -0
- package/gsd-core/references/ui-brand.md +162 -0
- package/gsd-core/references/universal-anti-patterns.md +63 -0
- package/gsd-core/references/user-profiling.md +681 -0
- package/gsd-core/references/user-story-template.md +58 -0
- package/gsd-core/references/verification-overrides.md +227 -0
- package/gsd-core/references/verification-patterns.md +612 -0
- package/gsd-core/references/verify-mvp-mode.md +85 -0
- package/gsd-core/references/workstream-flag.md +111 -0
- package/gsd-core/references/worktree-branch-check.md +38 -0
- package/gsd-core/references/worktree-path-safety.md +67 -0
- package/gsd-core/templates/AI-SPEC.md +246 -0
- package/gsd-core/templates/DEBUG.md +169 -0
- package/gsd-core/templates/README.md +77 -0
- package/gsd-core/templates/SECURITY.md +61 -0
- package/gsd-core/templates/UAT.md +265 -0
- package/gsd-core/templates/UI-SPEC.md +100 -0
- package/gsd-core/templates/VALIDATION.md +76 -0
- package/gsd-core/templates/adr.md +58 -0
- package/gsd-core/templates/claude-md.md +145 -0
- package/gsd-core/templates/codebase/architecture.md +255 -0
- package/gsd-core/templates/codebase/concerns.md +310 -0
- package/gsd-core/templates/codebase/conventions.md +307 -0
- package/gsd-core/templates/codebase/integrations.md +280 -0
- package/gsd-core/templates/codebase/stack.md +186 -0
- package/gsd-core/templates/codebase/structure.md +285 -0
- package/gsd-core/templates/codebase/testing.md +480 -0
- package/gsd-core/templates/config.json +62 -0
- package/gsd-core/templates/context.md +352 -0
- package/gsd-core/templates/continue-here.md +78 -0
- package/gsd-core/templates/copilot-instructions.md +7 -0
- package/gsd-core/templates/debug-subagent-prompt.md +91 -0
- package/gsd-core/templates/dev-preferences.md +21 -0
- package/gsd-core/templates/discovery.md +146 -0
- package/gsd-core/templates/discussion-log.md +63 -0
- package/gsd-core/templates/domain-model.md +54 -0
- package/gsd-core/templates/milestone-archive.md +123 -0
- package/gsd-core/templates/milestone.md +115 -0
- package/gsd-core/templates/phase-prompt.md +610 -0
- package/gsd-core/templates/planner-subagent-prompt.md +117 -0
- package/gsd-core/templates/product-brief.md +55 -0
- package/gsd-core/templates/project.md +186 -0
- package/gsd-core/templates/requirements.md +231 -0
- package/gsd-core/templates/research-project/ARCHITECTURE.md +204 -0
- package/gsd-core/templates/research-project/FEATURES.md +147 -0
- package/gsd-core/templates/research-project/PITFALLS.md +200 -0
- package/gsd-core/templates/research-project/STACK.md +120 -0
- package/gsd-core/templates/research-project/SUMMARY.md +170 -0
- package/gsd-core/templates/research.md +592 -0
- package/gsd-core/templates/retrospective.md +54 -0
- package/gsd-core/templates/roadmap.md +202 -0
- package/gsd-core/templates/spec.md +307 -0
- package/gsd-core/templates/state.md +195 -0
- package/gsd-core/templates/summary-complex.md +59 -0
- package/gsd-core/templates/summary-minimal.md +41 -0
- package/gsd-core/templates/summary-standard.md +48 -0
- package/gsd-core/templates/summary.md +248 -0
- package/gsd-core/templates/test-strategy.md +50 -0
- package/gsd-core/templates/user-profile.md +146 -0
- package/gsd-core/templates/user-setup.md +311 -0
- package/gsd-core/templates/verification-report.md +322 -0
- package/gsd-core/workflows/_runtime-launcher.snippet.sh +1 -0
- package/gsd-core/workflows/add-backlog.md +91 -0
- package/gsd-core/workflows/add-phase.md +113 -0
- package/gsd-core/workflows/add-tests.md +355 -0
- package/gsd-core/workflows/add-todo.md +161 -0
- package/gsd-core/workflows/ai-integration-phase.md +295 -0
- package/gsd-core/workflows/analyze-dependencies.md +96 -0
- package/gsd-core/workflows/audit-fix.md +178 -0
- package/gsd-core/workflows/audit-milestone.md +360 -0
- package/gsd-core/workflows/audit-uat.md +110 -0
- package/gsd-core/workflows/autonomous.md +797 -0
- package/gsd-core/workflows/check-todos.md +180 -0
- package/gsd-core/workflows/cleanup.md +195 -0
- package/gsd-core/workflows/code-review-fix.md +502 -0
- package/gsd-core/workflows/code-review.md +658 -0
- package/gsd-core/workflows/complete-milestone.md +855 -0
- package/gsd-core/workflows/debug.md +237 -0
- package/gsd-core/workflows/diagnose-issues.md +245 -0
- package/gsd-core/workflows/discover-product.md +112 -0
- package/gsd-core/workflows/discovery-phase.md +291 -0
- package/gsd-core/workflows/discuss-phase/modes/advisor.md +176 -0
- package/gsd-core/workflows/discuss-phase/modes/all.md +28 -0
- package/gsd-core/workflows/discuss-phase/modes/analyze.md +44 -0
- package/gsd-core/workflows/discuss-phase/modes/auto.md +57 -0
- package/gsd-core/workflows/discuss-phase/modes/batch.md +52 -0
- package/gsd-core/workflows/discuss-phase/modes/chain.md +98 -0
- package/gsd-core/workflows/discuss-phase/modes/default.md +141 -0
- package/gsd-core/workflows/discuss-phase/modes/power.md +44 -0
- package/gsd-core/workflows/discuss-phase/modes/text.md +55 -0
- package/gsd-core/workflows/discuss-phase/templates/checkpoint.json +18 -0
- package/gsd-core/workflows/discuss-phase/templates/context.md +136 -0
- package/gsd-core/workflows/discuss-phase/templates/discussion-log.md +50 -0
- package/gsd-core/workflows/discuss-phase-assumptions.md +675 -0
- package/gsd-core/workflows/discuss-phase-power.md +291 -0
- package/gsd-core/workflows/discuss-phase.md +499 -0
- package/gsd-core/workflows/do.md +111 -0
- package/gsd-core/workflows/docs-update.md +1176 -0
- package/gsd-core/workflows/edit-phase.md +295 -0
- package/gsd-core/workflows/eval-review.md +156 -0
- package/gsd-core/workflows/execute-phase/steps/codebase-drift-gate.md +95 -0
- package/gsd-core/workflows/execute-phase/steps/per-plan-worktree-gate.md +94 -0
- package/gsd-core/workflows/execute-phase/steps/post-merge-gate.md +117 -0
- package/gsd-core/workflows/execute-phase.md +1752 -0
- package/gsd-core/workflows/execute-plan.md +526 -0
- package/gsd-core/workflows/explore.md +146 -0
- package/gsd-core/workflows/extract-learnings.md +243 -0
- package/gsd-core/workflows/fast.md +124 -0
- package/gsd-core/workflows/forensics.md +279 -0
- package/gsd-core/workflows/graduation.md +196 -0
- package/gsd-core/workflows/health.md +224 -0
- package/gsd-core/workflows/help/modes/brief.md +22 -0
- package/gsd-core/workflows/help/modes/default.md +50 -0
- package/gsd-core/workflows/help/modes/full.md +789 -0
- package/gsd-core/workflows/help/modes/topic.md +74 -0
- package/gsd-core/workflows/help.md +24 -0
- package/gsd-core/workflows/import.md +256 -0
- package/gsd-core/workflows/inbox.md +387 -0
- package/gsd-core/workflows/ingest-docs.md +340 -0
- package/gsd-core/workflows/insert-phase.md +152 -0
- package/gsd-core/workflows/list-phase-assumptions.md +178 -0
- package/gsd-core/workflows/list-workspaces.md +57 -0
- package/gsd-core/workflows/manager.md +393 -0
- package/gsd-core/workflows/map-codebase.md +446 -0
- package/gsd-core/workflows/milestone-summary.md +224 -0
- package/gsd-core/workflows/model-domain.md +162 -0
- package/gsd-core/workflows/mvp-phase.md +222 -0
- package/gsd-core/workflows/new-milestone.md +635 -0
- package/gsd-core/workflows/new-project.md +1555 -0
- package/gsd-core/workflows/new-workspace.md +240 -0
- package/gsd-core/workflows/next.md +299 -0
- package/gsd-core/workflows/node-repair.md +92 -0
- package/gsd-core/workflows/note.md +158 -0
- package/gsd-core/workflows/pause-work.md +244 -0
- package/gsd-core/workflows/plan-milestone-gaps.md +281 -0
- package/gsd-core/workflows/plan-phase.md +1814 -0
- package/gsd-core/workflows/plan-review-convergence.md +346 -0
- package/gsd-core/workflows/plant-seed.md +230 -0
- package/gsd-core/workflows/pr-branch.md +157 -0
- package/gsd-core/workflows/profile-user.md +453 -0
- package/gsd-core/workflows/progress.md +699 -0
- package/gsd-core/workflows/quick.md +1017 -0
- package/gsd-core/workflows/reapply-patches.md +426 -0
- package/gsd-core/workflows/recommend-architecture.md +135 -0
- package/gsd-core/workflows/remove-phase.md +156 -0
- package/gsd-core/workflows/remove-workspace.md +108 -0
- package/gsd-core/workflows/resume-project.md +332 -0
- package/gsd-core/workflows/review.md +748 -0
- package/gsd-core/workflows/scan.md +107 -0
- package/gsd-core/workflows/secure-phase.md +182 -0
- package/gsd-core/workflows/session-report.md +146 -0
- package/gsd-core/workflows/settings-advanced.md +810 -0
- package/gsd-core/workflows/settings-integrations.md +312 -0
- package/gsd-core/workflows/settings.md +566 -0
- package/gsd-core/workflows/ship.md +405 -0
- package/gsd-core/workflows/sketch-wrap-up.md +286 -0
- package/gsd-core/workflows/sketch.md +361 -0
- package/gsd-core/workflows/spec-phase.md +263 -0
- package/gsd-core/workflows/spike-wrap-up.md +307 -0
- package/gsd-core/workflows/spike.md +453 -0
- package/gsd-core/workflows/stats.md +80 -0
- package/gsd-core/workflows/sync-skills.md +182 -0
- package/gsd-core/workflows/testing-strategy.md +122 -0
- package/gsd-core/workflows/thread.md +222 -0
- package/gsd-core/workflows/transition.md +694 -0
- package/gsd-core/workflows/ui-phase.md +328 -0
- package/gsd-core/workflows/ui-review.md +193 -0
- package/gsd-core/workflows/ultraplan-phase.md +199 -0
- package/gsd-core/workflows/undo.md +314 -0
- package/gsd-core/workflows/update.md +496 -0
- package/gsd-core/workflows/validate-phase.md +181 -0
- package/gsd-core/workflows/verify-phase.md +544 -0
- package/gsd-core/workflows/verify-work.md +781 -0
- package/hooks/dist/gsd-check-update-worker.js +108 -0
- package/hooks/dist/gsd-check-update.js +66 -0
- package/hooks/dist/gsd-config-reload.js +133 -0
- package/hooks/dist/gsd-context-monitor.js +195 -0
- package/hooks/dist/gsd-cursor-post-tool.js +75 -0
- package/hooks/dist/gsd-cursor-session-start.js +52 -0
- package/hooks/dist/gsd-graphify-update.sh +158 -0
- package/hooks/dist/gsd-phase-boundary.sh +47 -0
- package/hooks/dist/gsd-prompt-guard.js +97 -0
- package/hooks/dist/gsd-read-guard.js +101 -0
- package/hooks/dist/gsd-read-injection-scanner.js +203 -0
- package/hooks/dist/gsd-session-state.sh +59 -0
- package/hooks/dist/gsd-statusline.js +566 -0
- package/hooks/dist/gsd-update-banner.js +138 -0
- package/hooks/dist/gsd-validate-commit.sh +57 -0
- package/hooks/dist/gsd-workflow-guard.js +167 -0
- package/hooks/dist/gsd-worktree-path-guard.js +169 -0
- package/hooks/dist/lib/git-cmd.js +150 -0
- package/hooks/dist/lib/gsd-graphify-rebuild.sh +65 -0
- package/hooks/dist/managed-hooks-registry.cjs +38 -0
- package/hooks/gsd-check-update-worker.js +108 -0
- package/hooks/gsd-check-update.js +66 -0
- package/hooks/gsd-config-reload.js +133 -0
- package/hooks/gsd-context-monitor.js +195 -0
- package/hooks/gsd-cursor-post-tool.js +75 -0
- package/hooks/gsd-cursor-session-start.js +52 -0
- package/hooks/gsd-graphify-update.sh +158 -0
- package/hooks/gsd-phase-boundary.sh +47 -0
- package/hooks/gsd-prompt-guard.js +97 -0
- package/hooks/gsd-read-guard.js +101 -0
- package/hooks/gsd-read-injection-scanner.js +203 -0
- package/hooks/gsd-session-state.sh +59 -0
- package/hooks/gsd-statusline.js +566 -0
- package/hooks/gsd-update-banner.js +138 -0
- package/hooks/gsd-validate-commit.sh +57 -0
- package/hooks/gsd-workflow-guard.js +167 -0
- package/hooks/gsd-worktree-path-guard.js +169 -0
- package/hooks/hooks.json +69 -0
- package/hooks/lib/git-cmd.js +150 -0
- package/hooks/lib/gsd-graphify-rebuild.sh +65 -0
- package/hooks/managed-hooks-registry.cjs +38 -0
- package/package.json +115 -0
- package/scripts/affected-tests-lib.cjs +542 -0
- package/scripts/audit-workflow-script-paths.cjs +73 -0
- package/scripts/base64-scan.sh +351 -0
- package/scripts/build-hooks.js +247 -0
- package/scripts/changeset/README.md +129 -0
- package/scripts/changeset/cli.cjs +590 -0
- package/scripts/changeset/github-release-notes.cjs +199 -0
- package/scripts/changeset/lint.cjs +111 -0
- package/scripts/changeset/new.cjs +137 -0
- package/scripts/changeset/parse.cjs +114 -0
- package/scripts/changeset/render.cjs +34 -0
- package/scripts/changeset/serialize.cjs +130 -0
- package/scripts/check-alias-drift.cjs +114 -0
- package/scripts/check-env.cjs +312 -0
- package/scripts/check-npm-integrity.cjs +215 -0
- package/scripts/ci-guard-runner.cjs +22 -0
- package/scripts/ci-prepare-test-scope.cjs +51 -0
- package/scripts/ci-rebase-check.cjs +86 -0
- package/scripts/ci-test-scope.cjs +431 -0
- package/scripts/command-contract-helpers.cjs +64 -0
- package/scripts/diff-touches-shipped-paths.cjs +155 -0
- package/scripts/fix-slash-commands.cjs +147 -0
- package/scripts/gen-inventory-manifest.cjs +115 -0
- package/scripts/gen-research-agents.cjs +276 -0
- package/scripts/generate-package-identity.cjs +125 -0
- package/scripts/issue-dedupe.cjs +278 -0
- package/scripts/lib/allowlist-ratchet.cjs +136 -0
- package/scripts/lib/cli-exit.cjs +56 -0
- package/scripts/lint-command-contract.cjs +114 -0
- package/scripts/lint-descriptions.cjs +87 -0
- package/scripts/lint-docs-required.cjs +222 -0
- package/scripts/lint-legacy-dir-name.cjs +160 -0
- package/scripts/lint-package-identity-drift.cjs +141 -0
- package/scripts/lint-pr-check-project-dir.cjs +99 -0
- package/scripts/lint-shell-command-projection-drift.cjs +62 -0
- package/scripts/lint-skill-deps.cjs +185 -0
- package/scripts/lint-test-file-count.allowlist.json +135 -0
- package/scripts/lint-test-file-count.cjs +246 -0
- package/scripts/mutation-matrix.cjs +222 -0
- package/scripts/pr-template-policy.cjs +268 -0
- package/scripts/prompt-injection-scan.sh +207 -0
- package/scripts/release-notes/discord-release-summary.cjs +373 -0
- package/scripts/release-notes/format-github-release-notes.cjs +261 -0
- package/scripts/release-tarball-smoke.cjs +629 -0
- package/scripts/research-profiles.cjs +149 -0
- package/scripts/run-affected-tests.cjs +7 -0
- package/scripts/run-cross-platform-tests.cjs +67 -0
- package/scripts/run-tests.cjs +315 -0
- package/scripts/secret-scan-lint.sh +231 -0
- package/scripts/secret-scan.sh +358 -0
- package/scripts/setup-branch-protection.sh +236 -0
- package/scripts/strip-prose-atrefs.cjs +106 -0
- package/scripts/sync-manifest-versions.cjs +119 -0
- package/scripts/sync-rulesets.sh +34 -0
- package/scripts/sync-runtime-launcher.cjs +399 -0
- package/scripts/test-failure-reasons.cjs +34 -0
- package/scripts/verify-npm-publish.cjs +240 -0
- package/scripts/workflow-policy.cjs +450 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<questioning_guide>
|
|
2
|
+
|
|
3
|
+
Project initialization is dream extraction, not requirements gathering. You're helping the user discover and articulate what they want to build. This isn't a contract negotiation — it's collaborative thinking.
|
|
4
|
+
|
|
5
|
+
<philosophy>
|
|
6
|
+
|
|
7
|
+
**You are a thinking partner, not an interviewer.**
|
|
8
|
+
|
|
9
|
+
The user often has a fuzzy idea. Your job is to help them sharpen it. Ask questions that make them think "oh, I hadn't considered that" or "yes, that's exactly what I mean."
|
|
10
|
+
|
|
11
|
+
Don't interrogate. Collaborate. Don't follow a script. Follow the thread.
|
|
12
|
+
|
|
13
|
+
</philosophy>
|
|
14
|
+
|
|
15
|
+
<the_goal>
|
|
16
|
+
|
|
17
|
+
By the end of questioning, you need enough clarity to write a PROJECT.md that downstream phases can act on:
|
|
18
|
+
|
|
19
|
+
- **Research** needs: what domain to research, what the user already knows, what unknowns exist
|
|
20
|
+
- **Requirements** needs: clear enough vision to scope v1 features
|
|
21
|
+
- **Roadmap** needs: clear enough vision to decompose into phases, what "done" looks like
|
|
22
|
+
- **plan-phase** needs: specific requirements to break into tasks, context for implementation choices
|
|
23
|
+
- **execute-phase** needs: success criteria to verify against, the "why" behind requirements
|
|
24
|
+
|
|
25
|
+
A vague PROJECT.md forces every downstream phase to guess. The cost compounds.
|
|
26
|
+
|
|
27
|
+
</the_goal>
|
|
28
|
+
|
|
29
|
+
<how_to_question>
|
|
30
|
+
|
|
31
|
+
**Start open.** Let them dump their mental model. Don't interrupt with structure.
|
|
32
|
+
|
|
33
|
+
**Follow energy.** Whatever they emphasized, dig into that. What excited them? What problem sparked this?
|
|
34
|
+
|
|
35
|
+
**Challenge vagueness.** Never accept fuzzy answers. "Good" means what? "Users" means who? "Simple" means how?
|
|
36
|
+
|
|
37
|
+
**Make the abstract concrete.** "Walk me through using this." "What does that actually look like?"
|
|
38
|
+
|
|
39
|
+
**Clarify ambiguity.** "When you say Z, do you mean A or B?" "You mentioned X — tell me more."
|
|
40
|
+
|
|
41
|
+
**Know when to stop.** When you understand what they want, why they want it, who it's for, and what done looks like — offer to proceed.
|
|
42
|
+
|
|
43
|
+
</how_to_question>
|
|
44
|
+
|
|
45
|
+
<question_types>
|
|
46
|
+
|
|
47
|
+
Use these as inspiration, not a checklist. Pick what's relevant to the thread.
|
|
48
|
+
|
|
49
|
+
**Motivation — why this exists:**
|
|
50
|
+
- "What prompted this?"
|
|
51
|
+
- "What are you doing today that this replaces?"
|
|
52
|
+
- "What would you do if this existed?"
|
|
53
|
+
|
|
54
|
+
**Concreteness — what it actually is:**
|
|
55
|
+
- "Walk me through using this"
|
|
56
|
+
- "You said X — what does that actually look like?"
|
|
57
|
+
- "Give me an example"
|
|
58
|
+
|
|
59
|
+
**Clarification — what they mean:**
|
|
60
|
+
- "When you say Z, do you mean A or B?"
|
|
61
|
+
- "You mentioned X — tell me more about that"
|
|
62
|
+
|
|
63
|
+
**Success — how you'll know it's working:**
|
|
64
|
+
- "How will you know this is working?"
|
|
65
|
+
- "What does done look like?"
|
|
66
|
+
|
|
67
|
+
</question_types>
|
|
68
|
+
|
|
69
|
+
<using_askuserquestion>
|
|
70
|
+
|
|
71
|
+
Use AskUserQuestion to help users think by presenting concrete options to react to.
|
|
72
|
+
|
|
73
|
+
**Good options:**
|
|
74
|
+
- Interpretations of what they might mean
|
|
75
|
+
- Specific examples to confirm or deny
|
|
76
|
+
- Concrete choices that reveal priorities
|
|
77
|
+
|
|
78
|
+
**Bad options:**
|
|
79
|
+
- Generic categories ("Technical", "Business", "Other")
|
|
80
|
+
- Leading options that presume an answer
|
|
81
|
+
- Too many options (2-4 is ideal)
|
|
82
|
+
- Headers longer than 12 characters (hard limit — validation will reject them)
|
|
83
|
+
|
|
84
|
+
**Example — vague answer:**
|
|
85
|
+
User says "it should be fast"
|
|
86
|
+
|
|
87
|
+
- header: "Fast"
|
|
88
|
+
- question: "Fast how?"
|
|
89
|
+
- options: ["Sub-second response", "Handles large datasets", "Quick to build", "Let me explain"]
|
|
90
|
+
|
|
91
|
+
**Example — following a thread:**
|
|
92
|
+
User mentions "frustrated with current tools"
|
|
93
|
+
|
|
94
|
+
- header: "Frustration"
|
|
95
|
+
- question: "What specifically frustrates you?"
|
|
96
|
+
- options: ["Too many clicks", "Missing features", "Unreliable", "Let me explain"]
|
|
97
|
+
|
|
98
|
+
**Tip for users — modifying an option:**
|
|
99
|
+
Users who want a slightly modified version of an option can select "Other" and reference the option by number: `#1 but for finger joints only` or `#2 with pagination disabled`. This avoids retyping the full option text.
|
|
100
|
+
|
|
101
|
+
</using_askuserquestion>
|
|
102
|
+
|
|
103
|
+
<freeform_rule>
|
|
104
|
+
|
|
105
|
+
**When the user wants to explain freely, STOP using AskUserQuestion.**
|
|
106
|
+
|
|
107
|
+
If a user selects "Other" and their response signals they want to describe something in their own words (e.g., "let me describe it", "I'll explain", "something else", or any open-ended reply that isn't choosing/modifying an existing option), you MUST:
|
|
108
|
+
|
|
109
|
+
1. **Ask your follow-up as plain text** — NOT via AskUserQuestion
|
|
110
|
+
2. **Wait for them to type at the normal prompt**
|
|
111
|
+
3. **Resume AskUserQuestion** only after processing their freeform response
|
|
112
|
+
|
|
113
|
+
The same applies if YOU include a freeform-indicating option (like "Let me explain" or "Describe in detail") and the user selects it.
|
|
114
|
+
|
|
115
|
+
**Wrong:** User says "let me describe it" → AskUserQuestion("What feature?", ["Feature A", "Feature B", "Describe in detail"])
|
|
116
|
+
**Right:** User says "let me describe it" → "Go ahead — what are you thinking?"
|
|
117
|
+
|
|
118
|
+
</freeform_rule>
|
|
119
|
+
|
|
120
|
+
<context_checklist>
|
|
121
|
+
|
|
122
|
+
Use this as a **background checklist**, not a conversation structure. Check these mentally as you go. If gaps remain, weave questions naturally.
|
|
123
|
+
|
|
124
|
+
- [ ] What they're building (concrete enough to explain to a stranger)
|
|
125
|
+
- [ ] Why it needs to exist (the problem or desire driving it)
|
|
126
|
+
- [ ] Who it's for (even if just themselves)
|
|
127
|
+
- [ ] What "done" looks like (observable outcomes)
|
|
128
|
+
|
|
129
|
+
Four things. If they volunteer more, capture it.
|
|
130
|
+
|
|
131
|
+
</context_checklist>
|
|
132
|
+
|
|
133
|
+
<decision_gate>
|
|
134
|
+
|
|
135
|
+
When you could write a clear PROJECT.md, offer to proceed:
|
|
136
|
+
|
|
137
|
+
- header: "Ready?"
|
|
138
|
+
- question: "I think I understand what you're after. Ready to create PROJECT.md?"
|
|
139
|
+
- options:
|
|
140
|
+
- "Create PROJECT.md" — Let's move forward
|
|
141
|
+
- "Keep exploring" — I want to share more / ask me more
|
|
142
|
+
|
|
143
|
+
If "Keep exploring" — ask what they want to add or identify gaps and probe naturally.
|
|
144
|
+
|
|
145
|
+
Loop until "Create PROJECT.md" selected.
|
|
146
|
+
|
|
147
|
+
</decision_gate>
|
|
148
|
+
|
|
149
|
+
<anti_patterns>
|
|
150
|
+
|
|
151
|
+
- **Checklist walking** — Going through domains regardless of what they said
|
|
152
|
+
- **Canned questions** — "What's your core value?" "What's out of scope?" regardless of context
|
|
153
|
+
- **Corporate speak** — "What are your success criteria?" "Who are your stakeholders?"
|
|
154
|
+
- **Interrogation** — Firing questions without building on answers
|
|
155
|
+
- **Rushing** — Minimizing questions to get to "the work"
|
|
156
|
+
- **Shallow acceptance** — Taking vague answers without probing
|
|
157
|
+
- **Premature constraints** — Asking about tech stack before understanding the idea
|
|
158
|
+
- **User skills** — NEVER ask about user's technical experience. Claude builds.
|
|
159
|
+
|
|
160
|
+
</anti_patterns>
|
|
161
|
+
|
|
162
|
+
</questioning_guide>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Realistic Test Data — Synthetic First, Dumps Anonymized
|
|
2
|
+
|
|
3
|
+
How-to reference for generating test data. Read when seeding integration/e2e tests. Pairs with `db-test-isolation.md`.
|
|
4
|
+
|
|
5
|
+
## Rule: synthetic by default; prod/staging dumps only anonymized + subset
|
|
6
|
+
|
|
7
|
+
- **Default = synthetic, domain-aware factories.** No real PII by construction → no GDPR/compliance/access burden; and you can target edge cases deterministically (a random prod sample won't reliably contain them).
|
|
8
|
+
- **Prod/staging dumps only** when reproducing a prod-shaped bug, perf/volume testing, or validating real distributions — and **never raw**: anonymize + subset first.
|
|
9
|
+
|
|
10
|
+
## Factories (deterministic, parallel-safe)
|
|
11
|
+
|
|
12
|
+
- `factory_bot` (Ruby) / **Fishery** (TS/JS) / test-data-builders. `.build()` = unsaved object, `.create()` = inserted.
|
|
13
|
+
- Unique fields via **sequences or UUID fragments** — never raw Faker in anything you assert on.
|
|
14
|
+
- Avoid shared mutable fixtures (static YAML blobs accumulate coupling and drift); each test builds exactly the graph it needs. A fixture used as a base inside a factory for stable *reference* data is fine.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
// Fishery (TS) — sequence for uniqueness, onCreate to persist
|
|
18
|
+
import { Factory } from 'fishery';
|
|
19
|
+
export const userFactory = Factory.define<User>(({ sequence, onCreate }) => {
|
|
20
|
+
onCreate(u => db.users.insert(u));
|
|
21
|
+
return { id: crypto.randomUUID(), email: `user-${sequence}@test.example`, name: `User ${sequence}` };
|
|
22
|
+
});
|
|
23
|
+
// userFactory.build() → unsaved | await userFactory.create() → inserted
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Anonymization / subsetting (when a dump is justified)
|
|
27
|
+
|
|
28
|
+
- **PostgreSQL Anonymizer (`anon`)** — masking rules (`anon.dummy_free_email()`, `SECURITY LABEL`). FK columns can't be masked directly — mask the referenced primary key.
|
|
29
|
+
- **Neon branching + static masking** — mask once at branch creation (permanent masked copy).
|
|
30
|
+
- **Snaplet** — subset a large DB to a sample, then transform/anonymize PII via JS, producing production-shaped snapshots without the PII. (Note: Snaplet's hosted service was sunset / open-sourced in 2024 — use the OSS tooling or an equivalent subsetter.)
|
|
31
|
+
- Guardrail: build the masking habit early; don't over-engineer synthetic generators — simple factories cover ~90% of cases.
|
|
32
|
+
|
|
33
|
+
## Seeding lifecycle
|
|
34
|
+
|
|
35
|
+
- Build a migrated + reference-data **template** once (see `db-test-isolation.md`), copy per worker.
|
|
36
|
+
- Per test: factories for the specific graph; idempotent cleanup (rollback or schema/DB drop); teardown safe after a mid-test crash (`if: always()` cleanup in CI branch/ephemeral envs).
|
|
37
|
+
|
|
38
|
+
## Anti-patterns
|
|
39
|
+
|
|
40
|
+
- Raw production dump into a test DB (PII / compliance risk).
|
|
41
|
+
- Raw Faker values in assertions (non-reproducible Heisenbugs).
|
|
42
|
+
- One giant shared fixture file (coupling, drift).
|
|
43
|
+
|
|
44
|
+
*Sources: Neon / Snaplet anonymization docs; PostgreSQL Anonymizer; Fishery / factory_bot; betterdata (synthetic vs anonymization).*
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
When you need library or framework documentation, check in this order:
|
|
2
|
+
|
|
3
|
+
1. If Context7 MCP tools (`mcp__context7__*`) are available in your environment, use them:
|
|
4
|
+
- Resolve library ID: `mcp__context7__resolve-library-id` with `libraryName`
|
|
5
|
+
- Fetch docs: `mcp__context7__get-library-docs` with `context7CompatibleLibraryId` and `topic`
|
|
6
|
+
|
|
7
|
+
2. If Context7 MCP is not available (upstream bug anthropics/claude-code#13898 strips MCP
|
|
8
|
+
tools from agents with a `tools:` frontmatter restriction), use the CLI fallback via Bash:
|
|
9
|
+
|
|
10
|
+
Step 1 — Resolve library ID:
|
|
11
|
+
```bash
|
|
12
|
+
if command -v ctx7 &>/dev/null; then
|
|
13
|
+
ctx7 library <name> "<query>"
|
|
14
|
+
else
|
|
15
|
+
echo "ctx7 not found — install with: npm install -g ctx7 (verify at npmjs.com/package/ctx7 first)"
|
|
16
|
+
fi
|
|
17
|
+
```
|
|
18
|
+
Step 2 — Fetch documentation:
|
|
19
|
+
```bash
|
|
20
|
+
if command -v ctx7 &>/dev/null; then
|
|
21
|
+
ctx7 docs <libraryId> "<query>"
|
|
22
|
+
else
|
|
23
|
+
echo "ctx7 not found — install with: npm install -g ctx7 (verify at npmjs.com/package/ctx7 first)"
|
|
24
|
+
fi
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Do not skip documentation lookups because MCP tools are unavailable — the CLI fallback
|
|
28
|
+
works via Bash and produces equivalent output. Do NOT use `npx --yes` to auto-download
|
|
29
|
+
ctx7 — this silently executes unverified packages from the registry.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
## Claude's Training as Hypothesis
|
|
2
|
+
|
|
3
|
+
Training data is 6-18 months stale. Treat pre-existing knowledge as hypothesis, not fact.
|
|
4
|
+
|
|
5
|
+
**The trap:** Claude "knows" things confidently, but knowledge may be outdated, incomplete, or wrong.
|
|
6
|
+
|
|
7
|
+
**The discipline:**
|
|
8
|
+
1. **Verify before asserting** — don't state library capabilities without checking Context7 or official docs
|
|
9
|
+
2. **Date your knowledge** — "As of my training" is a warning flag
|
|
10
|
+
3. **Prefer current sources** — Context7 and official docs trump training data
|
|
11
|
+
4. **Flag uncertainty** — LOW confidence when only training data supports a claim
|
|
12
|
+
|
|
13
|
+
## Honest Reporting
|
|
14
|
+
|
|
15
|
+
Research value comes from accuracy, not completeness theater.
|
|
16
|
+
|
|
17
|
+
**Report honestly:**
|
|
18
|
+
- "I couldn't find X" is valuable (now we know to investigate differently)
|
|
19
|
+
- "This is LOW confidence" is valuable (flags for validation)
|
|
20
|
+
- "Sources contradict" is valuable (surfaces real ambiguity)
|
|
21
|
+
|
|
22
|
+
**Avoid:** Padding findings, stating unverified claims as facts, hiding uncertainty behind confident language.
|
|
23
|
+
|
|
24
|
+
## Research is Investigation, Not Confirmation
|
|
25
|
+
|
|
26
|
+
**Bad research:** Start with hypothesis, find evidence to support it
|
|
27
|
+
**Good research:** Gather evidence, form conclusions from evidence
|
|
28
|
+
|
|
29
|
+
When researching "best library for X": find what the ecosystem actually uses, document tradeoffs honestly, let evidence drive recommendation.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## Known Pitfalls
|
|
2
|
+
|
|
3
|
+
### Configuration Scope Blindness
|
|
4
|
+
**Trap:** Assuming global configuration means no project-scoping exists
|
|
5
|
+
**Prevention:** Verify ALL configuration scopes (global, project, local, workspace)
|
|
6
|
+
|
|
7
|
+
### Deprecated Features
|
|
8
|
+
**Trap:** Finding old documentation and concluding feature doesn't exist
|
|
9
|
+
**Prevention:** Check current official docs, review changelog, verify version numbers and dates
|
|
10
|
+
|
|
11
|
+
### Negative Claims Without Evidence
|
|
12
|
+
**Trap:** Making definitive "X is not possible" statements without official verification
|
|
13
|
+
**Prevention:** For any negative claim — is it verified by official docs? Have you checked recent updates? Are you confusing "didn't find it" with "doesn't exist"?
|
|
14
|
+
|
|
15
|
+
### Single Source Reliance
|
|
16
|
+
**Trap:** Relying on a single source for critical claims
|
|
17
|
+
**Prevention:** Require multiple sources: official docs (primary), release notes (currency), additional source (verification)
|
|
18
|
+
|
|
19
|
+
## Pre-Submission Checklist
|
|
20
|
+
|
|
21
|
+
- [ ] All research domains in this agent's scope investigated (e.g. stack, features, architecture, patterns, pitfalls — whichever apply)
|
|
22
|
+
- [ ] Negative claims verified with official docs
|
|
23
|
+
- [ ] Multiple sources cross-referenced for critical claims
|
|
24
|
+
- [ ] URLs provided for authoritative sources
|
|
25
|
+
- [ ] Publication dates checked (prefer recent/current)
|
|
26
|
+
- [ ] Confidence levels assigned honestly
|
|
27
|
+
- [ ] "What might I have missed?" review completed
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Revision Loop Pattern
|
|
2
|
+
|
|
3
|
+
Standard pattern for iterative agent revision with feedback. Used when a checker/validator finds issues and the producing agent needs to revise its output.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Pattern: Check-Revise-Escalate (max 3 iterations)
|
|
8
|
+
|
|
9
|
+
This pattern applies whenever:
|
|
10
|
+
1. An agent produces output (plans, imports, gap-closure plans)
|
|
11
|
+
2. A checker/validator evaluates that output
|
|
12
|
+
3. Issues are found that need revision
|
|
13
|
+
|
|
14
|
+
### Flow
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
prev_issue_count = Infinity
|
|
18
|
+
iteration = 0
|
|
19
|
+
|
|
20
|
+
LOOP:
|
|
21
|
+
1. Run checker/validator on current output
|
|
22
|
+
2. Read checker results
|
|
23
|
+
3. If PASSED or only INFO-level issues:
|
|
24
|
+
-> Accept output, exit loop
|
|
25
|
+
4. If BLOCKER or WARNING issues found:
|
|
26
|
+
a. iteration += 1
|
|
27
|
+
b. If iteration > 3:
|
|
28
|
+
-> Escalate to user (see "After 3 Iterations" below)
|
|
29
|
+
c. Parse issue count from checker output
|
|
30
|
+
d. If issue_count >= prev_issue_count:
|
|
31
|
+
-> Escalate to user: "Revision loop stalled (issue count not decreasing)"
|
|
32
|
+
e. prev_issue_count = issue_count
|
|
33
|
+
f. Re-spawn the producing agent with checker feedback appended
|
|
34
|
+
g. After revision completes, go to LOOP
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Issue Count Tracking
|
|
38
|
+
|
|
39
|
+
Track the number of BLOCKER + WARNING issues returned by the checker on each iteration. If the count does not decrease between consecutive iterations, the producing agent is stuck and further iterations will not help. Break early and escalate to the user.
|
|
40
|
+
|
|
41
|
+
Display iteration progress before each revision spawn:
|
|
42
|
+
`Revision iteration {N}/3 -- {blocker_count} blockers, {warning_count} warnings`
|
|
43
|
+
|
|
44
|
+
### Re-spawn Prompt Structure
|
|
45
|
+
|
|
46
|
+
When re-spawning the producing agent for revision, pass the checker's YAML-formatted issues. The checker's output contains a `## Issues` heading followed by a YAML block. Parse this block and pass it verbatim to the revision agent.
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
<checker_issues>
|
|
50
|
+
The issues below are in YAML format. Each has: dimension, severity, finding,
|
|
51
|
+
affected_field, suggested_fix. Address ALL BLOCKER issues. Address WARNING
|
|
52
|
+
issues where feasible.
|
|
53
|
+
|
|
54
|
+
{YAML issues block from checker output -- passed verbatim}
|
|
55
|
+
</checker_issues>
|
|
56
|
+
|
|
57
|
+
<revision_instructions>
|
|
58
|
+
Address ALL BLOCKER and WARNING issues identified above.
|
|
59
|
+
- For each BLOCKER: make the required change
|
|
60
|
+
- For each WARNING: address or explain why it's acceptable
|
|
61
|
+
- Do NOT introduce new issues while fixing existing ones
|
|
62
|
+
- Preserve all content not flagged by the checker
|
|
63
|
+
This is revision iteration {N} of max 3. Previous iteration had {prev_count}
|
|
64
|
+
issues. You must reduce the count or the loop will terminate.
|
|
65
|
+
</revision_instructions>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### After 3 Iterations
|
|
69
|
+
|
|
70
|
+
If issues persist after 3 revision cycles:
|
|
71
|
+
|
|
72
|
+
1. Present remaining issues to the user
|
|
73
|
+
2. Use gate prompt (pattern: yes-no from `references/gate-prompts.md`):
|
|
74
|
+
question: "Issues remain after 3 revision attempts. Proceed with current output?"
|
|
75
|
+
header: "Proceed?"
|
|
76
|
+
options:
|
|
77
|
+
- label: "Proceed anyway" description: "Accept output with remaining issues"
|
|
78
|
+
- label: "Adjust approach" description: "Discuss a different approach"
|
|
79
|
+
3. If "Proceed anyway": accept current output and continue
|
|
80
|
+
4. If "Adjust approach" or "Other": discuss with user, then re-enter the producing step with updated context
|
|
81
|
+
|
|
82
|
+
### Workflow-Specific Variations
|
|
83
|
+
|
|
84
|
+
| Workflow | Producer Agent | Checker Agent | Notes |
|
|
85
|
+
|----------|---------------|---------------|-------|
|
|
86
|
+
| plan-phase | gsd-planner | gsd-plan-checker | Revision prompt via planner-revision.md |
|
|
87
|
+
| execute-phase | gsd-executor | gsd-verifier | Post-execution verification |
|
|
88
|
+
| discuss-phase | orchestrator | gsd-plan-checker | Inline revision by orchestrator |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Important Notes
|
|
93
|
+
|
|
94
|
+
- **INFO-level issues are always acceptable** -- they don't trigger revision
|
|
95
|
+
- **Each iteration gets a fresh agent spawn** -- don't try to continue in the same context
|
|
96
|
+
- **Checker feedback must be inlined** -- the revision agent needs to see exactly what failed
|
|
97
|
+
- **Don't silently swallow issues** -- always present the final state to the user after exiting the loop
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Codebase scout — map selection table
|
|
2
|
+
|
|
3
|
+
> Lazy-loaded reference for the `scout_codebase` step in
|
|
4
|
+
> `workflows/discuss-phase.md` (extracted via #2551 progressive-disclosure
|
|
5
|
+
> refactor). Read this only when prior `.planning/codebase/*.md` maps exist
|
|
6
|
+
> and the workflow needs to pick which 2–3 to load.
|
|
7
|
+
|
|
8
|
+
## Phase-type → recommended maps
|
|
9
|
+
|
|
10
|
+
Read 2–3 maps based on inferred phase type. Do NOT read all seven —
|
|
11
|
+
that inflates context without improving discussion quality.
|
|
12
|
+
|
|
13
|
+
| Phase type (infer from title + ROADMAP entry) | Read these maps |
|
|
14
|
+
|---|---|
|
|
15
|
+
| UI / frontend / styling / design | CONVENTIONS.md, STRUCTURE.md, STACK.md |
|
|
16
|
+
| Backend / API / service / data model | STACK.md, ARCHITECTURE.md, INTEGRATIONS.md |
|
|
17
|
+
| Integration / third-party / provider | STACK.md, INTEGRATIONS.md, ARCHITECTURE.md |
|
|
18
|
+
| Infrastructure / DevOps / CI / deploy | STACK.md, ARCHITECTURE.md, INTEGRATIONS.md |
|
|
19
|
+
| Testing / QA / coverage | TESTING.md, CONVENTIONS.md, STRUCTURE.md |
|
|
20
|
+
| Documentation / content | CONVENTIONS.md, STRUCTURE.md |
|
|
21
|
+
| Mixed / unclear | STACK.md, ARCHITECTURE.md, CONVENTIONS.md |
|
|
22
|
+
|
|
23
|
+
Read CONCERNS.md only if the phase explicitly addresses known concerns or
|
|
24
|
+
security issues.
|
|
25
|
+
|
|
26
|
+
## Single-read rule
|
|
27
|
+
|
|
28
|
+
Read each map file in a **single** Read call. Do not read the same file at
|
|
29
|
+
two different offsets — split reads break prompt-cache reuse and cost more
|
|
30
|
+
than a single full read.
|
|
31
|
+
|
|
32
|
+
## No-maps fallback
|
|
33
|
+
|
|
34
|
+
If `.planning/codebase/*.md` does not exist:
|
|
35
|
+
1. Extract key terms from the phase goal (e.g., "feed" → "post", "card",
|
|
36
|
+
"list"; "auth" → "login", "session", "token")
|
|
37
|
+
2. `grep -rlE "{term1}|{term2}" src/ app/ --include="*.ts" ...` (use `-E`
|
|
38
|
+
for extended regex so the `|` alternation works on both GNU grep and BSD
|
|
39
|
+
grep / macOS), and `ls` the conventional component/hook/util dirs
|
|
40
|
+
3. Read the 3–5 most relevant files
|
|
41
|
+
|
|
42
|
+
## Output (internal `<codebase_context>`)
|
|
43
|
+
|
|
44
|
+
From the scan, identify:
|
|
45
|
+
- **Reusable assets** — components, hooks, utilities usable in this phase
|
|
46
|
+
- **Established patterns** — state management, styling, data fetching
|
|
47
|
+
- **Integration points** — routes, nav, providers where new code connects
|
|
48
|
+
- **Creative options** — approaches the architecture enables or constrains
|
|
49
|
+
|
|
50
|
+
Used in `analyze_phase` and `present_gray_areas`. NOT written to a file —
|
|
51
|
+
session-only.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# SKELETON.md Template
|
|
2
|
+
|
|
3
|
+
> Emitted by `gsd-planner` when `WALKING_SKELETON=true` (Phase 1 + `--mvp` + new project). Records the architectural decisions the rest of the project will build on.
|
|
4
|
+
|
|
5
|
+
```markdown
|
|
6
|
+
# Walking Skeleton — [Project Name]
|
|
7
|
+
|
|
8
|
+
**Phase:** 1
|
|
9
|
+
**Generated:** {ISO date}
|
|
10
|
+
|
|
11
|
+
## Capability Proven End-to-End
|
|
12
|
+
|
|
13
|
+
> One sentence: the smallest user-visible capability that exercises the full stack.
|
|
14
|
+
|
|
15
|
+
Example: "A signed-in user can view their email on a dashboard page served by the deployed app."
|
|
16
|
+
|
|
17
|
+
## Architectural Decisions
|
|
18
|
+
|
|
19
|
+
| Decision | Choice | Rationale |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| Framework | (e.g., Next.js 15 App Router) | Why this fits the project |
|
|
22
|
+
| Data layer | (e.g., Postgres + Drizzle) | Why |
|
|
23
|
+
| Auth | (e.g., session cookies + bcrypt) | Why |
|
|
24
|
+
| Deployment target | (e.g., Vercel preview) | Why |
|
|
25
|
+
| Directory layout | (e.g., feature-folders under src/features/*) | Why |
|
|
26
|
+
|
|
27
|
+
## Stack Touched in Phase 1
|
|
28
|
+
|
|
29
|
+
- [ ] Project scaffold (framework, build, lint, test runner)
|
|
30
|
+
- [ ] Routing — at least one real route
|
|
31
|
+
- [ ] Database — at least one real read AND one real write
|
|
32
|
+
- [ ] UI — at least one interactive element wired to the API
|
|
33
|
+
- [ ] Deployment — running on dev environment OR documented local full-stack run command
|
|
34
|
+
|
|
35
|
+
## Out of Scope (Deferred to Later Slices)
|
|
36
|
+
|
|
37
|
+
> Anything that is *not* in the skeleton. Be explicit — this list prevents future phases from re-litigating Phase 1's minimalism.
|
|
38
|
+
|
|
39
|
+
- (e.g., password reset, email verification, multi-tenancy)
|
|
40
|
+
|
|
41
|
+
## Subsequent Slice Plan
|
|
42
|
+
|
|
43
|
+
Each later phase adds one vertical slice on top of this skeleton without altering its architectural decisions:
|
|
44
|
+
|
|
45
|
+
- Phase 2: [next user capability]
|
|
46
|
+
- Phase 3: [next user capability]
|
|
47
|
+
- ...
|
|
48
|
+
```
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Making Sketches Feel Alive
|
|
2
|
+
|
|
3
|
+
Static mockups are barely better than screenshots. Every interactive element in a sketch must respond to interaction.
|
|
4
|
+
|
|
5
|
+
## Required Interactivity
|
|
6
|
+
|
|
7
|
+
| Element | Must Have |
|
|
8
|
+
|---------|-----------|
|
|
9
|
+
| Buttons | Click handler with visible feedback (state change, animation, toast) |
|
|
10
|
+
| Forms | Input validation on blur, submit handler that shows success state |
|
|
11
|
+
| Lists | Add/remove items, empty state, populated state |
|
|
12
|
+
| Toggles/switches | Working toggle with visible state change |
|
|
13
|
+
| Tabs/nav | Click to switch content |
|
|
14
|
+
| Modals/drawers | Open/close with transition |
|
|
15
|
+
| Hover states | Every clickable element needs a hover effect |
|
|
16
|
+
| Dropdowns | Open/close, item selection |
|
|
17
|
+
|
|
18
|
+
## Transitions
|
|
19
|
+
|
|
20
|
+
Add `transition: all 0.15s ease` as a baseline to interactive elements. Subtle motion makes the sketch feel real and helps judge whether the interaction pattern works.
|
|
21
|
+
|
|
22
|
+
## Fake the Backend
|
|
23
|
+
|
|
24
|
+
If the sketch shows a "Save" button, clicking it should show a brief loading state then a success message. If it shows a search bar, typing should filter hardcoded results. The goal is to feel the full interaction loop, not just see the resting state.
|
|
25
|
+
|
|
26
|
+
## State Cycling
|
|
27
|
+
|
|
28
|
+
If the sketch has multiple states (empty, loading, populated, error), include buttons to cycle through them. Label each state clearly. This lets the user experience how the design handles different data conditions.
|
|
29
|
+
|
|
30
|
+
## Implementation
|
|
31
|
+
|
|
32
|
+
Use vanilla JS in inline `<script>` tags. No frameworks, no build step. Keep it simple:
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<script>
|
|
36
|
+
// Toggle a panel
|
|
37
|
+
document.querySelector('.panel-toggle').addEventListener('click', (e) => {
|
|
38
|
+
e.target.closest('.panel').classList.toggle('collapsed');
|
|
39
|
+
});
|
|
40
|
+
</script>
|
|
41
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Shared Theme System
|
|
2
|
+
|
|
3
|
+
All sketches share a CSS variable theme so design decisions compound across sketches.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
On the first sketch, create `.planning/sketches/themes/` with a default theme:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
.planning/sketches/
|
|
11
|
+
themes/
|
|
12
|
+
default.css <- all sketches link to this
|
|
13
|
+
001-dashboard-layout/
|
|
14
|
+
index.html <- links to ../themes/default.css
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Theme File Structure
|
|
18
|
+
|
|
19
|
+
Each theme defines CSS custom properties only — no component styles, no layout rules. Just the visual vocabulary:
|
|
20
|
+
|
|
21
|
+
```css
|
|
22
|
+
:root {
|
|
23
|
+
/* Colors */
|
|
24
|
+
--color-bg: #fafafa;
|
|
25
|
+
--color-surface: #ffffff;
|
|
26
|
+
--color-border: #e5e5e5;
|
|
27
|
+
--color-text: #1a1a1a;
|
|
28
|
+
--color-text-muted: #6b6b6b;
|
|
29
|
+
--color-primary: #2563eb;
|
|
30
|
+
--color-primary-hover: #1d4ed8;
|
|
31
|
+
--color-accent: #f59e0b;
|
|
32
|
+
--color-danger: #ef4444;
|
|
33
|
+
--color-success: #22c55e;
|
|
34
|
+
|
|
35
|
+
/* Typography */
|
|
36
|
+
--font-sans: 'Inter', system-ui, sans-serif;
|
|
37
|
+
--font-mono: 'JetBrains Mono', monospace;
|
|
38
|
+
--text-xs: 0.75rem;
|
|
39
|
+
--text-sm: 0.875rem;
|
|
40
|
+
--text-base: 1rem;
|
|
41
|
+
--text-lg: 1.125rem;
|
|
42
|
+
--text-xl: 1.25rem;
|
|
43
|
+
--text-2xl: 1.5rem;
|
|
44
|
+
--text-3xl: 1.875rem;
|
|
45
|
+
|
|
46
|
+
/* Spacing */
|
|
47
|
+
--space-1: 4px;
|
|
48
|
+
--space-2: 8px;
|
|
49
|
+
--space-3: 12px;
|
|
50
|
+
--space-4: 16px;
|
|
51
|
+
--space-6: 24px;
|
|
52
|
+
--space-8: 32px;
|
|
53
|
+
--space-12: 48px;
|
|
54
|
+
|
|
55
|
+
/* Shapes */
|
|
56
|
+
--radius-sm: 4px;
|
|
57
|
+
--radius-md: 8px;
|
|
58
|
+
--radius-lg: 12px;
|
|
59
|
+
--radius-full: 9999px;
|
|
60
|
+
|
|
61
|
+
/* Shadows */
|
|
62
|
+
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
|
63
|
+
--shadow-md: 0 4px 6px rgba(0,0,0,0.07);
|
|
64
|
+
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Adapt the default theme to match the mood/direction established during intake. The values above are a starting point — change colors, fonts, spacing, and shapes to match the agreed aesthetic.
|
|
69
|
+
|
|
70
|
+
## Linking
|
|
71
|
+
|
|
72
|
+
Every sketch links to the theme:
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<link rel="stylesheet" href="../themes/default.css">
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Creating New Themes
|
|
79
|
+
|
|
80
|
+
When a sketch reveals an aesthetic fork ("should this feel clinical or warm?"), create both as theme files rather than arguing about it. The user can switch and feel the difference.
|
|
81
|
+
|
|
82
|
+
Name themes descriptively: `midnight.css`, `warm-minimal.css`, `brutalist.css`.
|
|
83
|
+
|
|
84
|
+
## Theme Switcher
|
|
85
|
+
|
|
86
|
+
Include in every sketch (part of the sketch toolbar):
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<select id="theme-switcher" onchange="document.querySelector('link[href*=themes]').href='../themes/'+this.value+'.css'">
|
|
90
|
+
<option value="default">Default</option>
|
|
91
|
+
</select>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Dynamically populate options by listing available theme files, or hardcode the known themes.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Sketch Toolbar
|
|
2
|
+
|
|
3
|
+
Include a small floating toolbar in every sketch. It provides utilities without competing with the actual design.
|
|
4
|
+
|
|
5
|
+
## Implementation
|
|
6
|
+
|
|
7
|
+
A small `<div>` fixed to the bottom-right, semi-transparent, expands on hover:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<div id="sketch-tools" style="position:fixed;bottom:12px;right:12px;z-index:9999;font-family:system-ui;font-size:12px;background:rgba(0,0,0,0.7);color:white;padding:8px 12px;border-radius:8px;opacity:0.4;transition:opacity 0.2s;" onmouseenter="this.style.opacity='1'" onmouseleave="this.style.opacity='0.4'">
|
|
11
|
+
<!-- Theme switcher -->
|
|
12
|
+
<!-- Viewport buttons -->
|
|
13
|
+
<!-- Annotation toggle -->
|
|
14
|
+
</div>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Components
|
|
18
|
+
|
|
19
|
+
### Theme Switcher
|
|
20
|
+
|
|
21
|
+
A dropdown that swaps the theme CSS file at runtime:
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<select onchange="document.querySelector('link[href*=themes]').href='../themes/'+this.value+'.css'">
|
|
25
|
+
<option value="default">Default</option>
|
|
26
|
+
</select>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Viewport Preview
|
|
30
|
+
|
|
31
|
+
Three buttons that constrain the sketch content area to standard widths:
|
|
32
|
+
|
|
33
|
+
- Phone: 375px
|
|
34
|
+
- Tablet: 768px
|
|
35
|
+
- Desktop: 1280px (or full width)
|
|
36
|
+
|
|
37
|
+
Implemented by wrapping sketch content in a container and adjusting its `max-width`.
|
|
38
|
+
|
|
39
|
+
### Annotation Mode
|
|
40
|
+
|
|
41
|
+
A toggle that overlays spacing values, color hex codes, and font sizes on hover. Implemented as a JS snippet that reads computed styles and shows them in a tooltip. Helps understand visual decisions without opening dev tools.
|
|
42
|
+
|
|
43
|
+
## Styling
|
|
44
|
+
|
|
45
|
+
The toolbar should be unobtrusive — small, dark, semi-transparent. It should never compete with the sketch visually. Style it independently of the theme (hardcoded dark background, white text).
|