cfsa-antigravity 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.mjs +324 -0
- package/package.json +34 -0
- package/template/.agent/instructions/commands.md +48 -0
- package/template/.agent/instructions/patterns.md +61 -0
- package/template/.agent/instructions/structure.md +29 -0
- package/template/.agent/instructions/tech-stack.md +43 -0
- package/template/.agent/instructions/workflow.md +41 -0
- package/template/.agent/kit-sync.md +15 -0
- package/template/.agent/rules/boundary-not-placeholder.md +146 -0
- package/template/.agent/rules/completion-checklist.md +48 -0
- package/template/.agent/rules/decision-classification.md +103 -0
- package/template/.agent/rules/extensibility.md +47 -0
- package/template/.agent/rules/question-vs-command.md +81 -0
- package/template/.agent/rules/security-first.md +43 -0
- package/template/.agent/rules/specificity-standards.md +54 -0
- package/template/.agent/rules/tdd-contract-first.md +57 -0
- package/template/.agent/rules/vertical-slices.md +42 -0
- package/template/.agent/skill-library/MANIFEST.md +480 -0
- package/template/.agent/skill-library/README.md +38 -0
- package/template/.agent/skill-library/meta/brand-guidelines/SKILL.md +73 -0
- package/template/.agent/skill-library/meta/claude-code/README.md +9 -0
- package/template/.agent/skill-library/meta/claude-code/agent-development/SKILL.md +415 -0
- package/template/.agent/skill-library/meta/claude-code/hook-development/SKILL.md +712 -0
- package/template/.agent/skill-library/meta/claude-code/plugin-structure/SKILL.md +476 -0
- package/template/.agent/skill-library/meta/git-advanced/SKILL.md +972 -0
- package/template/.agent/skill-library/meta/mcp-builder/SKILL.md +236 -0
- package/template/.agent/skill-library/meta/product-marketing-context/SKILL.md +241 -0
- package/template/.agent/skill-library/meta/regex-patterns/SKILL.md +751 -0
- package/template/.agent/skill-library/meta/tmux-processes/SKILL.md +210 -0
- package/template/.agent/skill-library/meta/using-tmux-for-interactive-commands/SKILL.md +178 -0
- package/template/.agent/skill-library/stack/3d/threejs-pro/SKILL.md +300 -0
- package/template/.agent/skill-library/stack/ai/ai-sdk/SKILL.md +77 -0
- package/template/.agent/skill-library/stack/ai/langchain/SKILL.md +530 -0
- package/template/.agent/skill-library/stack/ai/ollama/SKILL.md +321 -0
- package/template/.agent/skill-library/stack/ai/openai-sdk/SKILL.md +549 -0
- package/template/.agent/skill-library/stack/analytics/google-analytics/SKILL.md +153 -0
- package/template/.agent/skill-library/stack/api/graphql/SKILL.md +1061 -0
- package/template/.agent/skill-library/stack/api/trpc/SKILL.md +576 -0
- package/template/.agent/skill-library/stack/auth/authjs/SKILL.md +569 -0
- package/template/.agent/skill-library/stack/auth/clerk/SKILL.md +590 -0
- package/template/.agent/skill-library/stack/auth/firebase-auth/SKILL.md +734 -0
- package/template/.agent/skill-library/stack/cms/payload-cms/SKILL.md +573 -0
- package/template/.agent/skill-library/stack/cms/shopify/SKILL.md +1193 -0
- package/template/.agent/skill-library/stack/cms/wordpress/SKILL.md +1104 -0
- package/template/.agent/skill-library/stack/css/sass-scss/SKILL.md +1121 -0
- package/template/.agent/skill-library/stack/css/tailwind-css-patterns/SKILL.md +863 -0
- package/template/.agent/skill-library/stack/css/tailwind-design-system/SKILL.md +490 -0
- package/template/.agent/skill-library/stack/css/vanilla-css/SKILL.md +1078 -0
- package/template/.agent/skill-library/stack/databases/clickhouse/SKILL.md +311 -0
- package/template/.agent/skill-library/stack/databases/influxdb/SKILL.md +280 -0
- package/template/.agent/skill-library/stack/databases/lancedb/SKILL.md +415 -0
- package/template/.agent/skill-library/stack/databases/mongodb/SKILL.md +1169 -0
- package/template/.agent/skill-library/stack/databases/neo4j/SKILL.md +839 -0
- package/template/.agent/skill-library/stack/databases/pgvector/SKILL.md +241 -0
- package/template/.agent/skill-library/stack/databases/pinecone/SKILL.md +212 -0
- package/template/.agent/skill-library/stack/databases/postgresql/SKILL.md +658 -0
- package/template/.agent/skill-library/stack/databases/qdrant/SKILL.md +312 -0
- package/template/.agent/skill-library/stack/databases/redis/SKILL.md +1079 -0
- package/template/.agent/skill-library/stack/databases/spacetimedb/SKILL.md +532 -0
- package/template/.agent/skill-library/stack/databases/sqlite/SKILL.md +1132 -0
- package/template/.agent/skill-library/stack/databases/supabase/SKILL.md +640 -0
- package/template/.agent/skill-library/stack/databases/surrealdb-expert/SKILL.md +945 -0
- package/template/.agent/skill-library/stack/databases/timescaledb/SKILL.md +745 -0
- package/template/.agent/skill-library/stack/databases/weaviate/SKILL.md +218 -0
- package/template/.agent/skill-library/stack/devops/github-actions/SKILL.md +554 -0
- package/template/.agent/skill-library/stack/devops/kubernetes/SKILL.md +950 -0
- package/template/.agent/skill-library/stack/devops/nginx/SKILL.md +841 -0
- package/template/.agent/skill-library/stack/devops/terraform/SKILL.md +860 -0
- package/template/.agent/skill-library/stack/email/resend/SKILL.md +391 -0
- package/template/.agent/skill-library/stack/engines/godot/SKILL.md +488 -0
- package/template/.agent/skill-library/stack/extensions/chrome-extension/SKILL.md +375 -0
- package/template/.agent/skill-library/stack/extensions/vscode-extension/SKILL.md +453 -0
- package/template/.agent/skill-library/stack/frameworks/astro-framework/SKILL.md +162 -0
- package/template/.agent/skill-library/stack/frameworks/electron/SKILL.md +1286 -0
- package/template/.agent/skill-library/stack/frameworks/fastapi/SKILL.md +650 -0
- package/template/.agent/skill-library/stack/frameworks/hono/SKILL.md +90 -0
- package/template/.agent/skill-library/stack/frameworks/nestjs/SKILL.md +878 -0
- package/template/.agent/skill-library/stack/frameworks/nextjs/SKILL.md +635 -0
- package/template/.agent/skill-library/stack/frameworks/nuxt/SKILL.md +564 -0
- package/template/.agent/skill-library/stack/frameworks/sveltekit/SKILL.md +614 -0
- package/template/.agent/skill-library/stack/frameworks/tauri/SKILL.md +920 -0
- package/template/.agent/skill-library/stack/gamedev/godot/SKILL.md +1032 -0
- package/template/.agent/skill-library/stack/gamedev/unity/SKILL.md +1175 -0
- package/template/.agent/skill-library/stack/hosting/aws/SKILL.md +467 -0
- package/template/.agent/skill-library/stack/hosting/cloudflare/SKILL.md +201 -0
- package/template/.agent/skill-library/stack/hosting/docker-expert/SKILL.md +409 -0
- package/template/.agent/skill-library/stack/hosting/vercel/SKILL.md +484 -0
- package/template/.agent/skill-library/stack/languages/bash-scripting/SKILL.md +773 -0
- package/template/.agent/skill-library/stack/languages/c-cpp/SKILL.md +712 -0
- package/template/.agent/skill-library/stack/languages/gdscript/SKILL.md +789 -0
- package/template/.agent/skill-library/stack/languages/go/SKILL.md +664 -0
- package/template/.agent/skill-library/stack/languages/java/SKILL.md +778 -0
- package/template/.agent/skill-library/stack/languages/kotlin/SKILL.md +665 -0
- package/template/.agent/skill-library/stack/languages/python/SKILL.md +678 -0
- package/template/.agent/skill-library/stack/languages/rust/SKILL.md +673 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/SKILL.md +141 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/advanced-generics.md +90 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/branded-types.md +57 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/builder-pattern.md +71 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/common-pitfalls.md +135 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/conditional-types.md +27 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/decorators.md +98 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/discriminated-unions.md +62 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/mapped-types.md +53 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/performance-best-practices.md +104 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/template-literal-types.md +49 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/testing-types.md +112 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/type-guards.md +70 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/type-inference.md +101 -0
- package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/utility-types.md +98 -0
- package/template/.agent/skill-library/stack/languages/vanilla-javascript/SKILL.md +803 -0
- package/template/.agent/skill-library/stack/messaging/kafka/SKILL.md +235 -0
- package/template/.agent/skill-library/stack/mobile/expo-react-native/SKILL.md +665 -0
- package/template/.agent/skill-library/stack/mobile/flutter/SKILL.md +316 -0
- package/template/.agent/skill-library/stack/mobile/react-native/SKILL.md +337 -0
- package/template/.agent/skill-library/stack/monitoring/posthog/SKILL.md +396 -0
- package/template/.agent/skill-library/stack/monitoring/sentry/SKILL.md +509 -0
- package/template/.agent/skill-library/stack/observability/datadog/SKILL.md +179 -0
- package/template/.agent/skill-library/stack/observability/distributed-tracing/SKILL.md +140 -0
- package/template/.agent/skill-library/stack/observability/logging-best-practices/SKILL.md +168 -0
- package/template/.agent/skill-library/stack/observability/opentelemetry/SKILL.md +164 -0
- package/template/.agent/skill-library/stack/observability/prometheus-grafana/SKILL.md +246 -0
- package/template/.agent/skill-library/stack/observability/python-observability/SKILL.md +158 -0
- package/template/.agent/skill-library/stack/orm/drizzle-orm/SKILL.md +613 -0
- package/template/.agent/skill-library/stack/orm/prisma/SKILL.md +744 -0
- package/template/.agent/skill-library/stack/payments/lemonsqueezy/SKILL.md +393 -0
- package/template/.agent/skill-library/stack/payments/stripe-integration/SKILL.md +457 -0
- package/template/.agent/skill-library/stack/queue/bullmq/SKILL.md +385 -0
- package/template/.agent/skill-library/stack/queue/inngest/SKILL.md +438 -0
- package/template/.agent/skill-library/stack/realtime/socketio/SKILL.md +595 -0
- package/template/.agent/skill-library/stack/search/elasticsearch/SKILL.md +248 -0
- package/template/.agent/skill-library/stack/search/meilisearch/SKILL.md +385 -0
- package/template/.agent/skill-library/stack/security/crypto-patterns/SKILL.md +437 -0
- package/template/.agent/skill-library/stack/security/csp-cors-headers/SKILL.md +588 -0
- package/template/.agent/skill-library/stack/security/dependency-auditing/SKILL.md +560 -0
- package/template/.agent/skill-library/stack/security/input-sanitization/SKILL.md +430 -0
- package/template/.agent/skill-library/stack/security/owasp-web-security/SKILL.md +421 -0
- package/template/.agent/skill-library/stack/state/tanstack-query/SKILL.md +637 -0
- package/template/.agent/skill-library/stack/state/zustand/SKILL.md +483 -0
- package/template/.agent/skill-library/stack/storage/aws-s3/SKILL.md +415 -0
- package/template/.agent/skill-library/stack/testing/playwright/SKILL.md +641 -0
- package/template/.agent/skill-library/stack/testing/storybook/SKILL.md +923 -0
- package/template/.agent/skill-library/stack/testing/testing-library/SKILL.md +872 -0
- package/template/.agent/skill-library/stack/testing/vitest/SKILL.md +714 -0
- package/template/.agent/skill-library/stack/ui/react-best-practices/SKILL.md +877 -0
- package/template/.agent/skill-library/stack/ui/react-composition-patterns/SKILL.md +1107 -0
- package/template/.agent/skill-library/stack/ui/react-flow/SKILL.md +425 -0
- package/template/.agent/skill-library/stack/ui/shadcn-ui/SKILL.md +703 -0
- package/template/.agent/skill-library/surface/api/api-caching/SKILL.md +458 -0
- package/template/.agent/skill-library/surface/api/api-documentation-openapi/SKILL.md +697 -0
- package/template/.agent/skill-library/surface/api/api-error-handling/SKILL.md +478 -0
- package/template/.agent/skill-library/surface/api/api-security-checklist/SKILL.md +147 -0
- package/template/.agent/skill-library/surface/api/api-versioning/SKILL.md +420 -0
- package/template/.agent/skill-library/surface/api/email-best-practices/SKILL.md +59 -0
- package/template/.agent/skill-library/surface/api/rate-limiting-abuse-protection/SKILL.md +147 -0
- package/template/.agent/skill-library/surface/api/rest-api-design/SKILL.md +478 -0
- package/template/.agent/skill-library/surface/api/webhook-design/SKILL.md +752 -0
- package/template/.agent/skill-library/surface/cli/cli-configuration-management/SKILL.md +445 -0
- package/template/.agent/skill-library/surface/cli/cli-error-diagnostics/SKILL.md +515 -0
- package/template/.agent/skill-library/surface/cli/cli-shell-integration/SKILL.md +479 -0
- package/template/.agent/skill-library/surface/cli/cli-ux-design/SKILL.md +477 -0
- package/template/.agent/skill-library/surface/desktop/desktop-app-distribution/SKILL.md +416 -0
- package/template/.agent/skill-library/surface/desktop/desktop-security-sandboxing/SKILL.md +407 -0
- package/template/.agent/skill-library/surface/desktop/desktop-ux-conventions/SKILL.md +361 -0
- package/template/.agent/skill-library/surface/desktop/native-os-integration/SKILL.md +563 -0
- package/template/.agent/skill-library/surface/extension/browser-extension-patterns/SKILL.md +482 -0
- package/template/.agent/skill-library/surface/extension/plugin-architecture-design/SKILL.md +632 -0
- package/template/.agent/skill-library/surface/extension/vscode-extension-development/SKILL.md +728 -0
- package/template/.agent/skill-library/surface/mobile/app-store-submission/SKILL.md +304 -0
- package/template/.agent/skill-library/surface/mobile/mobile-offline-sync/SKILL.md +443 -0
- package/template/.agent/skill-library/surface/mobile/mobile-responsive-patterns/SKILL.md +432 -0
- package/template/.agent/skill-library/surface/mobile/push-notifications/SKILL.md +495 -0
- package/template/.agent/skill-library/surface/web/accessibility-compliance/SKILL.md +827 -0
- package/template/.agent/skill-library/surface/web/ai-seo/SKILL.md +398 -0
- package/template/.agent/skill-library/surface/web/ai-seo/references/content-patterns.md +285 -0
- package/template/.agent/skill-library/surface/web/ai-seo/references/platform-ranking-factors.md +152 -0
- package/template/.agent/skill-library/surface/web/analytics-tracking/SKILL.md +309 -0
- package/template/.agent/skill-library/surface/web/analytics-tracking/references/event-library.md +260 -0
- package/template/.agent/skill-library/surface/web/analytics-tracking/references/ga4-implementation.md +300 -0
- package/template/.agent/skill-library/surface/web/analytics-tracking/references/gtm-implementation.md +390 -0
- package/template/.agent/skill-library/surface/web/authentication-ui-flows/SKILL.md +530 -0
- package/template/.agent/skill-library/surface/web/dark-mode-theming/SKILL.md +516 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/SKILL.md +105 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/data/charts.csv +26 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/data/colors.csv +97 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/data/landing.csv +31 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/data/styles.csv +59 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/data/typography.csv +58 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/data/ux-guidelines.csv +100 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/scripts/core.py +258 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/scripts/design_system.py +1067 -0
- package/template/.agent/skill-library/surface/web/design-reference-data/scripts/search.py +106 -0
- package/template/.agent/skill-library/surface/web/form-handling-validation/SKILL.md +675 -0
- package/template/.agent/skill-library/surface/web/frontend-design/SKILL.md +1393 -0
- package/template/.agent/skill-library/surface/web/frontend-design/templates/cppn-hero.tsx +299 -0
- package/template/.agent/skill-library/surface/web/frontend-design/templates/wave-hero.tsx +875 -0
- package/template/.agent/skill-library/surface/web/frontend-verification/SKILL.md +111 -0
- package/template/.agent/skill-library/surface/web/frontend-verification/scripts/ux_audit.py +739 -0
- package/template/.agent/skill-library/surface/web/i18n-localization/SKILL.md +154 -0
- package/template/.agent/skill-library/surface/web/offline-first-pwa/SKILL.md +657 -0
- package/template/.agent/skill-library/surface/web/page-cro/SKILL.md +182 -0
- package/template/.agent/skill-library/surface/web/page-cro/references/experiments.md +248 -0
- package/template/.agent/skill-library/surface/web/programmatic-seo/SKILL.md +238 -0
- package/template/.agent/skill-library/surface/web/programmatic-seo/references/playbooks.md +308 -0
- package/template/.agent/skill-library/surface/web/schema-markup/SKILL.md +179 -0
- package/template/.agent/skill-library/surface/web/schema-markup/references/schema-examples.md +398 -0
- package/template/.agent/skill-library/surface/web/seo-audit/SKILL.md +394 -0
- package/template/.agent/skill-library/surface/web/seo-audit/references/ai-writing-detection.md +200 -0
- package/template/.agent/skill-library/surface/web/web-performance-optimization/SKILL.md +646 -0
- package/template/.agent/skill-library/surface/web/web-scraping/SKILL.md +58 -0
- package/template/.agent/skills/accessibility/SKILL.md +522 -0
- package/template/.agent/skills/accessibility/references/WCAG.md +162 -0
- package/template/.agent/skills/adversarial-review/SKILL.md +90 -0
- package/template/.agent/skills/antigravity-workflows/SKILL.md +81 -0
- package/template/.agent/skills/antigravity-workflows/resources/implementation-playbook.md +36 -0
- package/template/.agent/skills/api-design-principles/SKILL.md +37 -0
- package/template/.agent/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/template/.agent/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/template/.agent/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/template/.agent/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/template/.agent/skills/api-design-principles/resources/implementation-playbook.md +513 -0
- package/template/.agent/skills/api-versioning/SKILL.md +420 -0
- package/template/.agent/skills/architecture-mapping/SKILL.md +219 -0
- package/template/.agent/skills/bootstrap-agents/SKILL.md +259 -0
- package/template/.agent/skills/brainstorming/SKILL.md +236 -0
- package/template/.agent/skills/brand-guidelines/SKILL.md +44 -0
- package/template/.agent/skills/clean-code/SKILL.md +94 -0
- package/template/.agent/skills/code-review-pro/SKILL.md +152 -0
- package/template/.agent/skills/concise-planning/SKILL.md +68 -0
- package/template/.agent/skills/cross-layer-consistency/SKILL.md +117 -0
- package/template/.agent/skills/database-schema-design/SKILL.md +429 -0
- package/template/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/template/.agent/skills/design-anti-cliche/SKILL.md +159 -0
- package/template/.agent/skills/design-direction/SKILL.md +45 -0
- package/template/.agent/skills/error-handling-patterns/SKILL.md +721 -0
- package/template/.agent/skills/find-skills/SKILL.md +145 -0
- package/template/.agent/skills/git-advanced/SKILL.md +972 -0
- package/template/.agent/skills/git-workflow/SKILL.md +420 -0
- package/template/.agent/skills/idea-extraction/SKILL.md +271 -0
- package/template/.agent/skills/logging-best-practices/SKILL.md +851 -0
- package/template/.agent/skills/migration-management/SKILL.md +384 -0
- package/template/.agent/skills/minimalist-surgical-development/SKILL.md +69 -0
- package/template/.agent/skills/parallel-agents/SKILL.md +165 -0
- package/template/.agent/skills/parallel-debugging/SKILL.md +135 -0
- package/template/.agent/skills/parallel-feature-development/SKILL.md +166 -0
- package/template/.agent/skills/performance-budgeting/SKILL.md +144 -0
- package/template/.agent/skills/pipeline-rubrics/SKILL.md +51 -0
- package/template/.agent/skills/pipeline-rubrics/references/architecture-rubric.md +19 -0
- package/template/.agent/skills/pipeline-rubrics/references/be-rubric.md +21 -0
- package/template/.agent/skills/pipeline-rubrics/references/fe-rubric.md +20 -0
- package/template/.agent/skills/pipeline-rubrics/references/ia-rubric.md +19 -0
- package/template/.agent/skills/pipeline-rubrics/references/scoring.md +28 -0
- package/template/.agent/skills/pipeline-rubrics/references/vision-rubric.md +11 -0
- package/template/.agent/skills/prd-templates/SKILL.md +88 -0
- package/template/.agent/skills/prd-templates/references/architecture-design-template.md +88 -0
- package/template/.agent/skills/prd-templates/references/be-spec-template.md +101 -0
- package/template/.agent/skills/prd-templates/references/data-placement-template.md +74 -0
- package/template/.agent/skills/prd-templates/references/decomposition-templates.md +211 -0
- package/template/.agent/skills/prd-templates/references/design-system-decisions.md +198 -0
- package/template/.agent/skills/prd-templates/references/engineering-standards-template.md +124 -0
- package/template/.agent/skills/prd-templates/references/fe-classification-procedures.md +47 -0
- package/template/.agent/skills/prd-templates/references/fe-spec-template.md +84 -0
- package/template/.agent/skills/prd-templates/references/infrastructure-report-template.md +71 -0
- package/template/.agent/skills/prd-templates/references/operational-templates.md +116 -0
- package/template/.agent/skills/prd-templates/references/placeholder-guard-template.md +21 -0
- package/template/.agent/skills/prd-templates/references/surface-model.md +61 -0
- package/template/.agent/skills/prd-templates/references/vision-template.md +66 -0
- package/template/.agent/skills/prompt-engineer/README.md +659 -0
- package/template/.agent/skills/prompt-engineer/SKILL.md +249 -0
- package/template/.agent/skills/regex-patterns/SKILL.md +751 -0
- package/template/.agent/skills/resolve-ambiguity/SKILL.md +278 -0
- package/template/.agent/skills/rest-api-design/SKILL.md +478 -0
- package/template/.agent/skills/security-scanning-security-hardening/SKILL.md +231 -0
- package/template/.agent/skills/session-continuity/SKILL.md +730 -0
- package/template/.agent/skills/session-continuity/protocols/01-session-resumption.md +38 -0
- package/template/.agent/skills/session-continuity/protocols/02-progress-generation.md +85 -0
- package/template/.agent/skills/session-continuity/protocols/03-progress-update.md +70 -0
- package/template/.agent/skills/session-continuity/protocols/04-pattern-extraction.md +60 -0
- package/template/.agent/skills/session-continuity/protocols/05-session-close.md +37 -0
- package/template/.agent/skills/session-continuity/protocols/06-decision-analysis.md +84 -0
- package/template/.agent/skills/session-continuity/protocols/07-spec-pipeline-generation.md +48 -0
- package/template/.agent/skills/session-continuity/protocols/08-spec-pipeline-update.md +43 -0
- package/template/.agent/skills/session-continuity/protocols/09-parallel-claim.md +122 -0
- package/template/.agent/skills/session-continuity/protocols/10-placeholder-verification-gate.md +104 -0
- package/template/.agent/skills/session-continuity/protocols/ambiguity-gates.md +48 -0
- package/template/.agent/skills/skill-creator/LICENSE.txt +202 -0
- package/template/.agent/skills/skill-creator/README.md +270 -0
- package/template/.agent/skills/skill-creator/SKILL.md +590 -0
- package/template/.agent/skills/skill-creator/references/output-patterns.md +82 -0
- package/template/.agent/skills/skill-creator/references/workflows.md +28 -0
- package/template/.agent/skills/skill-creator/scripts/init_skill.py +303 -0
- package/template/.agent/skills/skill-creator/scripts/package_skill.py +110 -0
- package/template/.agent/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/template/.agent/skills/spec-writing/SKILL.md +110 -0
- package/template/.agent/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/template/.agent/skills/systematic-debugging/SKILL.md +297 -0
- package/template/.agent/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/template/.agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/template/.agent/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/template/.agent/skills/systematic-debugging/find-polluter.sh +63 -0
- package/template/.agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/template/.agent/skills/systematic-debugging/test-academic.md +14 -0
- package/template/.agent/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/template/.agent/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/template/.agent/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/template/.agent/skills/tdd-workflow/SKILL.md +409 -0
- package/template/.agent/skills/tech-stack-catalog/SKILL.md +49 -0
- package/template/.agent/skills/tech-stack-catalog/references/constraint-questions.md +21 -0
- package/template/.agent/skills/tech-stack-catalog/references/dev-tooling-decisions.md +37 -0
- package/template/.agent/skills/tech-stack-catalog/references/surface-decision-tables.md +69 -0
- package/template/.agent/skills/technical-writer/SKILL.md +242 -0
- package/template/.agent/skills/testing-strategist/SKILL.md +932 -0
- package/template/.agent/skills/verification-before-completion/SKILL.md +145 -0
- package/template/.agent/skills/workflow-automation/SKILL.md +73 -0
- package/template/.agent/workflows/audit-ambiguity-execute.md +165 -0
- package/template/.agent/workflows/audit-ambiguity-rubrics.md +83 -0
- package/template/.agent/workflows/audit-ambiguity.md +64 -0
- package/template/.agent/workflows/bootstrap-agents-fill.md +201 -0
- package/template/.agent/workflows/bootstrap-agents-provision.md +197 -0
- package/template/.agent/workflows/bootstrap-agents.md +66 -0
- package/template/.agent/workflows/create-prd-architecture.md +119 -0
- package/template/.agent/workflows/create-prd-compile.md +138 -0
- package/template/.agent/workflows/create-prd-design-system.md +135 -0
- package/template/.agent/workflows/create-prd-security.md +113 -0
- package/template/.agent/workflows/create-prd-stack.md +91 -0
- package/template/.agent/workflows/create-prd.md +168 -0
- package/template/.agent/workflows/decompose-architecture-structure.md +82 -0
- package/template/.agent/workflows/decompose-architecture-validate.md +119 -0
- package/template/.agent/workflows/decompose-architecture.md +111 -0
- package/template/.agent/workflows/evolve-contract.md +98 -0
- package/template/.agent/workflows/evolve-feature-cascade.md +140 -0
- package/template/.agent/workflows/evolve-feature-classify.md +116 -0
- package/template/.agent/workflows/evolve-feature.md +56 -0
- package/template/.agent/workflows/ideate-discover.md +144 -0
- package/template/.agent/workflows/ideate-extract.md +129 -0
- package/template/.agent/workflows/ideate-validate.md +117 -0
- package/template/.agent/workflows/ideate.md +113 -0
- package/template/.agent/workflows/implement-slice-setup.md +113 -0
- package/template/.agent/workflows/implement-slice-tdd.md +198 -0
- package/template/.agent/workflows/implement-slice.md +50 -0
- package/template/.agent/workflows/plan-phase.md +202 -0
- package/template/.agent/workflows/propagate-decision-apply.md +135 -0
- package/template/.agent/workflows/propagate-decision-scan.md +147 -0
- package/template/.agent/workflows/propagate-decision.md +56 -0
- package/template/.agent/workflows/remediate-pipeline-assess.md +138 -0
- package/template/.agent/workflows/remediate-pipeline-execute.md +135 -0
- package/template/.agent/workflows/remediate-pipeline.md +55 -0
- package/template/.agent/workflows/resolve-ambiguity.md +82 -0
- package/template/.agent/workflows/sync-kit.md +209 -0
- package/template/.agent/workflows/update-architecture-map.md +74 -0
- package/template/.agent/workflows/validate-phase.md +219 -0
- package/template/.agent/workflows/verify-infrastructure.md +207 -0
- package/template/.agent/workflows/write-architecture-spec-deepen.md +139 -0
- package/template/.agent/workflows/write-architecture-spec-design.md +202 -0
- package/template/.agent/workflows/write-architecture-spec.md +63 -0
- package/template/.agent/workflows/write-be-spec-classify.md +165 -0
- package/template/.agent/workflows/write-be-spec-write.md +98 -0
- package/template/.agent/workflows/write-be-spec.md +76 -0
- package/template/.agent/workflows/write-fe-spec-classify.md +170 -0
- package/template/.agent/workflows/write-fe-spec-write.md +94 -0
- package/template/.agent/workflows/write-fe-spec.md +71 -0
- package/template/AGENTS.md +176 -0
- package/template/GEMINI.md +177 -0
- package/template/docs/README.md +187 -0
- package/template/docs/audits/.gitkeep +0 -0
- package/template/docs/audits/README.md +10 -0
- package/template/docs/plans/.gitkeep +0 -0
- package/template/docs/plans/README.md +21 -0
- package/template/docs/plans/be/.gitkeep +0 -0
- package/template/docs/plans/be/README.md +11 -0
- package/template/docs/plans/fe/.gitkeep +0 -0
- package/template/docs/plans/fe/README.md +11 -0
- package/template/docs/plans/ia/.gitkeep +0 -0
- package/template/docs/plans/ia/README.md +17 -0
- package/template/docs/plans/ia/deep-dives/.gitkeep +0 -0
- package/template/docs/plans/ia/deep-dives/README.md +5 -0
- package/template/docs/plans/phases/.gitkeep +0 -0
- package/template/docs/plans/phases/README.md +11 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Directory structure, shard skeletons, and layer index creation for the decompose-architecture workflow
|
|
3
|
+
parent: decompose-architecture
|
|
4
|
+
shard: structure
|
|
5
|
+
standalone: true
|
|
6
|
+
position: 1
|
|
7
|
+
pipeline:
|
|
8
|
+
position: 3.1
|
|
9
|
+
stage: architecture
|
|
10
|
+
predecessors: [create-prd]
|
|
11
|
+
successors: [decompose-architecture-validate]
|
|
12
|
+
skills: [technical-writer, prd-templates]
|
|
13
|
+
calls-bootstrap: false
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
// turbo-all
|
|
17
|
+
|
|
18
|
+
# Decompose Architecture — Structure
|
|
19
|
+
|
|
20
|
+
Create directory structure, shard skeleton files, and all layer indexes.
|
|
21
|
+
|
|
22
|
+
**Prerequisite**: Read the approved domain boundaries from `docs/plans/ia/decomposition-plan.md`. If this file does not exist, the boundaries have not been approved — tell the user to run `/decompose-architecture` Steps 3-4.5 first.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 5. Create directory structure and shard skeletons
|
|
27
|
+
|
|
28
|
+
> **Note**: The standard directories (`docs/plans/ia/deep-dives/`, `docs/plans/be/`, `docs/plans/fe/`, `docs/plans/phases/`, `docs/audits/`) are pre-scaffolded. No directory creation needed for single-surface projects.
|
|
29
|
+
|
|
30
|
+
### Multi-surface projects
|
|
31
|
+
|
|
32
|
+
For each surface identified in the architecture design, plus a `shared/` surface, create the per-surface subdirectories (e.g., `docs/plans/shared/ia/deep-dives/`, `docs/plans/desktop/fe/`, `docs/plans/web/be/`, etc.). Each new directory must include a `.gitkeep` file and a `README.md`.
|
|
33
|
+
|
|
34
|
+
Each surface gets its own independent spec pipeline. The `shared/` surface contains cross-surface domain models and API contracts that both surfaces depend on.
|
|
35
|
+
|
|
36
|
+
### Mandatory: 00-infrastructure shard (all project types)
|
|
37
|
+
|
|
38
|
+
This shard is **always** created for every project, regardless of what the architecture design says. It must be numbered `00` and created before any feature shards.
|
|
39
|
+
|
|
40
|
+
The `00-infrastructure` skeleton must contain these five items:
|
|
41
|
+
|
|
42
|
+
1. CI/CD pipeline setup (using the confirmed CI/CD skill from bootstrap)
|
|
43
|
+
Read .agent/skills/{{CI_CD_SKILL}}/SKILL.md and follow its pipeline configuration conventions.
|
|
44
|
+
2. Environment configuration (`.env.example`, environment variable documentation)
|
|
45
|
+
3. Deployment pipeline (using the confirmed hosting skill)
|
|
46
|
+
Read .agent/skills/{{HOSTING_SKILL}}/SKILL.md and follow its deployment conventions.
|
|
47
|
+
4. Project scaffolding (directory structure, base configuration files)
|
|
48
|
+
5. Database initialization (schema creation, migration tooling setup)
|
|
49
|
+
|
|
50
|
+
> _"This shard must be the first slice in Phase 1 — it is the foundation everything else builds on."_
|
|
51
|
+
|
|
52
|
+
### Shard skeletons (all project types)
|
|
53
|
+
|
|
54
|
+
Read `.agent/skills/prd-templates/references/decomposition-templates.md` for the **Shard Skeleton** template. For each shard, create a skeleton file at `docs/plans/ia/[NN-domain-name].md` using the template.
|
|
55
|
+
|
|
56
|
+
Read .agent/skills/prd-templates/SKILL.md and follow its Shard Seeding Procedure for Level-1 sub-feature extraction from ideation.md into shard ## Features sections.
|
|
57
|
+
|
|
58
|
+
Fallback for domains not in ideation.md is defined in the skill's Shard Seeding Procedure.
|
|
59
|
+
|
|
60
|
+
## 6. Create IA index
|
|
61
|
+
|
|
62
|
+
Read `.agent/skills/prd-templates/references/decomposition-templates.md` for the **IA Index** template. Create `docs/plans/ia/index.md` using the template, populating the shards table with all shards created in Step 5.
|
|
63
|
+
|
|
64
|
+
## 7. Create BE index skeleton
|
|
65
|
+
|
|
66
|
+
Read `.agent/skills/prd-templates/references/decomposition-templates.md` for the **BE Index Skeleton** template. Create `docs/plans/be/index.md` using the template.
|
|
67
|
+
|
|
68
|
+
## 8. Create FE index skeleton
|
|
69
|
+
|
|
70
|
+
Read `.agent/skills/prd-templates/references/decomposition-templates.md` for the **FE Index Skeleton** template. Create `docs/plans/fe/index.md` using the template.
|
|
71
|
+
|
|
72
|
+
## 9. Create master index
|
|
73
|
+
|
|
74
|
+
Read `.agent/skills/prd-templates/references/decomposition-templates.md` for the **Master Index** template (single-surface or multi-surface variant as appropriate). Create or update `docs/plans/index.md` using the template.
|
|
75
|
+
|
|
76
|
+
For multi-surface projects, each surface's own `index.md` contains the standard three-layer table (IA/BE/FE) scoped to that surface, following the same format as the single-surface master index.
|
|
77
|
+
|
|
78
|
+
### Propose next step
|
|
79
|
+
|
|
80
|
+
Directory structure, shard skeletons, and all layer indexes are created. Next: Run `/decompose-architecture-validate` to identify deep dive candidates, annotate shard types, validate the dependency graph, and generate the spec pipeline tracker.
|
|
81
|
+
|
|
82
|
+
> If this shard was invoked standalone (not from `/decompose-architecture`), surface this via `notify_user`.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Deep dive identification, shard type annotation, dependency validation, and review for the decompose-architecture workflow
|
|
3
|
+
parent: decompose-architecture
|
|
4
|
+
shard: validate
|
|
5
|
+
standalone: true
|
|
6
|
+
position: 2
|
|
7
|
+
pipeline:
|
|
8
|
+
position: 3.2
|
|
9
|
+
stage: architecture
|
|
10
|
+
predecessors: [decompose-architecture-structure]
|
|
11
|
+
successors: [write-architecture-spec]
|
|
12
|
+
skills: [session-continuity]
|
|
13
|
+
calls-bootstrap: false
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
// turbo-all
|
|
17
|
+
|
|
18
|
+
# Decompose Architecture — Validate
|
|
19
|
+
|
|
20
|
+
Identify deep dive candidates, annotate shard document types, validate the dependency graph, generate the spec pipeline tracker, and request review.
|
|
21
|
+
|
|
22
|
+
**Prerequisite**: Directory structure, shard skeletons, and layer indexes must exist (from `/decompose-architecture-structure` or equivalent). The IA index at `docs/plans/ia/index.md` and shard files must be in place.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 10. Identify deep dive candidates
|
|
27
|
+
|
|
28
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its methodology.
|
|
29
|
+
|
|
30
|
+
For each shard marked "Needs Deep Dive" in the domain boundary table:
|
|
31
|
+
|
|
32
|
+
1. Create an empty deep dive skeleton at `docs/plans/ia/deep-dives/[feature-name].md`
|
|
33
|
+
- **Naming convention**: Use kebab-case derived from the feature name (e.g., `chat-orchestration.md`, `age-verification-flow.md`, `order-state-machine.md`)
|
|
34
|
+
2. Add a reference to it in the parent shard's "Deep Dives Needed" section
|
|
35
|
+
3. Add it to the IA index deep dives column
|
|
36
|
+
|
|
37
|
+
## 11. Annotate expected shard types
|
|
38
|
+
|
|
39
|
+
Based on domain boundary analysis, add a **preliminary** `Document Type`
|
|
40
|
+
annotation to each shard skeleton. `/write-architecture-spec` confirms or reclassifies.
|
|
41
|
+
|
|
42
|
+
| Classification | Expected BE Specs |
|
|
43
|
+
|---------------|-------------------|
|
|
44
|
+
| **Feature domain** | 1 |
|
|
45
|
+
| **Multi-domain** | N (split along sub-feature boundaries) |
|
|
46
|
+
| **Cross-cutting** | 1 (`00-*`) |
|
|
47
|
+
| **Structural reference** | 0 |
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
> **Document Type** (preliminary): Feature domain | Multi-domain | Cross-cutting | Structural reference
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
> **Note**: Classification is based on domain analysis, not shard content (which doesn't
|
|
54
|
+
> exist yet). `/write-be-spec` uses the confirmed type to determine spec count.
|
|
55
|
+
|
|
56
|
+
## 12. Dependency graph validation
|
|
57
|
+
|
|
58
|
+
Verify the decomposition (structural checks only — content doesn't exist yet):
|
|
59
|
+
|
|
60
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its methodology for dependency graph validation.
|
|
61
|
+
|
|
62
|
+
- **Must Have coverage gate**: Read `docs/plans/vision.md` and extract every feature listed under "Must Have". For each Must Have feature, verify it appears in at least one shard's Features section. If any Must Have feature is not covered by any shard → **STOP**: "The following Must Have features from vision.md are not covered by any shard: [list]. Add them to the appropriate shards before proceeding."
|
|
63
|
+
|
|
64
|
+
- **Shard load calibration gate**: After the Must Have coverage gate passes, count the sub-features in each shard's `## Features` section using the **bullet/named-item rule**: count every bullet point or named item under `## Features`, **excluding** group headers (lines that introduce a group of sub-features but are not themselves a concrete capability). Compare against the following thresholds:
|
|
65
|
+
|
|
66
|
+
| Sub-feature Count | Action |
|
|
67
|
+
|-------------------|--------|
|
|
68
|
+
| **≤6** | ✅ OK — proceed |
|
|
69
|
+
| **7–9** | ⚠️ Flag for user review — present the sub-feature list and ask: "This shard has [N] sub-features. Keep as-is, or split?" |
|
|
70
|
+
| **≥10** | 🛑 **Hard stop** — do NOT proceed. Present a mandatory split proposal and **wait for the user to approve the split** before continuing. No shard may exit this gate with ≥10 sub-features. |
|
|
71
|
+
|
|
72
|
+
> **What counts as a sub-feature**: Count each bullet or named item under `## Features`. Group headers (e.g., "Content Management:") that introduce a cluster of sub-features are **not** counted — only the items beneath them. If a bullet contains sub-bullets, count each sub-bullet independently. When in doubt, ask: "Would a product manager list this as a separate line item in a release note?"
|
|
73
|
+
|
|
74
|
+
**Split proposal format:**
|
|
75
|
+
```
|
|
76
|
+
Shard [NN] — [domain name] has [N] sub-features (threshold: ≥10 → mandatory split)
|
|
77
|
+
|
|
78
|
+
Current sub-features:
|
|
79
|
+
1. [sub-feature]
|
|
80
|
+
2. [sub-feature]
|
|
81
|
+
...
|
|
82
|
+
|
|
83
|
+
Proposed split:
|
|
84
|
+
[NN]a — [new domain name] → file: docs/plans/ia/[NN]a-[domain].md
|
|
85
|
+
Sub-features: 1, 3, 5
|
|
86
|
+
[NN]b — [new domain name] → file: docs/plans/ia/[NN]b-[domain].md
|
|
87
|
+
Sub-features: 2, 4, 6
|
|
88
|
+
|
|
89
|
+
Split rationale: [why these groups are independent]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**After any split**: Update `docs/plans/ia/decomposition-plan.md` with the revised domain boundary table and re-run the Must Have coverage gate to confirm no features were lost in the split.
|
|
93
|
+
|
|
94
|
+
- [ ] No circular dependencies between shards
|
|
95
|
+
- [ ] Cross-cutting shards (00-*) don't depend on feature shards
|
|
96
|
+
- [ ] Every shard has a preliminary Document Type annotation
|
|
97
|
+
- [ ] Deep dive candidates are referenced from their parent shards
|
|
98
|
+
- [ ] BE/FE indexes exist with conventions templates (mapping tables will be populated later)
|
|
99
|
+
- [ ] For multi-surface: shared surface shards have lower numbers than surface-specific shards that depend on them
|
|
100
|
+
- [ ] For multi-surface: each surface has its own index.md with IA/BE/FE layer table
|
|
101
|
+
- [ ] For multi-surface: cross-surface dependencies point to shared/ shards, not directly to another surface's shards
|
|
102
|
+
|
|
103
|
+
## 13. Generate spec pipeline tracker
|
|
104
|
+
|
|
105
|
+
Read `.agent/skills/session-continuity/protocols/07-spec-pipeline-generation.md` and follow the **Spec Pipeline Generation Protocol**
|
|
106
|
+
to create `.agent/progress/spec-pipeline.md` tracking IA/BE/FE completion per shard.
|
|
107
|
+
|
|
108
|
+
## 14. Request review and propose next steps
|
|
109
|
+
|
|
110
|
+
Use `notify_user` to present:
|
|
111
|
+
- The full `docs/plans/ia/` directory (shard skeletons + index)
|
|
112
|
+
- `docs/plans/be/index.md`
|
|
113
|
+
- `docs/plans/fe/index.md`
|
|
114
|
+
- `docs/plans/index.md`
|
|
115
|
+
- `.agent/progress/spec-pipeline.md`
|
|
116
|
+
|
|
117
|
+
The decomposition must be approved before filling in shards with `/write-architecture-spec`. Do NOT proceed to the next step until the user sends a message explicitly approving this output. Proposing next steps is not the same as receiving approval. Wait for explicit approval before continuing.
|
|
118
|
+
|
|
119
|
+
**Proposed next step**: Once approved, run `/write-architecture-spec` starting with the lowest-numbered skeleton shard. Read `.agent/progress/spec-pipeline.md` to identify which shard to start with.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Break architecture design into numbered IA shards and create layer indexes — establishes the full docs/plans/ structure
|
|
3
|
+
pipeline:
|
|
4
|
+
position: 3
|
|
5
|
+
stage: architecture
|
|
6
|
+
predecessors: [create-prd]
|
|
7
|
+
successors: [write-architecture-spec]
|
|
8
|
+
skills: [technical-writer, resolve-ambiguity]
|
|
9
|
+
calls-bootstrap: false
|
|
10
|
+
shards: [decompose-architecture-structure, decompose-architecture-validate]
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
// turbo-all
|
|
14
|
+
|
|
15
|
+
# Decompose Architecture
|
|
16
|
+
|
|
17
|
+
Break the architecture design document into domain-bounded IA shards and create the full spec layer structure.
|
|
18
|
+
|
|
19
|
+
**Input**: `docs/plans/YYYY-MM-DD-architecture-design.md` (must exist and be approved)
|
|
20
|
+
**Output**: `docs/plans/ia/`, `docs/plans/be/`, `docs/plans/fe/` directories with indexes and shard skeletons (or per-surface subdirectories for multi-surface projects)
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 1. Read architecture design
|
|
25
|
+
|
|
26
|
+
Read the file at `docs/plans/*-architecture-design.md`.
|
|
27
|
+
|
|
28
|
+
If no architecture design exists, tell the user to run `/create-prd` first. Do not proceed without an approved design.
|
|
29
|
+
|
|
30
|
+
Also check the document's `**Status**:` field. If the status is `Draft` or `Review` → **STOP**: "The architecture design is not yet approved (current status: [status]). Get explicit approval from the user and update the status to `Approved` before decomposing."
|
|
31
|
+
|
|
32
|
+
Also read the file at `docs/plans/vision.md`.
|
|
33
|
+
|
|
34
|
+
> **Design system prerequisite (web/mobile/desktop projects)**: Read `.agent/instructions/tech-stack.md` and locate the `SURFACES` value. If surfaces include `web`, `mobile`, or `desktop`, verify that `docs/plans/design-system.md` exists and is not empty.
|
|
35
|
+
>
|
|
36
|
+
> If it does not exist:
|
|
37
|
+
>
|
|
38
|
+
> ⚠️ **Warning**: FE specs for this project require a design system (`docs/plans/design-system.md`). Run `/create-prd-design-system` before writing any FE specs. You may continue with architecture decomposition now, but the design system must be completed before the FE spec writing phase.
|
|
39
|
+
>
|
|
40
|
+
> This is a warning, not a hard stop — architecture decomposition can proceed. API-only, CLI, and extension projects are not affected.
|
|
41
|
+
|
|
42
|
+
Identify the **Project Type** from the architecture design header:
|
|
43
|
+
- **Single-surface** (web, desktop, mobile, CLI, API) → standard flat structure
|
|
44
|
+
- **Multi-surface** (desktop + web, mobile + web, etc.) → per-surface subdirectories with shared layer
|
|
45
|
+
|
|
46
|
+
## 2. Load brainstorming skill
|
|
47
|
+
|
|
48
|
+
Read `.agent/skills/brainstorming/SKILL.md` — domain boundary decisions benefit from collaborative exploration.
|
|
49
|
+
|
|
50
|
+
## 3. Identify domain boundaries
|
|
51
|
+
|
|
52
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its methodology.
|
|
53
|
+
|
|
54
|
+
Analyze the architecture design and identify natural domain boundaries. Each boundary becomes a numbered IA shard.
|
|
55
|
+
|
|
56
|
+
**Heuristics for finding boundaries:**
|
|
57
|
+
- Features that share the same data models belong together
|
|
58
|
+
- Features that can be developed/deployed independently are candidates for separation
|
|
59
|
+
- Features that share the same access control model may belong together
|
|
60
|
+
- Cross-cutting concerns (auth, API conventions, error handling) become `00-*` shards
|
|
61
|
+
|
|
62
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its Domain Boundary Protocol. Build the domain inventory record, apply all three split trigger rules, and produce the domain boundary table. Present split candidates to the user before locking any boundary.
|
|
63
|
+
|
|
64
|
+
Present the proposed domain decomposition to the user for validation.
|
|
65
|
+
|
|
66
|
+
## 4. Assign shard numbers
|
|
67
|
+
|
|
68
|
+
Follow the numbering convention:
|
|
69
|
+
- `00-*` — Cross-cutting/foundation concerns (may have multiple: `00-api-conventions`, `00-auth-middleware`, etc.)
|
|
70
|
+
- `01-*` through `NN-*` — Feature domains, ordered by dependency (dependencies first)
|
|
71
|
+
|
|
72
|
+
Order rule: If shard B depends on shard A, then A gets a lower number than B.
|
|
73
|
+
|
|
74
|
+
## 4.5. Request approval of domain boundaries
|
|
75
|
+
|
|
76
|
+
**STOP HERE** and present the domain boundary table and shard numbering to the user for explicit approval. Use `notify_user` to present:
|
|
77
|
+
|
|
78
|
+
1. The complete domain boundary table from Step 3
|
|
79
|
+
2. The proposed shard numbering from Step 4
|
|
80
|
+
3. The dependency ordering rationale
|
|
81
|
+
4. Any shards marked as needing deep dives
|
|
82
|
+
|
|
83
|
+
Ask:
|
|
84
|
+
- "Does this decomposition capture every feature from the architecture design?"
|
|
85
|
+
- "Are the domain boundaries in the right places, or should any be split/merged?"
|
|
86
|
+
- "Is the dependency ordering correct?"
|
|
87
|
+
|
|
88
|
+
**Do not proceed** to shard skeleton creation until the user explicitly approves the domain boundaries. If the user requests changes, revise Steps 3-4 and re-present.
|
|
89
|
+
|
|
90
|
+
**Write `docs/plans/ia/decomposition-plan.md` immediately after user approval of the domain list, before proceeding to skeleton creation. This is a single gate — write the plan once, then proceed to the Shard Overview.**
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Shard Overview
|
|
95
|
+
|
|
96
|
+
| # | Shard | What It Does |
|
|
97
|
+
|---|-------|-------------|
|
|
98
|
+
| 1 | [`decompose-architecture-structure`](.agent/workflows/decompose-architecture-structure.md) | Creates directory structure, shard skeletons, and all layer indexes |
|
|
99
|
+
| 2 | [`decompose-architecture-validate`](.agent/workflows/decompose-architecture-validate.md) | Identifies deep dives, annotates shard types, validates dependencies, generates tracker, requests review |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Orchestration
|
|
104
|
+
|
|
105
|
+
### Step A — Run `.agent/workflows/decompose-architecture-structure.md`
|
|
106
|
+
|
|
107
|
+
Creates the directory structure (with multi-surface subdirectories if needed), writes shard skeleton files, and creates the IA, BE, FE, and master index files.
|
|
108
|
+
|
|
109
|
+
### Step B — Run `.agent/workflows/decompose-architecture-validate.md`
|
|
110
|
+
|
|
111
|
+
Identifies deep dive candidates, annotates expected shard document types, validates the dependency graph, generates the spec pipeline tracker, and requests user review.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Safely evolve a Zod schema — identify all consumers, write migration tests, update across all four surfaces
|
|
3
|
+
pipeline:
|
|
4
|
+
position: utility
|
|
5
|
+
stage: maintenance
|
|
6
|
+
predecessors: [] # callable from any stage
|
|
7
|
+
successors: [] # returns to caller
|
|
8
|
+
skills: [tdd-workflow, migration-management, testing-strategist, error-handling-patterns]
|
|
9
|
+
calls-bootstrap: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Evolve Contract
|
|
13
|
+
|
|
14
|
+
Safely modify a Zod schema without breaking existing consumers.
|
|
15
|
+
|
|
16
|
+
**Input**: The contract to change and the desired modification
|
|
17
|
+
**Output**: Updated contract, migration tests, and all consumers updated
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 0. Load contract evolution skills
|
|
22
|
+
|
|
23
|
+
Read these skills for safe schema migration:
|
|
24
|
+
1. `.agent/skills/migration-management/SKILL.md` — Migration strategy and versioning
|
|
25
|
+
2. `.agent/skills/testing-strategist/SKILL.md` — Migration test coverage
|
|
26
|
+
3. `.agent/skills/error-handling-patterns/SKILL.md` — follow its methodology for schema change error handling
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 1. Identify the contract
|
|
31
|
+
|
|
32
|
+
Read .agent/skills/{{LANGUAGE_SKILL}}/SKILL.md and follow its language conventions.
|
|
33
|
+
|
|
34
|
+
Determine which Zod schema needs to change and what the change is:
|
|
35
|
+
- **Additive** (new optional field) — Low risk
|
|
36
|
+
- **Narrowing** (tighter validation) — Medium risk
|
|
37
|
+
- **Breaking** (rename, remove, type change) — High risk
|
|
38
|
+
|
|
39
|
+
## 2. Find all consumers
|
|
40
|
+
|
|
41
|
+
Search for all usages of `SchemaName` in the source directory (see `.agent/instructions/structure.md` for the root — typically `src/`).
|
|
42
|
+
|
|
43
|
+
Document all consumers:
|
|
44
|
+
- API endpoint handlers
|
|
45
|
+
- Frontend components
|
|
46
|
+
- Test files
|
|
47
|
+
- Other contracts that reference this one
|
|
48
|
+
|
|
49
|
+
## 3. Write migration tests
|
|
50
|
+
|
|
51
|
+
Read .agent/skills/tdd-workflow/SKILL.md and follow its Red→Green→Refactor cycle for contract evolution.
|
|
52
|
+
|
|
53
|
+
Read .agent/skills/{{UNIT_TESTING_SKILL}}/SKILL.md and follow its test writing conventions.
|
|
54
|
+
|
|
55
|
+
Before changing anything, write tests that validate:
|
|
56
|
+
- Existing data still passes the new schema (backward compatibility)
|
|
57
|
+
- New data shape is accepted
|
|
58
|
+
- Invalid data is rejected
|
|
59
|
+
|
|
60
|
+
Run `{{TEST_COMMAND}}` — tests should FAIL until the schema is updated.
|
|
61
|
+
|
|
62
|
+
## 4. Update the contract
|
|
63
|
+
|
|
64
|
+
Read .agent/skills/{{LANGUAGE_SKILL}}/SKILL.md and follow its language conventions.
|
|
65
|
+
|
|
66
|
+
Modify the Zod schema. For breaking changes:
|
|
67
|
+
- Consider versioning (v1 → v2)
|
|
68
|
+
- Add runtime migration helpers if needed
|
|
69
|
+
|
|
70
|
+
## 4.5. New dependency check
|
|
71
|
+
|
|
72
|
+
If the contract change introduces a dependency not currently in the skill set — for example, a new Zod plugin, a Pydantic extension, a binary serialization library, or a new validation pattern — read `.agent/workflows/bootstrap-agents.md` and invoke `/bootstrap-agents NEW_DEPENDENCY=[package]` before updating consumers in Step 5.
|
|
73
|
+
|
|
74
|
+
Confirm the matching skill is installed (or no new dependency was introduced) before proceeding to Step 5.
|
|
75
|
+
|
|
76
|
+
## 5. Update all consumers
|
|
77
|
+
|
|
78
|
+
Read .agent/skills/{{LANGUAGE_SKILL}}/SKILL.md and follow its language conventions.
|
|
79
|
+
|
|
80
|
+
For each consumer found in Step 2:
|
|
81
|
+
- Update the code to use the new schema shape
|
|
82
|
+
- Verify types resolve correctly
|
|
83
|
+
|
|
84
|
+
## 6. Validate
|
|
85
|
+
|
|
86
|
+
Run `{{VALIDATION_COMMAND}}` (see `.agent/instructions/commands.md` for the configured validation command).
|
|
87
|
+
|
|
88
|
+
All must pass.
|
|
89
|
+
|
|
90
|
+
## 6.5 — Spec cascade check
|
|
91
|
+
|
|
92
|
+
For each consumer updated in Step 5, identify which BE spec and FE spec reference this contract. Check whether the change (additive/narrowing/breaking) requires updating those specs. For breaking changes, the BE spec and FE spec MUST be updated before proceeding. For additive changes, update the spec if the new field is user-visible or API-facing. Update the IA Source Map in the BE spec to reflect the change.
|
|
93
|
+
|
|
94
|
+
## 7. Document the change and next steps
|
|
95
|
+
|
|
96
|
+
Add an entry to the decisions log in `docs/plans/*-architecture-design.md` explaining why the contract changed.
|
|
97
|
+
|
|
98
|
+
**Proposed next step**: Re-run `/validate-phase` for the affected phase to ensure no regressions were introduced by the contract evolution.
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Cascade new content through downstream layers, assess implementation impact, run consistency check, and write evolution record
|
|
3
|
+
parent: evolve-feature
|
|
4
|
+
shard: cascade
|
|
5
|
+
standalone: true
|
|
6
|
+
position: 2
|
|
7
|
+
pipeline:
|
|
8
|
+
position: utility
|
|
9
|
+
stage: quality-gate
|
|
10
|
+
predecessors: [evolve-feature-classify]
|
|
11
|
+
successors: []
|
|
12
|
+
skills: [resolve-ambiguity, technical-writer]
|
|
13
|
+
calls-bootstrap: true
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Evolve Feature — Cascade
|
|
17
|
+
|
|
18
|
+
Cascade the new content from the entry point through all downstream layers with existing content, assess implementation impact, run a consistency check, and write the evolution record.
|
|
19
|
+
|
|
20
|
+
> **Prerequisite**: The entry point document must already contain the new content (written by `/evolve-feature-classify` Step 4). The cascade scope must be determined (Step 5 output).
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 1. Cascade through each downstream layer
|
|
25
|
+
|
|
26
|
+
Read .agent/skills/technical-writer/SKILL.md and apply its writing standards to all spec additions and the evolution record.
|
|
27
|
+
|
|
28
|
+
For each downstream layer with existing content (in order: architecture → IA → BE → FE → phase plan):
|
|
29
|
+
|
|
30
|
+
1. **Read existing documents** in the layer
|
|
31
|
+
2. **Determine what the new feature means for this layer** — what sections need additions, what contracts change, what new components are needed
|
|
32
|
+
3. **Write the additions** — new sections, new entries in existing tables, new acceptance criteria, new contracts. Write at the same depth and quality as the existing content in the layer.
|
|
33
|
+
4. **Present additions to user** — show exactly what was added and where
|
|
34
|
+
|
|
35
|
+
**STOP at each layer** — do not cascade to the next layer until the user approves the current layer's additions.
|
|
36
|
+
|
|
37
|
+
Layer-specific guidance:
|
|
38
|
+
|
|
39
|
+
- **Architecture layer**: Add new components, update system diagrams references, add NFRs, update integration points
|
|
40
|
+
- **IA layer**: Add new domain interactions, update contracts, add data model changes, update access control
|
|
41
|
+
- **BE layer**: Add new API endpoints, update schemas, add middleware requirements, update validation rules
|
|
42
|
+
- **FE layer**: Add new components, update state management, add new routes, update accessibility requirements
|
|
43
|
+
- **Phase plan**: Add new slices or update existing slice acceptance criteria (see Step 2)
|
|
44
|
+
|
|
45
|
+
> After writing additions to any spec document in this step, append a row to that spec's `## Changelog` table recording: today's date, `'Evolution: [brief description of what was added]'`, this workflow (`/evolve-feature-cascade`), and the sections of the spec that were updated. If the spec does not yet have a `## Changelog` section, add one following the template in `.agent/skills/prd-templates/references/be-spec-template.md` (for BE specs) or the equivalent FE/IA template before appending the row.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 2. Assess implementation impact
|
|
50
|
+
|
|
51
|
+
If `docs/plans/phases/` exists and contains phase plans:
|
|
52
|
+
|
|
53
|
+
1. **Check in-progress slices** — do any currently in-progress slices need their acceptance criteria updated? List the affected criteria.
|
|
54
|
+
2. **Check completed slices** — do any completed slices that may need revisiting? (This is a red flag — document it clearly with regression risk assessment)
|
|
55
|
+
3. **Determine if new slices are needed** — does the new feature require new implementation slices in the current phase? If yes, draft the slice names and acceptance criteria.
|
|
56
|
+
4. **Determine if phase plan update is required** — does the scope require changes to the phase plan structure?
|
|
57
|
+
|
|
58
|
+
Present the impact assessment:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
62
|
+
Implementation Impact
|
|
63
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
+
In-progress slices affected: [list or "none"]
|
|
65
|
+
Completed slices that may need revisiting: [list or "none"]
|
|
66
|
+
New slices needed: [list or "none"]
|
|
67
|
+
Phase plan update required: [yes/no]
|
|
68
|
+
|
|
69
|
+
Recommended action: [specific next step]
|
|
70
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
If no phase plans exist, skip this step and note: "No phase plans exist yet — implementation impact will be assessed during `/plan-phase`."
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 3. Run consistency check
|
|
78
|
+
|
|
79
|
+
Read .agent/skills/resolve-ambiguity/SKILL.md and follow its methodology.
|
|
80
|
+
|
|
81
|
+
For every document that received additions in Step 1:
|
|
82
|
+
|
|
83
|
+
1. **Re-read the full document** — verify the additions integrate correctly with existing content
|
|
84
|
+
2. **Check for internal contradictions** — do the additions conflict with anything else in the same document?
|
|
85
|
+
3. **Check cross-references between changed documents** — if multiple documents were updated, verify they are consistent with each other
|
|
86
|
+
4. **Check against locked decisions** — do the additions contradict any locked architectural decisions?
|
|
87
|
+
|
|
88
|
+
Report any issues found. **Do not auto-fix** — present them to the user for review.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 4. Write evolution record
|
|
93
|
+
|
|
94
|
+
Write `docs/audits/evolve-feature-[name]-[date].md` recording:
|
|
95
|
+
|
|
96
|
+
- **Feature name** — short identifier for the evolution
|
|
97
|
+
- **Change type** — classification from Step 2 of `/evolve-feature-classify`
|
|
98
|
+
- **Entry point** — which document received the initial content
|
|
99
|
+
- **New content written** — summary of what was added at the entry point
|
|
100
|
+
- **Layers updated** — list of downstream layers that received additions
|
|
101
|
+
- **Per-layer additions** — what was added at each layer (summary, not full content)
|
|
102
|
+
- **Implementation impact** — assessment from Step 2 (if applicable)
|
|
103
|
+
- **Consistency check results** — pass/fail with details
|
|
104
|
+
- **Timestamp** of the evolution run
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 4.5. Bootstrap gate — new dependency check
|
|
109
|
+
|
|
110
|
+
Before closing the cascade, scan every document that was updated in Step 1 for any technology, library, or service referenced in the new content that does not have a corresponding installed skill directory in `.agent/skills/`.
|
|
111
|
+
|
|
112
|
+
For each missing skill:
|
|
113
|
+
1. Identify the technology (e.g., WebSocket, S3 storage, Stripe, Redis)
|
|
114
|
+
2. Read `.agent/workflows/bootstrap-agents.md` and invoke `/bootstrap-agents NEW_DEPENDENCY=[technology]`
|
|
115
|
+
3. Confirm the matching skill is installed before proceeding to Step 5
|
|
116
|
+
|
|
117
|
+
If no new unregistered technologies were introduced, skip and proceed to Step 5.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## 5. Propose next steps
|
|
122
|
+
|
|
123
|
+
Display the completion summary:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
|
+
Feature Evolution Complete
|
|
128
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
129
|
+
Entry point: [document]
|
|
130
|
+
Layers updated: [list]
|
|
131
|
+
New content: [summary]
|
|
132
|
+
Implementation: [impact summary]
|
|
133
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
134
|
+
|
|
135
|
+
❗ **Mandatory next step — do not skip**: The evolution just added or modified content across [N] layers. Evolution bypasses the normal deepening phase — the audit is the quality gate that replaces it.
|
|
136
|
+
|
|
137
|
+
Run `/audit-ambiguity` on the affected layers before any implementation work touches these documents. The affected layers are: [list the layers that were updated during the cascade — populated from Step 1's output].
|
|
138
|
+
|
|
139
|
+
This is not optional. Under-specified evolution content is the single most common source of spec drift. The audit catches what the inline micro check may have missed at a cross-document level.
|
|
140
|
+
```
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Capture the new feature/requirement, classify the change type, identify the entry point document, write new content, and determine cascade scope
|
|
3
|
+
parent: evolve-feature
|
|
4
|
+
shard: classify
|
|
5
|
+
standalone: true
|
|
6
|
+
position: 1
|
|
7
|
+
pipeline:
|
|
8
|
+
position: utility
|
|
9
|
+
stage: quality-gate
|
|
10
|
+
predecessors: [] # callable standalone
|
|
11
|
+
successors: [evolve-feature-cascade]
|
|
12
|
+
skills: [technical-writer, brainstorming]
|
|
13
|
+
calls-bootstrap: false
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Evolve Feature — Classify
|
|
17
|
+
|
|
18
|
+
Capture the user's new feature, requirement, or constraint. Classify it, identify the correct entry point document, write the new content at proper spec depth, and determine which downstream layers need updating.
|
|
19
|
+
|
|
20
|
+
> **Prerequisite**: At least `docs/plans/vision.md` must exist. If the pipeline hasn't started, run `/ideate` first — there's nothing to evolve yet.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 1. Capture the new thing
|
|
25
|
+
|
|
26
|
+
Ask the user to describe what they want to add. Accept free-form input or `@file`.
|
|
27
|
+
|
|
28
|
+
If the user provides an `@file` reference, read the file and extract the key additions. If free-form, engage briefly to ensure the addition is clear — but this is NOT a full `/ideate` interview. The goal is to understand what's being added, not to explore the entire problem space.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 2. Classify the change
|
|
33
|
+
|
|
34
|
+
Read .agent/skills/brainstorming/SKILL.md and follow its methodology.
|
|
35
|
+
|
|
36
|
+
Present the classification menu:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
What type of change is this?
|
|
40
|
+
|
|
41
|
+
[1] New feature — an entirely new capability that doesn't exist in the current specs
|
|
42
|
+
[2] New requirement on an existing feature — additional constraint, behavior, or acceptance criteria for something already specified
|
|
43
|
+
[3] New technical constraint — a non-functional requirement that affects architecture (performance, compliance, infrastructure)
|
|
44
|
+
[4] Scope correction — something was misunderstood or underspecified in existing specs and needs to be fixed
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Do not proceed until the user selects.**
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. Identify the entry point document
|
|
52
|
+
|
|
53
|
+
Based on the classification, determine where the new content enters the pipeline:
|
|
54
|
+
|
|
55
|
+
| Classification | Entry Point Document | Rationale |
|
|
56
|
+
|---------------|---------------------|-----------|
|
|
57
|
+
| **[1] New feature** | `docs/plans/vision.md` | New features start at the vision layer — they affect everything downstream |
|
|
58
|
+
| **[2] New requirement** | The IA shard that owns the affected domain | Requirements on existing features enter at the domain interaction level |
|
|
59
|
+
| **[3] New technical constraint** | `docs/plans/[dated]-architecture-design.md` | Technical constraints affect the architecture and everything below it |
|
|
60
|
+
| **[4] Scope correction** | Ask the user which document contains the misunderstanding | Corrections enter wherever the original misunderstanding lives |
|
|
61
|
+
|
|
62
|
+
For classification [2], identify which IA shard owns the affected domain by reading `docs/plans/ia/index.md` and matching the feature to a domain.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 4. Write new content at the entry point
|
|
67
|
+
|
|
68
|
+
Read .agent/skills/technical-writer/SKILL.md and follow its clarity standards for all new spec content.
|
|
69
|
+
|
|
70
|
+
This is a real spec-writing step — not a placeholder. Write the new content at the appropriate depth for the entry point layer:
|
|
71
|
+
|
|
72
|
+
**If entry point is vision layer** (`docs/plans/vision.md`):
|
|
73
|
+
- Feature description (what it does, why it matters)
|
|
74
|
+
- Affected personas (who uses this)
|
|
75
|
+
- Success criteria (how we know it works)
|
|
76
|
+
- Constraints (what limits apply)
|
|
77
|
+
|
|
78
|
+
**If entry point is architecture layer** (`architecture-design.md`):
|
|
79
|
+
- Technical constraint description
|
|
80
|
+
- Affected components (which parts of the system this touches)
|
|
81
|
+
- Non-functional requirements (performance, scalability, compliance)
|
|
82
|
+
- Integration points (how this relates to existing architecture decisions)
|
|
83
|
+
|
|
84
|
+
**If entry point is IA layer** (specific IA shard):
|
|
85
|
+
- Domain interactions (new user flows or modifications to existing flows)
|
|
86
|
+
- Contracts (new or modified API contracts)
|
|
87
|
+
- Data models (new entities, fields, or relationships)
|
|
88
|
+
- Access control (RBAC implications)
|
|
89
|
+
|
|
90
|
+
**Inline ambiguity check**: Before presenting this content to the user for approval, apply the Micro Ambiguity Check from `.agent/skills/session-continuity/SKILL.md` (Ambiguity Gates section). Walk each individual element of the new content and ask: "Would an implementer need to guess about this?" For every element where the answer is yes — fix it now. Add the missing detail, type, behavior, or constraint. Only present the content to the user once it passes the micro check.
|
|
91
|
+
|
|
92
|
+
Present the written content to the user.
|
|
93
|
+
|
|
94
|
+
**STOP — do not proceed until the user approves the new content.**
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 5. Determine cascade scope
|
|
99
|
+
|
|
100
|
+
Based on the entry point, determine which downstream layers have existing content that needs updating:
|
|
101
|
+
|
|
102
|
+
| Entry Point | Cascade Layers (in order) |
|
|
103
|
+
|-------------|---------------------------|
|
|
104
|
+
| Vision | Architecture → IA → BE → FE → Phase plan |
|
|
105
|
+
| Architecture | IA → BE → FE → Phase plan |
|
|
106
|
+
| IA shard | BE spec for that shard → FE spec for that shard → Phase plan |
|
|
107
|
+
| BE spec | FE → Phase plan |
|
|
108
|
+
| Scope correction | Depends on the document — all layers below the corrected document |
|
|
109
|
+
|
|
110
|
+
**Important**: When the entry point is an IA shard, the downstream cascade remains scoped to the affected domain shard's corresponding BE and FE specs. Do not cascade into unrelated domain shards unless the user explicitly broadens scope.
|
|
111
|
+
|
|
112
|
+
For each downstream layer, check whether content exists (using the same file checks as `/remediate-pipeline-assess` Step 1). Only layers with existing content need updating — layers that haven't been started yet will naturally incorporate the new content when they are written.
|
|
113
|
+
|
|
114
|
+
Report: "These layers have existing content that will need updating: [list]."
|
|
115
|
+
|
|
116
|
+
If no downstream layers have content, report: "No downstream layers have existing content — the new content will be incorporated when those layers are written. Evolution complete."
|