@polymorphism-tech/morph-spec 4.3.3 → 4.3.4
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/.morph/analytics/threads-log.jsonl +9 -0
- package/{stacks/blazor-azure/.morph → .morph}/config/config.json +9 -9
- package/.morph/state.json +48 -0
- package/bin/detect-agents.js +1 -2
- package/bin/morph-spec.js +2 -15
- package/{stacks/blazor-azure/.morph/config → framework}/agents.json +948 -948
- package/{stacks/nextjs-supabase/.claude → framework}/commands/morph-infra.md +1 -1
- package/framework/hooks/README.md +282 -0
- package/framework/hooks/agent-stop/validate-and-continue.js +96 -0
- package/framework/hooks/agent-stop/validate-checkpoints.js +101 -0
- package/framework/hooks/agent-stop/validate-tests.js +109 -0
- package/framework/hooks/agent-teams/dispatch.js +67 -0
- package/framework/hooks/agent-teams/phase-advanced.js +80 -0
- package/framework/hooks/agent-teams/task-completed.js +76 -0
- package/framework/hooks/agent-teams/teammate-idle.js +70 -0
- package/framework/hooks/commit-msg/conventional-commits.sh +33 -0
- package/framework/hooks/pre-commit/agents.sh +25 -0
- package/framework/hooks/pre-commit/orchestrator.sh +64 -0
- package/framework/hooks/pre-commit/specs.sh +50 -0
- package/framework/hooks/pre-push/run-tests.sh +44 -0
- package/framework/index/troubleshooting-index.json +184 -0
- package/framework/memory/patterns-learned.md +766 -0
- package/framework/skills/level-0-meta/README.md +7 -0
- package/framework/skills/level-0-meta/code-review.md +226 -0
- package/framework/skills/level-0-meta/morph-checklist.md +117 -0
- package/framework/skills/level-0-meta/simulation-checklist.md +77 -0
- package/framework/skills/level-1-workflows/README.md +7 -0
- package/framework/skills/level-1-workflows/morph-replicate.md +213 -0
- package/framework/skills/level-1-workflows/phase-clarify.md +131 -0
- package/framework/skills/level-1-workflows/phase-design.md +213 -0
- package/framework/skills/level-1-workflows/phase-setup.md +106 -0
- package/framework/skills/level-1-workflows/phase-tasks.md +164 -0
- package/framework/skills/level-1-workflows/phase-uiux.md +169 -0
- package/framework/skills/level-2-domains/README.md +14 -0
- package/framework/skills/level-2-domains/ai-agents/ai-system-architect.md +192 -0
- package/framework/skills/level-2-domains/architecture/po-pm-advisor.md +197 -0
- package/framework/skills/level-2-domains/architecture/prompt-engineer.md +189 -0
- package/framework/skills/level-2-domains/architecture/seo-growth-hacker.md +320 -0
- package/framework/skills/level-2-domains/architecture/standards-architect.md +156 -0
- package/framework/skills/level-2-domains/backend/api-designer.md +59 -0
- package/framework/skills/level-2-domains/backend/dotnet-senior.md +77 -0
- package/framework/skills/level-2-domains/backend/ef-modeler.md +58 -0
- package/framework/skills/level-2-domains/backend/hangfire-orchestrator.md +126 -0
- package/framework/skills/level-2-domains/backend/ms-agent-expert.md +45 -0
- package/framework/skills/level-2-domains/frontend/blazor-builder.md +210 -0
- package/framework/skills/level-2-domains/frontend/nextjs-expert.md +154 -0
- package/framework/skills/level-2-domains/frontend/ui-ux-designer.md +191 -0
- package/framework/skills/level-2-domains/infrastructure/azure-architect.md +142 -0
- package/framework/skills/level-2-domains/infrastructure/azure-deploy-specialist.md +699 -0
- package/framework/skills/level-2-domains/infrastructure/bicep-architect.md +126 -0
- package/framework/skills/level-2-domains/infrastructure/container-specialist.md +131 -0
- package/framework/skills/level-2-domains/infrastructure/devops-engineer.md +119 -0
- package/framework/skills/level-2-domains/integrations/asaas-financial.md +130 -0
- package/framework/skills/level-2-domains/integrations/azure-identity.md +142 -0
- package/framework/skills/level-2-domains/integrations/clerk-auth.md +108 -0
- package/framework/skills/level-2-domains/integrations/hangfire-orchestrator.md +64 -0
- package/framework/skills/level-2-domains/integrations/resend-email.md +119 -0
- package/framework/skills/level-2-domains/quality/code-analyzer.md +235 -0
- package/framework/skills/level-2-domains/quality/testing-specialist.md +126 -0
- package/framework/skills/level-3-technologies/README.md +7 -0
- package/framework/skills/level-4-patterns/README.md +7 -0
- package/framework/squad-templates/backend-only.json +34 -0
- package/framework/squad-templates/frontend-only.json +34 -0
- package/framework/squad-templates/full-stack.json +52 -0
- package/framework/templates/.idea/morph-templates.xml +92 -0
- package/framework/templates/.vscode/morph-templates.code-snippets +186 -0
- package/framework/templates/IDE-SNIPPETS.md +266 -0
- package/framework/templates/README.md +814 -0
- package/framework/templates/REGISTRY.json +1677 -0
- package/framework/templates/code/dotnet/backend/repository.cs +141 -0
- package/framework/templates/code/dotnet/backend/service.cs +139 -0
- package/framework/templates/code/dotnet/contracts/Commands.cs +74 -0
- package/framework/templates/code/dotnet/contracts/Entities.cs +25 -0
- package/framework/templates/code/dotnet/contracts/Queries.cs +74 -0
- package/framework/templates/code/dotnet/contracts/README.md +74 -0
- package/framework/templates/code/dotnet/contracts/api-contracts.cs +173 -0
- package/framework/templates/code/dotnet/contracts/contracts.cs +217 -0
- package/framework/templates/code/dotnet/database/migration.cs +83 -0
- package/framework/templates/code/dotnet/frontend/component.razor +239 -0
- package/framework/templates/code/dotnet/jobs/agent.cs +163 -0
- package/framework/templates/code/dotnet/jobs/job.cs +171 -0
- package/framework/templates/code/dotnet/test.cs +239 -0
- package/framework/templates/code/sql/rls-policy.sql +57 -0
- package/framework/templates/code/sql/supabase-migration.sql +100 -0
- package/framework/templates/code/sql/supabase-migration.template.sql +113 -0
- package/framework/templates/code/typescript/contracts.ts +168 -0
- package/framework/templates/context/CONTEXT-FEATURE.md +276 -0
- package/framework/templates/context/CONTEXT.md +181 -0
- package/framework/templates/docs/proposal.md +182 -0
- package/framework/templates/docs/spec.md +149 -0
- package/framework/templates/examples/design-system-examples.md +357 -0
- package/framework/templates/examples/spec-examples.md +90 -0
- package/framework/templates/feature/decisions.md +187 -0
- package/framework/templates/feature/recap.md +146 -0
- package/framework/templates/feature/tasks.md +199 -0
- package/framework/templates/infrastructure/azure/Dockerfile.example +82 -0
- package/framework/templates/infrastructure/azure/README.md +286 -0
- package/framework/templates/infrastructure/azure/app-insights.bicep +63 -0
- package/framework/templates/infrastructure/azure/app-service.bicep +164 -0
- package/framework/templates/infrastructure/azure/container-app-env.bicep +49 -0
- package/framework/templates/infrastructure/azure/container-app.bicep +156 -0
- package/framework/templates/infrastructure/azure/deploy-checklist.md +426 -0
- package/framework/templates/infrastructure/azure/deploy.ps1 +229 -0
- package/framework/templates/infrastructure/azure/deploy.sh +208 -0
- package/framework/templates/infrastructure/azure/key-vault.bicep +91 -0
- package/framework/templates/infrastructure/azure/main.bicep +189 -0
- package/framework/templates/infrastructure/azure/parameters.dev.json +29 -0
- package/framework/templates/infrastructure/azure/parameters.prod.json +29 -0
- package/framework/templates/infrastructure/azure/parameters.staging.json +29 -0
- package/framework/templates/infrastructure/azure/sql-database.bicep +103 -0
- package/framework/templates/infrastructure/azure/storage.bicep +106 -0
- package/framework/templates/infrastructure/docker/Dockerfile.template +58 -0
- package/framework/templates/infrastructure/docker/docker-compose.template.yml +67 -0
- package/framework/templates/infrastructure/docker/dockerfile-api.dockerfile +38 -0
- package/framework/templates/infrastructure/docker/dockerfile-web.dockerfile +48 -0
- package/framework/templates/infrastructure/docker/easypanel.template.json +54 -0
- package/framework/templates/infrastructure/github/README.md +593 -0
- package/framework/templates/infrastructure/github/actions/azure-auth/action.yml.hbs +22 -0
- package/framework/templates/infrastructure/github/actions/docker-build-push/action.yml.hbs +45 -0
- package/framework/templates/infrastructure/github/actions/health-check/action.yml.hbs +27 -0
- package/framework/templates/infrastructure/github/workflows/deploy-azure-app-service.yml.hbs +61 -0
- package/framework/templates/infrastructure/github/workflows/deploy-easypanel.yml.hbs +31 -0
- package/framework/templates/infrastructure/github/workflows/docker-build-push.yml.hbs +59 -0
- package/framework/templates/infrastructure/github/workflows/dotnet-build.yml.hbs +39 -0
- package/framework/templates/integrations/asaas-client.cs +387 -0
- package/framework/templates/integrations/asaas-webhook.cs +351 -0
- package/framework/templates/integrations/azure-identity-config.cs +288 -0
- package/framework/templates/integrations/clerk-config.cs +258 -0
- package/framework/templates/meta-prompts/fusion/fusion-agent.md +76 -0
- package/framework/templates/meta-prompts/fusion/fusion-aggregator.md +100 -0
- package/framework/templates/meta-prompts/hops/hop-retry.md +78 -0
- package/framework/templates/meta-prompts/hops/hop-validation.md +97 -0
- package/framework/templates/meta-prompts/hops/hop-wrapper.md +36 -0
- package/framework/templates/meta-prompts/parallel-workers/parallel-coordinator.md +113 -0
- package/framework/templates/meta-prompts/parallel-workers/parallel-worker.md +80 -0
- package/framework/templates/meta-prompts/squad-leaders/backend-squad.md +90 -0
- package/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +126 -0
- package/framework/templates/meta-prompts/squad-leaders/squad-leader.md +43 -0
- package/framework/templates/meta-prompts/validators/checkpoint-validator.md +107 -0
- package/framework/templates/meta-prompts/validators/pre-commit-validator.md +95 -0
- package/framework/templates/saas/subscription.cs +347 -0
- package/framework/templates/saas/tenant.cs +338 -0
- package/framework/templates/state.template.json +17 -0
- package/framework/templates/ui/FluentDesignTheme.cs +149 -0
- package/framework/templates/ui/MudTheme.cs +281 -0
- package/framework/templates/ui/design-system.css +226 -0
- package/framework/workflows/README.md +1041 -0
- package/framework/workflows/configs/design-impl.json +49 -0
- package/framework/workflows/configs/fast-track.json +42 -0
- package/framework/workflows/configs/full-morph.json +79 -0
- package/framework/workflows/configs/fusion.json +39 -0
- package/framework/workflows/configs/long-running.json +33 -0
- package/framework/workflows/configs/standard.json +60 -0
- package/framework/workflows/configs/ui-refresh.json +49 -0
- package/framework/workflows/configs/zero-touch.json +75 -0
- package/framework/workflows/docs/STORY-DRIVEN-DEVELOPMENT.md +392 -0
- package/framework/workflows/docs/design-impl.md +37 -0
- package/framework/workflows/docs/enforcement-pipeline.md +668 -0
- package/framework/workflows/docs/fast-track.md +29 -0
- package/framework/workflows/docs/full-morph.md +76 -0
- package/framework/workflows/docs/standard.md +44 -0
- package/framework/workflows/docs/ui-refresh.md +39 -0
- package/package.json +3 -3
- package/src/commands/feature/create-story.js +11 -7
- package/src/commands/project/detect-agents.js +1 -2
- package/src/commands/project/init.js +69 -32
- package/src/commands/project/update.js +2 -2
- package/src/commands/templates/template-customize.js +3 -17
- package/src/commands/templates/template-list.js +1 -15
- package/src/commands/templates/template-render.js +2 -3
- package/src/commands/templates/template-show.js +3 -5
- package/src/core/templates/template-registry.js +9 -23
- package/src/lib/detectors/structure-detector.js +3 -3
- package/src/lib/generators/context-generator.js +18 -6
- package/src/lib/hooks/hook-executor.js +0 -2
- package/src/lib/orchestration/team-orchestrator.js +1 -2
- package/src/lib/standards/standards-context-injector.js +3 -4
- package/src/lib/troubleshooting/troubleshoot-grep.js +3 -9
- package/src/lib/validators/validation-runner.js +1 -2
- package/src/utils/file-copier.js +1 -2
- package/docs/README.md +0 -144
- package/docs/api/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -978
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -1049
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/api/scripts/collapse.js +0 -39
- package/docs/api/scripts/commonNav.js +0 -28
- package/docs/api/scripts/linenumber.js +0 -25
- package/docs/api/scripts/nav.js +0 -12
- package/docs/api/scripts/polyfill.js +0 -4
- package/docs/api/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/api/scripts/prettify/lang-css.js +0 -2
- package/docs/api/scripts/prettify/prettify.js +0 -28
- package/docs/api/scripts/search.js +0 -99
- package/docs/api/styles/jsdoc.css +0 -776
- package/docs/api/styles/prettify.css +0 -80
- package/docs/cli-auto-detection.md +0 -219
- package/docs/getting-started.md +0 -296
- package/docs/installation.md +0 -361
- package/docs/next-generation/AGENTS.md +0 -521
- package/docs/next-generation/ANALYSIS.md +0 -555
- package/docs/next-generation/ARCHITECTURE.md +0 -436
- package/docs/next-generation/CONTEXT-OPTIMIZATION.md +0 -267
- package/docs/next-generation/EXECUTION-FLOW.md +0 -274
- package/docs/next-generation/FEATURES.md +0 -688
- package/docs/next-generation/META-PROMPTS.md +0 -235
- package/docs/next-generation/MIGRATION-GUIDE.md +0 -253
- package/docs/next-generation/README.md +0 -231
- package/docs/next-generation/ROADMAP.md +0 -801
- package/docs/next-generation/THREAD-MANAGEMENT.md +0 -240
- package/docs/templates.md +0 -418
- package/docs/troubleshooting.md +0 -269
- package/docs/validation-checklist.md +0 -264
- package/scripts/postinstall.js +0 -132
- package/src/lib/stacks/index.js +0 -7
- package/src/lib/stacks/stack-resolver.js +0 -180
- package/stacks/blazor-azure/.claude/commands/morph-deploy.md +0 -529
- package/stacks/blazor-azure/.claude/commands/morph-infra.md +0 -209
- package/stacks/blazor-azure/.morph/.morphversion +0 -5
- package/stacks/blazor-azure/.morph/project/context/README.md +0 -17
- package/stacks/blazor-azure/CLAUDE.md +0 -155
- package/stacks/blazor-azure/README.md +0 -79
- package/stacks/nextjs-supabase/.claude/commands/morph-apply.md +0 -221
- package/stacks/nextjs-supabase/.claude/commands/morph-archive.md +0 -79
- package/stacks/nextjs-supabase/.claude/commands/morph-deploy.md +0 -529
- package/stacks/nextjs-supabase/.claude/commands/morph-preflight.md +0 -227
- package/stacks/nextjs-supabase/.claude/commands/morph-proposal.md +0 -122
- package/stacks/nextjs-supabase/.claude/commands/morph-status.md +0 -86
- package/stacks/nextjs-supabase/.claude/commands/morph-troubleshoot.md +0 -122
- package/stacks/nextjs-supabase/.morph/.morphversion +0 -5
- package/stacks/nextjs-supabase/.morph/config/agents.json +0 -345
- package/stacks/nextjs-supabase/.morph/config/config.json +0 -9
- package/stacks/nextjs-supabase/.morph/project/context/README.md +0 -17
- package/stacks/nextjs-supabase/.morph/standards/ai-agents/blazor-ui.md +0 -364
- package/stacks/nextjs-supabase/.morph/standards/ai-agents/production.md +0 -415
- package/stacks/nextjs-supabase/.morph/standards/ai-agents/setup.md +0 -418
- package/stacks/nextjs-supabase/.morph/standards/ai-agents/team-orchestration.md +0 -479
- package/stacks/nextjs-supabase/.morph/standards/ai-agents/workflows.md +0 -354
- package/stacks/nextjs-supabase/.morph/standards/architecture/ddd/aggregates.md +0 -120
- package/stacks/nextjs-supabase/.morph/standards/architecture/ddd/entities.md +0 -99
- package/stacks/nextjs-supabase/.morph/standards/architecture/ddd/value-objects.md +0 -124
- package/stacks/nextjs-supabase/.morph/standards/backend/api/minimal-api.md +0 -494
- package/stacks/nextjs-supabase/.morph/standards/backend/api/rest.md +0 -492
- package/stacks/nextjs-supabase/.morph/standards/backend/api/validation.md +0 -88
- package/stacks/nextjs-supabase/.morph/standards/backend/authentication/passkeys.md +0 -428
- package/stacks/nextjs-supabase/.morph/standards/backend/database/ef-core.md +0 -199
- package/stacks/nextjs-supabase/.morph/standards/backend/database/migrations.md +0 -393
- package/stacks/nextjs-supabase/.morph/standards/backend/database/postgresql/database.md +0 -352
- package/stacks/nextjs-supabase/.morph/standards/backend/database/repository-patterns.md +0 -528
- package/stacks/nextjs-supabase/.morph/standards/backend/database/vector-search-rag.md +0 -541
- package/stacks/nextjs-supabase/.morph/standards/backend/dotnet/async.md +0 -366
- package/stacks/nextjs-supabase/.morph/standards/backend/dotnet/core.md +0 -117
- package/stacks/nextjs-supabase/.morph/standards/backend/dotnet/di.md +0 -439
- package/stacks/nextjs-supabase/.morph/standards/backend/dotnet/program-cs-checklist.md +0 -92
- package/stacks/nextjs-supabase/.morph/standards/backend/integrations/asaas/asaas-api.md +0 -216
- package/stacks/nextjs-supabase/.morph/standards/backend/integrations/clerk/clerk-auth.md +0 -290
- package/stacks/nextjs-supabase/.morph/standards/backend/integrations/hangfire/hangfire-jobs.md +0 -350
- package/stacks/nextjs-supabase/.morph/standards/backend/integrations/resend/resend-email.md +0 -385
- package/stacks/nextjs-supabase/.morph/standards/context/analytics.md +0 -96
- package/stacks/nextjs-supabase/.morph/standards/context/bundles.md +0 -110
- package/stacks/nextjs-supabase/.morph/standards/context/priming.md +0 -78
- package/stacks/nextjs-supabase/.morph/standards/core/architecture.md +0 -185
- package/stacks/nextjs-supabase/.morph/standards/core/coding.md +0 -214
- package/stacks/nextjs-supabase/.morph/standards/core/git-branching-strategy.md +0 -403
- package/stacks/nextjs-supabase/.morph/standards/core/git.md +0 -185
- package/stacks/nextjs-supabase/.morph/standards/core/testing.md +0 -295
- package/stacks/nextjs-supabase/.morph/standards/data/nosql/blob-storage.md +0 -102
- package/stacks/nextjs-supabase/.morph/standards/data/nosql/cache/redis.md +0 -97
- package/stacks/nextjs-supabase/.morph/standards/data/nosql/cosmos-db.md +0 -118
- package/stacks/nextjs-supabase/.morph/standards/data/vector-search/azure-ai-search.md +0 -121
- package/stacks/nextjs-supabase/.morph/standards/data/vector-search/rag-chunking.md +0 -104
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/design-checklist.md +0 -222
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/fluent-ui-setup.md +0 -595
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/fluent-ui.md +0 -137
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/html-conversion.md +0 -184
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/lifecycle.md +0 -195
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/pitfalls.md +0 -198
- package/stacks/nextjs-supabase/.morph/standards/frontend/blazor/state.md +0 -191
- package/stacks/nextjs-supabase/.morph/standards/frontend/design-system/animations.md +0 -151
- package/stacks/nextjs-supabase/.morph/standards/frontend/design-system/naming.md +0 -64
- package/stacks/nextjs-supabase/.morph/standards/frontend/nextjs/nextjs-patterns.md +0 -198
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/azure.md +0 -624
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/bicep/bicep-patterns.md +0 -422
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/devops/azure-devops-setup.md +0 -516
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/devops/local-development.md +0 -520
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/services/functions.md +0 -486
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/services/service-bus.md +0 -459
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/azure/services/storage.md +0 -407
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/docker/easypanel-deploy.md +0 -196
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/supabase/mcp-setup.md +0 -252
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/supabase/supabase-auth.md +0 -176
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/supabase/supabase-pgvector.md +0 -169
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/supabase/supabase-rls.md +0 -184
- package/stacks/nextjs-supabase/.morph/standards/infrastructure/supabase/supabase-storage.md +0 -153
- package/stacks/nextjs-supabase/.morph/standards/integration/api/graphql.md +0 -91
- package/stacks/nextjs-supabase/.morph/standards/integration/api/grpc.md +0 -114
- package/stacks/nextjs-supabase/.morph/standards/integration/api/rest-design.md +0 -95
- package/stacks/nextjs-supabase/.morph/standards/integration/event-driven/cqrs.md +0 -101
- package/stacks/nextjs-supabase/.morph/standards/integration/event-driven/event-sourcing.md +0 -124
- package/stacks/nextjs-supabase/.morph/standards/integration/event-driven/service-bus.md +0 -95
- package/stacks/nextjs-supabase/.morph/standards/observability/logging.md +0 -131
- package/stacks/nextjs-supabase/.morph/standards/observability/metrics.md +0 -121
- package/stacks/nextjs-supabase/.morph/standards/observability/monitoring.md +0 -114
- package/stacks/nextjs-supabase/.morph/standards/observability/tracing.md +0 -132
- package/stacks/nextjs-supabase/.morph/standards/workflows/parallel-execution.md +0 -112
- package/stacks/nextjs-supabase/.morph/standards/workflows/thread-management.md +0 -113
- package/stacks/nextjs-supabase/CLAUDE.md +0 -155
- package/stacks/nextjs-supabase/README.md +0 -103
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-apply.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-archive.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-preflight.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-proposal.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-status.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-troubleshoot.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/ai-agents/blazor-ui.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/ai-agents/production.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/ai-agents/setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/ai-agents/team-orchestration.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/ai-agents/workflows.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/architecture/ddd/aggregates.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/architecture/ddd/entities.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/architecture/ddd/value-objects.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/api/minimal-api.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/api/rest.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/api/validation.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/authentication/passkeys.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/database/ef-core.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/database/migrations.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/database/postgresql/database.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/database/repository-patterns.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/database/vector-search-rag.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/dotnet/async.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/dotnet/core.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/dotnet/di.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/dotnet/program-cs-checklist.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/integrations/asaas/asaas-api.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/integrations/clerk/clerk-auth.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/integrations/hangfire/hangfire-jobs.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/backend/integrations/resend/resend-email.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/context/analytics.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/context/bundles.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/context/priming.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/core/architecture.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/core/coding.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/core/git-branching-strategy.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/core/git.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/core/testing.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/data/nosql/blob-storage.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/data/nosql/cache/redis.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/data/nosql/cosmos-db.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/data/vector-search/azure-ai-search.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/data/vector-search/rag-chunking.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/design-checklist.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/fluent-ui-setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/fluent-ui.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/html-conversion.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/lifecycle.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/pitfalls.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/blazor/state.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/design-system/animations.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/design-system/naming.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/frontend/nextjs/nextjs-patterns.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/azure.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/bicep/bicep-patterns.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/devops/azure-devops-setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/devops/local-development.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/services/functions.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/services/service-bus.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/azure/services/storage.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/docker/easypanel-deploy.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/supabase/mcp-setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/supabase/supabase-auth.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/supabase/supabase-pgvector.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/supabase/supabase-rls.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/infrastructure/supabase/supabase-storage.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/integration/api/graphql.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/integration/api/grpc.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/integration/api/rest-design.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/integration/event-driven/cqrs.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/integration/event-driven/event-sourcing.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/integration/event-driven/service-bus.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/observability/logging.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/observability/metrics.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/observability/monitoring.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/observability/tracing.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/workflows/parallel-execution.md +0 -0
- /package/{stacks/blazor-azure/.morph → framework}/standards/workflows/thread-management.md +0 -0
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
# /morph-infra - Infrastructure Management
|
|
2
|
-
|
|
3
|
-
Gerencia infraestrutura Azure usando Bicep templates.
|
|
4
|
-
|
|
5
|
-
## Uso
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/morph-infra [action] [options]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Actions
|
|
12
|
-
|
|
13
|
-
| Action | Descrição |
|
|
14
|
-
|--------|-----------|
|
|
15
|
-
| `init` | Inicializa estrutura IaC no projeto |
|
|
16
|
-
| `validate` | Valida templates Bicep |
|
|
17
|
-
| `plan` | Mostra what-if de mudanças |
|
|
18
|
-
| `deploy` | Executa deploy dos recursos |
|
|
19
|
-
| `destroy` | Remove todos os recursos |
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Workflow
|
|
24
|
-
|
|
25
|
-
### 1. INIT - Inicializar IaC
|
|
26
|
-
|
|
27
|
-
Quando o usuário solicitar `/morph-infra init`:
|
|
28
|
-
|
|
29
|
-
1. Criar estrutura `infra/` no projeto:
|
|
30
|
-
```
|
|
31
|
-
infra/
|
|
32
|
-
├── main.bicep
|
|
33
|
-
├── parameters.dev.json
|
|
34
|
-
├── parameters.prod.json
|
|
35
|
-
└── modules/
|
|
36
|
-
├── container-app.bicep
|
|
37
|
-
├── container-app-env.bicep
|
|
38
|
-
├── sql-database.bicep
|
|
39
|
-
├── storage.bicep
|
|
40
|
-
├── key-vault.bicep
|
|
41
|
-
└── app-insights.bicep
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
2. Copiar templates de `.morph/templates/infra/`
|
|
45
|
-
|
|
46
|
-
3. Substituir placeholders:
|
|
47
|
-
- `{{APP_NAME}}` → nome do projeto
|
|
48
|
-
- `{{SUBSCRIPTION_ID}}` → solicitar ao usuário
|
|
49
|
-
- `{{RESOURCE_GROUP}}` → sugerir padrão `rg-{app}-{env}`
|
|
50
|
-
|
|
51
|
-
4. Documentar no `decisions.md` a estrutura criada
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
### 2. VALIDATE - Validar Templates
|
|
56
|
-
|
|
57
|
-
Quando o usuário solicitar `/morph-infra validate`:
|
|
58
|
-
|
|
59
|
-
1. Executar validação Bicep:
|
|
60
|
-
```bash
|
|
61
|
-
az bicep build --file infra/main.bicep
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
2. Verificar parâmetros necessários
|
|
65
|
-
|
|
66
|
-
3. Reportar erros ou sucesso
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
### 3. PLAN - Preview de Mudanças
|
|
71
|
-
|
|
72
|
-
Quando o usuário solicitar `/morph-infra plan [env]`:
|
|
73
|
-
|
|
74
|
-
1. Verificar se Azure CLI está autenticado:
|
|
75
|
-
```bash
|
|
76
|
-
az account show
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
2. Executar what-if:
|
|
80
|
-
```bash
|
|
81
|
-
az deployment group what-if \
|
|
82
|
-
--resource-group rg-{app}-{env} \
|
|
83
|
-
--template-file infra/main.bicep \
|
|
84
|
-
--parameters @infra/parameters.{env}.json
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
3. Apresentar resumo de mudanças:
|
|
88
|
-
- Recursos a criar
|
|
89
|
-
- Recursos a modificar
|
|
90
|
-
- Recursos a deletar
|
|
91
|
-
- Custos estimados
|
|
92
|
-
|
|
93
|
-
4. ⛔ **PARE e aguarde aprovação** para deploy
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
### 4. DEPLOY - Executar Deploy
|
|
98
|
-
|
|
99
|
-
Quando o usuário solicitar `/morph-infra deploy [env]`:
|
|
100
|
-
|
|
101
|
-
1. Verificar aprovação do plan
|
|
102
|
-
|
|
103
|
-
2. Criar resource group se não existir:
|
|
104
|
-
```bash
|
|
105
|
-
az group create --name rg-{app}-{env} --location brazilsouth
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
3. Executar deploy:
|
|
109
|
-
```bash
|
|
110
|
-
az deployment group create \
|
|
111
|
-
--resource-group rg-{app}-{env} \
|
|
112
|
-
--template-file infra/main.bicep \
|
|
113
|
-
--parameters @infra/parameters.{env}.json
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
4. Capturar outputs:
|
|
117
|
-
- Container App URL
|
|
118
|
-
- SQL Connection String
|
|
119
|
-
- Key Vault URI
|
|
120
|
-
|
|
121
|
-
5. Atualizar documentação com informações do deploy
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
### 5. DESTROY - Remover Recursos
|
|
126
|
-
|
|
127
|
-
Quando o usuário solicitar `/morph-infra destroy [env]`:
|
|
128
|
-
|
|
129
|
-
1. ⚠️ **ALERTAR** que esta ação é irreversível
|
|
130
|
-
|
|
131
|
-
2. Listar recursos que serão deletados
|
|
132
|
-
|
|
133
|
-
3. ⛔ **PARE e aguarde confirmação explícita** ("sim, deletar")
|
|
134
|
-
|
|
135
|
-
4. Executar:
|
|
136
|
-
```bash
|
|
137
|
-
az group delete --name rg-{app}-{env} --yes --no-wait
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Regras de Segurança
|
|
143
|
-
|
|
144
|
-
### NUNCA:
|
|
145
|
-
- Expor secrets em logs
|
|
146
|
-
- Commitar arquivos com secrets
|
|
147
|
-
- Deletar recursos de produção sem confirmação explícita
|
|
148
|
-
- Criar recursos fora do Bicep (zero portal)
|
|
149
|
-
|
|
150
|
-
### SEMPRE:
|
|
151
|
-
- Usar Key Vault para secrets
|
|
152
|
-
- Validar Bicep antes de deploy
|
|
153
|
-
- Executar what-if antes de deploy
|
|
154
|
-
- Documentar custos estimados
|
|
155
|
-
- Manter parameters.json separados por ambiente
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## Cost Guardian Integration
|
|
160
|
-
|
|
161
|
-
Antes de qualquer deploy, verificar com Cost Guardian:
|
|
162
|
-
|
|
163
|
-
1. Estimar custos mensais dos recursos
|
|
164
|
-
2. Verificar se está dentro dos limites aprovados:
|
|
165
|
-
- Free tier: sem aprovação
|
|
166
|
-
- Até $10/mês: requer confirmação
|
|
167
|
-
- Acima de $10: requer ADR
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
## Exemplo de Uso
|
|
172
|
-
|
|
173
|
-
```
|
|
174
|
-
Usuário: /morph-infra init
|
|
175
|
-
Claude: Criando estrutura IaC...
|
|
176
|
-
- infra/main.bicep
|
|
177
|
-
- infra/parameters.dev.json
|
|
178
|
-
- infra/modules/*.bicep
|
|
179
|
-
Pronto! Execute /morph-infra validate para verificar.
|
|
180
|
-
|
|
181
|
-
Usuário: /morph-infra plan dev
|
|
182
|
-
Claude: Analisando mudanças para ambiente dev...
|
|
183
|
-
|
|
184
|
-
CRIAR:
|
|
185
|
-
+ Container App Environment
|
|
186
|
-
+ Container App
|
|
187
|
-
+ SQL Server (Free)
|
|
188
|
-
+ Storage Account (LRS)
|
|
189
|
-
+ Key Vault
|
|
190
|
-
+ Application Insights
|
|
191
|
-
|
|
192
|
-
CUSTO ESTIMADO: ~$0/mês (Free tier)
|
|
193
|
-
|
|
194
|
-
Aprovar deploy? (sim/não)
|
|
195
|
-
|
|
196
|
-
Usuário: sim
|
|
197
|
-
Claude: Executando deploy...
|
|
198
|
-
✓ Resource Group criado
|
|
199
|
-
✓ Deploy concluído em 3m 45s
|
|
200
|
-
|
|
201
|
-
OUTPUTS:
|
|
202
|
-
- URL: https://myapp-dev.azurecontainerapps.io
|
|
203
|
-
- SQL: tcp:myapp-dev-sql.database.windows.net
|
|
204
|
-
- Key Vault: https://myapp-dev-kv.vault.azure.net
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
*MORPH-SPEC by Polymorphism Tech*
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# blazor-azure - Project Context
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
This file will be auto-updated by MORPH-SPEC detection system.
|
|
6
|
-
|
|
7
|
-
## Stack
|
|
8
|
-
|
|
9
|
-
Run `morph-spec detect` to analyze your project.
|
|
10
|
-
|
|
11
|
-
## Technologies
|
|
12
|
-
|
|
13
|
-
(To be detected)
|
|
14
|
-
|
|
15
|
-
## Architecture
|
|
16
|
-
|
|
17
|
-
(To be detected)
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
# MORPH-SPEC - Claude Code Instructions
|
|
2
|
-
|
|
3
|
-
> by Polymorphism Tech
|
|
4
|
-
|
|
5
|
-
Spec-driven development system. Specialized agent hub for multi-stack projects with Infrastructure as Code.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## CRITICAL RULES
|
|
10
|
-
|
|
11
|
-
### NEVER:
|
|
12
|
-
- Skip to code without a specification
|
|
13
|
-
- Implement without design approval
|
|
14
|
-
- Ignore standards in `.morph/standards/`
|
|
15
|
-
- Create infrastructure manually
|
|
16
|
-
- Generate code without defined contracts
|
|
17
|
-
|
|
18
|
-
### ALWAYS:
|
|
19
|
-
- Follow the 5 mandatory phases
|
|
20
|
-
- Generate outputs in `.morph/project/outputs/{feature}/`
|
|
21
|
-
- Document decisions in `decisions.md`
|
|
22
|
-
- Checkpoint every 3 implemented tasks
|
|
23
|
-
- Use Infrastructure as Code
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## WORKFLOW (5 Phases)
|
|
28
|
-
|
|
29
|
-
| Phase | Trigger | Actions | Output | Pause? |
|
|
30
|
-
|-------|---------|---------|--------|--------|
|
|
31
|
-
| **1. SETUP** | Feature request | Read project context, identify stack, activate agents, create folder | proposal.md | No |
|
|
32
|
-
| **2. DESIGN** | Setup done | Spec + contracts + decisions + costs | spec.md, contracts, decisions.md | **Yes** |
|
|
33
|
-
| **3. CLARIFY** | Design approved | Ambiguities, questions, edge cases | Updated spec | No |
|
|
34
|
-
| **4. TASKS** | Clarifications resolved | Break into tasks, ordering, checkpoints, dependencies | tasks.md | **Yes** |
|
|
35
|
-
| **5. IMPLEMENT** | Tasks approved | Task by task, checkpoint every 3, recap | Code + recap.md | No |
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## PROJECT STRUCTURE
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
project/
|
|
43
|
-
├── CLAUDE.md
|
|
44
|
-
├── .morph/
|
|
45
|
-
│ ├── config/ # config.json, agents.json
|
|
46
|
-
│ ├── standards/ # coding, architecture, stack-specific
|
|
47
|
-
│ ├── templates/ # Output templates
|
|
48
|
-
│ ├── project/
|
|
49
|
-
│ │ ├── context/ # detection-log.md, project.md
|
|
50
|
-
│ │ ├── standards/ # inferred.md, overrides.md
|
|
51
|
-
│ │ └── outputs/{feature}/ # Features in development
|
|
52
|
-
│ │ ├── proposal.md, spec.md, tasks.md
|
|
53
|
-
│ │ ├── contracts, decisions.md, recap.md
|
|
54
|
-
└── .claude/commands/ # Slash commands
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## AGENTS
|
|
60
|
-
|
|
61
|
-
### Tier 1 — Orchestrators (Always Active)
|
|
62
|
-
|
|
63
|
-
| Agent | Responsibilities |
|
|
64
|
-
|-------|-----------------|
|
|
65
|
-
| **Standards Architect** | Standards, naming, review, cross-cutting concerns |
|
|
66
|
-
| **AI System Architect** | Agent systems, AI integrations, LLM orchestration |
|
|
67
|
-
| **Thread Orchestrator** | Parallel execution, thread management, context optimization |
|
|
68
|
-
|
|
69
|
-
### Tier 2 — Domain Leaders
|
|
70
|
-
|
|
71
|
-
| Agent | Responsibilities |
|
|
72
|
-
|-------|-----------------|
|
|
73
|
-
| **Tech Lead** | Architecture decisions, code quality, task breakdown |
|
|
74
|
-
| **DevOps Engineer** | CI/CD, deployment pipelines, infrastructure |
|
|
75
|
-
| **QA Lead** | Test strategies, validation, quality gates |
|
|
76
|
-
|
|
77
|
-
### Tier 3 — Specialists (Activated by keywords)
|
|
78
|
-
|
|
79
|
-
| Agent | Keywords |
|
|
80
|
-
|-------|---------|
|
|
81
|
-
| **Next.js Expert** | nextjs, react, frontend, app router, pages |
|
|
82
|
-
| **Blazor Builder** | blazor, razor, mudblazor, fluent ui |
|
|
83
|
-
| **API Designer** | api, endpoint, rest, openapi, swagger |
|
|
84
|
-
| **.NET Senior** | dotnet, csharp, minimal api, ef core |
|
|
85
|
-
| **EF Modeler** | entity framework, migrations, dbcontext |
|
|
86
|
-
| **Azure Architect** | azure, container apps, bicep, app service |
|
|
87
|
-
| **Bicep Architect** | bicep, iac, arm template, azure resources |
|
|
88
|
-
| **Azure Deploy Specialist** | deploy, ci/cd, github actions, azure devops |
|
|
89
|
-
| **Container Specialist** | docker, dockerfile, compose, kubernetes |
|
|
90
|
-
| **Supabase Expert** | supabase, postgresql, rls, realtime, pgvector |
|
|
91
|
-
| **Azure Identity** | auth, authentication, entra id, jwt, oauth |
|
|
92
|
-
| **Clerk Auth** | clerk, auth0, authentication, social login |
|
|
93
|
-
| **Asaas Financial** | payment, billing, subscription, asaas |
|
|
94
|
-
| **Resend Email** | email, resend, smtp, notifications |
|
|
95
|
-
| **Hangfire Orchestrator** | background jobs, queue, scheduling, hangfire |
|
|
96
|
-
| **MS Agent Expert** | semantic kernel, microsoft agents, ai pipeline |
|
|
97
|
-
| **UI/UX Designer** | design, ux, wireframe, mockup, figma |
|
|
98
|
-
| **SEO Growth Hacker** | seo, performance, analytics, lighthouse |
|
|
99
|
-
| **PO/PM Advisor** | product, roadmap, requirements, user stories |
|
|
100
|
-
| **Prompt Engineer** | prompts, system prompts, llm, few-shot |
|
|
101
|
-
| **Context Optimizer** | context window, token optimization, chunking |
|
|
102
|
-
| **Vector Search Expert** | vector db, embeddings, semantic search, rag |
|
|
103
|
-
| **Observability Expert** | logging, tracing, metrics, opentelemetry |
|
|
104
|
-
| **Code Analyzer** | refactor, analysis, code review, complexity |
|
|
105
|
-
| **Testing Specialist** | tests, coverage, tdd, bdd, vitest, jest, xunit |
|
|
106
|
-
|
|
107
|
-
### Tier 4 — Validators
|
|
108
|
-
|
|
109
|
-
| Agent | Responsibilities |
|
|
110
|
-
|-------|-----------------|
|
|
111
|
-
| **Contract Compliance Validator** | Ensures implementation matches spec contracts |
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## TEMPLATES
|
|
116
|
-
|
|
117
|
-
> ALWAYS use `morph-spec template render` to render. NEVER fill placeholders manually.
|
|
118
|
-
|
|
119
|
-
### Placeholders: `{{PLACEHOLDER}}`
|
|
120
|
-
|
|
121
|
-
| Placeholder | Example |
|
|
122
|
-
|-------------|---------|
|
|
123
|
-
| `{{FEATURE_NAME}}` | `scheduled-reports` |
|
|
124
|
-
| `{{FEATURE_NAME_PASCAL}}` | `ScheduledReports` |
|
|
125
|
-
| `{{FEATURE_NAME_CAMEL}}` | `scheduledReports` |
|
|
126
|
-
| `{{STACK}}` | `blazor-azure` or `nextjs-supabase` |
|
|
127
|
-
| `{{DATE}}`, `{{AUTHOR}}`, `{{NAMESPACE}}` | Auto from config.json |
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
## COMMANDS
|
|
132
|
-
|
|
133
|
-
| Command | Action |
|
|
134
|
-
|---------|--------|
|
|
135
|
-
| `/morph-proposal {feature}` | Full spec pipeline (phases 1-4, auto-continuation with pauses) |
|
|
136
|
-
| `/morph-apply {feature}` | Implement feature (phase 5) |
|
|
137
|
-
| `/morph-status` | Dashboard |
|
|
138
|
-
| `/morph-archive {feature}` | Archive completed feature |
|
|
139
|
-
| `/morph-infra {action}` | Manage infrastructure |
|
|
140
|
-
| `/morph-preflight` | Pre-deploy validation |
|
|
141
|
-
| `/morph-troubleshoot {error}` | Error troubleshooting |
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## REFERENCES
|
|
146
|
-
|
|
147
|
-
- `.morph/config/config.json` — Project configuration
|
|
148
|
-
- `.morph/config/agents.json` — Full agent definitions
|
|
149
|
-
- `.morph/standards/` — Coding, architecture, stack-specific standards
|
|
150
|
-
- `.morph/project/context/` — Detection log, project context
|
|
151
|
-
- `.morph/project/standards/inferred.md` — Auto-detected project standards
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
*MORPH-SPEC v4.3.0 by Polymorphism Tech*
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# MORPH-SPEC Content - Projeto Exemplo
|
|
2
|
-
|
|
3
|
-
Este diretório contém um **projeto exemplo** mostrando como usar o framework MORPH-SPEC em um projeto .NET/Blazor.
|
|
4
|
-
|
|
5
|
-
> 📘 **Nota**: Este não é o código do framework, apenas um exemplo de uso.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 📁 Estrutura
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
content/
|
|
13
|
-
├── .morph/ # Configuração MORPH do projeto exemplo
|
|
14
|
-
│ ├── project/ # Context e outputs do projeto
|
|
15
|
-
│ │ ├── context/
|
|
16
|
-
│ │ ├── standards/
|
|
17
|
-
│ │ └── outputs/
|
|
18
|
-
│ └── config.json # Link para framework global
|
|
19
|
-
│
|
|
20
|
-
├── CLAUDE.md # Instruções para Claude Code
|
|
21
|
-
└── src/ # (futuro) Código exemplo
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 🎯 Objetivo
|
|
27
|
-
|
|
28
|
-
Este exemplo demonstra:
|
|
29
|
-
|
|
30
|
-
1. Como inicializar MORPH em um projeto
|
|
31
|
-
2. Estrutura de `.morph/project/`
|
|
32
|
-
3. Como Claude Code usa o framework
|
|
33
|
-
4. Exemplos de features implementadas com MORPH
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 🚀 Como Usar Este Exemplo
|
|
38
|
-
|
|
39
|
-
### 1. Instalar MORPH globalmente
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npm install -g @polymorphism-tech/morph-spec
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### 2. Ver estrutura detectada
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
cd content/
|
|
49
|
-
morph-spec detect --verbose
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### 3. Inicializar em seu próprio projeto
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
cd seu-projeto/
|
|
56
|
-
morph-spec init
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## 📚 Documentação
|
|
62
|
-
|
|
63
|
-
- **Framework**: Veja `../framework/` para standards e templates
|
|
64
|
-
- **Docs**: Veja `../docs/` para guias completos
|
|
65
|
-
- **CLI**: Execute `morph-spec --help`
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## ⚠️ Importante
|
|
70
|
-
|
|
71
|
-
Este é um **exemplo read-only**. Para criar seu próprio projeto:
|
|
72
|
-
|
|
73
|
-
1. NÃO copie este diretório
|
|
74
|
-
2. Execute `morph-spec init` no seu projeto
|
|
75
|
-
3. O framework será linkado automaticamente
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
*MORPH-SPEC by Polymorphism Tech*
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
# Apply MORPH Feature Implementation - FASE 5
|
|
2
|
-
|
|
3
|
-
Implemente a feature especificada seguindo as tasks definidas.
|
|
4
|
-
|
|
5
|
-
## Uso
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
/morph-apply {feature-name}
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Pré-requisitos
|
|
12
|
-
|
|
13
|
-
### CRÍTICO: Validar Fases Anteriores
|
|
14
|
-
|
|
15
|
-
**SEMPRE verifique que fases anteriores foram concluídas:**
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# Obter estado da feature
|
|
19
|
-
npx morph-spec state get {feature-name}
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**Validações obrigatórias:**
|
|
23
|
-
|
|
24
|
-
1. **FASE 0 (Proposal):**
|
|
25
|
-
- [ ] Output `proposal` criado
|
|
26
|
-
- [ ] Agentes detectados e registrados
|
|
27
|
-
|
|
28
|
-
2. **FASE 1 (Setup):**
|
|
29
|
-
- [ ] Phase passou por "setup"
|
|
30
|
-
- [ ] Contexto carregado
|
|
31
|
-
|
|
32
|
-
3. **FASE 1.5 (UI/UX) - SE APLICÁVEL:**
|
|
33
|
-
- [ ] Se `uiux-designer` está nos activeAgents → outputs ui-* devem existir
|
|
34
|
-
- [ ] Se NÃO tem uiux-designer → pode pular
|
|
35
|
-
|
|
36
|
-
4. **FASE 2 (Design):**
|
|
37
|
-
- [ ] Output `spec` criado
|
|
38
|
-
- [ ] Output `contracts` criado
|
|
39
|
-
- [ ] Output `decisions` criado
|
|
40
|
-
|
|
41
|
-
5. **FASE 3 (Clarify):**
|
|
42
|
-
- [ ] Phase passou por "clarify"
|
|
43
|
-
- [ ] Spec atualizado com clarificações
|
|
44
|
-
|
|
45
|
-
6. **FASE 4 (Tasks):**
|
|
46
|
-
- [ ] Output `tasks` criado
|
|
47
|
-
- [ ] `tasks.json` tem array de tasks
|
|
48
|
-
- [ ] `tasks.total` > 0 no state
|
|
49
|
-
|
|
50
|
-
**Se QUALQUER validação falhar:**
|
|
51
|
-
```
|
|
52
|
-
❌ ERRO: Fase {X} não foi concluída!
|
|
53
|
-
|
|
54
|
-
Para completar as fases de planejamento, execute:
|
|
55
|
-
/morph-proposal {feature-name}
|
|
56
|
-
(Resume automaticamente da fase atual: {current_phase})
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**NÃO prossiga com implementação até todas as fases estarem completas!**
|
|
60
|
-
|
|
61
|
-
### Arquivos Necessários
|
|
62
|
-
|
|
63
|
-
- [ ] Feature existe em `.morph/project/outputs/{feature}/`
|
|
64
|
-
- [ ] `spec.md` está aprovado
|
|
65
|
-
- [ ] `tasks.json` tem tasks definidas
|
|
66
|
-
- [ ] `contracts.cs` define as interfaces
|
|
67
|
-
|
|
68
|
-
## Workflow
|
|
69
|
-
|
|
70
|
-
1. **Carregue o contexto**:
|
|
71
|
-
- Leia `.morph/project/outputs/{feature}/spec.md`
|
|
72
|
-
- Leia `.morph/project/outputs/{feature}/tasks.json`
|
|
73
|
-
- Leia `.morph/project/outputs/{feature}/contracts.cs`
|
|
74
|
-
- Leia framework/standards/ e .morph/project/standards/ para padrões
|
|
75
|
-
|
|
76
|
-
2. **Inicialize state tracking**:
|
|
77
|
-
```bash
|
|
78
|
-
# Atualizar fase para implement
|
|
79
|
-
npx morph-spec state set {feature} phase implement
|
|
80
|
-
npx morph-spec state set {feature} status in_progress
|
|
81
|
-
|
|
82
|
-
# Definir total de tasks (baseado em tasks.json)
|
|
83
|
-
npx morph-spec state set {feature} tasks.total {N}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
3. **Execute tasks em ordem**:
|
|
87
|
-
- Marque task como in progress: `npx morph-spec task start {feature} {task-id}`
|
|
88
|
-
- Implemente seguindo os padrões e contracts.cs
|
|
89
|
-
- Complete task: `npx morph-spec task done {feature} {task-id}`
|
|
90
|
-
- **Validators run automatically** on task-done. If validation fails:
|
|
91
|
-
- Read the error messages and fix violations
|
|
92
|
-
- Re-run `task done` — do NOT use `--skip-validation` unless user authorizes
|
|
93
|
-
- Framework auto-manages checkpoints (every 3 tasks, includes validation summary)
|
|
94
|
-
|
|
95
|
-
4. **Phase advancement**:
|
|
96
|
-
```bash
|
|
97
|
-
# Advance to next phase (validates → advances → shows next steps)
|
|
98
|
-
npx morph-spec phase advance {feature}
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
5. **Marcar outputs criados**:
|
|
102
|
-
Sempre que gerar um arquivo de output:
|
|
103
|
-
```bash
|
|
104
|
-
npx morph-spec state mark-output {feature} spec
|
|
105
|
-
npx morph-spec state mark-output {feature} contracts
|
|
106
|
-
npx morph-spec state mark-output {feature} tasks
|
|
107
|
-
# etc.
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
6. **Ao finalizar**:
|
|
111
|
-
- Generate recap automatically: `npx morph-spec generate recap {feature}`
|
|
112
|
-
- Atualize state: `npx morph-spec state set {feature} status done`
|
|
113
|
-
- Marque recap: `npx morph-spec state mark-output {feature} recap`
|
|
114
|
-
- Liste arquivos criados/modificados
|
|
115
|
-
- Calcule custo real vs estimado
|
|
116
|
-
|
|
117
|
-
## Padrões Obrigatórios
|
|
118
|
-
|
|
119
|
-
Siga sempre (priorize project/standards/ se houver):
|
|
120
|
-
- `framework/standards/coding.md` - Padrões base do MORPH
|
|
121
|
-
- `.morph/project/standards/coding.md` - Padrões específicos do projeto
|
|
122
|
-
- `.morph/project/standards/architecture.md` - Estrutura de projeto
|
|
123
|
-
- `.morph/project/standards/azure.md` - Recursos e custos
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
## Checklist Pré-Deploy Azure
|
|
128
|
-
|
|
129
|
-
**ANTES de fazer deploy para Azure, execute `/morph-preflight azure` ou verifique manualmente:**
|
|
130
|
-
|
|
131
|
-
### Packages e Build
|
|
132
|
-
|
|
133
|
-
- [ ] Packages sem conflitos de versão (`dotnet restore` sem warnings NU1605/NU1608)
|
|
134
|
-
- [ ] `Azure.Identity` especificado explicitamente no `.csproj`
|
|
135
|
-
- [ ] Build passa sem erros (`dotnet build`)
|
|
136
|
-
|
|
137
|
-
### EF Core Migrations
|
|
138
|
-
|
|
139
|
-
- [ ] Sem pending model changes (`dotnet ef migrations has-pending-model-changes`)
|
|
140
|
-
- [ ] Migration criada para todas as mudanças de schema
|
|
141
|
-
- [ ] Migration script revisado (`dotnet ef migrations script --idempotent`)
|
|
142
|
-
|
|
143
|
-
### Blazor .NET 10 (se aplicável)
|
|
144
|
-
|
|
145
|
-
- [ ] `.csproj` contém `<RequiresAspNetWebAssets>true</RequiresAspNetWebAssets>`
|
|
146
|
-
- [ ] Static assets funcionando localmente
|
|
147
|
-
|
|
148
|
-
### Container/Docker (se Container Apps)
|
|
149
|
-
|
|
150
|
-
- [ ] Dockerfile válido e testado localmente
|
|
151
|
-
- [ ] `docker build` funciona sem erros
|
|
152
|
-
- [ ] Container roda localmente (`docker run`)
|
|
153
|
-
|
|
154
|
-
### Infraestrutura Azure
|
|
155
|
-
|
|
156
|
-
- [ ] Bicep sem erros de sintaxe (`az bicep build`)
|
|
157
|
-
- [ ] Key Vault URI configurado em `appsettings.Production.json`
|
|
158
|
-
- [ ] Connection strings em Key Vault (não hardcoded)
|
|
159
|
-
- [ ] Managed Identity habilitada nos recursos
|
|
160
|
-
|
|
161
|
-
### Segurança
|
|
162
|
-
|
|
163
|
-
- [ ] Sem secrets em código ou `appsettings.json` (exceto Development)
|
|
164
|
-
- [ ] HTTPS enforçado
|
|
165
|
-
- [ ] CORS configurado corretamente
|
|
166
|
-
|
|
167
|
-
### Comandos de Verificação
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
# 1. Package conflicts
|
|
171
|
-
dotnet restore 2>&1 | grep -E "NU1605|NU1608"
|
|
172
|
-
|
|
173
|
-
# 2. Pending migrations
|
|
174
|
-
dotnet ef migrations has-pending-model-changes \
|
|
175
|
-
--project src/Infrastructure \
|
|
176
|
-
--startup-project src/Web
|
|
177
|
-
|
|
178
|
-
# 3. Bicep validation
|
|
179
|
-
az bicep build --file infra/main.bicep --stdout > /dev/null
|
|
180
|
-
|
|
181
|
-
# 4. Docker build
|
|
182
|
-
docker build -t myapp:test .
|
|
183
|
-
|
|
184
|
-
# 5. Secret scan (basic)
|
|
185
|
-
grep -rE "(Password=|Pwd=|Secret=)" appsettings*.json | grep -v Development
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### Se QUALQUER item falhar
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
❌ BLOQUEADO: Não faça deploy até resolver!
|
|
192
|
-
|
|
193
|
-
Use /morph-preflight azure para diagnóstico detalhado.
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
## Validações
|
|
197
|
-
|
|
198
|
-
Antes de marcar task como completa:
|
|
199
|
-
- [ ] Código compila
|
|
200
|
-
- [ ] Segue padrões de nomenclatura
|
|
201
|
-
- [ ] Testes unitários (se aplicável)
|
|
202
|
-
- [ ] Sem hardcoded secrets
|
|
203
|
-
|
|
204
|
-
## Output
|
|
205
|
-
|
|
206
|
-
Ao final de cada task, mostre:
|
|
207
|
-
1. Task completada
|
|
208
|
-
2. Arquivos criados/modificados
|
|
209
|
-
3. Próxima task
|
|
210
|
-
4. Progresso geral (X/Y tasks) - usar `npx morph-spec state get {feature}`
|
|
211
|
-
|
|
212
|
-
Ao final de cada checkpoint:
|
|
213
|
-
```bash
|
|
214
|
-
npx morph-spec state list
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
Isso mostra o progresso atualizado automaticamente.
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
**Feature:** $ARGUMENTS
|