@hcu-lab.me/mcp-device 1.0.9 → 1.0.12
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/PRIVACY.md +21 -0
- package/README.md +58 -3
- package/SECURITY.md +67 -0
- package/config/revoked-approvals.json +1 -0
- package/control-plane/config/mcp-servers.example.toml +52 -0
- package/control-plane/config/mcp-servers.toml +52 -0
- package/control-plane/contracts/device-public-contract-v1.json +733 -0
- package/control-plane/scripts/GATEWAY-LICENSE.txt +7 -0
- package/control-plane/scripts/account-http.mjs +220 -0
- package/control-plane/scripts/account-store.mjs +368 -0
- package/control-plane/scripts/admin.mjs +68 -0
- package/control-plane/scripts/auth-session.mjs +411 -0
- package/control-plane/scripts/authenticated-mcp-wrapper.mjs +1281 -0
- package/control-plane/scripts/benchmark-command.mjs +9 -0
- package/control-plane/scripts/benchmark-mcp-catalog.mjs +174 -0
- package/control-plane/scripts/catalog-budget.mjs +87 -0
- package/control-plane/scripts/check-device-public-contract.mjs +20 -0
- package/control-plane/scripts/custom-tools/index.mjs +221 -0
- package/control-plane/scripts/custom-tools/path-utils.mjs +117 -0
- package/control-plane/scripts/custom-tools/response-utils.mjs +34 -0
- package/control-plane/scripts/dashboard-http.mjs +598 -0
- package/control-plane/scripts/device-access-policy.mjs +205 -0
- package/control-plane/scripts/device-admin.mjs +43 -0
- package/control-plane/scripts/device-audit.mjs +63 -0
- package/control-plane/scripts/device-broker.mjs +1461 -0
- package/control-plane/scripts/device-execution-tool-definitions.mjs +217 -0
- package/control-plane/scripts/device-inventory.mjs +128 -0
- package/control-plane/scripts/device-pairing-http.mjs +109 -0
- package/control-plane/scripts/device-pairing-store.mjs +245 -0
- package/control-plane/scripts/device-public-contract.mjs +165 -0
- package/control-plane/scripts/device-release.mjs +95 -0
- package/control-plane/scripts/device-secure-transport.mjs +128 -0
- package/control-plane/scripts/device-store.mjs +283 -0
- package/control-plane/scripts/device-usage.mjs +657 -0
- package/control-plane/scripts/embedded-device.mjs +149 -0
- package/control-plane/scripts/enduser-ui.mjs +45 -0
- package/control-plane/scripts/external-tool-broker.mjs +179 -0
- package/control-plane/scripts/oauth-authorization-server.mjs +589 -0
- package/control-plane/scripts/operator-dashboard-http.mjs +81 -0
- package/control-plane/scripts/project-inspection.mjs +227 -0
- package/control-plane/scripts/projects/project-id.mjs +69 -0
- package/control-plane/scripts/projects/trusted-roots-projects.mjs +375 -0
- package/control-plane/scripts/prompts/index.mjs +60 -0
- package/control-plane/scripts/remote-process-sessions.mjs +78 -0
- package/control-plane/scripts/remote-tool-result.mjs +9 -0
- package/control-plane/scripts/resources/index.mjs +166 -0
- package/control-plane/scripts/runtime-profile.mjs +54 -0
- package/control-plane/scripts/shell-tool-descriptor.mjs +17 -0
- package/control-plane/scripts/skill-source-safety.mjs +46 -0
- package/control-plane/scripts/skills/README.md +70 -0
- package/control-plane/scripts/skills/_upstream_licenses/anthropic-THIRD_PARTY_NOTICES.md +405 -0
- package/control-plane/scripts/skills/_upstream_licenses/hallmark-LICENSE.txt +21 -0
- package/control-plane/scripts/skills/_upstream_licenses/ponytail-LICENSE.txt +21 -0
- package/control-plane/scripts/skills/_upstream_licenses/stitch-skills-LICENSE.txt +201 -0
- package/control-plane/scripts/skills/_upstream_licenses/superpowers-LICENSE.txt +21 -0
- package/control-plane/scripts/skills/algorithmic-art/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/algorithmic-art/SKILL.md +405 -0
- package/control-plane/scripts/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/control-plane/scripts/skills/algorithmic-art/templates/viewer.html +599 -0
- package/control-plane/scripts/skills/brainstorming/SKILL.md +285 -0
- package/control-plane/scripts/skills/brainstorming/scripts/frame-template.html +213 -0
- package/control-plane/scripts/skills/brainstorming/scripts/helper.js +167 -0
- package/control-plane/scripts/skills/brainstorming/scripts/server.cjs +723 -0
- package/control-plane/scripts/skills/brainstorming/scripts/start-server.sh +209 -0
- package/control-plane/scripts/skills/brainstorming/scripts/stop-server.sh +120 -0
- package/control-plane/scripts/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/control-plane/scripts/skills/brainstorming/visual-companion.md +299 -0
- package/control-plane/scripts/skills/brand-guidelines/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/brand-guidelines/SKILL.md +73 -0
- package/control-plane/scripts/skills/claude-api/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/claude-api/SKILL.md +570 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/README.md +362 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/batches.md +14 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/files-api.md +25 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/streaming.md +28 -0
- package/control-plane/scripts/skills/claude-api/csharp/claude-api/tool-use.md +164 -0
- package/control-plane/scripts/skills/claude-api/curl/examples.md +256 -0
- package/control-plane/scripts/skills/claude-api/curl/managed-agents.md +371 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/README.md +188 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/files-api.md +23 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/streaming.md +43 -0
- package/control-plane/scripts/skills/claude-api/go/claude-api/tool-use.md +220 -0
- package/control-plane/scripts/skills/claude-api/go/managed-agents/README.md +564 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/README.md +238 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/files-api.md +27 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/streaming.md +24 -0
- package/control-plane/scripts/skills/claude-api/java/claude-api/tool-use.md +228 -0
- package/control-plane/scripts/skills/claude-api/java/managed-agents/README.md +443 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/README.md +174 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/batches.md +15 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/files-api.md +13 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/streaming.md +27 -0
- package/control-plane/scripts/skills/claude-api/php/claude-api/tool-use.md +253 -0
- package/control-plane/scripts/skills/claude-api/php/managed-agents/README.md +443 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/README.md +565 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/batches.md +198 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/files-api.md +170 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/sdk-upgrade.md +286 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/streaming.md +179 -0
- package/control-plane/scripts/skills/claude-api/python/claude-api/tool-use.md +627 -0
- package/control-plane/scripts/skills/claude-api/python/managed-agents/README.md +335 -0
- package/control-plane/scripts/skills/claude-api/ruby/claude-api/README.md +134 -0
- package/control-plane/scripts/skills/claude-api/ruby/claude-api/streaming.md +16 -0
- package/control-plane/scripts/skills/claude-api/ruby/claude-api/tool-use.md +41 -0
- package/control-plane/scripts/skills/claude-api/ruby/managed-agents/README.md +394 -0
- package/control-plane/scripts/skills/claude-api/shared/admin-api.md +179 -0
- package/control-plane/scripts/skills/claude-api/shared/agent-design.md +101 -0
- package/control-plane/scripts/skills/claude-api/shared/anthropic-cli.md +269 -0
- package/control-plane/scripts/skills/claude-api/shared/claude-platform-on-aws.md +59 -0
- package/control-plane/scripts/skills/claude-api/shared/cost-optimization.md +233 -0
- package/control-plane/scripts/skills/claude-api/shared/error-codes.md +262 -0
- package/control-plane/scripts/skills/claude-api/shared/live-sources.md +166 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-api-reference.md +455 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-client-patterns.md +220 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-core.md +359 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-environments.md +226 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-events.md +290 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-memory.md +201 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-multiagent.md +260 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-onboarding.md +82 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-outcomes.md +108 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-overview.md +77 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-scheduled-deployments.md +156 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-self-hosted-sandboxes.md +282 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-tools.md +504 -0
- package/control-plane/scripts/skills/claude-api/shared/managed-agents-webhooks.md +143 -0
- package/control-plane/scripts/skills/claude-api/shared/model-migration.md +1872 -0
- package/control-plane/scripts/skills/claude-api/shared/models.md +142 -0
- package/control-plane/scripts/skills/claude-api/shared/platform-availability.md +52 -0
- package/control-plane/scripts/skills/claude-api/shared/prompt-audit.md +223 -0
- package/control-plane/scripts/skills/claude-api/shared/prompt-caching.md +292 -0
- package/control-plane/scripts/skills/claude-api/shared/token-counting.md +56 -0
- package/control-plane/scripts/skills/claude-api/shared/tool-use-concepts.md +526 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/README.md +405 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/batches.md +106 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/files-api.md +98 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/streaming.md +178 -0
- package/control-plane/scripts/skills/claude-api/typescript/claude-api/tool-use.md +586 -0
- package/control-plane/scripts/skills/claude-api/typescript/managed-agents/README.md +359 -0
- package/control-plane/scripts/skills/dispatching-parallel-agents/SKILL.md +167 -0
- package/control-plane/scripts/skills/enhance-prompt/README.md +34 -0
- package/control-plane/scripts/skills/enhance-prompt/SKILL.md +204 -0
- package/control-plane/scripts/skills/enhance-prompt/references/KEYWORDS.md +114 -0
- package/control-plane/scripts/skills/executing-plans/SKILL.md +371 -0
- package/control-plane/scripts/skills/executing-plans/scripts/task-done +52 -0
- package/control-plane/scripts/skills/executing-plans/scripts/task-start +28 -0
- package/control-plane/scripts/skills/extract-design-md/SKILL.md +358 -0
- package/control-plane/scripts/skills/extract-design-md/examples/DESIGN.md +210 -0
- package/control-plane/scripts/skills/extract-design-md/references/angular.md +122 -0
- package/control-plane/scripts/skills/extract-design-md/references/plain-css.md +161 -0
- package/control-plane/scripts/skills/extract-design-md/references/react-tailwind.md +157 -0
- package/control-plane/scripts/skills/extract-design-md/references/svelte.md +101 -0
- package/control-plane/scripts/skills/extract-design-md/references/vue.md +107 -0
- package/control-plane/scripts/skills/finishing-a-development-branch/SKILL.md +225 -0
- package/control-plane/scripts/skills/frontend-design/LICENSE.txt +177 -0
- package/control-plane/scripts/skills/frontend-design/SKILL.md +71 -0
- package/control-plane/scripts/skills/hallmark/SKILL.md +558 -0
- package/control-plane/scripts/skills/hallmark/references/anti-patterns.md +418 -0
- package/control-plane/scripts/skills/hallmark/references/assets.md +406 -0
- package/control-plane/scripts/skills/hallmark/references/color.md +95 -0
- package/control-plane/scripts/skills/hallmark/references/component-cookbook.md +263 -0
- package/control-plane/scripts/skills/hallmark/references/components/c1-outlined-chip.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/c2-inline-form-as-cta.md +16 -0
- package/control-plane/scripts/skills/hallmark/references/components/c3-typographic-link.md +8 -0
- package/control-plane/scripts/skills/hallmark/references/components/c4-sticky-bottom-bar.md +16 -0
- package/control-plane/scripts/skills/hallmark/references/components/f1-bento-grid.md +20 -0
- package/control-plane/scripts/skills/hallmark/references/components/f2-sticky-scroll-stack.md +20 -0
- package/control-plane/scripts/skills/hallmark/references/components/f3-tabular-spec-sheet.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/f4-step-sequence.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/f5-annotated-screenshot.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/f6-product-card-grid.md +41 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft1-mast-headed.md +13 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft2-inline-rule-single-line.md +10 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft3-index-style-category-list.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft4-dense-typographic.md +10 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft5-statement.md +21 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft6-letter-close.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft7-newsletter-first.md +27 -0
- package/control-plane/scripts/skills/hallmark/references/components/ft8-marquee-scroll.md +25 -0
- package/control-plane/scripts/skills/hallmark/references/components/h1-marquee.md +15 -0
- package/control-plane/scripts/skills/hallmark/references/components/h2-split-diptych.md +15 -0
- package/control-plane/scripts/skills/hallmark/references/components/h3-quote-led.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/h4-stat-led.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/components/h5-letter-hero.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/h6-photographic-fold.md +16 -0
- package/control-plane/scripts/skills/hallmark/references/components/h7-demo-video-clipped-by-viewport-edge.md +27 -0
- package/control-plane/scripts/skills/hallmark/references/components/h8-mockup-split-browser-framed.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/components/h9-custom-illustration-centerpiece.md +27 -0
- package/control-plane/scripts/skills/hallmark/references/components/n1-wordmark-2-links.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/n10-floating-on-scroll-morph.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/n11-mega-menu.md +40 -0
- package/control-plane/scripts/skills/hallmark/references/components/n12-banner-retract.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/components/n13-inline-cmdk-pill.md +39 -0
- package/control-plane/scripts/skills/hallmark/references/components/n1b-saas-three-section.md +35 -0
- package/control-plane/scripts/skills/hallmark/references/components/n2-floating-chip.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/components/n3-side-rail.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/components/n4-hidden-behind-k.md +9 -0
- package/control-plane/scripts/skills/hallmark/references/components/n5-floating-pill.md +28 -0
- package/control-plane/scripts/skills/hallmark/references/components/n6-newspaper-masthead.md +24 -0
- package/control-plane/scripts/skills/hallmark/references/components/n7-brutal-slab.md +22 -0
- package/control-plane/scripts/skills/hallmark/references/components/n8-terminal-command.md +21 -0
- package/control-plane/scripts/skills/hallmark/references/components/n9-edge-aligned-minimal.md +17 -0
- package/control-plane/scripts/skills/hallmark/references/components/s1-left-margin-numbered.md +15 -0
- package/control-plane/scripts/skills/hallmark/references/components/s2-hanging.md +13 -0
- package/control-plane/scripts/skills/hallmark/references/components/s3-sticky-pinned.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/s4-inline-no-break.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/s5-bottom-anchored.md +13 -0
- package/control-plane/scripts/skills/hallmark/references/components/t1-pull-quote-with-marginalia.md +12 -0
- package/control-plane/scripts/skills/hallmark/references/components/t2-logo-wall-hairline.md +19 -0
- package/control-plane/scripts/skills/hallmark/references/components/t3-single-huge-quote.md +11 -0
- package/control-plane/scripts/skills/hallmark/references/components/t4-numbered-stat-strip.md +14 -0
- package/control-plane/scripts/skills/hallmark/references/contract.md +25 -0
- package/control-plane/scripts/skills/hallmark/references/copy.md +182 -0
- package/control-plane/scripts/skills/hallmark/references/custom-craft.md +626 -0
- package/control-plane/scripts/skills/hallmark/references/custom-theme.md +367 -0
- package/control-plane/scripts/skills/hallmark/references/design-md.md +116 -0
- package/control-plane/scripts/skills/hallmark/references/export-formats.md +329 -0
- package/control-plane/scripts/skills/hallmark/references/floating-nav.md +89 -0
- package/control-plane/scripts/skills/hallmark/references/genres/atmospheric.md +69 -0
- package/control-plane/scripts/skills/hallmark/references/genres/editorial.md +72 -0
- package/control-plane/scripts/skills/hallmark/references/genres/modern-minimal.md +71 -0
- package/control-plane/scripts/skills/hallmark/references/genres/playful.md +70 -0
- package/control-plane/scripts/skills/hallmark/references/hero-enrichment.md +475 -0
- package/control-plane/scripts/skills/hallmark/references/imagery-kit.md +170 -0
- package/control-plane/scripts/skills/hallmark/references/interaction-and-states.md +208 -0
- package/control-plane/scripts/skills/hallmark/references/layout-and-space.md +112 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/01-bento-grid.md +35 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/02-long-document.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/03-marquee-hero.md +31 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/04-stat-led.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/05-workbench.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/06-conversational-faq.md +33 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/07-manifesto.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/08-photographic.md +34 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/09-quote-led.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/10-specimen.md +32 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/11-catalogue.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/12-letter.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/13-index-first.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/14-narrative-workflow.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/15-split-studio.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/17-type-specimen.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/18-portfolio-grid.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/19-map-diagram.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/20-ecosystem-index.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures/21-component-playground.md +23 -0
- package/control-plane/scripts/skills/hallmark/references/macrostructures.md +89 -0
- package/control-plane/scripts/skills/hallmark/references/microinteractions.md +258 -0
- package/control-plane/scripts/skills/hallmark/references/motion.md +109 -0
- package/control-plane/scripts/skills/hallmark/references/preview-examples.md +49 -0
- package/control-plane/scripts/skills/hallmark/references/responsive.md +138 -0
- package/control-plane/scripts/skills/hallmark/references/slop-test.md +192 -0
- package/control-plane/scripts/skills/hallmark/references/structure.md +160 -0
- package/control-plane/scripts/skills/hallmark/references/study.md +509 -0
- package/control-plane/scripts/skills/hallmark/references/themes/carnival.md +301 -0
- package/control-plane/scripts/skills/hallmark/references/themes/cobalt.md +146 -0
- package/control-plane/scripts/skills/hallmark/references/themes/grid.md +161 -0
- package/control-plane/scripts/skills/hallmark/references/themes/hum.md +403 -0
- package/control-plane/scripts/skills/hallmark/references/themes/lumen.md +478 -0
- package/control-plane/scripts/skills/hallmark/references/typography.md +243 -0
- package/control-plane/scripts/skills/hallmark/references/upstream/recipes.md +186 -0
- package/control-plane/scripts/skills/hallmark/references/upstream/study-examples.md +176 -0
- package/control-plane/scripts/skills/hallmark/references/upstream/tokens.css +1221 -0
- package/control-plane/scripts/skills/hallmark/references/verbs/audit.md +25 -0
- package/control-plane/scripts/skills/hallmark/references/verbs/redesign.md +269 -0
- package/control-plane/scripts/skills/human-comms/SKILL.md +29 -0
- package/control-plane/scripts/skills/index.mjs +432 -0
- package/control-plane/scripts/skills/internal-comms/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/internal-comms/SKILL.md +32 -0
- package/control-plane/scripts/skills/internal-comms/examples/3p-updates.md +47 -0
- package/control-plane/scripts/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/control-plane/scripts/skills/internal-comms/examples/faq-answers.md +30 -0
- package/control-plane/scripts/skills/internal-comms/examples/general-comms.md +16 -0
- package/control-plane/scripts/skills/mcp-adapter.mjs +94 -0
- package/control-plane/scripts/skills/mcp-builder/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/mcp-builder/SKILL.md +236 -0
- package/control-plane/scripts/skills/mcp-builder/reference/evaluation.md +602 -0
- package/control-plane/scripts/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/control-plane/scripts/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/control-plane/scripts/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/connections.py +151 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/control-plane/scripts/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/control-plane/scripts/skills/ponytail/SKILL.md +120 -0
- package/control-plane/scripts/skills/ponytail-audit/SKILL.md +41 -0
- package/control-plane/scripts/skills/ponytail-debt/SKILL.md +44 -0
- package/control-plane/scripts/skills/ponytail-gain/SKILL.md +50 -0
- package/control-plane/scripts/skills/ponytail-help/SKILL.md +71 -0
- package/control-plane/scripts/skills/ponytail-review/SKILL.md +57 -0
- package/control-plane/scripts/skills/receiving-code-review/SKILL.md +205 -0
- package/control-plane/scripts/skills/requesting-code-review/SKILL.md +95 -0
- package/control-plane/scripts/skills/requesting-code-review/code-reviewer.md +198 -0
- package/control-plane/scripts/skills/skill-creator/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/skill-creator/SKILL.md +485 -0
- package/control-plane/scripts/skills/skill-creator/agents/analyzer.md +274 -0
- package/control-plane/scripts/skills/skill-creator/agents/comparator.md +202 -0
- package/control-plane/scripts/skills/skill-creator/agents/grader.md +223 -0
- package/control-plane/scripts/skills/skill-creator/assets/eval_review.html +146 -0
- package/control-plane/scripts/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/control-plane/scripts/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/control-plane/scripts/skills/skill-creator/references/schemas.md +430 -0
- package/control-plane/scripts/skills/skill-creator/scripts/__init__.py +0 -0
- package/control-plane/scripts/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/control-plane/scripts/skills/skill-creator/scripts/generate_report.py +326 -0
- package/control-plane/scripts/skills/skill-creator/scripts/improve_description.py +247 -0
- package/control-plane/scripts/skills/skill-creator/scripts/package_skill.py +136 -0
- package/control-plane/scripts/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/control-plane/scripts/skills/skill-creator/scripts/run_eval.py +310 -0
- package/control-plane/scripts/skills/skill-creator/scripts/run_loop.py +328 -0
- package/control-plane/scripts/skills/skill-creator/scripts/utils.py +47 -0
- package/control-plane/scripts/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/slack-gif-creator/SKILL.md +254 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/easing.py +234 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/frame_composer.py +176 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/gif_builder.py +269 -0
- package/control-plane/scripts/skills/slack-gif-creator/core/validators.py +136 -0
- package/control-plane/scripts/skills/slack-gif-creator/requirements.txt +4 -0
- package/control-plane/scripts/skills/sources.json +401 -0
- package/control-plane/scripts/skills/sources.lock.json +416 -0
- package/control-plane/scripts/skills/subagent-driven-development/SKILL.md +570 -0
- package/control-plane/scripts/skills/subagent-driven-development/implementer-prompt.md +154 -0
- package/control-plane/scripts/skills/subagent-driven-development/re-review-prompt.md +115 -0
- package/control-plane/scripts/skills/subagent-driven-development/scripts/review-package +53 -0
- package/control-plane/scripts/skills/subagent-driven-development/scripts/sdd-workspace +82 -0
- package/control-plane/scripts/skills/subagent-driven-development/scripts/task-brief +43 -0
- package/control-plane/scripts/skills/subagent-driven-development/task-reviewer-prompt.md +207 -0
- package/control-plane/scripts/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/control-plane/scripts/skills/systematic-debugging/SKILL.md +283 -0
- package/control-plane/scripts/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/control-plane/scripts/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/control-plane/scripts/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/control-plane/scripts/skills/systematic-debugging/find-polluter.sh +72 -0
- package/control-plane/scripts/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/control-plane/scripts/skills/systematic-debugging/test-academic.md +14 -0
- package/control-plane/scripts/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/control-plane/scripts/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/control-plane/scripts/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/control-plane/scripts/skills/test-driven-development/SKILL.md +330 -0
- package/control-plane/scripts/skills/test-driven-development/writing-good-tests.md +198 -0
- package/control-plane/scripts/skills/theme-factory/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/theme-factory/SKILL.md +59 -0
- package/control-plane/scripts/skills/theme-factory/theme-showcase.pdf +0 -0
- package/control-plane/scripts/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/desert-rose.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/golden-hour.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/control-plane/scripts/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/control-plane/scripts/skills/using-git-worktrees/SKILL.md +167 -0
- package/control-plane/scripts/skills/verification-before-completion/SKILL.md +120 -0
- package/control-plane/scripts/skills/web-artifacts-builder/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/web-artifacts-builder/SKILL.md +74 -0
- package/control-plane/scripts/skills/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/control-plane/scripts/skills/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/control-plane/scripts/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/control-plane/scripts/skills/webapp-testing/LICENSE.txt +202 -0
- package/control-plane/scripts/skills/webapp-testing/SKILL.md +96 -0
- package/control-plane/scripts/skills/webapp-testing/examples/console_logging.py +35 -0
- package/control-plane/scripts/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/control-plane/scripts/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/control-plane/scripts/skills/webapp-testing/scripts/with_server.py +106 -0
- package/control-plane/scripts/skills/writing-plans/SKILL.md +192 -0
- package/control-plane/scripts/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/control-plane/scripts/skills/writing-skills/SKILL.md +681 -0
- package/control-plane/scripts/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/control-plane/scripts/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/control-plane/scripts/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/control-plane/scripts/skills/writing-skills/persuasion-principles.md +187 -0
- package/control-plane/scripts/skills/writing-skills/render-graphs.js +169 -0
- package/control-plane/scripts/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/control-plane/scripts/smoke-mcp-schemas.mjs +30 -0
- package/control-plane/scripts/surface-config.mjs +45 -0
- package/control-plane/scripts/sync-skills.mjs +370 -0
- package/control-plane/scripts/tool-metrics.mjs +74 -0
- package/control-plane/scripts/tool-risk.mjs +156 -0
- package/control-plane/scripts/tool-surface-stability.mjs +38 -0
- package/control-plane/scripts/upstreams/catalog-cache.mjs +28 -0
- package/control-plane/scripts/upstreams/config.mjs +158 -0
- package/control-plane/scripts/upstreams/diagnostics.mjs +21 -0
- package/control-plane/scripts/upstreams/http-client.mjs +67 -0
- package/control-plane/scripts/upstreams/manager.mjs +535 -0
- package/control-plane/scripts/upstreams/names.mjs +55 -0
- package/control-plane/scripts/upstreams/presets.mjs +60 -0
- package/control-plane/scripts/upstreams/resource-uri.mjs +29 -0
- package/control-plane/scripts/upstreams/stdio-client.mjs +73 -0
- package/control-plane/scripts/workspace-registry.mjs +147 -0
- package/dist/context/authorization.d.ts +5 -0
- package/dist/context/authorization.js +70 -0
- package/dist/context/capture.d.ts +46 -0
- package/dist/context/capture.js +187 -0
- package/dist/context/cli.d.ts +47 -0
- package/dist/context/cli.js +287 -0
- package/dist/context/device-adapter.d.ts +102 -0
- package/dist/context/device-adapter.js +79 -0
- package/dist/context/gateway.d.ts +354 -0
- package/dist/context/gateway.js +50 -0
- package/dist/context/graph.d.ts +63 -0
- package/dist/context/graph.js +214 -0
- package/dist/context/importer.d.ts +8 -0
- package/dist/context/importer.js +69 -0
- package/dist/context/indexer.d.ts +14 -0
- package/dist/context/indexer.js +57 -0
- package/dist/context/migrations/index.d.ts +4 -0
- package/dist/context/migrations/index.js +87 -0
- package/dist/context/redact.d.ts +15 -0
- package/dist/context/redact.js +43 -0
- package/dist/context/repositories.d.ts +9 -0
- package/dist/context/repositories.js +45 -0
- package/dist/context/search.d.ts +63 -0
- package/dist/context/search.js +207 -0
- package/dist/context/service.d.ts +278 -0
- package/dist/context/service.js +160 -0
- package/dist/context/store.d.ts +134 -0
- package/dist/context/store.js +722 -0
- package/dist/context/text.d.ts +4 -0
- package/dist/context/text.js +14 -0
- package/dist/context/tool-contract.d.ts +534 -0
- package/dist/context/tool-contract.js +45 -0
- package/dist/device/core.d.ts +29 -0
- package/dist/device/core.js +66 -0
- package/dist/device/device.d.ts +5 -0
- package/dist/device/device.js +94 -37
- package/dist/device/gateway-channel.d.ts +8 -1
- package/dist/device/gateway-channel.js +51 -3
- package/dist/device/gateway-tool-adapter.d.ts +11 -3
- package/dist/device/gateway-tool-adapter.js +141 -98
- package/dist/device/official-trust.d.ts +12 -0
- package/dist/device/official-trust.js +25 -1
- package/dist/device/runtime-owner.js +9 -1
- package/dist/distribution.d.ts +4 -0
- package/dist/distribution.js +8 -0
- package/dist/handlers/filesystem-handlers.js +53 -37
- package/dist/handlers/search-handlers.d.ts +1 -0
- package/dist/handlers/search-handlers.js +51 -1
- package/dist/log-palace/cli.d.ts +7 -0
- package/dist/log-palace/cli.js +89 -0
- package/dist/log-palace/formats.d.ts +26 -0
- package/dist/log-palace/formats.js +126 -0
- package/dist/log-palace/store.d.ts +129 -0
- package/dist/log-palace/store.js +856 -0
- package/dist/mcp-device.d.ts +1 -1
- package/dist/mcp-device.js +28 -6
- package/dist/npm-scripts/remote.js +1 -0
- package/dist/platform/activity-journal.d.ts +16 -0
- package/dist/platform/activity-journal.js +68 -0
- package/dist/platform/cli.d.ts +1 -0
- package/dist/platform/cli.js +300 -0
- package/dist/platform/coordination-lock.d.ts +45 -0
- package/dist/platform/coordination-lock.js +233 -0
- package/dist/platform/device-runtime.d.ts +16 -0
- package/dist/platform/device-runtime.js +83 -0
- package/dist/platform/knowledge-contract.d.ts +46 -0
- package/dist/platform/knowledge-contract.js +1 -0
- package/dist/platform/knowledge-mcp.d.ts +29 -0
- package/dist/platform/knowledge-mcp.js +95 -0
- package/dist/platform/knowledge-router.d.ts +64 -0
- package/dist/platform/knowledge-router.js +320 -0
- package/dist/platform/plugin-child.d.ts +1 -0
- package/dist/platform/plugin-child.js +115 -0
- package/dist/platform/plugin-contract.d.ts +76 -0
- package/dist/platform/plugin-contract.js +53 -0
- package/dist/platform/plugin-driver.d.ts +8 -0
- package/dist/platform/plugin-driver.js +443 -0
- package/dist/platform/plugin-host.d.ts +88 -0
- package/dist/platform/plugin-host.js +817 -0
- package/dist/platform/plugin-policy.d.ts +3 -0
- package/dist/platform/plugin-policy.js +29 -0
- package/dist/platform/plugin-services.d.ts +14 -0
- package/dist/platform/plugin-services.js +32 -0
- package/dist/platform/process-identity.d.ts +9 -0
- package/dist/platform/process-identity.js +68 -0
- package/dist/platform/runtime-lease.d.ts +4 -0
- package/dist/platform/runtime-lease.js +58 -0
- package/dist/platform/runtime-root.d.ts +9 -0
- package/dist/platform/runtime-root.js +61 -0
- package/dist/platform/state-backup.d.ts +92 -0
- package/dist/platform/state-backup.js +399 -0
- package/dist/plugins/reference/plugin.d.ts +3 -0
- package/dist/plugins/reference/plugin.js +13 -0
- package/dist/search-manager.d.ts +6 -0
- package/dist/search-manager.js +123 -0
- package/dist/server.d.ts +13 -0
- package/dist/server.js +7 -3
- package/dist/terminal-manager.d.ts +16 -0
- package/dist/terminal-manager.js +137 -42
- package/dist/tool-dispatcher.d.ts +11 -0
- package/dist/tool-dispatcher.js +228 -0
- package/dist/tools/edit.js +72 -1
- package/dist/tools/filesystem.d.ts +1 -1
- package/dist/tools/filesystem.js +2 -2
- package/dist/tools/improved-process-tools.js +91 -108
- package/dist/tools/schemas.d.ts +94 -2
- package/dist/tools/schemas.js +20 -6
- package/dist/types.d.ts +8 -0
- package/dist/utils/output-budget.d.ts +6 -0
- package/dist/utils/output-budget.js +15 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +29 -6
- package/skills/mcp-device-context/SKILL.md +40 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: enhance-prompt
|
|
3
|
+
description: Use when rewriting a vague UI request into a precise Google Stitch generation or editing prompt before UI generation, especially when layout, components, interactions, responsive behavior, or design-system constraints are underspecified.
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- "Read"
|
|
6
|
+
- "Write"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Enhance Prompt for Stitch
|
|
10
|
+
|
|
11
|
+
You are a **Stitch Prompt Engineer**. Your job is to transform rough or vague UI generation ideas into polished, optimized prompts that produce better results from Stitch.
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
Before enhancing prompts, consult the official Stitch documentation for the latest best practices:
|
|
16
|
+
|
|
17
|
+
- **Stitch Effective Prompting Guide**: https://stitch.withgoogle.com/docs/learn/prompting/
|
|
18
|
+
|
|
19
|
+
This guide contains up-to-date recommendations that may supersede or complement the patterns in this skill.
|
|
20
|
+
|
|
21
|
+
## When to Use This Skill
|
|
22
|
+
|
|
23
|
+
Activate when a user wants to:
|
|
24
|
+
- Polish a UI prompt before sending to Stitch
|
|
25
|
+
- Improve a prompt that produced poor results
|
|
26
|
+
- Add design system consistency to a simple idea
|
|
27
|
+
- Structure a vague concept into an actionable prompt
|
|
28
|
+
|
|
29
|
+
## Enhancement Pipeline
|
|
30
|
+
|
|
31
|
+
Follow these steps to enhance any prompt:
|
|
32
|
+
|
|
33
|
+
### Step 1: Assess the Input
|
|
34
|
+
|
|
35
|
+
Evaluate what's missing from the user's prompt:
|
|
36
|
+
|
|
37
|
+
| Element | Check for | If missing... |
|
|
38
|
+
|---------|-----------|---------------|
|
|
39
|
+
| **Platform** | "web", "mobile", "desktop" | Add based on context or ask |
|
|
40
|
+
| **Page type** | "landing page", "dashboard", "form" | Infer from description |
|
|
41
|
+
| **Structure** | Numbered sections/components | Create logical page structure |
|
|
42
|
+
| **Visual style** | Adjectives, mood, vibe | Add appropriate descriptors |
|
|
43
|
+
| **Colors** | Specific values or roles | Add design system or suggest |
|
|
44
|
+
| **Components** | UI-specific terms | Translate to proper keywords |
|
|
45
|
+
|
|
46
|
+
### Step 2: Check for DESIGN.md
|
|
47
|
+
|
|
48
|
+
Look for a `DESIGN.md` file in the current project:
|
|
49
|
+
|
|
50
|
+
**If DESIGN.md exists:**
|
|
51
|
+
1. Read the file to extract the design system block
|
|
52
|
+
2. Include the color palette, typography, and component styles
|
|
53
|
+
3. Format as a "DESIGN SYSTEM (REQUIRED)" section in the output
|
|
54
|
+
|
|
55
|
+
**If DESIGN.md does not exist:**
|
|
56
|
+
1. Add this note at the end of the enhanced prompt:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
---
|
|
60
|
+
💡 **Tip:** For consistent designs across multiple screens, create a DESIGN.md
|
|
61
|
+
file using the `design-md` skill. This ensures all generated pages share the
|
|
62
|
+
same visual language.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Step 3: Apply Enhancements
|
|
66
|
+
|
|
67
|
+
Transform the input using these techniques:
|
|
68
|
+
|
|
69
|
+
#### A. Add UI/UX Keywords
|
|
70
|
+
|
|
71
|
+
Replace vague terms with specific component names:
|
|
72
|
+
|
|
73
|
+
| Vague | Enhanced |
|
|
74
|
+
|-------|----------|
|
|
75
|
+
| "menu at the top" | "navigation bar with logo and menu items" |
|
|
76
|
+
| "button" | "primary call-to-action button" |
|
|
77
|
+
| "list of items" | "card grid layout" or "vertical list with thumbnails" |
|
|
78
|
+
| "form" | "form with labeled input fields and submit button" |
|
|
79
|
+
| "picture area" | "hero section with full-width image" |
|
|
80
|
+
|
|
81
|
+
#### B. Amplify the Vibe
|
|
82
|
+
|
|
83
|
+
Add descriptive adjectives to set the mood:
|
|
84
|
+
|
|
85
|
+
| Basic | Enhanced |
|
|
86
|
+
|-------|----------|
|
|
87
|
+
| "modern" | "clean, minimal, with generous whitespace" |
|
|
88
|
+
| "professional" | "sophisticated, trustworthy, with subtle shadows" |
|
|
89
|
+
| "fun" | "vibrant, playful, with rounded corners and bold colors" |
|
|
90
|
+
| "dark mode" | "dark theme with high-contrast accents on deep backgrounds" |
|
|
91
|
+
|
|
92
|
+
#### C. Structure the Page
|
|
93
|
+
|
|
94
|
+
Organize content into numbered sections:
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
**Page Structure:**
|
|
98
|
+
1. **Header:** Navigation with logo and menu items
|
|
99
|
+
2. **Hero Section:** Headline, subtext, and primary CTA
|
|
100
|
+
3. **Content Area:** [Describe the main content]
|
|
101
|
+
4. **Footer:** Links, social icons, copyright
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### D. Format Colors Properly
|
|
105
|
+
|
|
106
|
+
When colors are mentioned, format them as:
|
|
107
|
+
```
|
|
108
|
+
Descriptive Name (#hexcode) for functional role
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Examples:
|
|
112
|
+
- "Deep Ocean Blue (#1a365d) for primary buttons and links"
|
|
113
|
+
- "Warm Cream (#faf5f0) for page background"
|
|
114
|
+
- "Soft Gray (#6b7280) for secondary text"
|
|
115
|
+
|
|
116
|
+
### Step 4: Format the Output
|
|
117
|
+
|
|
118
|
+
Structure the enhanced prompt in this order:
|
|
119
|
+
|
|
120
|
+
```markdown
|
|
121
|
+
[One-line description of the page purpose and vibe]
|
|
122
|
+
|
|
123
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
124
|
+
- Platform: [Web/Mobile], [Desktop/Mobile]-first
|
|
125
|
+
- Theme: [Light/Dark], [style descriptors]
|
|
126
|
+
- Background: [Color description] (#hex)
|
|
127
|
+
- Primary Accent: [Color description] (#hex) for [role]
|
|
128
|
+
- Text Primary: [Color description] (#hex)
|
|
129
|
+
- [Additional design tokens...]
|
|
130
|
+
|
|
131
|
+
**Page Structure:**
|
|
132
|
+
1. **[Section]:** [Description]
|
|
133
|
+
2. **[Section]:** [Description]
|
|
134
|
+
...
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Output Options
|
|
138
|
+
|
|
139
|
+
**Default:** Return the enhanced prompt as text for the user to copy.
|
|
140
|
+
|
|
141
|
+
**Optional file output:** If the user requests, write to a file:
|
|
142
|
+
- `next-prompt.md` — for use with the `stitch-loop` skill
|
|
143
|
+
- Custom filename specified by user
|
|
144
|
+
|
|
145
|
+
## Examples
|
|
146
|
+
|
|
147
|
+
### Example 1: Vague Input → Structured Prompt
|
|
148
|
+
|
|
149
|
+
**User input:**
|
|
150
|
+
> "make me a login page"
|
|
151
|
+
|
|
152
|
+
**Enhanced output:**
|
|
153
|
+
```markdown
|
|
154
|
+
A clean, trustworthy login page with a centered form and subtle branding.
|
|
155
|
+
|
|
156
|
+
**DESIGN SYSTEM (REQUIRED):**
|
|
157
|
+
- Platform: Web, Desktop-first
|
|
158
|
+
- Theme: Light, minimal, professional
|
|
159
|
+
- Background: Clean White (#ffffff)
|
|
160
|
+
- Surface: Soft Gray (#f9fafb) for form card
|
|
161
|
+
- Primary Accent: Deep Blue (#2563eb) for submit button and links
|
|
162
|
+
- Text Primary: Near Black (#111827) for headings
|
|
163
|
+
- Text Secondary: Medium Gray (#6b7280) for labels
|
|
164
|
+
- Buttons: Subtly rounded (8px), full-width on form
|
|
165
|
+
- Cards: Gently rounded (12px), soft shadow for elevation
|
|
166
|
+
|
|
167
|
+
**Page Structure:**
|
|
168
|
+
1. **Header:** Minimal logo, centered
|
|
169
|
+
2. **Login Card:** Centered form with email, password fields, "Forgot password?" link
|
|
170
|
+
3. **Submit Button:** Primary blue "Sign In" button
|
|
171
|
+
4. **Footer:** "Don't have an account? Sign up" link
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
💡 **Tip:** For consistent designs across multiple screens, create a DESIGN.md
|
|
175
|
+
file using the `design-md` skill.
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Example 2: Feature Request → Targeted Edit
|
|
179
|
+
|
|
180
|
+
**User input:**
|
|
181
|
+
> "add a search bar"
|
|
182
|
+
|
|
183
|
+
**Enhanced output:**
|
|
184
|
+
```markdown
|
|
185
|
+
Add a search bar to the header navigation.
|
|
186
|
+
|
|
187
|
+
**Specific changes:**
|
|
188
|
+
- Location: Header, right side before user avatar
|
|
189
|
+
- Style: Pill-shaped input with subtle gray background (#f3f4f6)
|
|
190
|
+
- Icon: Magnifying glass icon on the left, inside the input
|
|
191
|
+
- Placeholder: "Search..." in light gray (#9ca3af)
|
|
192
|
+
- Behavior: Expands on focus with subtle shadow
|
|
193
|
+
- Width: 240px default, 320px on focus
|
|
194
|
+
|
|
195
|
+
**Context:** This is a targeted edit. Make only this change while preserving all existing elements.
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Tips for Best Results
|
|
199
|
+
|
|
200
|
+
1. **Be specific early** — Vague inputs need more enhancement
|
|
201
|
+
2. **Match the user's intent** — Don't over-design if they want simple
|
|
202
|
+
3. **Keep it structured** — Numbered sections help Stitch understand hierarchy
|
|
203
|
+
4. **Include the design system** — Consistency is key for multi-page projects
|
|
204
|
+
5. **One change at a time for edits** — Don't bundle unrelated changes
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# UI/UX Keywords Reference
|
|
2
|
+
|
|
3
|
+
Progressive disclosure reference for common UI terminology and adjective palettes.
|
|
4
|
+
|
|
5
|
+
## Component Keywords
|
|
6
|
+
|
|
7
|
+
### Navigation
|
|
8
|
+
- navigation bar, nav menu, header
|
|
9
|
+
- breadcrumbs, tabs, sidebar
|
|
10
|
+
- hamburger menu, dropdown menu
|
|
11
|
+
- back button, close button
|
|
12
|
+
|
|
13
|
+
### Content Containers
|
|
14
|
+
- hero section, hero banner
|
|
15
|
+
- card, card grid, tile
|
|
16
|
+
- modal, dialog, popup
|
|
17
|
+
- accordion, collapsible section
|
|
18
|
+
- carousel, slider
|
|
19
|
+
|
|
20
|
+
### Forms
|
|
21
|
+
- input field, text input
|
|
22
|
+
- dropdown, select menu
|
|
23
|
+
- checkbox, radio button
|
|
24
|
+
- toggle switch
|
|
25
|
+
- date picker, time picker
|
|
26
|
+
- search bar, search input
|
|
27
|
+
- submit button, form actions
|
|
28
|
+
|
|
29
|
+
### Calls to Action
|
|
30
|
+
- primary button, secondary button
|
|
31
|
+
- ghost button, text link
|
|
32
|
+
- floating action button (FAB)
|
|
33
|
+
- icon button
|
|
34
|
+
|
|
35
|
+
### Feedback
|
|
36
|
+
- toast notification, snackbar
|
|
37
|
+
- alert banner, warning message
|
|
38
|
+
- loading spinner, skeleton loader
|
|
39
|
+
- progress bar, step indicator
|
|
40
|
+
|
|
41
|
+
### Layout
|
|
42
|
+
- grid layout, flexbox
|
|
43
|
+
- sidebar layout, split view
|
|
44
|
+
- sticky header, fixed footer
|
|
45
|
+
- full-width, contained width
|
|
46
|
+
- centered content, max-width container
|
|
47
|
+
|
|
48
|
+
## Adjective Palettes
|
|
49
|
+
|
|
50
|
+
### Minimal / Clean
|
|
51
|
+
- minimal, clean, uncluttered
|
|
52
|
+
- generous whitespace, breathing room
|
|
53
|
+
- subtle, understated, refined
|
|
54
|
+
- simple, focused, distraction-free
|
|
55
|
+
|
|
56
|
+
### Professional / Corporate
|
|
57
|
+
- sophisticated, polished, trustworthy
|
|
58
|
+
- corporate, business-like, formal
|
|
59
|
+
- subtle shadows, clean lines
|
|
60
|
+
- structured, organized, hierarchical
|
|
61
|
+
|
|
62
|
+
### Playful / Fun
|
|
63
|
+
- vibrant, colorful, energetic
|
|
64
|
+
- rounded corners, soft edges
|
|
65
|
+
- bold, expressive, dynamic
|
|
66
|
+
- friendly, approachable, warm
|
|
67
|
+
|
|
68
|
+
### Premium / Luxury
|
|
69
|
+
- elegant, luxurious, high-end
|
|
70
|
+
- dramatic, bold contrasts
|
|
71
|
+
- sleek, modern, cutting-edge
|
|
72
|
+
- exclusive, boutique, curated
|
|
73
|
+
|
|
74
|
+
### Dark Mode
|
|
75
|
+
- dark theme, night mode
|
|
76
|
+
- high-contrast accents
|
|
77
|
+
- soft glows, subtle highlights
|
|
78
|
+
- deep backgrounds, muted surfaces
|
|
79
|
+
|
|
80
|
+
### Organic / Natural
|
|
81
|
+
- earthy tones, natural colors
|
|
82
|
+
- warm, inviting, cozy
|
|
83
|
+
- textured, tactile, handcrafted
|
|
84
|
+
- flowing, organic shapes
|
|
85
|
+
|
|
86
|
+
## Color Role Terminology
|
|
87
|
+
|
|
88
|
+
### Backgrounds
|
|
89
|
+
- page background, canvas
|
|
90
|
+
- surface color, card background
|
|
91
|
+
- overlay, scrim
|
|
92
|
+
|
|
93
|
+
### Text
|
|
94
|
+
- primary text, heading color
|
|
95
|
+
- secondary text, body copy
|
|
96
|
+
- muted text, placeholder
|
|
97
|
+
- inverse text (on dark backgrounds)
|
|
98
|
+
|
|
99
|
+
### Accents
|
|
100
|
+
- primary accent, brand color
|
|
101
|
+
- secondary accent, highlight
|
|
102
|
+
- success, error, warning colors
|
|
103
|
+
- hover state, active state
|
|
104
|
+
|
|
105
|
+
## Shape Descriptions
|
|
106
|
+
|
|
107
|
+
| Technical | Natural Language |
|
|
108
|
+
|-----------|------------------|
|
|
109
|
+
| `rounded-none` | sharp, squared-off edges |
|
|
110
|
+
| `rounded-sm` | slightly softened corners |
|
|
111
|
+
| `rounded-md` | gently rounded corners |
|
|
112
|
+
| `rounded-lg` | generously rounded corners |
|
|
113
|
+
| `rounded-xl` | very rounded, pillow-like |
|
|
114
|
+
| `rounded-full` | pill-shaped, circular |
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: executing-plans
|
|
3
|
+
description: Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Executing Plans
|
|
7
|
+
|
|
8
|
+
Execute the plan yourself, task by task, in this session: no implementer
|
|
9
|
+
subagent per task, no reviewer per task. One fresh-context review of the
|
|
10
|
+
whole branch at the end.
|
|
11
|
+
|
|
12
|
+
**Why inline:** Subagent-driven development pays for a fresh implementer
|
|
13
|
+
and a fresh reviewer on every task, each re-reading the codebase from zero.
|
|
14
|
+
Inline execution pays for one context (yours) plus one reviewer at the end.
|
|
15
|
+
What it gives up is a fresh context per task and a second pair of eyes per
|
|
16
|
+
task. This skill keeps what those two things bought, by other means: the
|
|
17
|
+
brief is the spec, the ledger is your memory, TDD is the per-task gate, and
|
|
18
|
+
the final reviewer is the second pair of eyes.
|
|
19
|
+
|
|
20
|
+
**Core principle:** The plan already did the thinking. Execute it exactly,
|
|
21
|
+
prove each step with a test you watched fail and then pass, and leave a
|
|
22
|
+
record that survives your own forgetting.
|
|
23
|
+
|
|
24
|
+
**Narration:** between tool calls, narrate at most one short line — the
|
|
25
|
+
ledger and the tool results carry the record.
|
|
26
|
+
|
|
27
|
+
**Continuous execution:** Do not pause to check in with your human partner
|
|
28
|
+
between tasks. They chose inline execution to spend less, not to answer
|
|
29
|
+
"should I continue?" after every task. Execute all tasks from the plan
|
|
30
|
+
without stopping.
|
|
31
|
+
|
|
32
|
+
**Rulings, not stalls.** Conflicts, ambiguities, plan defects — decide them.
|
|
33
|
+
The spec is the binding authority, the plan is its argument, and your
|
|
34
|
+
judgment settles what neither answers. Record every decision in the ledger
|
|
35
|
+
as `Ruling: <what you decided> — <why> — <what it costs if wrong>`, and keep
|
|
36
|
+
going. Deviating from the plan without a ledgered ruling is a decision made
|
|
37
|
+
in secret.
|
|
38
|
+
|
|
39
|
+
Four things stop you, and only these: an irreversible or destructive
|
|
40
|
+
operation; a security-sensitive action; a side effect outside this worktree
|
|
41
|
+
that norms say you ask about first (a merge, a push to a shared branch, a
|
|
42
|
+
publish); and a plan so broken that every path forward is a guess. For
|
|
43
|
+
those, stop and ask.
|
|
44
|
+
|
|
45
|
+
## When to Use
|
|
46
|
+
|
|
47
|
+
- You have a plan from superpowers:writing-plans and your human partner
|
|
48
|
+
chose inline execution at the handoff.
|
|
49
|
+
- Your harness has no subagent tool. Never fabricate a dispatch; run the plan here.
|
|
50
|
+
- Tasks are mostly independent — the same precondition as
|
|
51
|
+
superpowers:subagent-driven-development.
|
|
52
|
+
|
|
53
|
+
A fully specified plan makes inline execution transcription plus testing:
|
|
54
|
+
it runs well on a mid-tier session model, and the one place the most
|
|
55
|
+
capable model earns its cost is the final review, which this skill
|
|
56
|
+
dispatches separately. Tell your human partner so when they choose inline.
|
|
57
|
+
|
|
58
|
+
Prefer superpowers:subagent-driven-development when your human partner
|
|
59
|
+
wants a review gate on every task, or when the plan is long enough that
|
|
60
|
+
its later tasks would run on a compacted context. Inline execution over a
|
|
61
|
+
long plan still works — the ledger is what makes it recoverable — but the
|
|
62
|
+
last tasks get the least of you.
|
|
63
|
+
|
|
64
|
+
## The Process
|
|
65
|
+
|
|
66
|
+
```dot
|
|
67
|
+
digraph process {
|
|
68
|
+
rankdir=TB;
|
|
69
|
+
|
|
70
|
+
subgraph cluster_per_task {
|
|
71
|
+
label="Per Task";
|
|
72
|
+
"task-start: brief + BASE; read the brief" [shape=box];
|
|
73
|
+
"Work the steps in order: TDD, run every verification, read every output" [shape=box];
|
|
74
|
+
"Step output matches plan's Expected?" [shape=diamond];
|
|
75
|
+
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [shape=box];
|
|
76
|
+
"Commit as the plan's commit steps say" [shape=box];
|
|
77
|
+
"Completion contract met?" [shape=diamond];
|
|
78
|
+
"task-done: run tests, ledger the result; mark todo complete" [shape=box];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" [shape=box];
|
|
82
|
+
"More tasks remain?" [shape=diamond];
|
|
83
|
+
"Final whole-branch review (fresh reviewer if you have one)" [shape=box];
|
|
84
|
+
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" [shape=box];
|
|
85
|
+
"Final review clean: delete this plan's workspace" [shape=box];
|
|
86
|
+
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
|
|
87
|
+
|
|
88
|
+
"Setup: worktree, workspace + ledger, read plan + spec, pre-flight scan" -> "task-start: brief + BASE; read the brief";
|
|
89
|
+
"task-start: brief + BASE; read the brief" -> "Work the steps in order: TDD, run every verification, read every output";
|
|
90
|
+
"Work the steps in order: TDD, run every verification, read every output" -> "Step output matches plan's Expected?";
|
|
91
|
+
"Step output matches plan's Expected?" -> "Plan wrong? Rule and ledger. Code wrong? systematic-debugging" [label="no"];
|
|
92
|
+
"Plan wrong? Rule and ledger. Code wrong? systematic-debugging" -> "Work the steps in order: TDD, run every verification, read every output";
|
|
93
|
+
"Step output matches plan's Expected?" -> "Commit as the plan's commit steps say" [label="yes, last step"];
|
|
94
|
+
"Commit as the plan's commit steps say" -> "Completion contract met?";
|
|
95
|
+
"Completion contract met?" -> "Work the steps in order: TDD, run every verification, read every output" [label="no - finish the task"];
|
|
96
|
+
"Completion contract met?" -> "task-done: run tests, ledger the result; mark todo complete" [label="yes"];
|
|
97
|
+
"task-done: run tests, ledger the result; mark todo complete" -> "More tasks remain?";
|
|
98
|
+
"More tasks remain?" -> "task-start: brief + BASE; read the brief" [label="yes"];
|
|
99
|
+
"More tasks remain?" -> "Final whole-branch review (fresh reviewer if you have one)" [label="no"];
|
|
100
|
+
"Final whole-branch review (fresh reviewer if you have one)" -> "Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger";
|
|
101
|
+
"Re-grade, then: Critical/Important → ONE fix pass, each fix RED→GREEN + green suite; Minor → ledger" -> "Final review clean: delete this plan's workspace";
|
|
102
|
+
"Final review clean: delete this plan's workspace" -> "Use superpowers:finishing-a-development-branch";
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Setup
|
|
107
|
+
|
|
108
|
+
Ensure the work happens in an isolated workspace: use
|
|
109
|
+
superpowers:using-git-worktrees to create one or verify the existing one.
|
|
110
|
+
Never start implementation on a main/master branch without your human
|
|
111
|
+
partner's explicit consent.
|
|
112
|
+
|
|
113
|
+
Conversation memory does not survive compaction. An inline executor that
|
|
114
|
+
loses its place re-implements tasks whose commits already exist — the same
|
|
115
|
+
failure as a controller re-dispatching them, paid for in your own context.
|
|
116
|
+
Track progress in a ledger file, not only in todos. Harness todos are a
|
|
117
|
+
live view; the ledger is the record.
|
|
118
|
+
|
|
119
|
+
The workspace and ledger are shared with superpowers:subagent-driven-development
|
|
120
|
+
— same directory, same format — so a plan can change executors mid-flight
|
|
121
|
+
and the new one resumes from the same ledger.
|
|
122
|
+
|
|
123
|
+
- Each plan owns a workspace: at skill start, run
|
|
124
|
+
`../subagent-driven-development/scripts/sdd-workspace PLAN_FILE` — it
|
|
125
|
+
prints the plan's git-ignored directory
|
|
126
|
+
(`<repo-root>/.superpowers/sdd/<plan-basename>/`), home to every
|
|
127
|
+
artifact for THIS plan: ledger, briefs, review packages. Another plan's
|
|
128
|
+
directory is never yours to read or write.
|
|
129
|
+
- Check for this plan's ledger at `<workspace>/progress.md`. If its first
|
|
130
|
+
line names your plan file, tasks with a `Task <N>: complete` line are
|
|
131
|
+
DONE — do not redo them; resume at the first task without one. Their
|
|
132
|
+
commits exist in git even when your context no longer remembers making
|
|
133
|
+
them: after compaction, trust the ledger and `git log` over your own
|
|
134
|
+
recollection. A ledger whose first line names a different plan file is
|
|
135
|
+
another plan's progress: leave it and start your own, fresh.
|
|
136
|
+
- Create the ledger with its identity as the first line:
|
|
137
|
+
`# SDD ledger — plan: <plan file path>`.
|
|
138
|
+
- `git clean -fdx` will destroy the workspace (it's git-ignored scratch);
|
|
139
|
+
if that happens, recover from `git log`.
|
|
140
|
+
|
|
141
|
+
Read the plan once, note its context and Global Constraints, and create a
|
|
142
|
+
todo per task. If the plan names a Spec, read that too: the spec is the
|
|
143
|
+
authority the plan argues from, and conflicts inside the plan resolve
|
|
144
|
+
against it. A plan with no reachable spec gets a ledger note saying so —
|
|
145
|
+
rulings made without one are provisional.
|
|
146
|
+
|
|
147
|
+
**REQUIRED SUB-SKILL:** load superpowers:test-driven-development now,
|
|
148
|
+
before Task 1. It governs every step of every task below; a plan whose
|
|
149
|
+
steps already say "write the failing test first" does not exempt you
|
|
150
|
+
from reading it.
|
|
151
|
+
|
|
152
|
+
Before Task 1, scan the plan for conflicts between tasks. The plan's
|
|
153
|
+
Interfaces blocks tell you where to look: for every task that consumes
|
|
154
|
+
what an earlier task produces, one ledger row — the two tasks, what one
|
|
155
|
+
produces against what the other consumes, and what you found. Tasks that
|
|
156
|
+
share nothing get no row; a plan whose tasks share nothing gets the single
|
|
157
|
+
line `Pre-flight: no shared interfaces`. Rule on each conflict a row
|
|
158
|
+
surfaces with the spec as the binding authority, record the ruling beside
|
|
159
|
+
its row, and start Task 1. Each task's own text is checked when you read
|
|
160
|
+
its brief, not here.
|
|
161
|
+
|
|
162
|
+
## The Task Loop
|
|
163
|
+
|
|
164
|
+
Everything you print, and every tool result, stays resident in your
|
|
165
|
+
context for the rest of the session. Redirect long test output to a file
|
|
166
|
+
in the workspace and read its tail; read a brief, not the whole plan.
|
|
167
|
+
|
|
168
|
+
### 1. Take the task
|
|
169
|
+
|
|
170
|
+
- Run this skill's `scripts/task-start PLAN_FILE N`. It prints the brief
|
|
171
|
+
path and BASE (the commit the task's range is cut from) in one call.
|
|
172
|
+
Read the brief for every task, including ones you remember from setup:
|
|
173
|
+
what you remember is a summary, the brief has the exact values,
|
|
174
|
+
signatures, and test cases.
|
|
175
|
+
- Mark the task's todo in_progress.
|
|
176
|
+
|
|
177
|
+
Every tool call is a turn that re-reads your whole context. Bookkeeping
|
|
178
|
+
rides along with work — a ledger append in the same call as the commit,
|
|
179
|
+
never in a call of its own.
|
|
180
|
+
|
|
181
|
+
### 2. Work the steps
|
|
182
|
+
|
|
183
|
+
The plan's steps are already in RED-GREEN order; follow them in that
|
|
184
|
+
order under superpowers:test-driven-development, loaded at setup. A test
|
|
185
|
+
step's code is written first and run first. Watching it fail is a step,
|
|
186
|
+
not a formality — a test that passes before the implementation exists is
|
|
187
|
+
a finding about the test.
|
|
188
|
+
|
|
189
|
+
Every step that runs a command has an `Expected:` line. Run the command,
|
|
190
|
+
read its output, and compare. Three outcomes:
|
|
191
|
+
|
|
192
|
+
- **Matches.** Next step.
|
|
193
|
+
- **The code is wrong.** Use superpowers:systematic-debugging. Find the
|
|
194
|
+
cause; never patch the symptom to make the step's output match.
|
|
195
|
+
- **The plan is wrong** — a step contradicts the spec, an interface from an
|
|
196
|
+
earlier task doesn't match what this task consumes, a command that
|
|
197
|
+
cannot work. Rule on the smallest change that satisfies the spec, ledger
|
|
198
|
+
it as `Task <N>: Ruling: <finding> — <what you decided and why>`, and
|
|
199
|
+
continue. The ruling is carried, not remembered: later tasks that touch
|
|
200
|
+
the same interface read it from the ledger.
|
|
201
|
+
|
|
202
|
+
Commit as the plan's commit steps say. A task that spans several commits
|
|
203
|
+
is fine; BASE is what the review range is cut from, never `HEAD~1`.
|
|
204
|
+
|
|
205
|
+
### 3. The completion contract
|
|
206
|
+
|
|
207
|
+
Before a task's ledger line, all of the following are true, with evidence
|
|
208
|
+
in this session — not inferred from the diff looking right:
|
|
209
|
+
|
|
210
|
+
- Every test the brief names exists and ran in this task, and you read
|
|
211
|
+
the output.
|
|
212
|
+
- The final test run for the task passed — `task-done` is that run, and
|
|
213
|
+
it writes the command and result into the ledger line.
|
|
214
|
+
- Every `Expected:` line in the brief was compared against real output.
|
|
215
|
+
- Every deviation from the brief has a `Ruling:` line in the ledger.
|
|
216
|
+
|
|
217
|
+
**REQUIRED SUB-SKILL:** superpowers:verification-before-completion governs
|
|
218
|
+
the claim. If any item is missing, the task is not complete: finish it.
|
|
219
|
+
|
|
220
|
+
### 4. Complete the task
|
|
221
|
+
|
|
222
|
+
Run this skill's `scripts/task-done PLAN_FILE N BASE -- <test command>`
|
|
223
|
+
with the test command the brief names for the whole task. It runs the
|
|
224
|
+
tests, keeps the full output in the workspace, prints the tail, and — only
|
|
225
|
+
if they pass — appends the completion line to the ledger:
|
|
226
|
+
|
|
227
|
+
`Task <N>: complete (commits <base7>..<head7>, tests: <command> → <result>)`
|
|
228
|
+
|
|
229
|
+
A failing run records nothing; the task is not complete. When it records,
|
|
230
|
+
mark the todo complete and take the next task.
|
|
231
|
+
|
|
232
|
+
## Final Review
|
|
233
|
+
|
|
234
|
+
Run `../subagent-driven-development/scripts/review-package PLAN_FILE MERGE_BASE HEAD`
|
|
235
|
+
(MERGE_BASE = the commit the branch started from, e.g.
|
|
236
|
+
`git merge-base main HEAD`) and review from the file it prints.
|
|
237
|
+
|
|
238
|
+
**With a subagent tool:** dispatch the reviewer on the most capable
|
|
239
|
+
available model — the whole-branch review is a judgment task — using
|
|
240
|
+
superpowers:requesting-code-review's
|
|
241
|
+
[code-reviewer.md](../requesting-code-review/code-reviewer.md), with the
|
|
242
|
+
package path, the plan and spec paths, the plan's Review Focus section
|
|
243
|
+
verbatim if it has one (the input classes and failure modes the plan's
|
|
244
|
+
tests do not exercise — the reviewer checks each deliberately), and a
|
|
245
|
+
pointer to the ledger's `Ruling:` lines so it can weigh the calls you
|
|
246
|
+
made. Specify the model
|
|
247
|
+
explicitly; an omitted model inherits the session's, which may not be the
|
|
248
|
+
most capable. This is the one fresh context the whole run buys. Do not
|
|
249
|
+
skip it, and do not replace it with your own read of the diff.
|
|
250
|
+
|
|
251
|
+
**Without a subagent tool:** read code-reviewer.md and perform that review
|
|
252
|
+
yourself against the package, as a separate pass after the last task's
|
|
253
|
+
ledger line. Write `Final review: self-review (no subagent tool)` to the
|
|
254
|
+
ledger, and say so in your final message: a self-review by the author is
|
|
255
|
+
weaker than a fresh reviewer, and your human partner decides whether that
|
|
256
|
+
is enough before merge.
|
|
257
|
+
|
|
258
|
+
Sort the findings before you act on any of them. The reviewer's severity
|
|
259
|
+
labels are advice; the gate is yours. Its "Declined to judge" list is
|
|
260
|
+
yours too: every line there is a ruling you make and ledger, exactly like
|
|
261
|
+
a plan conflict — `Final: Ruling: <behavior the reviewer set aside> —
|
|
262
|
+
<what a reasonable person using this software gets, and why that stands
|
|
263
|
+
or why it is now a finding> — <cost if wrong>`. Re-grade first, by effect: the
|
|
264
|
+
spec is a vision document, and a finding's grade is what a reasonable
|
|
265
|
+
person using this software gets if it ships, not whether the spec names
|
|
266
|
+
the input that triggers it — a reviewer who set a finding at Minor
|
|
267
|
+
because the spec was silent has graded the spec, not the effect. Then:
|
|
268
|
+
|
|
269
|
+
- **Critical and Important** enter the fix pass.
|
|
270
|
+
- **Minor** goes to the ledger as `Final: minor (deferred): <one-liner>`
|
|
271
|
+
and to your final message under "Deferred minors". Minors never enter
|
|
272
|
+
the fix pass, and never become rulings — a ruling is a decision about a
|
|
273
|
+
conflict, not a note that you declined a polish suggestion.
|
|
274
|
+
|
|
275
|
+
Fix the Critical and Important findings yourself — you are the
|
|
276
|
+
implementer here — in ONE pass. Each fix is verified by TDD, not by a
|
|
277
|
+
second reviewer: write the test that reproduces the finding, watch it
|
|
278
|
+
fail, make it pass, then run the whole suite. Record each in the ledger as
|
|
279
|
+
`Final: fixed <finding> — <test name> RED→GREEN, suite <N>/<N>`. A fix
|
|
280
|
+
without a test that failed first is not verified; a suite that is not
|
|
281
|
+
green after the pass means the pass is not over. Do not dispatch a
|
|
282
|
+
re-review: it would re-read a diff whose covering tests already answer
|
|
283
|
+
"addressed" and whose suite run already answers "broke nothing".
|
|
284
|
+
|
|
285
|
+
A finding you decide not to fix is a ruling — `Final: Ruling: <finding> —
|
|
286
|
+
<why the code stands> — <cost if wrong>` — and reaches your human partner
|
|
287
|
+
in the rulings list. There is no second fix pass.
|
|
288
|
+
|
|
289
|
+
## Finish
|
|
290
|
+
|
|
291
|
+
Before you delete anything, collect every ledger line containing
|
|
292
|
+
`Ruling:` into your final message under "Rulings I made", in the order you
|
|
293
|
+
made them, each with what it costs if wrong, and every `minor (deferred)`
|
|
294
|
+
line under "Deferred minors". Both lists are exhaustive. Your final
|
|
295
|
+
message is the only place the decisions you took on your human partner's
|
|
296
|
+
behalf — and the findings you chose not to act on — reach them.
|
|
297
|
+
|
|
298
|
+
When the final review is clean and its fixes are committed, delete this
|
|
299
|
+
plan's workspace directory — the git history is the record now. Sibling
|
|
300
|
+
directories belong to other plans; leave them alone.
|
|
301
|
+
|
|
302
|
+
Use superpowers:finishing-a-development-branch.
|
|
303
|
+
|
|
304
|
+
## Common Rationalizations
|
|
305
|
+
|
|
306
|
+
| Excuse | Reality |
|
|
307
|
+
|--------|---------|
|
|
308
|
+
| "I remember what Task N says" | You remember a summary. The brief has the exact values. Read it. |
|
|
309
|
+
| "The plan's code is right, skip watching the test fail" | A test you never saw fail proves nothing. It is one step. Run it. |
|
|
310
|
+
| "I'll run the full suite at the end instead of per step" | Per-step runs are how you learn which step broke it. The end-of-task run is the contract, not a substitute. |
|
|
311
|
+
| "The plan is wrong here, I'll just do the right thing" | Do the right thing and ledger the ruling. Unledgered deviation is a decision made in secret. |
|
|
312
|
+
| "I'll write the ledger lines after a few tasks" | Compaction does not wait for a convenient moment. One line per task, in the same message as the commit. |
|
|
313
|
+
| "Let me check in before the next task" | They chose inline to spend less. Progress prompts spend their time instead. Only the four stops stop you. |
|
|
314
|
+
| "I read my own diff carefully; the final reviewer is redundant" | Same author, same blind spots. The reviewer is the only fresh context this run buys. |
|
|
315
|
+
| "Tests should pass, the change was trivial" | "Should" is not evidence. The contract requires the command and its output. |
|
|
316
|
+
| "Subagents are slow and expensive, I'll skip the final review too" | Inline already removed the per-task reviewers. One review of the whole branch is the floor, not the ceiling. |
|
|
317
|
+
| "The reviewer said Minor, so it's Minor" | The label graded the spec's silence. Grade what the person gets. Re-grade, then gate. |
|
|
318
|
+
| "The fix is obvious, no need for a failing test first" | The failing test is the only proof the finding was real and is now gone. Without it you have a diff and a hope. |
|
|
319
|
+
| "I'll fix the minors too while I'm in there" | Every minor you fix is a test, a fix, and a suite run your partner did not ask for. Ledger them; your partner decides. |
|
|
320
|
+
|
|
321
|
+
## Example Workflow
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
You: I'm using the executing-plans skill to implement this plan inline.
|
|
325
|
+
|
|
326
|
+
[Setup: worktree verified]
|
|
327
|
+
[Read plan once: docs/superpowers/plans/feature-plan.md; spec read]
|
|
328
|
+
[Resolve workspace: sdd-workspace docs/superpowers/plans/feature-plan.md — no ledger inside, fresh start]
|
|
329
|
+
[Pre-flight scan: 2 shared-interface rows, 4 self-consistency rows, clean; written to ledger]
|
|
330
|
+
[Create todos for all tasks]
|
|
331
|
+
|
|
332
|
+
Task 1: Hook installation script
|
|
333
|
+
|
|
334
|
+
[task-start plan 1 → brief read; BASE a1b2c3d]
|
|
335
|
+
[Step 1: write failing test — written]
|
|
336
|
+
[Step 2: run it — FAIL: install_hook not defined. Matches Expected.]
|
|
337
|
+
[Step 3: implement — written]
|
|
338
|
+
[Step 4: run it — PASS 1/1. Matches Expected.]
|
|
339
|
+
[Step 5: commit — d4e5f6a]
|
|
340
|
+
[Contract: tests ran, output read, no deviations]
|
|
341
|
+
[task-done plan 1 a1b2c3d -- npm test -- hooks → ledger: Task 1: complete (commits a1b2c3d..d4e5f6a, tests: npm test -- hooks → 1/1 pass)]
|
|
342
|
+
|
|
343
|
+
Task 2: Recovery modes
|
|
344
|
+
|
|
345
|
+
[task-start plan 2 → brief read; BASE d4e5f6a]
|
|
346
|
+
[Step 2: run failing test — FAIL, but on an import error: Task 1 exported
|
|
347
|
+
installHook, brief consumes install_hook]
|
|
348
|
+
[Ruling: brief's consumer name is a typo against Task 1's Produces block;
|
|
349
|
+
use installHook — Ledger: Task 2: Ruling: install_hook → installHook — matches Task 1 Produces — cost if wrong: one rename]
|
|
350
|
+
[Steps 2-5 as planned; commit b7c8d9e]
|
|
351
|
+
[task-done plan 2 d4e5f6a -- npm test -- recovery → ledger: Task 2: complete (commits d4e5f6a..b7c8d9e, tests: npm test -- recovery → 8/8 pass)]
|
|
352
|
+
|
|
353
|
+
...
|
|
354
|
+
|
|
355
|
+
[After all tasks: review-package plan MERGE_BASE HEAD; dispatch code-reviewer, most capable model]
|
|
356
|
+
Reviewer: One Important finding — progress reporting interval hardcoded. Two Minor.
|
|
357
|
+
[Re-grade: Important stands; minors → ledger as deferred]
|
|
358
|
+
[Fix pass: test_progress_interval_configurable RED → extract PROGRESS_INTERVAL → GREEN; suite 12/12; commit]
|
|
359
|
+
[Ledger: Final: fixed hardcoded interval — test_progress_interval_configurable RED→GREEN, suite 12/12]
|
|
360
|
+
|
|
361
|
+
Rulings I made:
|
|
362
|
+
- Task 2: install_hook → installHook (brief typo; cost if wrong: one rename)
|
|
363
|
+
|
|
364
|
+
Deferred minors:
|
|
365
|
+
- README lacks a usage example
|
|
366
|
+
- recovery.js could split verify/repair into two files
|
|
367
|
+
|
|
368
|
+
[Delete this plan's workspace — the record now lives in git]
|
|
369
|
+
|
|
370
|
+
Using superpowers:finishing-a-development-branch.
|
|
371
|
+
```
|