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: Targeted ambiguity resolution for any pipeline document or layer
|
|
3
|
+
pipeline:
|
|
4
|
+
position: utility
|
|
5
|
+
stage: quality-gate
|
|
6
|
+
predecessors: [] # callable from any stage
|
|
7
|
+
successors: [] # returns to caller
|
|
8
|
+
skills: [resolve-ambiguity]
|
|
9
|
+
calls-bootstrap: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Resolve Ambiguity
|
|
13
|
+
|
|
14
|
+
Targeted ambiguity resolution for any pipeline document or layer. Uses the `resolve-ambiguity` skill to classify gaps and systematically resolve them.
|
|
15
|
+
|
|
16
|
+
## Invocation patterns
|
|
17
|
+
|
|
18
|
+
| Invocation | Behavior |
|
|
19
|
+
|---|---|
|
|
20
|
+
| `/resolve-ambiguity` | Interactive — asks which document or layer to resolve |
|
|
21
|
+
| `/resolve-ambiguity vision` | Targets `docs/plans/vision.md` |
|
|
22
|
+
| `/resolve-ambiguity architecture` | Targets the architecture design documents |
|
|
23
|
+
| `/resolve-ambiguity @path/to/spec.md` | Targets a specific file |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 1. Determine target
|
|
28
|
+
|
|
29
|
+
If no argument was provided, ask the user which document or layer to resolve. Accept a layer name (`vision`, `architecture`, `ia`, `be`, `fe`) or a direct `@file` path.
|
|
30
|
+
|
|
31
|
+
For layer names, resolve to the canonical document(s):
|
|
32
|
+
- `vision` → `docs/plans/vision.md` + any `docs/plans/vision-appendix-*.md`
|
|
33
|
+
- `architecture` → `docs/plans/YYYY-MM-DD-architecture-design.md` + `docs/plans/ENGINEERING-STANDARDS.md` + `docs/plans/data-placement-strategy.md`
|
|
34
|
+
- `ia` → all files in `docs/plans/ia/` (excluding `index.md`)
|
|
35
|
+
- `be` → all files in `docs/plans/be/` (excluding `index.md`)
|
|
36
|
+
- `fe` → all files in `docs/plans/fe/` (excluding `index.md`)
|
|
37
|
+
|
|
38
|
+
## 2. Load skill
|
|
39
|
+
|
|
40
|
+
Read `.agent/skills/resolve-ambiguity/SKILL.md`. The skill contains the full methodology — this workflow orchestrates it.
|
|
41
|
+
|
|
42
|
+
## 3. Load source document(s)
|
|
43
|
+
|
|
44
|
+
Read the target document(s) in full based on the layer or file path determined in Step 1.
|
|
45
|
+
|
|
46
|
+
## 4. Classify and resolve
|
|
47
|
+
|
|
48
|
+
Apply the two-path classification model from the resolve-ambiguity skill:
|
|
49
|
+
|
|
50
|
+
For each gap or ambiguity found, follow the skill's two-path classification:
|
|
51
|
+
|
|
52
|
+
- **Technical/Factual gaps** → tiered lookup (Tiers 1–5): project docs, architecture files, upstream specs, official documentation, web search
|
|
53
|
+
- **Intent/Choice gaps** → user clarification: present smart options ordered by recommendation, wait for user decision
|
|
54
|
+
|
|
55
|
+
Resolve judgment calls first — they may change what mechanical fixes are needed.
|
|
56
|
+
|
|
57
|
+
Present findings organized by type: judgment calls first, mechanical fixes second.
|
|
58
|
+
|
|
59
|
+
## 5. Apply fixes
|
|
60
|
+
|
|
61
|
+
Update the relevant spec documents with resolved content. Record each resolution so future readers don't hit the same ambiguity (per the skill's "Record" step).
|
|
62
|
+
|
|
63
|
+
> **Resolution log**: After applying each fix, append a `## Resolution Log` entry to the target document:
|
|
64
|
+
>
|
|
65
|
+
> ```markdown
|
|
66
|
+
> ## Resolution Log
|
|
67
|
+
> | Date | Gap | Resolution | Source |
|
|
68
|
+
> |------|-----|------------|--------|
|
|
69
|
+
> | [date] | [gap description] | [what was changed] | [source that resolved it — project doc / user decision / upstream spec] |
|
|
70
|
+
> ```
|
|
71
|
+
>
|
|
72
|
+
> If a `## Resolution Log` section already exists, append a new row to the table. This makes `/resolve-ambiguity` leave an audit trail so future readers know what was changed and why.
|
|
73
|
+
|
|
74
|
+
> In addition to the Resolution Log, append a row to each modified spec's `## Changelog` table recording: today's date, `'Ambiguity resolution: [brief description]'`, `/resolve-ambiguity`, and the sections updated. If the spec does not yet have a `## Changelog` section, add one before appending.
|
|
75
|
+
|
|
76
|
+
## 6. Propose next step
|
|
77
|
+
|
|
78
|
+
Use `notify_user` to summarize what was resolved.
|
|
79
|
+
|
|
80
|
+
### Proposed next step
|
|
81
|
+
|
|
82
|
+
Ambiguity resolution complete. Next: Re-run `/audit-ambiguity [layer]` as a fresh invocation to verify the fixes. The session that fixed gaps cannot be the session that passes them.
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Sync improvements from the upstream starter kit into this project's .agent folder — semantic merge preserving project-specific values
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Sync Kit
|
|
6
|
+
|
|
7
|
+
Pull improvements from the upstream [Anti-MVP-Vibe-Pipeline](https://github.com/RepairYourTech/Anti-MVP-Vibe-Pipeline) kit into this project. The sync covers the **entire upstream repo** — `.agent/` directory, root-level files (`AGENTS.md`, `GEMINI.md`, `KIT-*.md`), and `docs/` scaffolding.
|
|
8
|
+
|
|
9
|
+
**The problem:** The kit was born from this project, but has since evolved past it. The kit uses `{{PLACEHOLDER}}` markers; this project has real values. A blind copy would destroy project-specific content. This workflow does a semantic merge — apply the kit's *intent* while preserving project values.
|
|
10
|
+
|
|
11
|
+
**Input:** Upstream kit repo (default: `RepairYourTech/Anti-MVP-Vibe-Pipeline`, branch `main`)
|
|
12
|
+
**Output:** Updated project with kit improvements merged, sync state recorded
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 0. Read sync state
|
|
17
|
+
|
|
18
|
+
Read `.agent/kit-sync.md` in the project root.
|
|
19
|
+
|
|
20
|
+
- **File exists** → extract `last_synced_commit` and `upstream` values. Use **incremental mode** (Step 1a).
|
|
21
|
+
- **File missing** → this is a **first sync**. Use **full diff mode** (Step 1b). The tracking file will be created in Step 9.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 1. Identify what changed
|
|
26
|
+
|
|
27
|
+
// turbo
|
|
28
|
+
|
|
29
|
+
### 1a. Incremental sync (commit-scoped)
|
|
30
|
+
|
|
31
|
+
Run `git log <last_synced_commit>..HEAD --name-only` on the upstream to get only the changed files. Work only with those files in Steps 2–7.
|
|
32
|
+
|
|
33
|
+
If the command returns no files: report "No changes since last sync (commit `<hash>`)" and skip to Step 8.5.
|
|
34
|
+
|
|
35
|
+
### 1b. First sync (full comparison)
|
|
36
|
+
|
|
37
|
+
Compare the **entire upstream repo** against the project. Scan at minimum:
|
|
38
|
+
|
|
39
|
+
| Upstream Path | What to Compare |
|
|
40
|
+
|--------------|-----------------|
|
|
41
|
+
| Root files | `AGENTS.md`, `GEMINI.md`, `KIT-ARCHITECTURE.md`, `KIT-README.md` |
|
|
42
|
+
| `.agent/instructions/` | All 5 markdown files |
|
|
43
|
+
| `.agent/rules/` | All 9 markdown files |
|
|
44
|
+
| `.agent/workflows/` | All workflow files |
|
|
45
|
+
| `.agent/skills/` | All skill directories (SKILL.md + sub-files) |
|
|
46
|
+
| `.agent/skill-library/` | MANIFEST.md, README.md, subdirectories |
|
|
47
|
+
| `.agent/progress/` | Directory structure |
|
|
48
|
+
| `docs/` | README.md, audits/, plans/ scaffolding |
|
|
49
|
+
|
|
50
|
+
Compare using SHA hashes or byte-level diff. Classify each file per Step 2.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 2. Classify each changed file
|
|
55
|
+
|
|
56
|
+
| Classification | Action | Example |
|
|
57
|
+
|---------------|--------|---------|
|
|
58
|
+
| **NET-NEW in kit** | Copy directly (Step 4) | New workflow, new skill directory |
|
|
59
|
+
| **PROJECT-ONLY** | Leave alone — project-specific | `skills/surrealdb-expert/`, project workflows |
|
|
60
|
+
| **BOTH EXIST — kit has `{{PLACEHOLDER}}`** | Semantic merge (Step 3) | `AGENTS.md`, `instructions/workflow.md` |
|
|
61
|
+
| **BOTH EXIST — kit content changed** | Overwrite with upstream | Workflows with no project values |
|
|
62
|
+
| **BOTH EXIST — identical** | Skip | — |
|
|
63
|
+
|
|
64
|
+
**Key distinction for "BOTH EXIST":** If the project file has **no project-specific values** (just boilerplate), overwrite directly. If it has filled `{{PLACEHOLDER}}` values, semantic merge.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 3. Semantic merge (files with project-specific values)
|
|
69
|
+
|
|
70
|
+
For each file classified as "BOTH EXIST — kit has `{{PLACEHOLDER}}`":
|
|
71
|
+
|
|
72
|
+
Read .agent/skills/technical-writer/SKILL.md and follow its methodology.
|
|
73
|
+
|
|
74
|
+
### 3a. Read both versions side by side
|
|
75
|
+
|
|
76
|
+
### 3b. Identify change regions
|
|
77
|
+
- **Template regions** — lines with `{{PLACEHOLDER}}` in kit → project has real values. **PRESERVE project values.**
|
|
78
|
+
- **Kit content regions** — pure boilerplate (no placeholders) that changed upstream. **APPLY kit changes.**
|
|
79
|
+
|
|
80
|
+
### 3c. Apply changes surgically
|
|
81
|
+
For each changed kit content region:
|
|
82
|
+
1. Find the corresponding region in the project file
|
|
83
|
+
2. Replace old boilerplate with new kit boilerplate
|
|
84
|
+
3. **DO NOT touch any line with project-specific content**
|
|
85
|
+
|
|
86
|
+
### 3d. Handle structural changes
|
|
87
|
+
If the kit restructured content *around* a placeholder (e.g., rewrote the sentence containing `{{VALIDATION_COMMAND}}`):
|
|
88
|
+
1. Take the kit's new structure
|
|
89
|
+
2. Re-insert the project's specific value into the new structure
|
|
90
|
+
3. Verify the result reads correctly
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 4. Copy net-new files
|
|
95
|
+
|
|
96
|
+
// turbo
|
|
97
|
+
|
|
98
|
+
For files that only exist in the kit, copy them into the **corresponding location** in the project:
|
|
99
|
+
- Root files → project root
|
|
100
|
+
- `.agent/workflows/` → project `.agent/workflows/`
|
|
101
|
+
- `.agent/skills/<name>/` → copy entire skill directory (SKILL.md + references/, resources/, scripts/)
|
|
102
|
+
- `docs/` → project `docs/`
|
|
103
|
+
|
|
104
|
+
Only copy files identified as net-new in Step 1. Do not overwrite existing files.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 5. Audit project-specific files for integration gaps
|
|
109
|
+
|
|
110
|
+
Project-specific files were written **before** the kit's latest improvements. Check for missing integration points with new kit content.
|
|
111
|
+
|
|
112
|
+
### 5a. Scan each project-only file
|
|
113
|
+
|
|
114
|
+
| Question | Example |
|
|
115
|
+
|----------|---------|
|
|
116
|
+
| Does this file enforce rules that now have nuance? | Rule file bans placeholders — does it know about `// BOUNDARY:` stubs? |
|
|
117
|
+
| Does this file describe processes that could use new skills? | Setup workflow → could `parallel-agents` parallelize verification? |
|
|
118
|
+
| Does this file reference concepts the kit renamed or evolved? | Old terminology → now uses different naming |
|
|
119
|
+
| Does this file's domain intersect new kit content? | Security rule → should it reference new kit security skills? |
|
|
120
|
+
|
|
121
|
+
### 5b. Apply integration updates
|
|
122
|
+
- Add cross-references to new rules/skills where relevant
|
|
123
|
+
- Update terminology to match kit evolution
|
|
124
|
+
- **DO NOT change project-specific values or domain logic** — only add integration surface
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## 6. Update reference files
|
|
129
|
+
|
|
130
|
+
Root files serve dual roles: they contain both **kit boilerplate** (pipeline table, rule tables) and **project-specific values** (project name, tech stack, validation command). After Steps 3–4, verify these reference files reflect the merged state:
|
|
131
|
+
|
|
132
|
+
- **GEMINI.md** — pipeline workflow table, rule table, note about utility commands
|
|
133
|
+
- **AGENTS.md** — pipeline workflow table, rule table, note about utility commands
|
|
134
|
+
- **Any index files** that enumerate available skills, rules, or workflows
|
|
135
|
+
|
|
136
|
+
Every new rule, skill, and workflow from this sync must appear in the tables.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## 7. Validate
|
|
141
|
+
|
|
142
|
+
// turbo
|
|
143
|
+
|
|
144
|
+
Run the project's configured validation command (see `.agent/instructions/commands.md`).
|
|
145
|
+
|
|
146
|
+
If the validation command is not yet configured (unfilled `{{VALIDATION_COMMAND}}` placeholder): skip validation and flag it for remediation in Step 8.5.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 8. Review diff
|
|
151
|
+
|
|
152
|
+
Review the complete diff of changes made. Verify:
|
|
153
|
+
- No `{{PLACEHOLDER}}` markers leaked into the project
|
|
154
|
+
- No project-specific values were overwritten
|
|
155
|
+
- All net-new files are present
|
|
156
|
+
- All cross-references are valid
|
|
157
|
+
- Project-specific files have integration points with new kit content (Step 5)
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 8.5. Scan for remaining unfilled placeholders
|
|
162
|
+
|
|
163
|
+
Scan these files for any literal `{{` characters:
|
|
164
|
+
|
|
165
|
+
1. `AGENTS.md`
|
|
166
|
+
2. `GEMINI.md`
|
|
167
|
+
3. `.agent/instructions/workflow.md`
|
|
168
|
+
4. `.agent/instructions/commands.md`
|
|
169
|
+
5. `.agent/instructions/structure.md`
|
|
170
|
+
6. `.agent/instructions/patterns.md`
|
|
171
|
+
7. `.agent/instructions/tech-stack.md`
|
|
172
|
+
|
|
173
|
+
**If unfilled patterns found** — list each with remediation:
|
|
174
|
+
|
|
175
|
+
| File(s) | Remediation |
|
|
176
|
+
|---------|-------------|
|
|
177
|
+
| `structure.md` | Run `/create-prd-compile` Step 9.5 |
|
|
178
|
+
| `patterns.md` | Run `/bootstrap-agents-provision` |
|
|
179
|
+
| `AGENTS.md`, `GEMINI.md`, or others | Run `/bootstrap-agents-fill` |
|
|
180
|
+
|
|
181
|
+
**If none found** — confirm "All instruction files fully configured."
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## 9. Update sync state
|
|
186
|
+
|
|
187
|
+
Write or update `.agent/kit-sync.md`:
|
|
188
|
+
|
|
189
|
+
```markdown
|
|
190
|
+
# Kit Sync State
|
|
191
|
+
|
|
192
|
+
upstream: https://github.com/RepairYourTech/Anti-MVP-Vibe-Pipeline
|
|
193
|
+
last_synced_commit: <current HEAD commit hash>
|
|
194
|
+
last_synced_at: <ISO 8601 timestamp>
|
|
195
|
+
kit_version: main
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
This file is committed to the project repo — it records which kit version the project is on and serves as the baseline for the next sync.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Quick Reference
|
|
203
|
+
|
|
204
|
+
| File Type | Content Action | Integration Action |
|
|
205
|
+
|-----------|---------------|-------------------|
|
|
206
|
+
| **Net-new from kit** | Copy directly | N/A |
|
|
207
|
+
| **Both exist — no project values** | Overwrite with upstream | N/A |
|
|
208
|
+
| **Both exist — has project values** | Semantic merge (Step 3) | N/A |
|
|
209
|
+
| **Project-only** | **DO NOT overwrite** | **DO audit for integration gaps** (Step 5) |
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyzes the codebase and generates or updates a living architecture document.
|
|
3
|
+
pipeline:
|
|
4
|
+
position: 8.5
|
|
5
|
+
stage: verification
|
|
6
|
+
predecessors: [validate-phase]
|
|
7
|
+
successors: [plan-phase]
|
|
8
|
+
loop: true
|
|
9
|
+
skills: [architecture-mapping]
|
|
10
|
+
calls-bootstrap: false
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Update Architecture Map
|
|
14
|
+
|
|
15
|
+
This workflow scans the current state of the repository and produces a "living" map of its architecture. It should be run periodically or at the end of a major phase to ensure `docs/ARCHITECTURE.md` accurately reflects the codebase.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
**Prerequisite**: Verify that `/validate-phase` passed for the current phase before updating the architecture map. Read `docs/audits/phase-N-validation.md` (where N is the current phase number) and confirm the verdict is PASS. If the phase has not been validated or the verdict is FAIL → **STOP**: "Run `/validate-phase` for Phase N and ensure it passes before updating the architecture map."
|
|
20
|
+
|
|
21
|
+
## 0. Load architecture mapping skill
|
|
22
|
+
|
|
23
|
+
Read the skill before proceeding:
|
|
24
|
+
1. `.agent/skills/architecture-mapping/SKILL.md` — Defines how to perform the mapping.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 1. File Reconnaissance & Deep Reading
|
|
29
|
+
|
|
30
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its file reconnaissance methodology.
|
|
31
|
+
|
|
32
|
+
Analyze the project structure using file exploration tools. Do not just stop at finding directories; you must read the source code.
|
|
33
|
+
1. Identify core directories (`src/`, `lib/`, `api/`, etc.)
|
|
34
|
+
2. Use `view_file` to read the exact contents of entry points (e.g., `src/api/worker.ts`, `src/pages/index.astro`).
|
|
35
|
+
3. Locate and read configuration files (`package.json`, `astro.config.mjs`, `wrangler.toml`).
|
|
36
|
+
|
|
37
|
+
## 2. Component & Schema Analysis
|
|
38
|
+
|
|
39
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its component analysis methodology.
|
|
40
|
+
|
|
41
|
+
Group files logically into components, but extract their exact contracts:
|
|
42
|
+
- Use `grep_search` to find `z.object` or `interface` definitions.
|
|
43
|
+
- Document exact schema names, required environment variables, and binding names (e.g., KV namespaces, R2 buckets).
|
|
44
|
+
|
|
45
|
+
## 3. Map Explicit Data Flow and Relationships
|
|
46
|
+
|
|
47
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its data flow mapping methodology.
|
|
48
|
+
|
|
49
|
+
Trace exactly how data moves through the system.
|
|
50
|
+
- Read database clients or query files to see exactly how state is managed (e.g., SurrealDB queries, Firebase Auth hooks).
|
|
51
|
+
- Document exact API routes, rate limiting logic, and CORS constraints present in the code.
|
|
52
|
+
|
|
53
|
+
## 4. Extract Key Patterns with Evidence
|
|
54
|
+
|
|
55
|
+
Read .agent/skills/architecture-mapping/SKILL.md and follow its pattern extraction methodology.
|
|
56
|
+
|
|
57
|
+
Identify recurring architectural patterns used in the codebase (e.g., CFPA, React Islands, utility-first CSS).
|
|
58
|
+
- Provide exact file paths that prove these patterns are in use (e.g., "React Islands are used in `src/components/Header.tsx` via the `client:load` directive").
|
|
59
|
+
|
|
60
|
+
## 5. Write/Update Document
|
|
61
|
+
|
|
62
|
+
Create or update `docs/ARCHITECTURE.md`.
|
|
63
|
+
- If it doesn't exist, create it using the structure outlined in the `architecture-mapping` skill.
|
|
64
|
+
- If it exists, integrate your new findings holistically. Do not just append to the end. Update the "Last Updated" timestamp.
|
|
65
|
+
|
|
66
|
+
Ensure the document is human-readable, well-structured, and focuses on high-level system interactions rather than low-level functional documentation.
|
|
67
|
+
|
|
68
|
+
## 6. Present Results and Next Steps
|
|
69
|
+
|
|
70
|
+
Use `notify_user` to present a summary of the architecture map updates.
|
|
71
|
+
|
|
72
|
+
### Proposed next steps
|
|
73
|
+
|
|
74
|
+
"Architecture map updated. Next: Run `/plan-phase` for the next phase, or if all phases are complete, the project is ready for deployment — refer to your CI/CD pipeline configuration and the deployment procedures documented in `docs/plans/ENGINEERING-STANDARDS.md`."
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Full validation of a completed phase — all tests, coverage thresholds, lint, type-check, build
|
|
3
|
+
pipeline:
|
|
4
|
+
position: 8
|
|
5
|
+
stage: verification
|
|
6
|
+
predecessors: [implement-slice]
|
|
7
|
+
successors: [update-architecture-map]
|
|
8
|
+
loop: true # one validate per phase
|
|
9
|
+
skills: [testing-strategist, code-review-pro, deployment-procedures]
|
|
10
|
+
calls-bootstrap: false
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
// turbo-all
|
|
14
|
+
|
|
15
|
+
# Validate Phase
|
|
16
|
+
|
|
17
|
+
Comprehensive validation of a completed implementation phase.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 0. Load validation skills
|
|
22
|
+
|
|
23
|
+
Read these skills before running checks:
|
|
24
|
+
1. `.agent/skills/testing-strategist/SKILL.md` — Coverage strategy and test quality
|
|
25
|
+
2. `.agent/skills/code-review-pro/SKILL.md` — Review checklist for self-audit
|
|
26
|
+
3. `.agent/skills/deployment-procedures/SKILL.md` — Build and release readiness
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 0.5. Parallel dispatch option
|
|
31
|
+
|
|
32
|
+
If the phase contains independent slices that don't share files, validation can run in parallel:
|
|
33
|
+
|
|
34
|
+
1. **Identify independent slices** — slices that don't import from or export to each other
|
|
35
|
+
2. **Dispatch parallel validation** — run Steps 1–5 concurrently for independent slices using the `parallel-agents` skill
|
|
36
|
+
3. **Sequential for shared** — slices that share contracts or utilities must validate sequentially
|
|
37
|
+
|
|
38
|
+
This is an optimization, not a requirement. Sequential validation is always correct.
|
|
39
|
+
|
|
40
|
+
## 1. Run test suite
|
|
41
|
+
|
|
42
|
+
Read .agent/skills/{{E2E_TESTING_SKILL}}/SKILL.md and follow its E2E test conventions.
|
|
43
|
+
|
|
44
|
+
Run `{{TEST_COMMAND}}`.
|
|
45
|
+
|
|
46
|
+
All tests must pass. Zero tolerance for failing tests.
|
|
47
|
+
|
|
48
|
+
## 2. Check coverage
|
|
49
|
+
|
|
50
|
+
Read .agent/skills/{{UNIT_TESTING_SKILL}}/SKILL.md and follow its test writing conventions.
|
|
51
|
+
|
|
52
|
+
Run `{{TEST_COVERAGE_COMMAND}}`.
|
|
53
|
+
|
|
54
|
+
Read `docs/plans/ENGINEERING-STANDARDS.md` and use the coverage thresholds defined in the "Test Coverage" section. If the file doesn't exist or thresholds aren't defined, fall back to these defaults:
|
|
55
|
+
- Statements: 80%
|
|
56
|
+
- Branches: 90% (critical paths: auth, payments, data mutations, permission checks), 75% (non-critical paths)
|
|
57
|
+
- Functions: 80%
|
|
58
|
+
- Lines: 80%
|
|
59
|
+
|
|
60
|
+
Critical paths are defined as: auth flows, payment processing, data mutations, and permission/authorization checks.
|
|
61
|
+
|
|
62
|
+
## 3. Lint
|
|
63
|
+
|
|
64
|
+
Run `{{LINT_COMMAND}}`.
|
|
65
|
+
|
|
66
|
+
Zero lint errors. Warnings should be reviewed and addressed.
|
|
67
|
+
|
|
68
|
+
## 4. Type check
|
|
69
|
+
|
|
70
|
+
Run `{{TYPE_CHECK_COMMAND}}`.
|
|
71
|
+
|
|
72
|
+
Zero type errors. Strict mode must be enabled.
|
|
73
|
+
|
|
74
|
+
## 5. Build
|
|
75
|
+
|
|
76
|
+
Run `{{BUILD_COMMAND}}`.
|
|
77
|
+
|
|
78
|
+
Build must succeed with no errors.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 5.5. CI/CD pipeline verification
|
|
83
|
+
|
|
84
|
+
Read .agent/skills/{{CI_CD_SKILL}}/SKILL.md and follow its pipeline configuration conventions.
|
|
85
|
+
|
|
86
|
+
Verify the CI/CD pipeline is green for this phase's changes:
|
|
87
|
+
|
|
88
|
+
1. Check that a CI/CD configuration file exists (e.g., `.github/workflows/`, `.gitlab-ci.yml`)
|
|
89
|
+
2. Verify the pipeline has run for the latest commit in this phase
|
|
90
|
+
3. Verify ALL CI/CD jobs are passing (not just the test job — include lint, type-check, build, and any deployment jobs)
|
|
91
|
+
|
|
92
|
+
**If CI/CD is red** → red path: **STOP immediately.** Do not mark this phase as complete. List the failing jobs and their error output. Fix them and re-run `/validate-phase` after fixes.
|
|
93
|
+
|
|
94
|
+
**Pass criteria**: CI/CD pipeline is green for the latest commit in this phase.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 5.6. Staging deployment gate
|
|
99
|
+
|
|
100
|
+
Read .agent/skills/{{HOSTING_SKILL}}/SKILL.md and follow its deployment conventions.
|
|
101
|
+
|
|
102
|
+
1. Deploy to staging using the deployment skill (`.agent/skills/deployment-procedures/SKILL.md`)
|
|
103
|
+
2. Verify deployment succeeded (no rollback triggered, no error logs in the deployment output)
|
|
104
|
+
3. Run smoke tests against the staging environment:
|
|
105
|
+
- Health check endpoint returns 200
|
|
106
|
+
- At least one authenticated route works with a valid token
|
|
107
|
+
- At least one protected route returns 401/403 for unauthenticated requests
|
|
108
|
+
4. **If smoke tests fail** → red path: Capture the failing test output, rollback the staging deployment, and fix the issue before re-running `/validate-phase`
|
|
109
|
+
5. **If deployment fails** → red path: Do not mark this phase as complete — diagnose the deployment failure, fix it, and re-run `/validate-phase`
|
|
110
|
+
|
|
111
|
+
**Pass criteria**: Staging deployment succeeds and all smoke tests pass.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 5.7. Migration verification
|
|
116
|
+
|
|
117
|
+
Read .agent/skills/{{ORM_SKILL}}/SKILL.md and follow its migration and schema conventions.
|
|
118
|
+
|
|
119
|
+
1. Run the migration status command (e.g., `prisma migrate status`, `drizzle-kit status`, or equivalent for your ORM)
|
|
120
|
+
2. Verify there are no pending migrations and no failed migrations
|
|
121
|
+
3. Verify the CI/CD pipeline ran migrations successfully as part of this phase's deployment
|
|
122
|
+
4. Check that rollback scripts exist for each migration in this phase
|
|
123
|
+
5. If migrations are pending or failed → red path: do not mark this phase as complete — run the pending migrations, verify they succeed, and re-run `/validate-phase`
|
|
124
|
+
|
|
125
|
+
**Pass criteria**: Migration status is clean. All migrations from this phase ran successfully in the CI/CD environment. Rollback scripts are present.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 5.8. Spec coverage sweep
|
|
130
|
+
|
|
131
|
+
This step verifies that the phase's implementation actually delivered what the specs required — not just that the tests pass.
|
|
132
|
+
|
|
133
|
+
For each slice in the phase plan (`docs/plans/phases/phase-N.md`):
|
|
134
|
+
|
|
135
|
+
1. Read the slice's acceptance criteria
|
|
136
|
+
2. Identify the FE spec(s) referenced by this slice (via the FE spec's `## Source Map`)
|
|
137
|
+
3. For each named user flow in the relevant FE spec `## Interaction Specification` section that belongs to this slice:
|
|
138
|
+
- Verify a test exists in the test suite that covers this flow by name or by its acceptance criterion
|
|
139
|
+
- Verify the flow is implemented (not stubbed with `BOUNDARY:`) unless a valid boundary stub exists with a tracking issue
|
|
140
|
+
4. Identify the BE spec section(s) for each endpoint in this slice
|
|
141
|
+
5. For each endpoint:
|
|
142
|
+
- Verify every Zod-validated field in the BE spec has a corresponding test
|
|
143
|
+
- Verify every error code defined in the BE spec has a corresponding test
|
|
144
|
+
- Verify every auth rule (role, ownership check) defined in the BE spec has a corresponding permission test
|
|
145
|
+
6. For each slice in the phase plan, identify which IA shard(s) the slice's features originate from (using either the phase plan's domain references or the FE spec's `## Source Map`). For each identified IA shard:
|
|
146
|
+
- Read the shard's `## Accessibility` section (surface-conditional: apply only for `web`, `mobile`, or `desktop` surfaces). For each accessibility requirement named there, verify a corresponding test exists (e.g., axe-core check, keyboard navigation test, screen reader label test).
|
|
147
|
+
- Read the shard's acceptance criteria or testability section (look for Given/When/Then format or numbered acceptance criteria). For each Given/When/Then criterion, verify it maps to at least one named test in the test suite.
|
|
148
|
+
- Flag any IA criterion with no test coverage as an uncovered item — apply the **same hard-stop rule** below: list the uncovered criterion and either write the missing test or document it as a valid boundary stub with a tracking issue.
|
|
149
|
+
|
|
150
|
+
**If any flow, field, error code, auth rule, IA acceptance criterion, or accessibility requirement has no corresponding test:**
|
|
151
|
+
|
|
152
|
+
> ❌ STOP — Do not mark this phase as complete. List the uncovered items. Either write the missing tests and re-run `{{TEST_COMMAND}}`, or if the item was genuinely deferred (valid boundary stub + tracking issue), document the deferral explicitly in the phase validation report.
|
|
153
|
+
|
|
154
|
+
**Pass criteria**: Every named user flow, BE endpoint field, error code, auth rule, IA acceptance criterion, and accessibility requirement in the phase's scope has a corresponding passing test or a documented valid boundary stub.
|
|
155
|
+
|
|
156
|
+
> Update report (`docs/audits/phase-N-validation.md`): Add a `## Spec Coverage` section listing the sweep results — covered items, uncovered items, boundary stubs, accessibility coverage, IA testability trace results, and the pass/fail verdict for this step.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 6. Accessibility audit (if UI changes)
|
|
161
|
+
|
|
162
|
+
Read .agent/skills/accessibility/SKILL.md and follow its methodology.
|
|
163
|
+
Audit all new UI components in this phase for WCAG 2.1 AA compliance.
|
|
164
|
+
|
|
165
|
+
## 7. Performance check (if web surface exists)
|
|
166
|
+
|
|
167
|
+
Check if the `web-performance-optimization` skill is installed (look for `.agent/skills/web-performance-optimization/SKILL.md`).
|
|
168
|
+
|
|
169
|
+
**If installed**:
|
|
170
|
+
1. Read `.agent/skills/web-performance-optimization/SKILL.md`
|
|
171
|
+
2. Run the skill's audit protocol against the phase's changed pages/routes
|
|
172
|
+
3. Compare results to the targets in `docs/plans/ENGINEERING-STANDARDS.md` (LCP, FID, CLS, bundle size)
|
|
173
|
+
4. Report any metrics that exceed the defined thresholds
|
|
174
|
+
|
|
175
|
+
**If not installed**:
|
|
176
|
+
- Note: "No web performance skill installed. Skipping automated performance audit."
|
|
177
|
+
- Manually verify that no obviously expensive operations were added (large synchronous imports, unoptimized images, missing lazy loading)
|
|
178
|
+
- If performance is critical for this project, recommend installing the skill via `find-skills`
|
|
179
|
+
|
|
180
|
+
## 8. Security review
|
|
181
|
+
|
|
182
|
+
Read .agent/skills/security-scanning-security-hardening/SKILL.md and run its full defense-in-depth audit protocol against the phase's changes (new endpoints, new data flows, new auth checks). Report findings with severity levels. Block the phase if any Critical or High severity issues are found.
|
|
183
|
+
|
|
184
|
+
**Supplemental security checks (conditional)**: After the core audit completes, check for stack-specific security skills. For each of the following that exists, read it and run its audit protocol as a supplement to the core audit:
|
|
185
|
+
- `.agent/skills/owasp-web-security/SKILL.md`
|
|
186
|
+
- `.agent/skills/api-security-checklist/SKILL.md`
|
|
187
|
+
- `.agent/skills/crypto-patterns/SKILL.md`
|
|
188
|
+
- `.agent/skills/csp-cors-headers/SKILL.md`
|
|
189
|
+
- `.agent/skills/input-sanitization/SKILL.md`
|
|
190
|
+
- `.agent/skills/dependency-auditing/SKILL.md`
|
|
191
|
+
|
|
192
|
+
Report any additional findings from supplemental audits with the same severity classification.
|
|
193
|
+
|
|
194
|
+
## 9. Document results
|
|
195
|
+
|
|
196
|
+
**Note on report file**: `docs/audits/phase-N-validation.md` is written progressively. Step 5.8 creates the file and appends the `## Spec Coverage` section. Step 9 appends all remaining sections. Do not recreate or overwrite the file in Step 9 — append only.
|
|
197
|
+
|
|
198
|
+
- Test results and coverage
|
|
199
|
+
- Lint and type-check status
|
|
200
|
+
- Build status
|
|
201
|
+
- Accessibility findings
|
|
202
|
+
- Performance findings
|
|
203
|
+
- Security review findings
|
|
204
|
+
- CI/CD pipeline status
|
|
205
|
+
- Staging deployment result
|
|
206
|
+
- Migration verification status
|
|
207
|
+
- Pass/fail verdict
|
|
208
|
+
|
|
209
|
+
## 10. Present results and next steps
|
|
210
|
+
|
|
211
|
+
Read .agent/skills/verification-before-completion/SKILL.md and follow its methodology.
|
|
212
|
+
|
|
213
|
+
Use `notify_user` to present the validation report.
|
|
214
|
+
|
|
215
|
+
### Proposed next steps
|
|
216
|
+
|
|
217
|
+
- **If all checks pass**: "Phase N validation complete. Next: Run `/update-architecture-map` to ensure the project's living architecture document is up-to-date."
|
|
218
|
+
- **If any checks fail**: "Fix the failures listed in the validation report and re-run `/validate-phase` for Phase N."
|
|
219
|
+
- **If new requirements were discovered during validation** (scope gaps, missing features, behavioral corrections): Use `/evolve-feature` to add them at the correct entry point layer. Do not attempt to add them directly to specs — evolution must go through the classify → cascade flow to maintain layer consistency.
|