@jakkrichm/create-nexus-devflow 2.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/LICENSE +21 -0
- package/README.md +82 -0
- package/bin/create-nexus-devflow.js +275 -0
- package/lib/update.js +379 -0
- package/package.json +53 -0
- package/template/.agents/skills/00-discover/SKILL.md +170 -0
- package/template/.agents/skills/10-define/SKILL.md +170 -0
- package/template/.agents/skills/20-spec/SKILL.md +156 -0
- package/template/.agents/skills/30-plan/SKILL.md +221 -0
- package/template/.agents/skills/40-implement/SKILL.md +166 -0
- package/template/.agents/skills/50-verify/SKILL.md +188 -0
- package/template/.agents/skills/60-report/SKILL.md +183 -0
- package/template/.agents/skills/70-release/SKILL.md +155 -0
- package/template/.agents/skills/9arm-skills/README.md +51 -0
- package/template/.agents/skills/9arm-skills/debug-mantra/SKILL.md +86 -0
- package/template/.agents/skills/9arm-skills/management-talk/SKILL.md +79 -0
- package/template/.agents/skills/9arm-skills/post-mortem/SKILL.md +71 -0
- package/template/.agents/skills/9arm-skills/scrutinize/SKILL.md +72 -0
- package/template/.agents/skills/agent/SKILL.md +165 -0
- package/template/.agents/skills/api-and-interface-design/SKILL.md +294 -0
- package/template/.agents/skills/app-builder/SKILL.md +75 -0
- package/template/.agents/skills/app-builder/agent-coordination.md +71 -0
- package/template/.agents/skills/app-builder/feature-building.md +53 -0
- package/template/.agents/skills/app-builder/project-detection.md +34 -0
- package/template/.agents/skills/app-builder/scaffolding.md +118 -0
- package/template/.agents/skills/app-builder/tech-stack.md +40 -0
- package/template/.agents/skills/app-builder/templates/SKILL.md +39 -0
- package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/template/.agents/skills/architecture/SKILL.md +55 -0
- package/template/.agents/skills/architecture/context-discovery.md +43 -0
- package/template/.agents/skills/architecture/examples.md +94 -0
- package/template/.agents/skills/architecture/pattern-selection.md +68 -0
- package/template/.agents/skills/architecture/patterns-reference.md +50 -0
- package/template/.agents/skills/architecture/trade-off-analysis.md +77 -0
- package/template/.agents/skills/bash-linux/SKILL.md +199 -0
- package/template/.agents/skills/behavioral-modes/SKILL.md +242 -0
- package/template/.agents/skills/brainstorm/SKILL.md +168 -0
- package/template/.agents/skills/browser-testing-with-devtools/SKILL.md +302 -0
- package/template/.agents/skills/changelog/SKILL.md +109 -0
- package/template/.agents/skills/check-for-updates/SKILL.md +117 -0
- package/template/.agents/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/template/.agents/skills/code-review-and-quality/SKILL.md +392 -0
- package/template/.agents/skills/code-simplification/SKILL.md +331 -0
- package/template/.agents/skills/codebase-design/DEEPENING.md +24 -0
- package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +28 -0
- package/template/.agents/skills/codebase-design/SKILL.md +58 -0
- package/template/.agents/skills/commit/SKILL.md +63 -0
- package/template/.agents/skills/competitor-analysis/SKILL.md +66 -0
- package/template/.agents/skills/context-engineering/SKILL.md +290 -0
- package/template/.agents/skills/database-design/SKILL.md +52 -0
- package/template/.agents/skills/database-design/database-selection.md +43 -0
- package/template/.agents/skills/database-design/indexing.md +39 -0
- package/template/.agents/skills/database-design/migrations.md +48 -0
- package/template/.agents/skills/database-design/optimization.md +36 -0
- package/template/.agents/skills/database-design/orm-selection.md +30 -0
- package/template/.agents/skills/database-design/schema-design.md +56 -0
- package/template/.agents/skills/database-design/scripts/schema_validator.py +172 -0
- package/template/.agents/skills/debug/SKILL.md +131 -0
- package/template/.agents/skills/debugging-and-error-recovery/SKILL.md +298 -0
- package/template/.agents/skills/deploy/SKILL.md +91 -0
- package/template/.agents/skills/deployment-procedures/SKILL.md +241 -0
- package/template/.agents/skills/deprecation-and-migration/SKILL.md +206 -0
- package/template/.agents/skills/devflow/SKILL.md +89 -0
- package/template/.agents/skills/devflow-concept-intake/SKILL.md +150 -0
- package/template/.agents/skills/devflow-concept-intake/agents/openai.yaml +4 -0
- package/template/.agents/skills/devflow-concept-intake/references/adoption-proposal-template.md +60 -0
- package/template/.agents/skills/devflow-concept-intake/references/concept-report-template.md +47 -0
- package/template/.agents/skills/devflow-concept-intake/references/upstream-tracking-template.md +51 -0
- package/template/.agents/skills/devflow-wiki/SKILL.md +75 -0
- package/template/.agents/skills/diagnosing-bugs/SKILL.md +93 -0
- package/template/.agents/skills/documentation-and-adrs/SKILL.md +278 -0
- package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
- package/template/.agents/skills/domain-modeling/SKILL.md +74 -0
- package/template/.agents/skills/english-to-thai-translator/SKILL.md +125 -0
- package/template/.agents/skills/followup/SKILL.md +83 -0
- package/template/.agents/skills/frontend-ui-engineering/SKILL.md +326 -0
- package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +159 -0
- package/template/.agents/skills/git-workflow-and-versioning/SKILL.md +300 -0
- package/template/.agents/skills/goal/SKILL.md +148 -0
- package/template/.agents/skills/handoff/SKILL.md +46 -0
- package/template/.agents/skills/help/SKILL.md +253 -0
- package/template/.agents/skills/human-review-decisions/SKILL.md +74 -0
- package/template/.agents/skills/i18n-localization/SKILL.md +154 -0
- package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/template/.agents/skills/idea-refine/SKILL.md +178 -0
- package/template/.agents/skills/idea-refine/examples.md +238 -0
- package/template/.agents/skills/idea-refine/frameworks.md +99 -0
- package/template/.agents/skills/idea-refine/refinement-criteria.md +113 -0
- package/template/.agents/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/template/.agents/skills/incremental-implementation/SKILL.md +248 -0
- package/template/.agents/skills/insight/SKILL.md +131 -0
- package/template/.agents/skills/insight-capture/SKILL.md +84 -0
- package/template/.agents/skills/intelligent-routing/SKILL.md +176 -0
- package/template/.agents/skills/issue-triage/SKILL.md +115 -0
- package/template/.agents/skills/lint-and-validate/SKILL.md +45 -0
- package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/template/.agents/skills/mcp-builder/SKILL.md +176 -0
- package/template/.agents/skills/md2html/SKILL.md +154 -0
- package/template/.agents/skills/md2html/components.md +505 -0
- package/template/.agents/skills/md2html/template.html +1152 -0
- package/template/.agents/skills/merge/SKILL.md +76 -0
- package/template/.agents/skills/mobile-design/SKILL.md +394 -0
- package/template/.agents/skills/mobile-design/decision-trees.md +516 -0
- package/template/.agents/skills/mobile-design/mobile-backend.md +491 -0
- package/template/.agents/skills/mobile-design/mobile-color-system.md +420 -0
- package/template/.agents/skills/mobile-design/mobile-debugging.md +122 -0
- package/template/.agents/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/template/.agents/skills/mobile-design/mobile-navigation.md +458 -0
- package/template/.agents/skills/mobile-design/mobile-performance.md +767 -0
- package/template/.agents/skills/mobile-design/mobile-testing.md +356 -0
- package/template/.agents/skills/mobile-design/mobile-typography.md +433 -0
- package/template/.agents/skills/mobile-design/platform-android.md +666 -0
- package/template/.agents/skills/mobile-design/platform-ios.md +561 -0
- package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/template/.agents/skills/mobile-design/touch-psychology.md +537 -0
- package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/template/.agents/skills/nextjs-react-expert/SKILL.md +286 -0
- package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/template/.agents/skills/nodejs-best-practices/SKILL.md +333 -0
- package/template/.agents/skills/obsidian-bases/SKILL.md +506 -0
- package/template/.agents/skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +173 -0
- package/template/.agents/skills/obsidian-cli/SKILL.md +115 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/SKILL.md +73 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/assets/clipping-template.json +51 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/assets/recipe-template.json +48 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/references/analysis-workflow.md +79 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/references/bases-workflow.md +44 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/references/filters.md +51 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/references/json-schema.md +77 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/references/logic.md +67 -0
- package/template/.agents/skills/obsidian-clipper-template-creator/references/variables.md +64 -0
- package/template/.agents/skills/obsidian-markdown/SKILL.md +205 -0
- package/template/.agents/skills/obsidian-markdown/references/CALLOUTS.md +58 -0
- package/template/.agents/skills/obsidian-markdown/references/EMBEDS.md +63 -0
- package/template/.agents/skills/obsidian-markdown/references/PROPERTIES.md +61 -0
- package/template/.agents/skills/package-json-generator/SKILL.md +60 -0
- package/template/.agents/skills/package-json-generator/scripts/generate.js +120 -0
- package/template/.agents/skills/package-json-generator/scripts/run.sh +19 -0
- package/template/.agents/skills/parallel-agents/SKILL.md +144 -0
- package/template/.agents/skills/performance-optimization/SKILL.md +299 -0
- package/template/.agents/skills/performance-optimization/performance-checklist.md +113 -0
- package/template/.agents/skills/planning-and-task-breakdown/SKILL.md +239 -0
- package/template/.agents/skills/powershell-windows/SKILL.md +167 -0
- package/template/.agents/skills/pr/SKILL.md +93 -0
- package/template/.agents/skills/pr-review/SKILL.md +143 -0
- package/template/.agents/skills/pr-review-analysis/SKILL.md +89 -0
- package/template/.agents/skills/prd/SKILL.md +127 -0
- package/template/.agents/skills/preview/SKILL.md +121 -0
- package/template/.agents/skills/preview-local-check/SKILL.md +59 -0
- package/template/.agents/skills/prompt-addons/SKILL.md +99 -0
- package/template/.agents/skills/prototype/SKILL.md +44 -0
- package/template/.agents/skills/prp-dev-fastapi/SKILL.md +114 -0
- package/template/.agents/skills/prp-dev-multiplatform/SKILL.md +36 -0
- package/template/.agents/skills/prp-dev-odoo/SKILL.md +71 -0
- package/template/.agents/skills/prp-dev-php/SKILL.md +63 -0
- package/template/.agents/skills/prp-sa-ba/SKILL.md +52 -0
- package/template/.agents/skills/python-patterns/SKILL.md +441 -0
- package/template/.agents/skills/red-team-tactics/SKILL.md +199 -0
- package/template/.agents/skills/release-git-operations/SKILL.md +97 -0
- package/template/.agents/skills/research/SKILL.md +143 -0
- package/template/.agents/skills/review/SKILL.md +55 -0
- package/template/.agents/skills/review-followup-routing/SKILL.md +98 -0
- package/template/.agents/skills/roadmap-strategy/SKILL.md +97 -0
- package/template/.agents/skills/security-and-hardening/SKILL.md +349 -0
- package/template/.agents/skills/security-and-hardening/security-checklist.md +134 -0
- package/template/.agents/skills/security-review/SKILL.md +166 -0
- package/template/.agents/skills/seo-fundamentals/SKILL.md +129 -0
- package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/template/.agents/skills/server-management/SKILL.md +161 -0
- package/template/.agents/skills/shipping-and-launch/SKILL.md +311 -0
- package/template/.agents/skills/silent-failure-audit/SKILL.md +73 -0
- package/template/.agents/skills/simplify/SKILL.md +79 -0
- package/template/.agents/skills/skill-development/SKILL.md +86 -0
- package/template/.agents/skills/spec-driven-development/SKILL.md +207 -0
- package/template/.agents/skills/spec-orchestration/SKILL.md +91 -0
- package/template/.agents/skills/specialist-agent-routing/SKILL.md +107 -0
- package/template/.agents/skills/tailwind-patterns/SKILL.md +269 -0
- package/template/.agents/skills/test/SKILL.md +82 -0
- package/template/.agents/skills/test-driven-development/SKILL.md +422 -0
- package/template/.agents/skills/test-driven-development/testing-patterns.md +236 -0
- package/template/.agents/skills/test-execution-and-coverage/SKILL.md +56 -0
- package/template/.agents/skills/type-design/SKILL.md +84 -0
- package/template/.agents/skills/ui-ux-pro-max/SKILL.md +75 -0
- package/template/.agents/skills/using-agent-skills/SKILL.md +171 -0
- package/template/.agents/skills/verification-orchestration/SKILL.md +68 -0
- package/template/.agents/skills/vulnerability-scanner/SKILL.md +276 -0
- package/template/.agents/skills/vulnerability-scanner/checklists.md +121 -0
- package/template/.agents/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/template/.agents/skills/wiki/SKILL.md +149 -0
- package/template/.agents/skills/workflow-documentation-sync/SKILL.md +87 -0
- package/template/.agents/skills/writing-great-skills/SKILL.md +65 -0
- package/template/.claude/skills/00-discover/SKILL.md +170 -0
- package/template/.claude/skills/10-define/SKILL.md +170 -0
- package/template/.claude/skills/20-spec/SKILL.md +156 -0
- package/template/.claude/skills/30-plan/SKILL.md +221 -0
- package/template/.claude/skills/40-implement/SKILL.md +166 -0
- package/template/.claude/skills/50-verify/SKILL.md +188 -0
- package/template/.claude/skills/60-report/SKILL.md +183 -0
- package/template/.claude/skills/70-release/SKILL.md +155 -0
- package/template/.claude/skills/9arm-skills/README.md +51 -0
- package/template/.claude/skills/9arm-skills/debug-mantra/SKILL.md +86 -0
- package/template/.claude/skills/9arm-skills/management-talk/SKILL.md +79 -0
- package/template/.claude/skills/9arm-skills/post-mortem/SKILL.md +71 -0
- package/template/.claude/skills/9arm-skills/scrutinize/SKILL.md +72 -0
- package/template/.claude/skills/agent/SKILL.md +165 -0
- package/template/.claude/skills/api-and-interface-design/SKILL.md +294 -0
- package/template/.claude/skills/app-builder/SKILL.md +75 -0
- package/template/.claude/skills/app-builder/agent-coordination.md +71 -0
- package/template/.claude/skills/app-builder/feature-building.md +53 -0
- package/template/.claude/skills/app-builder/project-detection.md +34 -0
- package/template/.claude/skills/app-builder/scaffolding.md +118 -0
- package/template/.claude/skills/app-builder/tech-stack.md +40 -0
- package/template/.claude/skills/app-builder/templates/SKILL.md +39 -0
- package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/template/.claude/skills/architecture/SKILL.md +55 -0
- package/template/.claude/skills/architecture/context-discovery.md +43 -0
- package/template/.claude/skills/architecture/examples.md +94 -0
- package/template/.claude/skills/architecture/pattern-selection.md +68 -0
- package/template/.claude/skills/architecture/patterns-reference.md +50 -0
- package/template/.claude/skills/architecture/trade-off-analysis.md +77 -0
- package/template/.claude/skills/bash-linux/SKILL.md +199 -0
- package/template/.claude/skills/behavioral-modes/SKILL.md +242 -0
- package/template/.claude/skills/brainstorm/SKILL.md +168 -0
- package/template/.claude/skills/browser-testing-with-devtools/SKILL.md +302 -0
- package/template/.claude/skills/changelog/SKILL.md +109 -0
- package/template/.claude/skills/check-for-updates/SKILL.md +117 -0
- package/template/.claude/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/template/.claude/skills/code-review-and-quality/SKILL.md +392 -0
- package/template/.claude/skills/code-simplification/SKILL.md +331 -0
- package/template/.claude/skills/codebase-design/DEEPENING.md +24 -0
- package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +28 -0
- package/template/.claude/skills/codebase-design/SKILL.md +58 -0
- package/template/.claude/skills/commit/SKILL.md +63 -0
- package/template/.claude/skills/competitor-analysis/SKILL.md +66 -0
- package/template/.claude/skills/context-engineering/SKILL.md +290 -0
- package/template/.claude/skills/database-design/SKILL.md +52 -0
- package/template/.claude/skills/database-design/database-selection.md +43 -0
- package/template/.claude/skills/database-design/indexing.md +39 -0
- package/template/.claude/skills/database-design/migrations.md +48 -0
- package/template/.claude/skills/database-design/optimization.md +36 -0
- package/template/.claude/skills/database-design/orm-selection.md +30 -0
- package/template/.claude/skills/database-design/schema-design.md +56 -0
- package/template/.claude/skills/database-design/scripts/schema_validator.py +172 -0
- package/template/.claude/skills/debug/SKILL.md +131 -0
- package/template/.claude/skills/debugging-and-error-recovery/SKILL.md +298 -0
- package/template/.claude/skills/deploy/SKILL.md +91 -0
- package/template/.claude/skills/deployment-procedures/SKILL.md +241 -0
- package/template/.claude/skills/deprecation-and-migration/SKILL.md +206 -0
- package/template/.claude/skills/devflow/SKILL.md +89 -0
- package/template/.claude/skills/devflow-concept-intake/SKILL.md +150 -0
- package/template/.claude/skills/devflow-concept-intake/agents/openai.yaml +4 -0
- package/template/.claude/skills/devflow-concept-intake/references/adoption-proposal-template.md +60 -0
- package/template/.claude/skills/devflow-concept-intake/references/concept-report-template.md +47 -0
- package/template/.claude/skills/devflow-concept-intake/references/upstream-tracking-template.md +51 -0
- package/template/.claude/skills/devflow-wiki/SKILL.md +75 -0
- package/template/.claude/skills/diagnosing-bugs/SKILL.md +93 -0
- package/template/.claude/skills/documentation-and-adrs/SKILL.md +278 -0
- package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
- package/template/.claude/skills/domain-modeling/SKILL.md +74 -0
- package/template/.claude/skills/english-to-thai-translator/SKILL.md +125 -0
- package/template/.claude/skills/followup/SKILL.md +83 -0
- package/template/.claude/skills/frontend-ui-engineering/SKILL.md +326 -0
- package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +159 -0
- package/template/.claude/skills/git-workflow-and-versioning/SKILL.md +300 -0
- package/template/.claude/skills/goal/SKILL.md +148 -0
- package/template/.claude/skills/handoff/SKILL.md +46 -0
- package/template/.claude/skills/help/SKILL.md +253 -0
- package/template/.claude/skills/human-review-decisions/SKILL.md +74 -0
- package/template/.claude/skills/i18n-localization/SKILL.md +154 -0
- package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/template/.claude/skills/idea-refine/SKILL.md +178 -0
- package/template/.claude/skills/idea-refine/examples.md +238 -0
- package/template/.claude/skills/idea-refine/frameworks.md +99 -0
- package/template/.claude/skills/idea-refine/refinement-criteria.md +113 -0
- package/template/.claude/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/template/.claude/skills/incremental-implementation/SKILL.md +248 -0
- package/template/.claude/skills/insight/SKILL.md +131 -0
- package/template/.claude/skills/insight-capture/SKILL.md +84 -0
- package/template/.claude/skills/intelligent-routing/SKILL.md +176 -0
- package/template/.claude/skills/issue-triage/SKILL.md +115 -0
- package/template/.claude/skills/lint-and-validate/SKILL.md +45 -0
- package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/template/.claude/skills/mcp-builder/SKILL.md +176 -0
- package/template/.claude/skills/md2html/SKILL.md +154 -0
- package/template/.claude/skills/md2html/components.md +505 -0
- package/template/.claude/skills/md2html/template.html +1152 -0
- package/template/.claude/skills/merge/SKILL.md +76 -0
- package/template/.claude/skills/mobile-design/SKILL.md +394 -0
- package/template/.claude/skills/mobile-design/decision-trees.md +516 -0
- package/template/.claude/skills/mobile-design/mobile-backend.md +491 -0
- package/template/.claude/skills/mobile-design/mobile-color-system.md +420 -0
- package/template/.claude/skills/mobile-design/mobile-debugging.md +122 -0
- package/template/.claude/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/template/.claude/skills/mobile-design/mobile-navigation.md +458 -0
- package/template/.claude/skills/mobile-design/mobile-performance.md +767 -0
- package/template/.claude/skills/mobile-design/mobile-testing.md +356 -0
- package/template/.claude/skills/mobile-design/mobile-typography.md +433 -0
- package/template/.claude/skills/mobile-design/platform-android.md +666 -0
- package/template/.claude/skills/mobile-design/platform-ios.md +561 -0
- package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/template/.claude/skills/mobile-design/touch-psychology.md +537 -0
- package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/template/.claude/skills/nextjs-react-expert/SKILL.md +286 -0
- package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/template/.claude/skills/nodejs-best-practices/SKILL.md +333 -0
- package/template/.claude/skills/obsidian-bases/SKILL.md +506 -0
- package/template/.claude/skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +173 -0
- package/template/.claude/skills/obsidian-cli/SKILL.md +115 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/SKILL.md +73 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/assets/clipping-template.json +51 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/assets/recipe-template.json +48 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/references/analysis-workflow.md +79 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/references/bases-workflow.md +44 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/references/filters.md +51 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/references/json-schema.md +77 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/references/logic.md +67 -0
- package/template/.claude/skills/obsidian-clipper-template-creator/references/variables.md +64 -0
- package/template/.claude/skills/obsidian-markdown/SKILL.md +205 -0
- package/template/.claude/skills/obsidian-markdown/references/CALLOUTS.md +58 -0
- package/template/.claude/skills/obsidian-markdown/references/EMBEDS.md +63 -0
- package/template/.claude/skills/obsidian-markdown/references/PROPERTIES.md +61 -0
- package/template/.claude/skills/package-json-generator/SKILL.md +60 -0
- package/template/.claude/skills/package-json-generator/scripts/generate.js +120 -0
- package/template/.claude/skills/package-json-generator/scripts/run.sh +19 -0
- package/template/.claude/skills/parallel-agents/SKILL.md +144 -0
- package/template/.claude/skills/performance-optimization/SKILL.md +299 -0
- package/template/.claude/skills/performance-optimization/performance-checklist.md +113 -0
- package/template/.claude/skills/planning-and-task-breakdown/SKILL.md +239 -0
- package/template/.claude/skills/powershell-windows/SKILL.md +167 -0
- package/template/.claude/skills/pr/SKILL.md +93 -0
- package/template/.claude/skills/pr-review/SKILL.md +143 -0
- package/template/.claude/skills/pr-review-analysis/SKILL.md +89 -0
- package/template/.claude/skills/prd/SKILL.md +127 -0
- package/template/.claude/skills/preview/SKILL.md +121 -0
- package/template/.claude/skills/preview-local-check/SKILL.md +59 -0
- package/template/.claude/skills/prompt-addons/SKILL.md +99 -0
- package/template/.claude/skills/prototype/SKILL.md +44 -0
- package/template/.claude/skills/prp-dev-fastapi/SKILL.md +114 -0
- package/template/.claude/skills/prp-dev-multiplatform/SKILL.md +36 -0
- package/template/.claude/skills/prp-dev-odoo/SKILL.md +71 -0
- package/template/.claude/skills/prp-dev-php/SKILL.md +63 -0
- package/template/.claude/skills/prp-sa-ba/SKILL.md +52 -0
- package/template/.claude/skills/python-patterns/SKILL.md +441 -0
- package/template/.claude/skills/red-team-tactics/SKILL.md +199 -0
- package/template/.claude/skills/release-git-operations/SKILL.md +97 -0
- package/template/.claude/skills/research/SKILL.md +143 -0
- package/template/.claude/skills/review/SKILL.md +55 -0
- package/template/.claude/skills/review-followup-routing/SKILL.md +98 -0
- package/template/.claude/skills/roadmap-strategy/SKILL.md +97 -0
- package/template/.claude/skills/security-and-hardening/SKILL.md +349 -0
- package/template/.claude/skills/security-and-hardening/security-checklist.md +134 -0
- package/template/.claude/skills/security-review/SKILL.md +166 -0
- package/template/.claude/skills/seo-fundamentals/SKILL.md +129 -0
- package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/template/.claude/skills/server-management/SKILL.md +161 -0
- package/template/.claude/skills/shipping-and-launch/SKILL.md +311 -0
- package/template/.claude/skills/silent-failure-audit/SKILL.md +73 -0
- package/template/.claude/skills/simplify/SKILL.md +79 -0
- package/template/.claude/skills/skill-development/SKILL.md +86 -0
- package/template/.claude/skills/spec-driven-development/SKILL.md +207 -0
- package/template/.claude/skills/spec-orchestration/SKILL.md +91 -0
- package/template/.claude/skills/specialist-agent-routing/SKILL.md +107 -0
- package/template/.claude/skills/tailwind-patterns/SKILL.md +269 -0
- package/template/.claude/skills/test/SKILL.md +82 -0
- package/template/.claude/skills/test-driven-development/SKILL.md +422 -0
- package/template/.claude/skills/test-driven-development/testing-patterns.md +236 -0
- package/template/.claude/skills/test-execution-and-coverage/SKILL.md +56 -0
- package/template/.claude/skills/type-design/SKILL.md +84 -0
- package/template/.claude/skills/ui-ux-pro-max/SKILL.md +75 -0
- package/template/.claude/skills/using-agent-skills/SKILL.md +171 -0
- package/template/.claude/skills/verification-orchestration/SKILL.md +68 -0
- package/template/.claude/skills/vulnerability-scanner/SKILL.md +276 -0
- package/template/.claude/skills/vulnerability-scanner/checklists.md +121 -0
- package/template/.claude/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/template/.claude/skills/wiki/SKILL.md +149 -0
- package/template/.claude/skills/workflow-documentation-sync/SKILL.md +87 -0
- package/template/.claude/skills/writing-great-skills/SKILL.md +65 -0
- package/template/.nexus/nexus-devflow.json +44 -0
- package/template/AGENTS.md +58 -0
- package/template/CLAUDE.md +5 -0
- package/template/LICENSE +21 -0
- package/template/devflow/context/ai-interaction.md +34 -0
- package/template/devflow/context/coding-standards.md +19 -0
- package/template/devflow/context/current-stage.md +6 -0
- package/template/devflow/context/findings.md +13 -0
- package/template/devflow/context/project-overview.md +20 -0
- package/template/devflow/reference/running-id-contract.md +39 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pr-review-analysis
|
|
3
|
+
description: Review pull requests or local diffs with structured finding discipline, selective review lanes, and Nexus-DevFlow report templates. Use when the team needs a substantial review without turning review into a numbered workflow stage.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# PR Review Analysis
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
This skill is the shared behavior layer behind `PR-Review`.
|
|
11
|
+
|
|
12
|
+
It preserves the stronger PR review UX from the legacy workflow while fitting DevFlow 2.0 as a non-mainline support capability.
|
|
13
|
+
|
|
14
|
+
## Related Foundation Skills
|
|
15
|
+
|
|
16
|
+
This skill should reuse and align with:
|
|
17
|
+
|
|
18
|
+
- `.agents/skills/9arm-skills/scrutinize/SKILL.md`
|
|
19
|
+
- `.agent/resources/schemas/pr_review.template.md`
|
|
20
|
+
|
|
21
|
+
## When to Use
|
|
22
|
+
|
|
23
|
+
- after `/50-Verify` when the change needs structured review before `/60-Report` and `/70-Release`
|
|
24
|
+
- when a local diff, branch, or pull request needs findings-first analysis
|
|
25
|
+
- when the user wants review without directly editing code
|
|
26
|
+
|
|
27
|
+
Do not use this skill as a substitute for implementation, debugging, or formal release packaging.
|
|
28
|
+
|
|
29
|
+
## Process
|
|
30
|
+
|
|
31
|
+
### 1. Load Review Context
|
|
32
|
+
|
|
33
|
+
Read the minimum relevant context:
|
|
34
|
+
|
|
35
|
+
- PR diff or local `git diff`
|
|
36
|
+
- changed files
|
|
37
|
+
- linked stage artifacts under the running workspace when available
|
|
38
|
+
- nearby project patterns and affected runtime paths
|
|
39
|
+
|
|
40
|
+
### 2. Apply Scrutiny First
|
|
41
|
+
|
|
42
|
+
Start with the `scrutinize` discipline:
|
|
43
|
+
|
|
44
|
+
- intent check
|
|
45
|
+
- smaller or safer alternative
|
|
46
|
+
- actual runtime path trace
|
|
47
|
+
- precision and evidence check
|
|
48
|
+
|
|
49
|
+
### 3. Select Review Lanes
|
|
50
|
+
|
|
51
|
+
Use only the lanes that match scope:
|
|
52
|
+
|
|
53
|
+
- correctness
|
|
54
|
+
- maintainability
|
|
55
|
+
- simplicity
|
|
56
|
+
- testability and coverage
|
|
57
|
+
- docs accuracy
|
|
58
|
+
- AGENTS or instruction adherence
|
|
59
|
+
- security
|
|
60
|
+
- performance
|
|
61
|
+
|
|
62
|
+
### 4. Validate Findings
|
|
63
|
+
|
|
64
|
+
Before reporting a finding:
|
|
65
|
+
|
|
66
|
+
- verify it against the changed code
|
|
67
|
+
- confirm whether it is new or pre-existing
|
|
68
|
+
- keep it actionable
|
|
69
|
+
- include file and line references whenever possible
|
|
70
|
+
|
|
71
|
+
### 5. Save Reusable Report
|
|
72
|
+
|
|
73
|
+
When saving a substantial report, preserve:
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
devflow/runs/{ID}-*/pr_review.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Use `.agent/resources/schemas/pr_review.template.md` and replace all placeholder text with real findings, questions, risks, and evidence gaps.
|
|
80
|
+
|
|
81
|
+
## Output
|
|
82
|
+
|
|
83
|
+
Return:
|
|
84
|
+
|
|
85
|
+
- findings ordered by severity
|
|
86
|
+
- open questions or assumptions
|
|
87
|
+
- residual risks or test gaps
|
|
88
|
+
- where the review report was saved
|
|
89
|
+
- the recommended next route such as `/40-Implement`, `/70-Release`, or `PR-Followup`
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prd
|
|
3
|
+
description: PRD workflow
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
๏ปฟ---
|
|
7
|
+
description: Strategic PRD Generator (Orchestration) - Transform a product or feature idea into a problem-first, hypothesis-driven Product Requirements Document (PRD).
|
|
8
|
+
---
|
|
9
|
+
# Phase 12: Strategic PRD Generator (Orchestration)
|
|
10
|
+
|
|
11
|
+
## Feature Idea: $ARGUMENTS
|
|
12
|
+
|
|
13
|
+
Transform a product or feature idea into a problem-first, hypothesis-driven Product Requirements Document (PRD).
|
|
14
|
+
|
|
15
|
+
In DevFlow 2.0, this is a supporting workflow, not part of the numbered mainline state path. Use it when the idea is still too product-shaped for `/10-Define` or `/20-Spec` to proceed cleanly.
|
|
16
|
+
Use `to-prd` when existing conversation, discovery, or codebase context is already sufficient and the job is synthesis rather than another interview.
|
|
17
|
+
When invoked from `/00-Discover`, link the PRD to the Discovery ID and return to `/00-Discover {discovery_id}` for the final `Proceed`, `Defer`, or `Reject` decision. PRD does not create Running IDs.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Internal Process
|
|
22
|
+
|
|
23
|
+
You are an orchestrator. Your goal is to call the specialized PRD Architect agent and preserve the quality of discovery, framing, and scope decisions before the work enters the mainline execution flow.
|
|
24
|
+
|
|
25
|
+
### Phase 1: Interactive Discovery
|
|
26
|
+
**Call Agent**: `prp-core-prd-architect`
|
|
27
|
+
|
|
28
|
+
- Provide the feature idea if one exists.
|
|
29
|
+
- If no idea is provided, the agent should initiate discovery through targeted questions or structured prompting.
|
|
30
|
+
- Support the agent in grounding the PRD around:
|
|
31
|
+
- **Who**: primary persona, context, environment, and trigger moment.
|
|
32
|
+
- **What**: the core problem or desired outcome.
|
|
33
|
+
- **Why**: limitations of the current process, product, or alternative solutions.
|
|
34
|
+
- **Success**: measurable outcomes, user signals, or business impact.
|
|
35
|
+
|
|
36
|
+
### Phase 2: Grounding And Feasibility
|
|
37
|
+
|
|
38
|
+
- Facilitate research into technical feasibility, domain context, and operational constraints.
|
|
39
|
+
- Ensure the agent checks internal codebase or platform patterns when the idea must fit an existing system.
|
|
40
|
+
- Apply `Research` or the relevant research agent/skill when the PRD mentions:
|
|
41
|
+
- external APIs
|
|
42
|
+
- SDKs
|
|
43
|
+
- databases
|
|
44
|
+
- cloud services
|
|
45
|
+
- auth providers
|
|
46
|
+
- payments
|
|
47
|
+
- browser or device dependencies
|
|
48
|
+
- Apply competitor or market analysis only when differentiation, market positioning, or user pain points materially affect scope decisions.
|
|
49
|
+
|
|
50
|
+
### Phase 3: Scope Definition
|
|
51
|
+
|
|
52
|
+
- Review the agent's prioritization carefully.
|
|
53
|
+
- Confirm:
|
|
54
|
+
- MVP definition
|
|
55
|
+
- non-goals
|
|
56
|
+
- explicit assumptions
|
|
57
|
+
- open questions
|
|
58
|
+
- risks that should remain visible before delivery planning
|
|
59
|
+
- Do not let the PRD silently drift into implementation detail that belongs in `/20-Spec` or `/30-Plan`.
|
|
60
|
+
|
|
61
|
+
### Phase 4: Output Generation
|
|
62
|
+
|
|
63
|
+
- **MANDATORY:** Before generating the PRD, inspect `.agent/resources/schemas/prd.template.md` and use its required headings and table structure.
|
|
64
|
+
- Before reporting completion, run:
|
|
65
|
+
|
|
66
|
+
Review `{prd_path}` against `prd.template.md`, keep the required headings, and remove placeholder text before completion.
|
|
67
|
+
|
|
68
|
+
- Replace any placeholder or template text with concrete product details, assumptions, risks, metrics, and open questions.
|
|
69
|
+
- Save the PRD to:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
devflow/prds/{date}-{slug}.prd.md
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- Verify the document includes:
|
|
76
|
+
- problem statement
|
|
77
|
+
- target user or actor
|
|
78
|
+
- key hypotheses
|
|
79
|
+
- success measures
|
|
80
|
+
- scope boundaries
|
|
81
|
+
- implementation phases at a product level, not task granularity
|
|
82
|
+
|
|
83
|
+
### Phase 5: Map Into DevFlow 2.0
|
|
84
|
+
|
|
85
|
+
Convert the PRD into explicit next steps for the Timeline flow:
|
|
86
|
+
|
|
87
|
+
- `/00-Discover {discovery_id}` when the PRD belongs to an active discovery
|
|
88
|
+
- `/10-Define` when product framing was created outside Discover and delivery has already been approved
|
|
89
|
+
- `/20-Spec` when the delivery contract is ready to be locked
|
|
90
|
+
- `/30-Plan {ID}` only after the spec is execution-ready
|
|
91
|
+
|
|
92
|
+
The user should still approve the transition into execution work. Do not treat PRD generation as automatic task creation.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Output
|
|
97
|
+
|
|
98
|
+
Return:
|
|
99
|
+
|
|
100
|
+
- where the PRD was saved
|
|
101
|
+
- the short product thesis
|
|
102
|
+
- major scope boundaries
|
|
103
|
+
- the biggest open questions
|
|
104
|
+
- the exact recommended next DevFlow 2.0 command
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Relationship To DevFlow 2.0
|
|
109
|
+
|
|
110
|
+
- Classification: Companion command
|
|
111
|
+
- Mainline status: Not a numbered stage
|
|
112
|
+
- Typical entry points: product framing before implementation-ready scope exists
|
|
113
|
+
- Typical handoff targets: `/00-Discover {discovery_id}`, `/10-Define`, `/20-Spec`, `Roadmap`, `Spec-Orchestrate`
|
|
114
|
+
|
|
115
|
+
## Sources
|
|
116
|
+
|
|
117
|
+
- `AGENTS.md`
|
|
118
|
+
- `.agent/resources/schemas/prd.template.md`
|
|
119
|
+
- Related commands: `Brainstorm`, `Research`, `/10-Define`, `/20-Spec`, `Roadmap`, `Spec-Orchestrate`
|
|
120
|
+
- Support skills: `to-prd`, `grill-with-docs`, `domain-modeling`
|
|
121
|
+
|
|
122
|
+
## Next Workflow Recommendation
|
|
123
|
+
|
|
124
|
+
- **Primary**: `/00-Discover {discovery_id}` when invoked from discovery; otherwise `/10-Define`
|
|
125
|
+
- **Why**: PRD shapes product intent, while Discover owns the delivery decision and Define owns Running ID creation.
|
|
126
|
+
- **Alternative**: `Research` when technical feasibility or external dependencies are still unresolved.
|
|
127
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: preview
|
|
3
|
+
description: Preview workflow
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
๏ปฟ---
|
|
7
|
+
description: Preview management and temporary runtime checks. Transitional compatibility path for the Preview companion command in DevFlow 2.0.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Preview Management
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
Preview
|
|
16
|
+
Preview start
|
|
17
|
+
Preview stop
|
|
18
|
+
Preview restart
|
|
19
|
+
Preview check
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This file keeps its old numeric path for migration compatibility.
|
|
23
|
+
|
|
24
|
+
In DevFlow 2.0, `Preview` is a companion command, not a numbered mainline workflow.
|
|
25
|
+
|
|
26
|
+
Primary behavior now lives in:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
.agents/skills/preview-local-check/SKILL.md
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Treat this workflow file as a compatibility wrapper around that skill.
|
|
33
|
+
|
|
34
|
+
Manage the local preview development server or temporary runtime check.
|
|
35
|
+
|
|
36
|
+
Use it when:
|
|
37
|
+
|
|
38
|
+
- the team wants a quick visual or runtime check before formal verification
|
|
39
|
+
- implementation needs a local smoke check
|
|
40
|
+
- a temporary render helps clarify what changed
|
|
41
|
+
- a human reviewer needs something concrete to inspect before giving feedback
|
|
42
|
+
|
|
43
|
+
Preferred DevFlow 2.0 pairing:
|
|
44
|
+
|
|
45
|
+
- from `/40-Implement`
|
|
46
|
+
- from `/50-Verify`
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Sub-commands
|
|
51
|
+
|
|
52
|
+
- `Preview` - show current preview status
|
|
53
|
+
- `Preview start` - start the server
|
|
54
|
+
- `Preview stop` - stop the server
|
|
55
|
+
- `Preview restart` - restart the server
|
|
56
|
+
- `Preview check` - run a health check
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Internal Process
|
|
61
|
+
|
|
62
|
+
`Preview` manages the local preview workflow using the `preview-local-check` skill plus any available preview automation or equivalent project-local commands.
|
|
63
|
+
|
|
64
|
+
When handling preview operations:
|
|
65
|
+
|
|
66
|
+
1. detect the correct project or server command path
|
|
67
|
+
2. report the current state clearly
|
|
68
|
+
3. handle port conflicts gracefully
|
|
69
|
+
4. keep the action scoped to preview management, not broader deployment
|
|
70
|
+
5. distinguish between preview success and full verification success
|
|
71
|
+
|
|
72
|
+
Commands should use the nearest equivalent project-local preview command for the project, such as `npm run dev`, `npm run preview`, framework-specific local servers, or other runtime helpers that already exist in the target project.
|
|
73
|
+
|
|
74
|
+
### Resolving Port Conflicts
|
|
75
|
+
|
|
76
|
+
If the port is in use, offer options:
|
|
77
|
+
|
|
78
|
+
1. start on a different port
|
|
79
|
+
2. terminate the process on the existing port
|
|
80
|
+
3. specify a custom port
|
|
81
|
+
|
|
82
|
+
### Status Format
|
|
83
|
+
|
|
84
|
+
When displaying status, clearly state:
|
|
85
|
+
|
|
86
|
+
- URL
|
|
87
|
+
- project path
|
|
88
|
+
- app type
|
|
89
|
+
- health status
|
|
90
|
+
- notes about blockers, missing dependencies, or startup warnings
|
|
91
|
+
|
|
92
|
+
Example summary:
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
## Preview Status
|
|
96
|
+
|
|
97
|
+
- **URL**: `http://localhost:3000`
|
|
98
|
+
- **Project Path**: `[absolute path]`
|
|
99
|
+
- **App Type**: `Next.js | FastAPI | Odoo | PHP | Other`
|
|
100
|
+
- **Health Status**: `OK | Warning | Failed`
|
|
101
|
+
- **Notes**: [port conflict, startup issue, missing dependency, or none]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Relationship To DevFlow 2.0
|
|
105
|
+
|
|
106
|
+
- Classification: Companion command
|
|
107
|
+
- Mainline status: Not a numbered stage
|
|
108
|
+
- Typical entry points: `/40-Implement`, `/50-Verify`, UI or runtime checking
|
|
109
|
+
- Typical handoff targets: `/50-Verify`, `Debug`, `/40-Implement`
|
|
110
|
+
|
|
111
|
+
## Sources
|
|
112
|
+
|
|
113
|
+
- `AGENTS.md`
|
|
114
|
+
- `.agents/skills/preview-local-check/SKILL.md`
|
|
115
|
+
- Related commands: `/40-Implement`, `/50-Verify`, `Debug`
|
|
116
|
+
|
|
117
|
+
## Next Workflow Recommendation
|
|
118
|
+
|
|
119
|
+
- **Primary**: `/50-Verify` when preview confirms the change is ready for formal checks
|
|
120
|
+
- **Alternative**: `/40-Implement` when preview exposed implementation work
|
|
121
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: preview-local-check
|
|
3
|
+
description: Manage local preview, smoke-check, and temporary runtime verification before formal verification. Use when implementation needs a quick visual or runtime check, when a reviewer needs a local URL, or when a change should be inspected before /50-Verify.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Preview Local Check
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
This skill handles preview management and lightweight runtime checks without pretending that preview success is the same as full verification success.
|
|
11
|
+
|
|
12
|
+
Use it to:
|
|
13
|
+
|
|
14
|
+
- start or stop a local preview server
|
|
15
|
+
- report preview health and URL
|
|
16
|
+
- run a quick smoke check before formal verification
|
|
17
|
+
- give humans a concrete local artifact to inspect
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- During `/40-Implement` when a quick runtime check is useful
|
|
22
|
+
- During `/50-Verify` when the change needs visual or interactive confirmation
|
|
23
|
+
- When a reviewer asks for a local preview URL
|
|
24
|
+
|
|
25
|
+
Do not use this skill as a replacement for test evidence, verification evidence, or release readiness.
|
|
26
|
+
|
|
27
|
+
## Process
|
|
28
|
+
|
|
29
|
+
### 1. Detect Preview Path
|
|
30
|
+
|
|
31
|
+
- identify the correct project-local preview command
|
|
32
|
+
- detect the likely app type and default port
|
|
33
|
+
- separate preview management from deployment logic
|
|
34
|
+
|
|
35
|
+
### 2. Manage State
|
|
36
|
+
|
|
37
|
+
- support `status`, `start`, `stop`, `restart`, and `check`
|
|
38
|
+
- report port conflicts clearly
|
|
39
|
+
- offer a safe alternate port when possible
|
|
40
|
+
|
|
41
|
+
### 3. Report Health
|
|
42
|
+
|
|
43
|
+
Always report:
|
|
44
|
+
|
|
45
|
+
- URL
|
|
46
|
+
- project path
|
|
47
|
+
- app type
|
|
48
|
+
- health status
|
|
49
|
+
- blockers or warnings
|
|
50
|
+
|
|
51
|
+
### 4. Route Back
|
|
52
|
+
|
|
53
|
+
- return to `/50-Verify` when preview confirms the change is ready for formal checks
|
|
54
|
+
- return to `/40-Implement` when preview reveals implementation issues
|
|
55
|
+
- use `Debug` when the preview failure needs RCA
|
|
56
|
+
|
|
57
|
+
## Output
|
|
58
|
+
|
|
59
|
+
Return a concise preview status or action summary. When useful, save notes into the current stage artifact rather than inventing a separate contract.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prompt-addons
|
|
3
|
+
description: Routes external prompt families into DevFlow 2.0 workflows, specialist agents, or thin skill aliases. Use when deciding whether a prompt-inspired behavior should become a mainline workflow, a companion command, a reusable skill, or remain legacy-only.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Prompt Addons
|
|
7
|
+
|
|
8
|
+
Use this skill when adapting outside prompt patterns into the DevFlow 2.0 system.
|
|
9
|
+
|
|
10
|
+
## Core Rule
|
|
11
|
+
|
|
12
|
+
Adapt intent, not old output contracts.
|
|
13
|
+
|
|
14
|
+
DevFlow 2.0 uses a stage-based, markdown-first model:
|
|
15
|
+
|
|
16
|
+
1. Mainline workflow stays minimal and ordered
|
|
17
|
+
2. Companion commands exist for non-mainline help
|
|
18
|
+
3. Specialist agents and skills handle reusable methods
|
|
19
|
+
4. JSON-first orchestration is legacy and should not define new architecture
|
|
20
|
+
|
|
21
|
+
## Mainline Routing
|
|
22
|
+
|
|
23
|
+
| Need | Route to |
|
|
24
|
+
| :--- | :--- |
|
|
25
|
+
| Explore problem space | `/00-Discover` |
|
|
26
|
+
| Clarify goal, scope, decisions | `/10-Define` |
|
|
27
|
+
| Lock delivery contract | `/20-Spec` |
|
|
28
|
+
| Break into execution plan | `/30-Plan` |
|
|
29
|
+
| Build the change | `/40-Implement` |
|
|
30
|
+
| Validate quality and evidence | `/50-Verify` |
|
|
31
|
+
| Package release-ready outcome | `/70-Release` |
|
|
32
|
+
| Summarize the full run | `/60-Report` |
|
|
33
|
+
|
|
34
|
+
## Companion Command Routing
|
|
35
|
+
|
|
36
|
+
| Command | Use when | Typical stage pairing |
|
|
37
|
+
| :--- | :--- | :--- |
|
|
38
|
+
| `Brainstorm` | เนเธเธเธขเนเธขเธฑเธเนเธกเนเธเธดเนเธ เธเนเธญเธเธเธดเธเธเธฒเธเนเธฅเธทเธญเธเธเนเธญเธ lock | Discover, Define |
|
|
39
|
+
| `Research` | เธเนเธญเธเธซเธฒเธซเธฅเธฑเธเธเธฒเธเธซเธฃเธทเธญเธเนเธญเธกเธนเธฅเนเธเธดเนเธก | Discover, Define, Spec, Verify |
|
|
40
|
+
| `Debug` | เธเธฒเธเธเธดเธเธเธเธเธด เธเนเธญเธเธซเธฒ root cause | Implement, Verify |
|
|
41
|
+
| `Preview` | เธเนเธญเธเธเธฃเธงเธเธเธดเนเธเธเธฒเธเธฃเธฐเธซเธงเนเธฒเธเธเธฒเธ | Implement, Verify |
|
|
42
|
+
| `Wiki` | เธเนเธญเธเธชเธเธฑเธเธเธงเธฒเธกเธฃเธนเน reusable | Verify, Release, Report |
|
|
43
|
+
| `Help` | เธเธนเนเนเธเนเนเธกเนเนเธเนเนเธเธงเนเธฒเธเธฐเนเธฃเธดเนเธกเธเธฃเธเนเธซเธ | เธเนเธญเธเนเธเนเธฒ stage เธซเธฃเธทเธญเธฃเธฐเธซเธงเนเธฒเธเธเธฒเธ |
|
|
44
|
+
|
|
45
|
+
## Classification Rule
|
|
46
|
+
|
|
47
|
+
เธเนเธญเธเธชเธฃเนเธฒเธ workflow เนเธซเธกเน เนเธซเนเธเธฑเธเธเธฃเธฐเนเธ เธเธเนเธญเธ:
|
|
48
|
+
|
|
49
|
+
1. เธเนเธฒ intent เนเธเธฅเธตเนเธขเธ stage เธเธญเธเธเธฒเธ เนเธซเน route เนเธเนเธฒเธชเธนเน mainline stage เธเธตเนเธกเธตเธญเธขเธนเน
|
|
50
|
+
2. เธเนเธฒเนเธเนเธเธงเธดเธเธตเธเธณเธเธฒเธเธเธตเนเนเธเนเธเนเธณเธซเธฅเธฒเธข stage เนเธซเนเนเธเนเธ skill
|
|
51
|
+
3. เธเนเธฒเนเธเนเธเธเธงเธฒเธกเนเธเธตเนเธขเธงเธเธฒเธเนเธเธเธฒเธฐเธเนเธฒเธ เนเธซเนเนเธเนเธ agent
|
|
52
|
+
4. เธเนเธฒเนเธเนเธเนเธเนเธเธฑเธงเธเนเธงเธขเธเธดเธเธซเธฃเธทเธญเธซเธฒเธซเธฅเธฑเธเธเธฒเธเธฃเธฐเธซเธงเนเธฒเธเธเธฒเธ เนเธซเนเนเธเนเธ companion command
|
|
53
|
+
5. เธเนเธฒเธญเธดเธ dashboard/json orchestration เนเธเธดเธกเนเธเนเธเธซเธฅเธฑเธ เนเธซเนเธเธเนเธงเนเนเธเนเธ legacy เธซเธฃเธทเธญ migration note
|
|
54
|
+
|
|
55
|
+
## Prompt Family Routing
|
|
56
|
+
|
|
57
|
+
| Family | DevFlow 2.0 route | Keep as |
|
|
58
|
+
| :--- | :--- | :--- |
|
|
59
|
+
| Spec | `/10-Define`, `/20-Spec`, `/30-Plan` | workflow + `requirements-engineer` |
|
|
60
|
+
| Complexity | `/10-Define`, `/30-Plan` | workflow content, not standalone mainline |
|
|
61
|
+
| Roadmap | Discover/Define adjacent | skill or optional workflow outside core line |
|
|
62
|
+
| Ideation | `Brainstorm`, `Research` | companion command |
|
|
63
|
+
| Competitor | `Research` during Discover/Define | companion command or research skill |
|
|
64
|
+
| Insight | `Wiki`, `/60-Report` | companion command + report content |
|
|
65
|
+
| Coder | `/40-Implement` | workflow + specialist agents |
|
|
66
|
+
| QA | `/50-Verify` | workflow + QA/test skills |
|
|
67
|
+
| Follow-up | `/10-Define` or `/30-Plan` เธเธญเธเธฃเธญเธเนเธซเธกเน | stage reuse, not separate numbered mainline |
|
|
68
|
+
| GitHub review | `/50-Verify`, `/70-Release` | workflow/agent support |
|
|
69
|
+
| MCP tool validation | `/50-Verify` | tool-specific verification skill |
|
|
70
|
+
|
|
71
|
+
## Borderline Rules
|
|
72
|
+
|
|
73
|
+
| Idea | Route | Keep as | Rule |
|
|
74
|
+
| :--- | :--- | :--- | :--- |
|
|
75
|
+
| Validation fixer | `/50-Verify` เนเธฅเนเธงเธเนเธญเธขเธขเนเธญเธ `/40-Implement` เธเนเธฒเธเนเธญเธเนเธเนเนเธเนเธ | thin skill/process note | เนเธซเน verification เธเธตเน failure เธเนเธญเธเนเธชเธกเธญ |
|
|
76
|
+
| Documentation ideation | `Brainstorm`, `Wiki`, `/60-Report` | skill-backed support | เนเธกเนเธเนเธญเธเนเธเธดเธ mainline เนเธซเธกเน |
|
|
77
|
+
| Performance ideation | `/50-Verify` เธซเธฃเธทเธญ `/40-Implement` เนเธกเธทเนเธญเธกเธตเธซเธฅเธฑเธเธเธฒเธ | specialist skill/agent | เธเนเธญเธเธกเธต measurement |
|
|
78
|
+
| Security ideation | `/50-Verify` เธซเธฃเธทเธญ `Debug` เนเธกเธทเนเธญเธกเธต incident symptom | specialist skill/agent | treat as finding-first |
|
|
79
|
+
| Follow-up planning | `/10-Define` -> `/20-Spec` -> `/30-Plan` เธเธญเธเธฃเธญเธเนเธซเธกเน | mainline reuse | เนเธกเนเนเธขเธ workflow เธซเธกเธฒเธขเนเธฅเธเนเธซเธกเน |
|
|
80
|
+
| Legacy dashboard orchestration | legacy note only | migration-only | เนเธกเนเนเธเนเนเธเนเธเนเธเธเธเธฑเนเธเธเนเธเธเธญเธ DevFlow 2.0 |
|
|
81
|
+
|
|
82
|
+
## Follow-Up Planning
|
|
83
|
+
|
|
84
|
+
เนเธกเธทเนเธญเธเธนเนเนเธเนเธเนเธญเธเธเธฒเธฃเธเนเธญเธขเธญเธเธเธฒเธเนเธเธดเธก:
|
|
85
|
+
|
|
86
|
+
1. เธญเนเธฒเธ stage artifacts เธเธตเนเธกเธตเธญเธขเธนเนเธเธญเธ running ID เนเธเธดเธก
|
|
87
|
+
2. เธฃเธฐเธเธธเนเธซเนเธเธฑเธเธงเนเธฒเธญเธฐเนเธฃ lock เนเธฅเนเธง เนเธฅเธฐเธญเธฐเนเธฃเธเธฐเนเธเธดเนเธกเนเธซเธกเน
|
|
88
|
+
3. เนเธฃเธดเนเธกเธฃเธญเธเนเธซเธกเนเธเธฒเธ `/10-Define` เธเนเธฒเนเธเธเธขเนเนเธเธฅเธตเนเธขเธ เธซเธฃเธทเธญ `/30-Plan` เธเนเธฒ spec เธขเธฑเธเนเธเนเนเธเน
|
|
89
|
+
4. เนเธเนเนเธเธฅเน `.md` เธเธญเธ stage เนเธซเธกเนเนเธเนเธเธซเธฅเธฑเธเนเธเธเธฒเธฃเธเธฑเธเธเธถเธเธเธฃเธดเธเธ
|
|
90
|
+
|
|
91
|
+
## Output Principle
|
|
92
|
+
|
|
93
|
+
เนเธกเธทเนเธญ prompt family เธเธนเธเนเธเธฅเธเนเธเนเธฒเธฃเธฐเธเธ:
|
|
94
|
+
|
|
95
|
+
1. เธญเธขเนเธฒ copy contract เนเธเธดเธกเนเธเนเธฒเธกเธฒเธเธฃเธ เน
|
|
96
|
+
2. เนเธเธฅเธเนเธซเนเธชเธญเธเธเธฅเนเธญเธเธเธฑเธ numbering rule เธเธญเธ DevFlow 2.0
|
|
97
|
+
3. เธญเธขเนเธฒเธเธณเนเธซเนเธเธนเนเนเธเนเธเนเธญเธเนเธเธฒเนเธฅเธเธขเนเธญเธเธเธฅเธฑเธ
|
|
98
|
+
4. เนเธซเน mainline เธกเธตเนเธเธเธฒเธฐ state เธเธญเธเธเธฒเธ
|
|
99
|
+
5. เนเธซเนเธเธงเธฒเธกเธชเธฒเธกเธฒเธฃเธเนเธชเธฃเธดเธกเนเธเธญเธขเธนเนเนเธ skill, agent, เธซเธฃเธทเธญ companion command เธเธฒเธกเธเธงเธฒเธกเนเธซเธกเธฒเธฐเธชเธก
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prototype
|
|
3
|
+
description: Build a throwaway prototype to answer a design question during Discover, Define, Spec, Research, or Plan.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Prototype
|
|
8
|
+
|
|
9
|
+
A prototype is throwaway code that answers one question.
|
|
10
|
+
|
|
11
|
+
Use this support skill behind `Research`, `Brainstorm`, `/00-Discover`, `/10-Define`, `/20-Spec`, or `/30-Plan` when conversation alone cannot settle the uncertainty.
|
|
12
|
+
|
|
13
|
+
## Branches
|
|
14
|
+
|
|
15
|
+
Choose one:
|
|
16
|
+
|
|
17
|
+
- **Logic prototype**: use when the question is about state, business rules, parsing, scheduling, or algorithm behavior.
|
|
18
|
+
- **UI prototype**: use when the question is about interaction, visual hierarchy, layout, or user flow.
|
|
19
|
+
|
|
20
|
+
If the branch is ambiguous, state the assumption and choose the one closest to the surrounding code.
|
|
21
|
+
|
|
22
|
+
## Rules
|
|
23
|
+
|
|
24
|
+
- Mark it as throwaway.
|
|
25
|
+
- Keep it close to the relevant module or task workspace.
|
|
26
|
+
- Provide one command to run it.
|
|
27
|
+
- Avoid persistence unless the question is specifically about persistence.
|
|
28
|
+
- Skip polish, broad error handling, and abstractions.
|
|
29
|
+
- Show state clearly after each action or variant switch.
|
|
30
|
+
- Delete, absorb, or explicitly mark the prototype after it answers the question.
|
|
31
|
+
|
|
32
|
+
## Durable Capture
|
|
33
|
+
|
|
34
|
+
The answer is the artifact worth keeping.
|
|
35
|
+
|
|
36
|
+
Capture:
|
|
37
|
+
|
|
38
|
+
- the question
|
|
39
|
+
- prototype path and command
|
|
40
|
+
- what was learned
|
|
41
|
+
- decision or remaining uncertainty
|
|
42
|
+
- next DevFlow route
|
|
43
|
+
|
|
44
|
+
Use an ADR only if the prototype resolves a hard-to-reverse, surprising trade-off.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: prp-dev-fastapi
|
|
3
|
+
description: Comprehensive skill for FastAPI development following the PRP Pure Agentic workflow. Includes project templates, async/await patterns, Pydantic validation, repository/service architecture, and automated validation loops. Use when designing, implementation, or refactoring FastAPI applications.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ๐ PRP Dev โ FastAPI (Pure Agentic)
|
|
7
|
+
|
|
8
|
+
This Skill operates to assist the AI Agent in systematically developing features for **FastAPI** following the PRP Framework standards, focusing on Architectural correctness, clean code, and automated Validation Loops.
|
|
9
|
+
|
|
10
|
+
## ๐ฏ Scope of Work
|
|
11
|
+
Apply this Skill when:
|
|
12
|
+
- **Design**: Designing the API structure or Database Schema.
|
|
13
|
+
- **Implementation**: Writing FastAPI code, Pydantic Models, or the Service Layer.
|
|
14
|
+
- **Refactor**: Revamping legacy code for better organization or full Async compatibility.
|
|
15
|
+
- **Workflow**: When engaging in tasks related to Backend APIs (spanning from planning to Verify).
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 1. ๐ Platform & Stack Detection
|
|
20
|
+
Always ascertain the environment prior to starting work:
|
|
21
|
+
1. **Indicators**: Locate `FastAPI` in `main.py`, `requirements.txt`, or through `@app.get()` decorators.
|
|
22
|
+
2. **Database/ORM**: Identify the utilization of `SQLAlchemy` (Async/Sync), `SQLModel`, or `Tortoise`.
|
|
23
|
+
3. **Pydantic**: Confirm whether Version 1.x or 2.x is used (to guarantee proper Syntax).
|
|
24
|
+
4. **Project Type**: Examine if the structure is Monolithic (Small) or Modular (Production-Ready).
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 2. ๐๏ธ Architecture & Organization
|
|
29
|
+
Adhere to a Production-Ready architecture (strive to avoid files exceeding 500 lines):
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
app/
|
|
33
|
+
โโโ api/ # API route handlers
|
|
34
|
+
โโโ core/ # config, security, database setup
|
|
35
|
+
โโโ models/ # Database models (ORM)
|
|
36
|
+
โโโ schemas/ # Pydantic schemas (Request/Response)
|
|
37
|
+
โโโ services/ # Business logic layer
|
|
38
|
+
โโโ repositories/ # Data access layer (CRUD)
|
|
39
|
+
โโโ utils/ # Utility functions
|
|
40
|
+
โโโ main.py # Application entry
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Naming Conventions
|
|
44
|
+
- **Files**: `snake_case` (e.g., `auth_service.py`)
|
|
45
|
+
- **Classes**: `PascalCase` (e.g., `UserUpdate`)
|
|
46
|
+
- **Functions**: `snake_case` (e.g., `get_active_users`)
|
|
47
|
+
- **Endpoints**: `kebab-case` (e.g., `/api/v1/user-profiles`)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. ๐ก๏ธ Implementation Patterns (Best Practices)
|
|
52
|
+
|
|
53
|
+
### 3.1 Async All The Way
|
|
54
|
+
- Employ `async def` consistently for Endpoints.
|
|
55
|
+
- Utilize `await` for all I/O operations (Database, API Call, File System).
|
|
56
|
+
- **Prohibited**: Using Blocking code inside an Async function (e.g., `time.sleep`, `requests.get`). Employ `asyncio.sleep` or `httpx` instead.
|
|
57
|
+
|
|
58
|
+
### 3.2 Dependency Injection (FastAPI `Depends`)
|
|
59
|
+
Use `Depends` for managing Shared resources:
|
|
60
|
+
```python
|
|
61
|
+
@router.post("/", response_model=Item)
|
|
62
|
+
async def create_item(
|
|
63
|
+
item_in: ItemCreate,
|
|
64
|
+
db: AsyncSession = Depends(get_db),
|
|
65
|
+
current_user: User = Depends(get_current_user)
|
|
66
|
+
):
|
|
67
|
+
return await service.create(db, obj_in=item_in, user=current_user)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 3.3 CRUD Repository Pattern
|
|
71
|
+
Segregate Data management Logic from Business Logic:
|
|
72
|
+
```python
|
|
73
|
+
# repositories/base.py
|
|
74
|
+
class BaseRepository(Generic[ModelType, CreateSchema, UpdateSchema]):
|
|
75
|
+
async def get(self, db: AsyncSession, id: Any) -> Optional[ModelType]:
|
|
76
|
+
result = await db.execute(select(self.model).where(self.model.id == id))
|
|
77
|
+
return result.scalars().first()
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 4. ๐ PRP Workflow Integration (Pure Agentic)
|
|
83
|
+
For each Task, the Agent must adhere to these principles:
|
|
84
|
+
|
|
85
|
+
### Phase: Planning (/30-Plan)
|
|
86
|
+
- Designate the files to be created/modified in the `File & Directory Index`.
|
|
87
|
+
- Formulate a comprehensive `Validation Loop`:
|
|
88
|
+
- **Step 1**: Lint & Type Check (`ruff`, `mypy`)
|
|
89
|
+
- **Step 2**: Unit Test (`pytest`)
|
|
90
|
+
- **Step 3**: Integration Test (Start the server and `curl` or use `httpx`)
|
|
91
|
+
|
|
92
|
+
### Phase: Implement (/40-Implement)
|
|
93
|
+
- Proceed with subtasks sequentially and update `implement.md` as the primary progress record.
|
|
94
|
+
- When producing a new Endpoint, consistently generate the corresponding Pydantic Schema and Test simultaneously.
|
|
95
|
+
|
|
96
|
+
### Phase: Verify (/50-Verify)
|
|
97
|
+
- Execute all commands outlined in the `Validation Loop`.
|
|
98
|
+
- Should an Error emerge, the AI must diagnose and rectify it promptly (Fix-Forward).
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## ๐งช Testing & Validation
|
|
103
|
+
- **Framework**: Utilize `pytest` alongside `pytest-asyncio`.
|
|
104
|
+
- **Mocking**: Adopt `unittest.mock` or `pytest-mock` for External services.
|
|
105
|
+
- **Async Client**: Use `httpx.AsyncClient` to dispatch Requests to FastAPI.
|
|
106
|
+
- **Evidence**: Document passed outcomes in `verify.md` as the primary verification record.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## โก Quick Reference: Common Gotchas
|
|
111
|
+
- **Pydantic v2**: Employ `model_dump()` instead of `dict()` and `model_validate()` rather than `from_orm()`.
|
|
112
|
+
- **SQLAlchemy Async**: Necessitates the `postgresql+asyncpg://` schema and requires `await session.commit()`.
|
|
113
|
+
- **FastAPI Middleware**: Be cautious regarding the insertion sequence of Middleware (CORS should commonly be near the end or customized based on Auth requirements).
|
|
114
|
+
- **Token Efficiency**: Should a file grow excessively long, propose Module Splitting as early as the Planning phase.
|