@caddis/cli 0.2.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/antigravity-plugin/agents/claude-md-curator.md +1 -1
- package/bundles/antigravity-plugin/agents/knowledge-transfer.md +17 -32
- package/bundles/antigravity-plugin/caddis_statusline.py +825 -0
- package/bundles/antigravity-plugin/claude-md/folder-agents.md.tmpl +21 -0
- package/bundles/antigravity-plugin/guard_agy.py +60 -9
- package/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/caddis_gate.py +524 -0
- package/bundles/antigravity-plugin/scripts/caddis_inventory.py +439 -0
- package/bundles/antigravity-plugin/scripts/caddis_migrate_dir.py +270 -0
- package/bundles/antigravity-plugin/scripts/caddis_spawn.py +300 -0
- package/bundles/antigravity-plugin/scripts/caddis_statusline.py +825 -0
- package/bundles/antigravity-plugin/scripts/caddis_tidy.py +366 -0
- package/bundles/antigravity-plugin/scripts/check_doc_coverage.py +924 -0
- package/bundles/antigravity-plugin/scripts/claude-deepseek.ps1 +4 -0
- package/bundles/antigravity-plugin/scripts/claude-deepseek.sh +3 -0
- package/bundles/antigravity-plugin/scripts/claude-glm.ps1 +4 -0
- package/bundles/antigravity-plugin/scripts/claude-glm.sh +3 -0
- package/bundles/antigravity-plugin/scripts/claude-oss.ps1 +64 -0
- package/bundles/antigravity-plugin/scripts/claude-oss.sh +60 -0
- package/bundles/antigravity-plugin/scripts/claudster_config.py +121 -0
- package/bundles/antigravity-plugin/scripts/claudster_doctor.py +356 -0
- package/bundles/antigravity-plugin/scripts/claudster_init.py +400 -0
- package/bundles/antigravity-plugin/scripts/claudster_migrate_rules.py +300 -0
- package/bundles/antigravity-plugin/scripts/enforcement_inventory.py +261 -0
- package/bundles/antigravity-plugin/scripts/hook_log.py +156 -0
- package/bundles/antigravity-plugin/scripts/new-machine.ps1 +170 -0
- package/bundles/antigravity-plugin/scripts/oss_ask.py +98 -0
- package/bundles/antigravity-plugin/scripts/oss_model.py +174 -0
- package/bundles/antigravity-plugin/scripts/oss_review.py +718 -0
- package/bundles/antigravity-plugin/scripts/setup_project_ai.py +1432 -0
- package/bundles/antigravity-plugin/scripts/usage_review.py +1323 -0
- package/bundles/antigravity-plugin/session_end_agy.py +52 -8
- package/bundles/antigravity-plugin/skills/_registry.md +1 -0
- package/bundles/antigravity-plugin/skills/advisory-hub/SKILL.md +44 -0
- package/bundles/antigravity-plugin/skills/code-review/SKILL.md +11 -0
- package/bundles/antigravity-plugin/skills/fastapi-dev/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +21 -0
- package/bundles/antigravity-plugin/skills/gate-review/SKILL.md +11 -0
- package/bundles/antigravity-plugin/skills/implement/SKILL.md +36 -0
- package/bundles/antigravity-plugin/skills/security-review/SKILL.md +9 -0
- package/bundles/antigravity-plugin/skills/ship/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/ship-merge/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/ship-pr/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/statusline/SKILL.md +105 -0
- package/bundles/antigravity-plugin/skills/use-model/SKILL.md +15 -3
- package/bundles/antigravity-plugin/skills/validate-phase/SKILL.md +31 -0
- package/bundles/antigravity-plugin/warm_start_agy.py +117 -11
- package/bundles/antigravity-plugin-extras/plugin.json +1 -1
- package/bundles/antigravity-plugin-extras/skills/architecture-design/SKILL.md +1 -1
- package/bundles/antigravity-plugin-extras/skills/caching-patterns/SKILL.md +1 -1
- package/bundles/antigravity-plugin-extras/skills/webapp-development/SKILL.md +1 -1
- package/bundles/codex/.codex/config.toml.example +36 -0
- package/bundles/codex/.codex/skills/coding/api-design/SKILL.md +249 -0
- package/bundles/codex/.codex/skills/coding/backend-development/SKILL.md +305 -0
- package/bundles/codex/.codex/skills/coding/code-review/SKILL.md +140 -0
- package/bundles/codex/.codex/skills/coding/codebase-audit/SKILL.md +204 -0
- package/bundles/codex/.codex/skills/coding/dashboard-perf-sweep/SKILL.md +132 -0
- package/bundles/codex/.codex/skills/coding/dashboard-perf-sweep/scripts/perf_sweep.py +249 -0
- package/bundles/codex/.codex/skills/coding/error-handling/SKILL.md +260 -0
- package/bundles/codex/.codex/skills/coding/fastapi-dev/SKILL.md +300 -0
- package/bundles/codex/.codex/skills/coding/javascript-typescript/SKILL.md +142 -0
- package/bundles/codex/.codex/skills/coding/python/SKILL.md +388 -0
- package/bundles/codex/.codex/skills/coding/refactoring/SKILL.md +486 -0
- package/bundles/codex/.codex/skills/coding/security-review/SKILL.md +205 -0
- package/bundles/codex/.codex/skills/coding/sql/SKILL.md +321 -0
- package/bundles/codex/.codex/skills/data/database-design/SKILL.md +177 -0
- package/bundles/codex/.codex/skills/data/db-diagram/SKILL.md +148 -0
- package/bundles/codex/.codex/skills/data/db-diagram/scripts/sql_to_graph.py +1212 -0
- package/bundles/codex/.codex/skills/devops/ci-cd-pipeline/SKILL.md +315 -0
- package/bundles/codex/.codex/skills/devops/gh-cli/SKILL.md +195 -0
- package/bundles/codex/.codex/skills/devops/git-commit/SKILL.md +285 -0
- package/bundles/codex/.codex/skills/devops/using-git-worktrees/SKILL.md +217 -0
- package/bundles/codex/.codex/skills/devops/windows-deployment/SKILL.md +880 -0
- package/bundles/codex/.codex/skills/docs/code-documentation/SKILL.md +271 -0
- package/bundles/codex/.codex/skills/docs/explainer-doc/SKILL.md +97 -0
- package/bundles/codex/.codex/skills/docs/technical-writing/SKILL.md +286 -0
- package/bundles/codex/.codex/skills/docs/writing-plans/SKILL.md +387 -0
- package/bundles/codex/.codex/skills/frontend/css-architecture/SKILL.md +305 -0
- package/bundles/codex/.codex/skills/frontend/css-architecture/references/RESPONSIVE-DESIGN.md +604 -0
- package/bundles/codex/.codex/skills/frontend/frontend-design/SKILL.md +193 -0
- package/bundles/codex/.codex/skills/frontend/frontend-design/references/my-tech-stack.md +127 -0
- package/bundles/codex/.codex/skills/frontend/mockup/SKILL.md +242 -0
- package/bundles/codex/.codex/skills/frontend/react-best-practices/SKILL.md +269 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/README.md +404 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/SKILL.md +459 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/examples/generic-components.md +579 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/examples/server-components.md +579 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/references/event-handlers.md +574 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/references/hooks.md +456 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/references/react-19-patterns.md +638 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/references/react-router.md +1002 -0
- package/bundles/codex/.codex/skills/frontend/react-dev/references/tanstack-router.md +587 -0
- package/bundles/codex/.codex/skills/frontend/ui-review/SKILL.md +176 -0
- package/bundles/codex/.codex/skills/frontend/ui-review/references/framework-fixes.md +471 -0
- package/bundles/codex/.codex/skills/frontend/ui-review/references/visual-checklist.md +236 -0
- package/bundles/codex/.codex/skills/frontend/warm-editorial-ui/DESIGN_TOKENS.md +487 -0
- package/bundles/codex/.codex/skills/frontend/warm-editorial-ui/IMPLEMENTATION_GUIDE.md +177 -0
- package/bundles/codex/.codex/skills/frontend/warm-editorial-ui/SKILL.md +732 -0
- package/bundles/codex/.codex/skills/media/draw-io/SKILL.md +162 -0
- package/bundles/codex/.codex/skills/media/draw-io/references/aws-icons.md +677 -0
- package/bundles/codex/.codex/skills/media/draw-io/references/layout-guidelines.md +142 -0
- package/bundles/codex/.codex/skills/media/draw-io/references/troubleshooting.md +118 -0
- package/bundles/codex/.codex/skills/media/draw-io/references/workflows.md +103 -0
- package/bundles/codex/.codex/skills/media/draw-io/scripts/convert-drawio-to-png.sh +25 -0
- package/bundles/codex/.codex/skills/media/draw-io/scripts/find_aws_icon.py +79 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/SKILL.md +292 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/ENHANCEMENTS.md +264 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/MERMAID-SUMMARY.md +137 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/advanced-features.md +556 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/architecture-diagrams.md +192 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/c4-diagrams.md +410 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/class-diagrams.md +361 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/erd-diagrams.md +510 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/flowcharts.md +450 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/sequence-diagrams.md +394 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/troubleshooting.md +335 -0
- package/bundles/codex/.codex/skills/media/mermaid-diagrams/references/workflows.md +418 -0
- package/bundles/codex/.codex/skills/media/particle-art/SKILL.md +243 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/canvas-utils.ts +171 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/dot-field.template.tsx +203 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/flow-field.template.tsx +263 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/node-shape.template.tsx +261 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/shape-sampler.ts +281 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/stipple-morph.template.tsx +167 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/stipple.template.tsx +175 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/trail-ghost.template.tsx +266 -0
- package/bundles/codex/.codex/skills/media/particle-art/references/usage-examples.md +320 -0
- package/bundles/codex/.codex/skills/testing/playwright/API_REFERENCE.md +653 -0
- package/bundles/codex/.codex/skills/testing/playwright/SKILL.md +454 -0
- package/bundles/codex/.codex/skills/testing/playwright/lib/helpers.js +441 -0
- package/bundles/codex/.codex/skills/testing/playwright/package.json +26 -0
- package/bundles/codex/.codex/skills/testing/playwright/run.js +228 -0
- package/bundles/codex/.codex/skills/testing/tdd-workflow/SKILL.md +188 -0
- package/bundles/codex/.codex/skills/testing/test-strategy/SKILL.md +155 -0
- package/bundles/codex/.codex/skills/testing/webapp-testing/LICENSE.txt +202 -0
- package/bundles/codex/.codex/skills/testing/webapp-testing/SKILL.md +97 -0
- package/bundles/codex/.codex/skills/testing/webapp-testing/examples/console_logging.py +35 -0
- package/bundles/codex/.codex/skills/testing/webapp-testing/examples/element_discovery.py +40 -0
- package/bundles/codex/.codex/skills/testing/webapp-testing/examples/static_html_automation.py +33 -0
- package/bundles/codex/.codex/skills/testing/webapp-testing/scripts/with_server.py +106 -0
- package/bundles/codex/.codex/skills/workflow/advisory-hub/SKILL.md +227 -0
- package/bundles/codex/.codex/skills/workflow/advisory-hub/reference/context-template.md +214 -0
- package/bundles/codex/.codex/skills/workflow/advisory-hub/reference/hub-handbook.md +233 -0
- package/bundles/codex/.codex/skills/workflow/advisory-hub/reference/report-contract.md +94 -0
- package/bundles/codex/.codex/skills/workflow/advisory-hub/reference/succession.md +118 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/SKILL.md +500 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/agents/best-practices-referencer.md +263 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/agents/codebase-context-builder.md +326 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/agents/task-intent-analyzer.md +245 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/references/anti-patterns.md +571 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/references/before-after-examples.md +1114 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/references/best-practices-guide.md +513 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/references/common-workflows.md +692 -0
- package/bundles/codex/.codex/skills/workflow/best-practices/references/prompt-patterns.md +547 -0
- package/bundles/codex/.codex/skills/workflow/brainstorming/SKILL.md +57 -0
- package/bundles/codex/.codex/skills/workflow/context-curator/SKILL.md +157 -0
- package/bundles/codex/.codex/skills/workflow/golden-plan/SKILL.md +586 -0
- package/bundles/codex/.codex/skills/workflow/preflight/SKILL.md +440 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/LICENSE.txt +202 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/SKILL.md +491 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/agents/analyzer.md +274 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/agents/comparator.md +202 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/agents/grader.md +223 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/assets/eval_review.html +146 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/eval-viewer/generate_review.py +471 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/eval-viewer/viewer.html +1325 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/references/schemas.md +430 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/__init__.py +0 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/generate_report.py +326 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/improve_description.py +247 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/package_skill.py +136 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/quick_validate.py +103 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/run_eval.py +310 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/run_loop.py +328 -0
- package/bundles/codex/.codex/skills/workflow/skill-creator/scripts/utils.py +47 -0
- package/bundles/codex/AGENTS.md +146 -0
- package/bundles/manifest.json +4 -3
- package/dist/claude-deepseek.js +544 -0
- package/dist/claude-glm.js +544 -0
- package/dist/claude-oss.js +544 -0
- package/dist/cli.js +542 -90
- package/package.json +5 -2
- package/bundles/antigravity-plugin/statusline-command-agy.sh +0 -91
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +0 -94
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +0 -93
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: preflight
|
|
3
|
+
context: fork
|
|
4
|
+
description: "Plan-vs-codebase validation — verifies API contracts, type names, field accuracy, dependencies, and paths before implementation begins"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Preflight — Plan Validation Skill
|
|
8
|
+
|
|
9
|
+
Validate an implementation plan against the actual codebase before agents begin coding. Catches wrong endpoints, missing types, incorrect field names, stale assumptions, and dependency gaps that would otherwise waste entire agent sessions.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- Before starting implementation of any plan (pipeline gate or standalone)
|
|
14
|
+
- After significant plan revisions to re-validate
|
|
15
|
+
- Mid-implementation to check remaining phases against evolved codebase
|
|
16
|
+
- When onboarding agents to an existing codebase with a pre-written plan
|
|
17
|
+
|
|
18
|
+
## Who Loads This Skill
|
|
19
|
+
|
|
20
|
+
| Consumer | Context |
|
|
21
|
+
|----------|---------|
|
|
22
|
+
| `@Preflight` agent | Primary — standalone or pipeline invocation |
|
|
23
|
+
| `@Orchestrator` | At the `plan_validated` gate before routing to Implement |
|
|
24
|
+
| `@Planner` | Optional self-check before declaring plan complete |
|
|
25
|
+
| Any agent | Ad-hoc validation when plan accuracy is in doubt |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Inputs
|
|
30
|
+
|
|
31
|
+
The skill requires two things:
|
|
32
|
+
|
|
33
|
+
1. **Plan document** — a markdown file containing implementation phases with code snippets, file paths, type references, API endpoints, and data binding tables
|
|
34
|
+
2. **Codebase access** — read access to the project's source files, package manifests, and data samples
|
|
35
|
+
|
|
36
|
+
Optional:
|
|
37
|
+
|
|
38
|
+
3. **Scope restriction** — e.g., "validate only phases 6-13 while assuming phases 1-5 are already implemented" (for mid-implementation re-validation)
|
|
39
|
+
4. **Tech stack hint** — if the plan doesn't state the stack, the agent should detect it from the codebase (look for `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `*.csproj`, etc.)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Validation Methodology — 8 Check Categories (run in 3 passes)
|
|
44
|
+
|
|
45
|
+
To reduce execution load, run categories in this order: Pass 1 (1-3), Pass 2 (4-6), Pass 3 (7-8), recording findings after each pass before continuing.
|
|
46
|
+
|
|
47
|
+
Execute all 8 categories in order. Each produces findings classified as:
|
|
48
|
+
|
|
49
|
+
| Severity | Meaning | Action |
|
|
50
|
+
|----------|---------|--------|
|
|
51
|
+
| `CRITICAL` | Plan contradicts codebase — will cause runtime failure | Must fix before implementation |
|
|
52
|
+
| `SIGNIFICANT` | Plan partially wrong — will cause incorrect behavior | Should fix before implementation |
|
|
53
|
+
| `MINOR` | Cosmetic or documentation gap — won't break functionality | Fix if convenient |
|
|
54
|
+
| `WARN` | Cannot verify — source of truth missing or ambiguous | Flag for human decision |
|
|
55
|
+
|
|
56
|
+
### Category 1: API Contract Validation
|
|
57
|
+
|
|
58
|
+
**What:** Verify that every API endpoint referenced in the plan (URL, HTTP method, parameter style) matches an actual backend route.
|
|
59
|
+
|
|
60
|
+
**How:**
|
|
61
|
+
|
|
62
|
+
1. **Find route definitions** — Search for route decorators/registrations in the codebase:
|
|
63
|
+
- Python/FastAPI: `@router.get`, `@router.post`, `@app.get`, etc.
|
|
64
|
+
- Express/Node: `router.get(`, `app.post(`, etc.
|
|
65
|
+
- Go: `r.HandleFunc(`, `e.GET(`, etc.
|
|
66
|
+
- .NET: `[HttpGet(`, `[Route(`, `MapGet(`, etc.
|
|
67
|
+
|
|
68
|
+
2. **Extract plan endpoints** — Find every URL pattern in the plan (look for `/api/`, `GET `, `POST `, `fetch(`, `axios.get(`, service function definitions with URL strings).
|
|
69
|
+
|
|
70
|
+
3. **Compare:**
|
|
71
|
+
- Does the URL exist in the backend? (exact match or parameterized equivalent)
|
|
72
|
+
- Does the HTTP method match?
|
|
73
|
+
- Are parameters passed correctly? (path params vs. query params vs. request body)
|
|
74
|
+
- Is the response shape assumption correct?
|
|
75
|
+
|
|
76
|
+
4. **Common failure patterns:**
|
|
77
|
+
- Plan uses path params (`/resource/{id}`) but backend uses query params (`/resource?id=X`)
|
|
78
|
+
- Plan uses a convenience endpoint that doesn't exist (e.g., `/latest` when only `/list` exists)
|
|
79
|
+
- Plan assumes REST resource endpoints but backend uses RPC-style endpoints
|
|
80
|
+
|
|
81
|
+
### Category 2: Type Identity Validation
|
|
82
|
+
|
|
83
|
+
**What:** Verify that every type/interface/class name referenced in the plan exists in the codebase.
|
|
84
|
+
|
|
85
|
+
**How:**
|
|
86
|
+
|
|
87
|
+
1. **Extract type references from the plan** — Find all capitalized type names used in:
|
|
88
|
+
- TypeScript: `interface X`, `type X`, `: X`, `X[]`, `X | Y`
|
|
89
|
+
- Python: class definitions, type hints, Pydantic models
|
|
90
|
+
- Import statements referencing types
|
|
91
|
+
|
|
92
|
+
2. **Search the codebase** for each type name:
|
|
93
|
+
- Check the exact file the plan says it's in (if specified)
|
|
94
|
+
- If not found there, search broadly — the type may exist under a different name or path
|
|
95
|
+
|
|
96
|
+
3. **Common failure patterns:**
|
|
97
|
+
- Plan references a type that was renamed during development
|
|
98
|
+
- Plan references a type from an old version of a spec
|
|
99
|
+
- Plan invents a plausible type name that was never created (e.g., `NpsPeriodData` when actual is `NpsData`)
|
|
100
|
+
|
|
101
|
+
### Category 3: Field Accuracy Validation
|
|
102
|
+
|
|
103
|
+
**What:** Verify that field names, casing, and nesting paths referenced in the plan match the actual data structures.
|
|
104
|
+
|
|
105
|
+
**How:**
|
|
106
|
+
|
|
107
|
+
1. **Extract field references from the plan** — Find data binding expressions:
|
|
108
|
+
- Dot-notation paths: `data.surveys.broadband.topDetractorThemes`
|
|
109
|
+
- Object destructuring: `const { themeName, currentNps } = item`
|
|
110
|
+
- Table/chart data mappings: "bind X-axis to `fieldName`"
|
|
111
|
+
|
|
112
|
+
2. **Verify against source of truth** — Check each field reference against:
|
|
113
|
+
- TypeScript interfaces/types (for frontend plans)
|
|
114
|
+
- Pydantic models / SQLAlchemy models (for backend plans)
|
|
115
|
+
- Actual JSON/API response samples (if available)
|
|
116
|
+
- Database schema (if referenced)
|
|
117
|
+
|
|
118
|
+
3. **Check casing consistency:**
|
|
119
|
+
- Does the plan assume camelCase but the source returns snake_case?
|
|
120
|
+
- Does the plan instruct a blanket case transform, but the API already handles it via serialization aliases?
|
|
121
|
+
- Are there mixed-case situations? (e.g., top-level fields are camelCase via aliases, but nested objects are snake_case)
|
|
122
|
+
|
|
123
|
+
4. **Common failure patterns:**
|
|
124
|
+
- Plan says `topDetractorThemes` but actual field is `detractorThemes`
|
|
125
|
+
- Plan says `currentNps` but actual is `currentNPS` (capitalization difference)
|
|
126
|
+
- Plan says `target` and `minimum` but actual is `short_term` and `medium_term`
|
|
127
|
+
- Plan instructs `transformKeys(snakeToCamel)` but API already returns camelCase — transform would double-convert
|
|
128
|
+
|
|
129
|
+
### Category 4: Dependency Availability Validation
|
|
130
|
+
|
|
131
|
+
**What:** Verify that every external package/library referenced in the plan is installed or listed in the project's dependency manifest.
|
|
132
|
+
|
|
133
|
+
**How:**
|
|
134
|
+
|
|
135
|
+
1. **Extract dependency references from the plan** — Find:
|
|
136
|
+
- Import statements: `import X from 'Y'`, `from X import Y`
|
|
137
|
+
- Package references: "install recharts", "add framer-motion"
|
|
138
|
+
- Version-specific references: "requires React 18+"
|
|
139
|
+
|
|
140
|
+
2. **Check against manifests:**
|
|
141
|
+
- `package.json` (dependencies + devDependencies) for JS/TS
|
|
142
|
+
- `pyproject.toml` / `requirements.txt` for Python
|
|
143
|
+
- `go.mod` for Go
|
|
144
|
+
- `Cargo.toml` for Rust
|
|
145
|
+
|
|
146
|
+
3. **Classify:**
|
|
147
|
+
- Listed in manifest → `PASS`
|
|
148
|
+
- Not listed but plan says "install in Phase N" → `PASS` (with note)
|
|
149
|
+
- Not listed and plan doesn't mention installation → `SIGNIFICANT` (will fail on import)
|
|
150
|
+
|
|
151
|
+
### Category 5: Path Existence Validation
|
|
152
|
+
|
|
153
|
+
**What:** Verify that every file/directory path referenced in the plan exists or is explicitly marked for creation.
|
|
154
|
+
|
|
155
|
+
**How:**
|
|
156
|
+
|
|
157
|
+
1. **Extract path references from the plan** — Find:
|
|
158
|
+
- `CREATE file: src/components/Dashboard.tsx`
|
|
159
|
+
- `UPDATE file: src/api/client.ts`
|
|
160
|
+
- Import paths: `from '../services/nps'`
|
|
161
|
+
- Config references: `tailwind.config.js`, `.env`
|
|
162
|
+
|
|
163
|
+
2. **Classify each path:**
|
|
164
|
+
- `CREATE` + path doesn't exist → `PASS` (expected)
|
|
165
|
+
- `CREATE` + path already exists → `WARN` (will overwrite — intentional?)
|
|
166
|
+
- `UPDATE` + path exists → `PASS`
|
|
167
|
+
- `UPDATE` + path doesn't exist → `CRITICAL` (can't update what doesn't exist)
|
|
168
|
+
- Referenced in imports but neither CREATE nor UPDATE → check existence
|
|
169
|
+
|
|
170
|
+
3. **Verify directory structure matches plan assumptions:**
|
|
171
|
+
- Does `src/components/ui/` exist if the plan puts files there?
|
|
172
|
+
- Does the plan's assumed project structure match reality?
|
|
173
|
+
|
|
174
|
+
### Category 6: Data Shape Validation
|
|
175
|
+
|
|
176
|
+
**What:** Verify that the plan's assumptions about API response shapes (nesting, array vs. object, optional vs. required) match the actual response structure.
|
|
177
|
+
|
|
178
|
+
**How:**
|
|
179
|
+
|
|
180
|
+
1. **Find data shape assumptions in the plan** — Look for:
|
|
181
|
+
- Response type annotations: `Promise<NpsData>`
|
|
182
|
+
- Data access patterns: `response.data.surveys.broadband.nps`
|
|
183
|
+
- Conditional checks: `if (data.periodType === 'monthly')`
|
|
184
|
+
- Mapping operations: `data.themes.map(t => t.name)`
|
|
185
|
+
|
|
186
|
+
2. **Verify against the actual response:**
|
|
187
|
+
- Read serialization models (Pydantic, Zod, JSON Schema)
|
|
188
|
+
- If available, read sample response data (JSON files, test fixtures)
|
|
189
|
+
- Check: Is the field always present or sometimes missing?
|
|
190
|
+
- Check: Is it an array or an object? Does the plan treat it correctly?
|
|
191
|
+
|
|
192
|
+
3. **Common failure patterns:**
|
|
193
|
+
- Plan assumes a field exists that is only present conditionally
|
|
194
|
+
- Plan assumes an array but actual is an object (or vice versa)
|
|
195
|
+
- Plan references `data.combined.trend` but combined has no trend data
|
|
196
|
+
- Plan assumes a flattened structure but actual is nested
|
|
197
|
+
|
|
198
|
+
### Category 7: Transform Correctness Validation
|
|
199
|
+
|
|
200
|
+
**What:** Verify that any data transformation instructions in the plan (case conversion, normalization, derived calculations) are actually needed and correctly specified.
|
|
201
|
+
|
|
202
|
+
**How:**
|
|
203
|
+
|
|
204
|
+
1. **Find transform instructions in the plan** — Look for:
|
|
205
|
+
- "Apply camelCase transform to API responses"
|
|
206
|
+
- "Normalize snake_case fields"
|
|
207
|
+
- "Calculate combined NPS as weighted average of products"
|
|
208
|
+
- "Derive percentage from raw counts"
|
|
209
|
+
|
|
210
|
+
2. **Check if the transform is necessary:**
|
|
211
|
+
- Does the API already apply the transform via serialization (Pydantic aliases, Jackson annotations)?
|
|
212
|
+
- Does the ORM already handle the conversion?
|
|
213
|
+
- Would the transform break other data that's already in the correct format?
|
|
214
|
+
|
|
215
|
+
3. **Check if the transform is correct:**
|
|
216
|
+
- Is the formula right? (e.g., weighted average vs. simple average)
|
|
217
|
+
- Are required source fields available?
|
|
218
|
+
- Does the transform handle edge cases? (division by zero, null values)
|
|
219
|
+
|
|
220
|
+
### Category 8: Output Decay Detection
|
|
221
|
+
|
|
222
|
+
**What:** Detect structural shortcuts, abbreviation patterns, and placeholder content that indicate the plan-generating agent suffered output decay (attention fatigue in later sections).
|
|
223
|
+
|
|
224
|
+
**How:**
|
|
225
|
+
|
|
226
|
+
1. **Scan the plan for decay signals** — Search for these patterns, especially in the last 40% of the document:
|
|
227
|
+
|
|
228
|
+
| Signal | Regex pattern | Example |
|
|
229
|
+
|--------|--------------|---------|
|
|
230
|
+
| Ellipsis placeholders | `\.{3,}` | `// ... similar tests for each function` |
|
|
231
|
+
| Same-pattern shortcuts | `same pattern` | `same pattern × 3 rows` |
|
|
232
|
+
| As-above references | `as above` | `as above for remaining endpoints` |
|
|
233
|
+
| Etc. in task lines | `\betc\b\.?` | `deriveDeltas, deriveYtd, etc.` |
|
|
234
|
+
| Pseudo-code bodies | `\{ ?\.\.\. ?\}` | `expect(result).toBe({ ... })` |
|
|
235
|
+
| Phase cross-references | `similar to (Phase\|Step\|Section)` | `similar to Phase 2` |
|
|
236
|
+
| Collapsed lists | `and \d+ more\|and others\|and the rest` | `and 3 more` |
|
|
237
|
+
| Implied continuation | `repeat for\|do the same for` | `repeat for remaining products` |
|
|
238
|
+
| Compressed enumerations | listing 2-3 items then trailing with `, ...` or `etc.` instead of the full list | `deriveDeltas, deriveYtd, etc.` (when there are 9 items) |
|
|
239
|
+
|
|
240
|
+
2. **Measure depth uniformity:**
|
|
241
|
+
- Count task lines per phase across the entire plan
|
|
242
|
+
- If the last 3 phases average < 50% of the first 3 phases' task-line count, flag as `SIGNIFICANT` depth decay
|
|
243
|
+
- If any single phase has ≤ 2 task lines when comparable phases have 10+, flag as `CRITICAL` depth decay
|
|
244
|
+
|
|
245
|
+
3. **Check for incomplete examples:**
|
|
246
|
+
- Does the plan show one fully specified example (e.g., for "Broadband") and then shortcut the remaining items (e.g., "Mobile", "TV", "Bundle")?
|
|
247
|
+
- Are test bodies fully written or do they contain `{ ... }` pseudo-code?
|
|
248
|
+
- Are ID/attribute lists complete or do they trail off with "etc."?
|
|
249
|
+
|
|
250
|
+
4. **Common failure patterns:**
|
|
251
|
+
- Plan writes full component spec for first product, then says "same pattern × 3 rows" for the rest
|
|
252
|
+
- Test descriptions list one test fully, then say "similar tests for each function"
|
|
253
|
+
- Data binding tables show one row completely, then reference "id=X etc." for remaining
|
|
254
|
+
- Lists that should enumerate all items (function names, field names, route paths) stop after 2-3 with ", etc."
|
|
255
|
+
|
|
256
|
+
5. **Classification:**
|
|
257
|
+
- Any unexpanded shortcut that hides specific details (names, paths, logic) → `SIGNIFICANT` with type `MECHANICAL` (the full content must be written out)
|
|
258
|
+
- Depth decay across phases → `SIGNIFICANT` with type `MECHANICAL` (later phases must be expanded to match earlier phases)
|
|
259
|
+
- Ambiguous abbreviation where the intended expansion is unclear → `CRITICAL` with type `DECISION_REQUIRED`
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Execution Protocol
|
|
264
|
+
|
|
265
|
+
### Step 1: Plan Ingestion
|
|
266
|
+
|
|
267
|
+
Read the plan document end-to-end. Extract:
|
|
268
|
+
- Total number of phases
|
|
269
|
+
- Technology stack references
|
|
270
|
+
- All technical claims (endpoints, types, fields, paths, transforms)
|
|
271
|
+
|
|
272
|
+
### Step 2: Codebase Discovery
|
|
273
|
+
|
|
274
|
+
Identify the sources of truth in the codebase:
|
|
275
|
+
- Backend route files (for API contract)
|
|
276
|
+
- Type definition files (for type identity)
|
|
277
|
+
- Serialization/DTO models (for field accuracy and transforms)
|
|
278
|
+
- Package manifests (for dependencies)
|
|
279
|
+
- Sample data or test fixtures (for data shapes)
|
|
280
|
+
|
|
281
|
+
### Step 3: Systematic Cross-Reference
|
|
282
|
+
|
|
283
|
+
Run all 8 check categories against the plan. For each finding:
|
|
284
|
+
- Record the **plan location** (phase number, section, line context)
|
|
285
|
+
- Record the **codebase evidence** (file path, line number, actual value)
|
|
286
|
+
- Classify severity
|
|
287
|
+
- For `CRITICAL` and `SIGNIFICANT`: determine if this is a **mechanical fix** (one correct answer) or a **decision required** (multiple valid options)
|
|
288
|
+
|
|
289
|
+
### Step 4: Decision Surfacing
|
|
290
|
+
|
|
291
|
+
For findings classified as **decision required**:
|
|
292
|
+
- Present numbered options (A, B, C) with pros/cons
|
|
293
|
+
- Wait for user input (in standalone mode) or flag as blockers (in autopilot)
|
|
294
|
+
- Record the chosen resolution alongside the finding
|
|
295
|
+
|
|
296
|
+
### Step 5: Report Generation
|
|
297
|
+
|
|
298
|
+
Produce a structured report (see Output Format below).
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Output Format
|
|
303
|
+
|
|
304
|
+
The report is written to the path specified by the invoking agent. Default: `.github/agent-docs/preflight-report.md`
|
|
305
|
+
|
|
306
|
+
Apply `.github/instructions/document-frontmatter.instructions.md` when creating or updating the report. The YAML frontmatter block must be the first content in the file. New reports require `Original Author`, `Creation Date`, and `Creating Model`; revised reports must preserve those fields and add or update `Last Author`, `Last Updated`, and `Last Model Used`.
|
|
307
|
+
|
|
308
|
+
```markdown
|
|
309
|
+
---
|
|
310
|
+
type: preflight-report
|
|
311
|
+
plan: <path-to-plan-file>
|
|
312
|
+
scope: <"full" or "phases N-M">
|
|
313
|
+
timestamp: <ISO-8601>
|
|
314
|
+
result: <PASS | FAIL>
|
|
315
|
+
counts:
|
|
316
|
+
critical: <N>
|
|
317
|
+
significant: <N>
|
|
318
|
+
minor: <N>
|
|
319
|
+
warn: <N>
|
|
320
|
+
decisions_pending: <N>
|
|
321
|
+
Original Author: <active author or agent name>
|
|
322
|
+
Creation Date: <YYYY-MM-DDTHH:MM:SSZ>
|
|
323
|
+
Creating Model: <exact runtime model identifier or display name>
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
# Preflight Validation Report
|
|
327
|
+
|
|
328
|
+
**Plan:** `<path>`
|
|
329
|
+
**Validated against:** `<project-name>` codebase
|
|
330
|
+
**Scope:** <full | phases N-M>
|
|
331
|
+
**Result:** <PASS ✅ | FAIL ❌>
|
|
332
|
+
|
|
333
|
+
## Summary
|
|
334
|
+
|
|
335
|
+
| Category | Checks | Pass | Fail | Warn |
|
|
336
|
+
|----------|--------|------|------|------|
|
|
337
|
+
| API Contract | N | N | N | N |
|
|
338
|
+
| Type Identity | N | N | N | N |
|
|
339
|
+
| Field Accuracy | N | N | N | N |
|
|
340
|
+
| Dependencies | N | N | N | N |
|
|
341
|
+
| Path Existence | N | N | N | N |
|
|
342
|
+
| Data Shape | N | N | N | N |
|
|
343
|
+
| Transform Correctness | N | N | N | N |
|
|
344
|
+
| Output Decay | N | N | N | N |
|
|
345
|
+
| **Total** | **N** | **N** | **N** | **N** |
|
|
346
|
+
|
|
347
|
+
## Critical Findings
|
|
348
|
+
|
|
349
|
+
### C1: <title>
|
|
350
|
+
- **Category:** <which of the 8>
|
|
351
|
+
- **Plan says:** <what the plan claims> (Phase N, section X)
|
|
352
|
+
- **Codebase says:** <what actually exists> (`path/to/file:line`)
|
|
353
|
+
- **Type:** Mechanical fix
|
|
354
|
+
- **Fix:** <exact correction>
|
|
355
|
+
|
|
356
|
+
### C2: <title>
|
|
357
|
+
- **Category:** <which of the 8>
|
|
358
|
+
- **Plan says:** <what the plan claims>
|
|
359
|
+
- **Codebase says:** <what actually exists>
|
|
360
|
+
- **Type:** Decision required
|
|
361
|
+
- **Options:**
|
|
362
|
+
- A: <option and consequence>
|
|
363
|
+
- B: <option and consequence>
|
|
364
|
+
- C: <option and consequence>
|
|
365
|
+
- **Resolution:** <PENDING | chosen option with rationale>
|
|
366
|
+
|
|
367
|
+
## Significant Findings
|
|
368
|
+
<same structure as critical>
|
|
369
|
+
|
|
370
|
+
## Minor Findings
|
|
371
|
+
<same structure>
|
|
372
|
+
|
|
373
|
+
## Warnings
|
|
374
|
+
<same structure>
|
|
375
|
+
|
|
376
|
+
## Decisions
|
|
377
|
+
|
|
378
|
+
| ID | Finding | Options | Resolution |
|
|
379
|
+
|----|---------|---------|------------|
|
|
380
|
+
| D1 | <finding ref> | A / B / C | <PENDING or chosen> |
|
|
381
|
+
| D2 | ... | ... | ... |
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
If you revise an existing report file, preserve the original metadata fields and add or update `Last Author`, `Last Updated`, and `Last Model Used` using full ISO 8601 UTC timestamps.
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
## Pass / Fail Criteria
|
|
389
|
+
|
|
390
|
+
| Result | Condition |
|
|
391
|
+
|--------|-----------|
|
|
392
|
+
| `PASS` | Zero CRITICAL findings AND zero pending decisions |
|
|
393
|
+
| `FAIL` | Any CRITICAL finding exists OR any decision is PENDING |
|
|
394
|
+
|
|
395
|
+
**Then, as the very last line of your output (nothing after it), emit the machine verdict:**
|
|
396
|
+
`PREFLIGHT: PASS` (zero CRITICAL findings and zero pending decisions) or `PREFLIGHT: FAIL` (one or
|
|
397
|
+
more CRITICAL findings, or any decision pending). Automated runners read only this line; it must
|
|
398
|
+
exactly match one of those two forms.
|
|
399
|
+
|
|
400
|
+
`SIGNIFICANT` and `MINOR` findings do not block a PASS — they are advisory. However, they should be included in the report for the Planner to address.
|
|
401
|
+
|
|
402
|
+
---
|
|
403
|
+
|
|
404
|
+
## Scope Restriction (Partial Validation)
|
|
405
|
+
|
|
406
|
+
When invoked with a scope like "validate phases 6-13 only":
|
|
407
|
+
|
|
408
|
+
1. Only extract technical claims from phases 6-13 of the plan
|
|
409
|
+
2. Validate against the **current** codebase (which includes work from phases 1-5)
|
|
410
|
+
3. Report findings only for the scoped phases
|
|
411
|
+
4. Note in the report header: `Scope: phases 6-13 (phases 1-5 assumed implemented)`
|
|
412
|
+
|
|
413
|
+
This is useful for mid-implementation re-validation where the codebase has evolved beyond what the plan originally assumed.
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
## Project-Agnostic Design
|
|
418
|
+
|
|
419
|
+
This skill does not assume any specific technology stack. The 7 check categories are universal — they apply to:
|
|
420
|
+
|
|
421
|
+
- Python + FastAPI + React (current validated use case)
|
|
422
|
+
- Node.js + Express + Vue/Angular
|
|
423
|
+
- Go + gRPC + React
|
|
424
|
+
- .NET + Blazor/React
|
|
425
|
+
- Any backend + any frontend combination
|
|
426
|
+
|
|
427
|
+
The agent loading this skill must adapt the "how to find routes" and "how to find types" steps to the actual stack detected in the project. The methodology (what to check and how to classify findings) is stack-agnostic.
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
## Anti-Patterns to Avoid
|
|
432
|
+
|
|
433
|
+
| Anti-Pattern | Why It's Wrong | Correct Approach |
|
|
434
|
+
|---|---|---|
|
|
435
|
+
| Validate only Phase 1 | Later phases have higher drift risk | Validate all phases with equal depth |
|
|
436
|
+
| Trust plan's stated types without searching | Types get renamed during development | Search codebase for each type name |
|
|
437
|
+
| Assume blanket transforms are correct | APIs often handle serialization already | Check serialization layer before recommending transforms |
|
|
438
|
+
| Skip data shape validation | "The types look right" ≠ "the data matches" | Read actual response samples or DTO definitions |
|
|
439
|
+
| Auto-resolve decisions | Product choices need human input | Surface options and wait |
|
|
440
|
+
| Report only failures | Context of what passed builds confidence | Include summary table with pass counts |
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|