@punks/cli 2.2.6 → 2.2.8
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/AGENTS.md +1 -1
- package/README.md +2 -2
- package/dist/data/AGENTS.md +113 -0
- package/dist/data/control-plane.json +3 -0
- package/dist/data/hooks/format-edited-file.mjs +699 -0
- package/dist/data/hooks/format-edited-file.sh +37 -0
- package/dist/data/hooks/require-tests-for-pr.mjs +206 -0
- package/dist/data/hooks/scaffold-update-check.mjs +181 -0
- package/dist/data/scripts/sync-subagents.mjs +524 -0
- package/dist/data/subagents/manifest.mjs +488 -0
- package/dist/index.js +0 -0
- package/dist/skills/agnostic/backend/backend-domain-structure/SKILL.md +50 -0
- package/dist/skills/agnostic/backend/backend-domain-structure/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/backend/backend-domain-structure/references/layout.md +167 -0
- package/dist/skills/agnostic/backend/backend-recoverable-actions/SKILL.md +49 -0
- package/dist/skills/agnostic/backend/backend-recoverable-actions/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/strategy-matrix.md +34 -0
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/test-matrix.md +34 -0
- package/dist/skills/agnostic/backend/logging-best-practices/SKILL.md +127 -0
- package/dist/skills/agnostic/backend/logging-best-practices/rules/context.md +157 -0
- package/dist/skills/agnostic/backend/logging-best-practices/rules/pitfalls.md +118 -0
- package/dist/skills/agnostic/backend/logging-best-practices/rules/structure.md +193 -0
- package/dist/skills/agnostic/backend/logging-best-practices/rules/wide-events.md +113 -0
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +125 -0
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +70 -0
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +70 -0
- package/dist/skills/agnostic/debug/debug-agent/SKILL.md +184 -0
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +46 -0
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +67 -0
- package/dist/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +41 -0
- package/dist/skills/agnostic/docs/writing-beats/SKILL.md +69 -0
- package/dist/skills/agnostic/docs/writing-fragments/SKILL.md +76 -0
- package/dist/skills/agnostic/docs/writing-great-skills/GLOSSARY.md +69 -0
- package/dist/skills/agnostic/docs/writing-great-skills/SKILL.md +61 -0
- package/dist/skills/agnostic/docs/writing-shape/SKILL.md +75 -0
- package/dist/skills/agnostic/frontend/agent-browser/.clawdhub/origin.json +7 -0
- package/dist/skills/agnostic/frontend/agent-browser/SKILL.md +229 -0
- package/dist/skills/agnostic/frontend/agent-browser/references/authentication.md +202 -0
- package/dist/skills/agnostic/frontend/agent-browser/references/commands.md +259 -0
- package/dist/skills/agnostic/frontend/agent-browser/references/proxy-support.md +188 -0
- package/dist/skills/agnostic/frontend/agent-browser/references/session-management.md +193 -0
- package/dist/skills/agnostic/frontend/agent-browser/references/snapshot-refs.md +194 -0
- package/dist/skills/agnostic/frontend/agent-browser/references/video-recording.md +173 -0
- package/dist/skills/agnostic/frontend/agent-browser/templates/authenticated-session.sh +97 -0
- package/dist/skills/agnostic/frontend/agent-browser/templates/capture-workflow.sh +69 -0
- package/dist/skills/agnostic/frontend/agent-browser/templates/form-automation.sh +62 -0
- package/dist/skills/agnostic/frontend/design-taste-frontend/SKILL.md +226 -0
- package/dist/skills/agnostic/frontend/frontend-domain-structure/SKILL.md +55 -0
- package/dist/skills/agnostic/frontend/frontend-domain-structure/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/react/structure.md +102 -0
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/structure.md +257 -0
- package/dist/skills/agnostic/frontend/gpt-taste/SKILL.md +74 -0
- package/dist/skills/agnostic/frontend/image-taste-frontend/SKILL.md +1102 -0
- package/dist/skills/agnostic/frontend/redesign-existing-projects/SKILL.md +178 -0
- package/dist/skills/agnostic/generic/handoff/SKILL.md +15 -0
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +39 -0
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +91 -0
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +44 -0
- package/dist/skills/agnostic/planning/create-plan/references/grill-ambiguity.md +87 -0
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +94 -0
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +42 -0
- package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +18 -0
- package/dist/skills/agnostic/planning/create-plan/references/tdd-shaping.md +49 -0
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +111 -0
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +91 -0
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +49 -0
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +54 -0
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +33 -0
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +47 -0
- package/dist/skills/agnostic/planning/create-spec/references/handoff.md +47 -0
- package/dist/skills/agnostic/planning/create-spec/references/questioning.md +51 -0
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +58 -0
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +50 -0
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +103 -0
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +65 -0
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +209 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +102 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +79 -0
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +56 -0
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +46 -0
- package/dist/skills/agnostic/planning/implement-spec/references/ui-screenshot-evidence.md +61 -0
- package/dist/skills/agnostic/planning/stack/SKILL.md +89 -0
- package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +179 -0
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +191 -0
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +1176 -0
- package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +176 -0
- package/dist/skills/agnostic/quality/codebase-design/DEEPENING.md +34 -0
- package/dist/skills/agnostic/quality/codebase-design/DESIGN-IT-TWICE.md +43 -0
- package/dist/skills/agnostic/quality/codebase-design/SKILL.md +60 -0
- package/dist/skills/agnostic/quality/simplify/SKILL.md +14 -0
- package/dist/skills/agnostic/quality/tdd/SKILL.md +139 -0
- package/dist/skills/agnostic/quality/tdd/deep-modules.md +33 -0
- package/dist/skills/agnostic/quality/tdd/high-signal-tests.md +39 -0
- package/dist/skills/agnostic/quality/tdd/interface-design.md +31 -0
- package/dist/skills/agnostic/quality/tdd/mocking.md +59 -0
- package/dist/skills/agnostic/quality/tdd/refactoring.md +10 -0
- package/dist/skills/agnostic/quality/tdd/tests.md +61 -0
- package/dist/skills/agnostic/repo-asset-management/SKILL.md +28 -0
- package/dist/skills/agnostic/repo-asset-management/references/acceptance.md +6 -0
- package/dist/skills/agnostic/repo-asset-management/references/azure.md +11 -0
- package/dist/skills/agnostic/repo-asset-management/references/bitbucket.md +8 -0
- package/dist/skills/agnostic/repo-asset-management/references/github.md +11 -0
- package/dist/skills/agnostic/repo-asset-management/references/gitlab.md +11 -0
- package/dist/skills/agnostic/requirements/grilling/SKILL.md +38 -0
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +46 -0
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +157 -0
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +71 -0
- package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +101 -0
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +67 -0
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +264 -0
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +85 -0
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +69 -0
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +66 -0
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +63 -0
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +224 -0
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +76 -0
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +146 -0
- package/dist/skills/agnostic/research/improve-codebase-architecture/REFERENCE.md +78 -0
- package/dist/skills/agnostic/research/improve-codebase-architecture/SKILL.md +80 -0
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +68 -0
- package/dist/skills/agnostic/research/parallel-research/agents/openai.yaml +4 -0
- package/dist/skills/agnostic/research/prototype/LOGIC.md +31 -0
- package/dist/skills/agnostic/research/prototype/SKILL.md +31 -0
- package/dist/skills/agnostic/research/prototype/UI.md +29 -0
- package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +179 -0
- package/dist/skills/frameworks/better-auth/better-auth-best-practices/SKILL.md +166 -0
- package/dist/skills/frameworks/better-auth/better-auth-security-best-practices/SKILL.MD +432 -0
- package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +116 -0
- package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +98 -0
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-atom-patterns.md +257 -0
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +144 -0
- package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +156 -0
- package/dist/skills/frameworks/effect/effect-authoring/references/otel-patterns.md +113 -0
- package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +146 -0
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +96 -0
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +68 -0
- package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +517 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +392 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +653 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +464 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +287 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +495 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +342 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +418 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +353 -0
- package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +299 -0
- package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +65 -0
- package/dist/skills/frameworks/effect/effect-recoverable-actions/agents/openai.yaml +4 -0
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/flow-examples.md +154 -0
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/source-backed-primitives.md +104 -0
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/strategy-matrix.md +34 -0
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/test-matrix.md +36 -0
- package/dist/skills/frameworks/elysia/elysiajs/SKILL.md +475 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/basic.ts +9 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/body-parser.ts +33 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/complex.ts +112 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/cookie.ts +45 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/error.ts +38 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/file.ts +10 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/guard.ts +34 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/map-response.ts +15 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/redirect.ts +6 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/rename.ts +32 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/schema.ts +61 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/state.ts +6 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/upload-file.ts +20 -0
- package/dist/skills/frameworks/elysia/elysiajs/examples/websocket.ts +25 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/ai-sdk.md +92 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/astro.md +59 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/better-auth.md +117 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/cloudflare-worker.md +95 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/deno.md +34 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/drizzle.md +258 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/expo.md +95 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nextjs.md +103 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nodejs.md +64 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nuxt.md +67 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/prisma.md +93 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/react-email.md +134 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/sveltekit.md +53 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/tanstack-start.md +87 -0
- package/dist/skills/frameworks/elysia/elysiajs/integrations/vercel.md +55 -0
- package/dist/skills/frameworks/elysia/elysiajs/patterns/mvc.md +380 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/bearer.md +30 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cors.md +141 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cron.md +265 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-apollo.md +90 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-yoga.md +87 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/html.md +188 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/jwt.md +197 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/openapi.md +246 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/opentelemetry.md +167 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/server-timing.md +71 -0
- package/dist/skills/frameworks/elysia/elysiajs/plugins/static.md +84 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/bun-fullstack-dev-server.md +129 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/cookie.md +187 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/deployment.md +413 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/eden.md +158 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/lifecycle.md +198 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/macro.md +83 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/plugin.md +207 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/route.md +331 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/testing.md +385 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/validation.md +491 -0
- package/dist/skills/frameworks/elysia/elysiajs/references/websocket.md +250 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/branch-protection.yml +24 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/deploy.yml +61 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/AGENTS.md +5958 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/SKILL.md +130 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-dto-serialization.md +182 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-interceptors.md +202 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-pipes.md +205 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-versioning.md +191 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-avoid-circular-deps.md +80 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-feature-modules.md +82 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-module-sharing.md +141 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-single-responsibility.md +106 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-events.md +108 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-repository-pattern.md +97 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-avoid-n-plus-one.md +139 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-migrations.md +129 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-transactions.md +140 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-graceful-shutdown.md +222 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-config-module.md +167 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-logging.md +232 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-avoid-service-locator.md +104 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-interface-segregation.md +165 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-liskov-substitution.md +221 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-prefer-constructor-injection.md +86 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-scope-awareness.md +94 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-use-interfaces-tokens.md +101 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-handle-async-errors.md +125 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-throw-http-exceptions.md +114 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-use-exception-filters.md +140 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-health-checks.md +226 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-patterns.md +167 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-queues.md +252 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-async-hooks.md +109 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-lazy-loading.md +121 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-optimize-database.md +131 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-use-caching.md +128 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-auth-jwt.md +146 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-rate-limiting.md +125 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-sanitize-output.md +139 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-use-guards.md +135 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-validate-all-input.md +150 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-e2e-supertest.md +178 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-mock-external-services.md +179 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-use-testing-module.md +153 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build-agents.ts +299 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build.sh +16 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package-lock.json +237 -0
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package.json +15 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/SKILL.md +208 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/authentication.md +166 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/controllers-routing.md +111 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/dtos-validation.md +153 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/migration-from-express.md +1237 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/services-di.md +140 -0
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/testing-patterns.md +186 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/SKILL.md +153 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/async-patterns.md +87 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/bundling.md +180 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/data-patterns.md +297 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/debug-tricks.md +105 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/directives.md +73 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/error-handling.md +227 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/file-conventions.md +140 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/font.md +245 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/functions.md +108 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/hydration-error.md +91 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/image.md +173 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/metadata.md +301 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/parallel-routes.md +287 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/route-handlers.md +146 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/rsc-boundaries.md +159 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/runtime-selection.md +39 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/scripts.md +141 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/self-hosting.md +371 -0
- package/dist/skills/frameworks/nextjs/next-best-practices/suspense-boundaries.md +67 -0
- package/dist/skills/frameworks/nextjs/next-cache-components/SKILL.md +360 -0
- package/dist/skills/frameworks/react/async-react-patterns/SKILL.md +78 -0
- package/dist/skills/frameworks/react/react-doctor/SKILL.md +64 -0
- package/dist/skills/frameworks/react/react-doctor/references/explain.md +71 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/AGENTS.md +946 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/SKILL.md +89 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-compound-components.md +112 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-context-interface.md +191 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-lift-state.md +125 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/AGENTS.md +3750 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/SKILL.md +148 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-effect-event-deps.md +56 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-api-routes.md +38 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +37 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-defer-await.md +82 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-dependencies.md +51 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-parallel.md +28 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-barrel-imports.md +60 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-preload.md +50 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-early-exit.md +50 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-flatmap-filter.md +60 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-index-maps.md +37 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-request-idle-callback.md +105 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-activity.md +26 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-resource-hints.md +85 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-script-defer-async.md +68 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo.md +44 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-no-inline-components.md +82 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +64 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-deferred-value.md +59 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-react.md +76 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-hoist-static-io.md +149 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-no-shared-module-state.md +50 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +34 -0
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-serialization.md +38 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +849 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/assets/example-template.txt +14 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +304 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/common-patterns.md +271 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/example-reference.md +26 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/testing.md +282 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/top-errors.md +332 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/typescript-patterns.md +291 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/rules/tanstack-query.md +126 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/scripts/example-script.sh +15 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/error-boundary.tsx +243 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/package.json +31 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/provider-setup.tsx +50 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/query-client-config.ts +72 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +250 -0
- package/dist/skills/frameworks/trpc/tanstack-query/.claude-plugin/plugin.json +12 -0
- package/dist/skills/frameworks/trpc/tanstack-query/SKILL.md +1058 -0
- package/dist/skills/frameworks/trpc/tanstack-query/assets/example-template.txt +14 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/best-practices.md +304 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/common-patterns.md +271 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/example-reference.md +26 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/testing.md +282 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/top-errors.md +332 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/typescript-patterns.md +291 -0
- package/dist/skills/frameworks/trpc/tanstack-query/references/v4-to-v5-migration.md +231 -0
- package/dist/skills/frameworks/trpc/tanstack-query/rules/tanstack-query.md +126 -0
- package/dist/skills/frameworks/trpc/tanstack-query/scripts/example-script.sh +15 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/custom-hooks-pattern.tsx +281 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +248 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/error-boundary.tsx +243 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/package.json +31 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/provider-setup.tsx +50 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/query-client-config.ts +72 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-infinite-query.tsx +214 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-basic.tsx +201 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-optimistic.tsx +234 -0
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-query-basic.tsx +119 -0
- package/dist/skills/frameworks/turborepo/turborepo/SKILL.md +914 -0
- package/dist/skills/frameworks/turborepo/turborepo/command/turborepo.md +70 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/RULE.md +241 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/dependencies.md +246 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/packages.md +335 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/structure.md +270 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/boundaries/RULE.md +126 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/RULE.md +107 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/gotchas.md +169 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/remote-cache.md +127 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/RULE.md +79 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/github-actions.md +162 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/patterns.md +145 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/vercel.md +103 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/RULE.md +100 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/commands.md +297 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/RULE.md +211 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/global-options.md +187 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/gotchas.md +348 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/tasks.md +285 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/RULE.md +96 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/gotchas.md +141 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/modes.md +101 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/RULE.md +148 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/patterns.md +152 -0
- package/dist/skills/frameworks/turborepo/turborepo/references/watch/RULE.md +99 -0
- package/dist/skills/languages/python/async-python-patterns/SKILL.md +735 -0
- package/dist/skills/languages/python/python-code-style/SKILL.md +360 -0
- package/dist/skills/languages/python/python-design-patterns/SKILL.md +433 -0
- package/dist/skills/languages/python/python-project-structure/SKILL.md +252 -0
- package/dist/skills/languages/python/python-testing-patterns/SKILL.md +622 -0
- package/dist/skills/languages/python/python-testing-patterns/references/advanced-patterns.md +411 -0
- package/dist/skills/languages/typescript/quality-types/SKILL.md +93 -0
- package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +193 -0
- package/dist/skills/phases/bug-discovery-phase/SKILL.md +45 -0
- package/dist/skills/phases/bug-resolution-phase/REFERENCE.md +183 -0
- package/dist/skills/phases/bug-resolution-phase/SKILL.md +49 -0
- package/dist/skills/phases/debugging-phase/SKILL.md +88 -0
- package/dist/skills/phases/delivery-phase/SKILL.md +51 -0
- package/dist/skills/phases/delivery-phase/phases/closeout.md +35 -0
- package/dist/skills/phases/delivery-phase/phases/debug.md +30 -0
- package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +27 -0
- package/dist/skills/phases/delivery-phase/phases/implement.md +32 -0
- package/dist/skills/phases/delivery-phase/phases/plan.md +27 -0
- package/dist/skills/phases/delivery-phase/phases/review.md +29 -0
- package/dist/skills/phases/delivery-phase/phases/router.md +46 -0
- package/dist/skills/phases/delivery-phase/phases/spec.md +26 -0
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +42 -0
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +27 -0
- package/dist/skills/phases/design-phase/SKILL.md +47 -0
- package/dist/skills/phases/design-phase/phases/approval.md +37 -0
- package/dist/skills/phases/design-phase/phases/backlog.md +28 -0
- package/dist/skills/phases/design-phase/phases/delivery-handoff.md +29 -0
- package/dist/skills/phases/design-phase/phases/grill.md +37 -0
- package/dist/skills/phases/design-phase/phases/intake.md +25 -0
- package/dist/skills/phases/design-phase/phases/prototype.md +30 -0
- package/dist/skills/phases/design-phase/phases/router.md +66 -0
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +46 -0
- package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +4 -0
- package/dist/skills/phases/docs-ingest-phase/phases/private-internal.md +57 -0
- package/dist/skills/phases/docs-ingest-phase/phases/public-docs.md +52 -0
- package/dist/skills/phases/docs-ingest-phase/phases/router.md +42 -0
- package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +70 -0
- package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +56 -0
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +74 -0
- package/dist/skills/phases/docs-ingest-phase/references/learning-artifacts.md +96 -0
- package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +90 -0
- package/dist/skills/phases/docs-ingest-phase/references/repo-docs.md +38 -0
- package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +134 -0
- package/dist/skills/phases/goalify/EXAMPLES.md +11 -0
- package/dist/skills/phases/goalify/SKILL.md +65 -0
- package/dist/skills/phases/requirements-phase/SKILL.md +70 -0
- package/dist/skills/phases/resolve-debt-phase/SKILL.md +87 -0
- package/dist/skills/phases/review-phase/REFERENCE.md +106 -0
- package/dist/skills/phases/review-phase/SKILL.md +46 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Good and Bad Tests
|
|
2
|
+
|
|
3
|
+
## Good Tests
|
|
4
|
+
|
|
5
|
+
**Integration-style**: Test through real interfaces, not mocks of internal parts.
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
// GOOD: Tests observable behavior
|
|
9
|
+
test("user can checkout with valid cart", async () => {
|
|
10
|
+
const cart = createCart();
|
|
11
|
+
cart.add(product);
|
|
12
|
+
const result = await checkout(cart, paymentMethod);
|
|
13
|
+
expect(result.status).toBe("confirmed");
|
|
14
|
+
});
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Characteristics:
|
|
18
|
+
|
|
19
|
+
- Tests behavior users/callers care about
|
|
20
|
+
- Uses public API only
|
|
21
|
+
- Survives internal refactors
|
|
22
|
+
- Describes WHAT, not HOW
|
|
23
|
+
- One logical assertion per test
|
|
24
|
+
|
|
25
|
+
## Bad Tests
|
|
26
|
+
|
|
27
|
+
**Implementation-detail tests**: Coupled to internal structure.
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
// BAD: Tests implementation details
|
|
31
|
+
test("checkout calls paymentService.process", async () => {
|
|
32
|
+
const mockPayment = jest.mock(paymentService);
|
|
33
|
+
await checkout(cart, payment);
|
|
34
|
+
expect(mockPayment.process).toHaveBeenCalledWith(cart.total);
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Red flags:
|
|
39
|
+
|
|
40
|
+
- Mocking internal collaborators
|
|
41
|
+
- Testing private methods
|
|
42
|
+
- Asserting on call counts/order
|
|
43
|
+
- Test breaks when refactoring without behavior change
|
|
44
|
+
- Test name describes HOW not WHAT
|
|
45
|
+
- Verifying through external means instead of interface
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
// BAD: Bypasses interface to verify
|
|
49
|
+
test("createUser saves to database", async () => {
|
|
50
|
+
await createUser({ name: "Alice" });
|
|
51
|
+
const row = await db.query("SELECT * FROM users WHERE name = ?", ["Alice"]);
|
|
52
|
+
expect(row).toBeDefined();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// GOOD: Verifies through interface
|
|
56
|
+
test("createUser makes user retrievable", async () => {
|
|
57
|
+
const user = await createUser({ name: "Alice" });
|
|
58
|
+
const retrieved = await getUser(user.id);
|
|
59
|
+
expect(retrieved.name).toBe("Alice");
|
|
60
|
+
});
|
|
61
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: repo-asset-management
|
|
3
|
+
description: Durable repo asset management for visual evidence, backlog attachments, and repo-provider asset fallbacks.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Repo Asset Management
|
|
7
|
+
|
|
8
|
+
Use when a workflow needs durable links for approved design assets, prototype screenshots, backlog evidence, or PR before/after visuals.
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. Prefer backlog attachments.
|
|
13
|
+
- backlog attachments preferred when the backlog provider supports durable files.
|
|
14
|
+
2. Fall back to repo-provider storage.
|
|
15
|
+
- Use repo-provider assets when backlog attachments are unavailable, size-limited, visibility-mismatched, or unsuitable for PR/review reuse.
|
|
16
|
+
3. Select provider from `.devpunks/settings.json`; if absent, infer only from existing repo/provider hints and surface conflicts.
|
|
17
|
+
4. Load exactly one provider reference:
|
|
18
|
+
- GitHub: [references/github.md](references/github.md)
|
|
19
|
+
- GitLab: [references/gitlab.md](references/gitlab.md)
|
|
20
|
+
- Azure: [references/azure.md](references/azure.md)
|
|
21
|
+
- Bitbucket: [references/bitbucket.md](references/bitbucket.md)
|
|
22
|
+
5. Return stable URLs plus original local filenames to the caller.
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
|
|
26
|
+
- Never hand off temp file paths, transient browser URLs, or local screenshots as durable evidence.
|
|
27
|
+
- Do not copy provider commands into caller skills; link this skill instead.
|
|
28
|
+
- If upload cannot run, record the blocker and preserve the local file path only as pending evidence.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Acceptance Map
|
|
2
|
+
|
|
3
|
+
- Short entrypoint: `SKILL.md` keeps provider detail behind references.
|
|
4
|
+
- Attachment rule: backlog attachments preferred, repo-provider fallback.
|
|
5
|
+
- Provider coverage: GitHub, GitLab, Azure, Bitbucket.
|
|
6
|
+
- Provider facts: GitHub release assets via gh; GitLab package upload/release upload; Azure Blob Storage; Bitbucket Downloads/API/pipe with no first-party generic CLI assumed.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Azure
|
|
2
|
+
|
|
3
|
+
Use Azure Blob Storage for durable visual assets.
|
|
4
|
+
|
|
5
|
+
- Single file: `az storage blob upload --container-name <container> --file <file> --name <name> --auth-mode login`
|
|
6
|
+
- Batch: `az storage blob upload-batch --destination <container> --source <dir> --auth-mode login`
|
|
7
|
+
|
|
8
|
+
Refs:
|
|
9
|
+
|
|
10
|
+
- https://learn.microsoft.com/en-us/cli/azure/storage/blob
|
|
11
|
+
- https://learn.microsoft.com/en-us/azure/storage/blobs/blob-cli
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Bitbucket
|
|
2
|
+
|
|
3
|
+
Use Bitbucket Downloads, the Downloads API, or the Atlassian `bitbucket-upload-file` pipe. No first-party generic CLI assumed.
|
|
4
|
+
|
|
5
|
+
Refs:
|
|
6
|
+
|
|
7
|
+
- https://support.atlassian.com/bitbucket-cloud/docs/deploy-build-artifacts-to-bitbucket-downloads/
|
|
8
|
+
- https://bitbucket.org/atlassian/bitbucket-upload-file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# GitHub
|
|
2
|
+
|
|
3
|
+
GitHub release assets via gh are the durable CLI path.
|
|
4
|
+
|
|
5
|
+
- Existing release: `gh release upload <tag> <files>...`
|
|
6
|
+
- New evidence release: `gh release create <tag> --prerelease <files>...`
|
|
7
|
+
|
|
8
|
+
Refs:
|
|
9
|
+
|
|
10
|
+
- https://cli.github.com/manual/gh_release_upload
|
|
11
|
+
- https://cli.github.com/manual/gh_release_create
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# GitLab
|
|
2
|
+
|
|
3
|
+
Use GitLab package upload for neutral asset hosting. Use release upload when release UX matters.
|
|
4
|
+
|
|
5
|
+
- Package upload: `glab packages upload <file> --name <package> --version <version>`
|
|
6
|
+
- Release upload: `glab release upload <tag> [<files>...] --use-package-registry`
|
|
7
|
+
|
|
8
|
+
Refs:
|
|
9
|
+
|
|
10
|
+
- https://docs.gitlab.com/cli/packages/upload/
|
|
11
|
+
- https://docs.gitlab.com/cli/release/upload/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grilling
|
|
3
|
+
description: Grill a plan, requirement, design, or unclear decision through one-question-at-a-time pressure testing. Use when the user asks to grill, stress-test, interrogate, or sharpen an idea before building, or when another skill needs a grilling primitive.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Grilling
|
|
7
|
+
|
|
8
|
+
Interview the user relentlessly until the plan, requirement, or design is clear enough to proceed.
|
|
9
|
+
|
|
10
|
+
## Core Behavior
|
|
11
|
+
|
|
12
|
+
- Ask one question at a time.
|
|
13
|
+
- Provide your recommended answer with each question.
|
|
14
|
+
- Explain why the recommendation is preferred.
|
|
15
|
+
- Walk the design tree branch by branch, resolving dependent decisions in order.
|
|
16
|
+
- If a question can be answered from code, docs, artifacts, or logs, inspect those sources instead of asking.
|
|
17
|
+
- When multiple interpretations exist, force a precise choice.
|
|
18
|
+
- Stop only when the active branch is closed, parked, or explicitly deferred.
|
|
19
|
+
|
|
20
|
+
## Question Contract
|
|
21
|
+
|
|
22
|
+
Each question should make the decision obvious:
|
|
23
|
+
|
|
24
|
+
- the decision being made
|
|
25
|
+
- your recommended answer
|
|
26
|
+
- the question the user must answer
|
|
27
|
+
- why the answer matters
|
|
28
|
+
|
|
29
|
+
Do not bundle unrelated decisions into one question.
|
|
30
|
+
|
|
31
|
+
## Closure
|
|
32
|
+
|
|
33
|
+
Before leaving a branch, restate:
|
|
34
|
+
|
|
35
|
+
- locked decisions
|
|
36
|
+
- assumptions made
|
|
37
|
+
- deferred or parked questions
|
|
38
|
+
- next branch or next workflow
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: requirements-grill
|
|
3
|
+
description: Requirements grilling with durable branch artifacts, glossary/axiom decisions, and optional wiki synthesis. Use when the user wants product or architecture requirements discovery, a long design interview, branch-by-branch decision closure, canonical terminology, compaction-safe grill logs/status updates, or wiki synthesis from closed grill decisions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Requirements Grill
|
|
7
|
+
|
|
8
|
+
Use this skill to turn uncertain product, architecture, or implementation ideas into pinned requirements, canonical glossary, and domain axioms that can feed backlog/user-story creation.
|
|
9
|
+
|
|
10
|
+
This skill blends the shared `$grilling` primitive with durable artifacts. Use `$grilling` for live interview behavior; use `requirements-grill` when the result must survive as routed grill log/status/wiki knowledge.
|
|
11
|
+
|
|
12
|
+
This skill has three scoped references:
|
|
13
|
+
|
|
14
|
+
- Live grilling behavior: use `$grilling`, then see [references/grilling-flow.md](references/grilling-flow.md) for requirements-specific pressure tests
|
|
15
|
+
- Durable grill artifacts: see [references/artifact-output.md](references/artifact-output.md)
|
|
16
|
+
- Wiki synthesis from closed grill branches: see [references/wiki-output.md](references/wiki-output.md)
|
|
17
|
+
|
|
18
|
+
## Quick Routing
|
|
19
|
+
|
|
20
|
+
Use active grilling when the user is still iterating on requirements, terminology, tradeoffs, branch closure, or status percentages. During a serious grilling session, load both `grilling-flow` and `artifact-output`; the interview and durable artifacts move together.
|
|
21
|
+
|
|
22
|
+
Use wiki synthesis when the user asks to turn closed grill decisions into high-level routed wiki flows/concepts, or sync domain knowledge from grill artifacts.
|
|
23
|
+
|
|
24
|
+
Both workflows can happen in one long session, but keep the responsibilities distinct:
|
|
25
|
+
|
|
26
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md` and `<topic>-grill-status.md` are the detailed requirements and glossary record
|
|
27
|
+
- other routed `<wiki-root>/content/docs/project/` pages are the synthesized project knowledge surface
|
|
28
|
+
- backlog/user-story creation is the next phase after the grill gate, outside this skill's scope
|
|
29
|
+
|
|
30
|
+
## Core Behavior
|
|
31
|
+
|
|
32
|
+
- Ask one question at a time by default.
|
|
33
|
+
- For every question, provide a recommended answer and the reason for it.
|
|
34
|
+
- Inspect code/docs first when the answer can be found locally.
|
|
35
|
+
- Inspect relevant routed learning artifacts before grilling requirements that depend on known behavior, prior bugs, project conventions, or domain facts.
|
|
36
|
+
- Challenge conflicting glossary, vague terms, and hidden tradeoffs immediately.
|
|
37
|
+
- Pin canonical terms, rejected aliases, relationships, and domain axioms as decisions crystallize.
|
|
38
|
+
- Prefer conservative defaults once enough context exists.
|
|
39
|
+
- If the user authorizes auto-pinning defaults, close obvious remaining decisions without needless extra questions.
|
|
40
|
+
- Treat parked branches as preserved knowledge, not deleted scope.
|
|
41
|
+
|
|
42
|
+
## Handoff
|
|
43
|
+
|
|
44
|
+
At the end, report branch percentages, parked branches, remaining non-design validation work, and the recommended next planning direction.
|
|
45
|
+
|
|
46
|
+
If all active branches are `100%`, say the requirements grill is done and the likely next direction is backlog/user-story creation.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Artifact Output
|
|
2
|
+
|
|
3
|
+
Use this reference to maintain the durable grill artifacts.
|
|
4
|
+
|
|
5
|
+
This workflow is always paired with [grilling-flow.md](grilling-flow.md) during a serious grilling session.
|
|
6
|
+
|
|
7
|
+
## Durable Artifacts
|
|
8
|
+
|
|
9
|
+
At the start of a serious grilling session, create or reuse:
|
|
10
|
+
|
|
11
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
12
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
13
|
+
|
|
14
|
+
Resolve `<wiki-root>` the same way as `docs-ingest-phase`:
|
|
15
|
+
|
|
16
|
+
- monorepo: `apps/wiki`
|
|
17
|
+
- single-repo: `wiki`
|
|
18
|
+
|
|
19
|
+
Before writing, read `<wiki-root>/AGENTS.md`. The grilling artifacts live in the routed project wiki because `/docs/project` owns useful grill context and maintenance/project records.
|
|
20
|
+
|
|
21
|
+
If a legacy `docs/<topic>-grill-log.md` or `docs/<topic>-grill-status.md` exists, treat it as input to move or merge into the routed grilling section. Do not keep updating both locations.
|
|
22
|
+
|
|
23
|
+
The log is the durable decision record.
|
|
24
|
+
The status file is the current branch dashboard plus the current glossary snapshot.
|
|
25
|
+
|
|
26
|
+
## Routed Wiki Contract
|
|
27
|
+
|
|
28
|
+
Grill artifacts are human-facing routed pages. Include frontmatter on new files:
|
|
29
|
+
|
|
30
|
+
```yaml
|
|
31
|
+
---
|
|
32
|
+
title: "<Topic> Grill Log"
|
|
33
|
+
surface: project
|
|
34
|
+
permission: project
|
|
35
|
+
---
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Use `"<Topic> Grill Status"` for the status file title.
|
|
39
|
+
|
|
40
|
+
After adding or renaming a grill artifact:
|
|
41
|
+
|
|
42
|
+
- update `<wiki-root>/content/docs/project/grilling/meta.json`
|
|
43
|
+
- create `grilling/index.mdx` if the section is missing
|
|
44
|
+
- append a concise entry to `<wiki-root>/log.md` when the repo maintains one
|
|
45
|
+
- preserve existing frontmatter on existing files
|
|
46
|
+
|
|
47
|
+
## Grill Log Contract
|
|
48
|
+
|
|
49
|
+
The log is structured, not a raw transcript.
|
|
50
|
+
|
|
51
|
+
Record accepted decisions as:
|
|
52
|
+
|
|
53
|
+
```md
|
|
54
|
+
### Q<N>
|
|
55
|
+
|
|
56
|
+
Question:
|
|
57
|
+
<question asked>
|
|
58
|
+
|
|
59
|
+
Accepted answer:
|
|
60
|
+
- <locked answer>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Group related decisions under branch headings.
|
|
64
|
+
|
|
65
|
+
When the user changes an earlier decision, add a new entry that explicitly supersedes the old one.
|
|
66
|
+
|
|
67
|
+
Record glossary decisions in the log when terms or axioms are first pinned:
|
|
68
|
+
|
|
69
|
+
```md
|
|
70
|
+
### Glossary Q<N>
|
|
71
|
+
|
|
72
|
+
Question:
|
|
73
|
+
<terminology or axiom question>
|
|
74
|
+
|
|
75
|
+
Accepted answer:
|
|
76
|
+
- Canonical term: **<Term>** — <one-sentence definition>
|
|
77
|
+
- Avoid: <alias>, <alias>
|
|
78
|
+
- Relationship: **<Term>** <relationship> **<Other Term>**
|
|
79
|
+
- Axiom: <domain invariant that should not be re-debated>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Omit unused fields. If a later answer changes the glossary, add a superseding entry instead of rewriting history.
|
|
83
|
+
|
|
84
|
+
## Status File Contract
|
|
85
|
+
|
|
86
|
+
Maintain a compact branch dashboard with:
|
|
87
|
+
|
|
88
|
+
- branch name
|
|
89
|
+
- completion percentage
|
|
90
|
+
- locked direction
|
|
91
|
+
- still-open items
|
|
92
|
+
- parked branches
|
|
93
|
+
- glossary snapshot
|
|
94
|
+
- pinned axioms
|
|
95
|
+
- flagged ambiguities
|
|
96
|
+
|
|
97
|
+
Completion percentages are working signals:
|
|
98
|
+
|
|
99
|
+
- `0-50%`: branch discovered but unsettled
|
|
100
|
+
- `50-85%`: major direction set, important questions remain
|
|
101
|
+
- `85-99%`: mostly closed, only constants/schema/naming remain
|
|
102
|
+
- `100%`: design closed; remaining work is implementation/tuning
|
|
103
|
+
- `parked`: preserved for later, out of current scope
|
|
104
|
+
|
|
105
|
+
## Glossary Snapshot Contract
|
|
106
|
+
|
|
107
|
+
Keep the status file glossary compact and current:
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
## Glossary
|
|
111
|
+
|
|
112
|
+
### Terms
|
|
113
|
+
|
|
114
|
+
- **<Term>**: <one-sentence definition>
|
|
115
|
+
Avoid: <alias>, <alias>
|
|
116
|
+
|
|
117
|
+
### Relationships
|
|
118
|
+
|
|
119
|
+
- **<Term>** belongs to exactly one **<Other Term>**
|
|
120
|
+
|
|
121
|
+
### Axioms
|
|
122
|
+
|
|
123
|
+
- <Domain invariant accepted during the grill>
|
|
124
|
+
|
|
125
|
+
### Flagged Ambiguities
|
|
126
|
+
|
|
127
|
+
- "<ambiguous word>" was used to mean both **<Term A>** and **<Term B>**. Resolution: <decision>.
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Rules:
|
|
131
|
+
|
|
132
|
+
- Be opinionated: pick one canonical term.
|
|
133
|
+
- Keep definitions to one sentence.
|
|
134
|
+
- Include only terms meaningful to product/domain experts in this grill.
|
|
135
|
+
- Prefer status-file updates for the current glossary; use log entries for the decision trail.
|
|
136
|
+
- Group terms under subheadings only when clusters are natural.
|
|
137
|
+
- Add a short example dialogue only when it clarifies a boundary that keeps recurring.
|
|
138
|
+
|
|
139
|
+
## Branch Closure
|
|
140
|
+
|
|
141
|
+
When a branch closes:
|
|
142
|
+
|
|
143
|
+
1. Update the grill log with final accepted decisions.
|
|
144
|
+
2. Update the status file percentage, open items, glossary snapshot, axioms, and ambiguities.
|
|
145
|
+
3. If the branch changes durable domain/product knowledge, run the wiki-output workflow.
|
|
146
|
+
4. Say exactly what changed, which routed artifacts were updated, and whether `meta.json` or wiki log bookkeeping changed.
|
|
147
|
+
|
|
148
|
+
## Final Handoff
|
|
149
|
+
|
|
150
|
+
At the end, report:
|
|
151
|
+
|
|
152
|
+
- branch percentages
|
|
153
|
+
- parked branches
|
|
154
|
+
- remaining non-design validation work
|
|
155
|
+
- recommended next planning direction
|
|
156
|
+
|
|
157
|
+
If all active branches are `100%`, say the requirements grill is done and the likely next direction is backlog/user-story creation.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Grilling Flow
|
|
2
|
+
|
|
3
|
+
Use this reference during live requirements iteration.
|
|
4
|
+
|
|
5
|
+
This workflow is always paired with [artifact-output.md](artifact-output.md) during a serious grilling session.
|
|
6
|
+
|
|
7
|
+
## Session Behavior
|
|
8
|
+
|
|
9
|
+
Use the shared `$grilling` primitive for the interview loop, then apply the requirements-specific pressure tests below.
|
|
10
|
+
|
|
11
|
+
Interview the user relentlessly about every aspect of the plan until shared understanding exists.
|
|
12
|
+
|
|
13
|
+
Walk the design tree branch by branch until each branch is:
|
|
14
|
+
|
|
15
|
+
- closed
|
|
16
|
+
- parked
|
|
17
|
+
- explicitly deferred
|
|
18
|
+
|
|
19
|
+
## Questioning Rules
|
|
20
|
+
|
|
21
|
+
- Ask one question at a time by default.
|
|
22
|
+
- Always include a recommended answer.
|
|
23
|
+
- Explain why the recommendation is preferred.
|
|
24
|
+
- If multiple interpretations exist, force a precise choice.
|
|
25
|
+
- When the answer can be found in code/docs, inspect first instead of asking.
|
|
26
|
+
- When the user authorizes auto-pinning, close obvious defaults without needless extra questions.
|
|
27
|
+
|
|
28
|
+
## Pressure Tests
|
|
29
|
+
|
|
30
|
+
Challenge glossary:
|
|
31
|
+
|
|
32
|
+
- If a term conflicts with existing specs, docs, code language, or the grill status glossary, call it out.
|
|
33
|
+
- Propose one canonical term and the aliases to avoid.
|
|
34
|
+
- Make the user choose, then update the glossary sections in the grill artifacts.
|
|
35
|
+
|
|
36
|
+
Sharpen vague language:
|
|
37
|
+
|
|
38
|
+
- Identify overloaded words.
|
|
39
|
+
- Replace fuzzy language with explicit terms, states, enum values, ownership boundaries, lifecycle rules, or domain axioms.
|
|
40
|
+
- When the user decides an invariant that should not be re-debated, capture it as an axiom.
|
|
41
|
+
|
|
42
|
+
Discuss concrete scenarios:
|
|
43
|
+
|
|
44
|
+
- Use edge cases to expose unclear boundaries.
|
|
45
|
+
- Stress-test state transitions, ownership, persistence, and failure behavior.
|
|
46
|
+
|
|
47
|
+
Cross-check with code:
|
|
48
|
+
|
|
49
|
+
- Verify user claims against local code when possible.
|
|
50
|
+
- Surface contradictions instead of smoothing them over.
|
|
51
|
+
|
|
52
|
+
## Glossary Discipline
|
|
53
|
+
|
|
54
|
+
Keep glossary pressure inside the active grill loop:
|
|
55
|
+
|
|
56
|
+
- Only add project/domain-specific terms; skip generic programming words.
|
|
57
|
+
- Define what the term is in one sentence, not how it is implemented.
|
|
58
|
+
- Record avoided aliases when competing words exist.
|
|
59
|
+
- Record relationships between terms, including cardinality when obvious.
|
|
60
|
+
- Record flagged ambiguities with the resolution that closed them.
|
|
61
|
+
- Treat glossary corrections from the user as authoritative and update the artifacts immediately.
|
|
62
|
+
|
|
63
|
+
## Conservative Closure
|
|
64
|
+
|
|
65
|
+
When the user asks to reduce scope or stop widening the design:
|
|
66
|
+
|
|
67
|
+
- choose the smallest already-justified model
|
|
68
|
+
- avoid new tables, modes, enum values, services, or abstractions
|
|
69
|
+
- keep future branches parked instead of partially designing them
|
|
70
|
+
- prefer app-layer projections before DB views or materialized layers
|
|
71
|
+
- prefer ordinary text/enforced-in-code enums before DB-native enum churn
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Wiki Output From Grill Artifacts
|
|
2
|
+
|
|
3
|
+
Use this reference when closed grill branches should be reflected in `apps/wiki`.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
|
|
7
|
+
Use the grill artifacts as source:
|
|
8
|
+
|
|
9
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-status.md`
|
|
10
|
+
- `<wiki-root>/content/docs/project/grilling/<topic>-grill-log.md`
|
|
11
|
+
|
|
12
|
+
Read status first to understand:
|
|
13
|
+
|
|
14
|
+
- active and parked branches
|
|
15
|
+
- branch completion
|
|
16
|
+
- current locked direction
|
|
17
|
+
- current glossary, relationships, axioms, and flagged ambiguities
|
|
18
|
+
- remaining non-design validation work
|
|
19
|
+
|
|
20
|
+
Read log second to extract:
|
|
21
|
+
|
|
22
|
+
- accepted decisions
|
|
23
|
+
- superseded decisions
|
|
24
|
+
- branch closure notes
|
|
25
|
+
- exact canonical terms
|
|
26
|
+
- why glossary or axiom choices changed
|
|
27
|
+
|
|
28
|
+
## Ownership
|
|
29
|
+
|
|
30
|
+
`requirements-grill` owns wiki synthesis from grilled requirements.
|
|
31
|
+
|
|
32
|
+
`docs-ingest-phase` owns formal spec ingest and ordinary docs upkeep.
|
|
33
|
+
|
|
34
|
+
## What Belongs In Wiki
|
|
35
|
+
|
|
36
|
+
Write durable domain/product knowledge into wiki pages.
|
|
37
|
+
|
|
38
|
+
Good wiki targets:
|
|
39
|
+
|
|
40
|
+
- product scope
|
|
41
|
+
- user-visible modes and behaviors
|
|
42
|
+
- high-level features
|
|
43
|
+
- canonical domain glossary and relationships
|
|
44
|
+
- domain axioms that constrain future design
|
|
45
|
+
- conversation model
|
|
46
|
+
- lifecycle concepts
|
|
47
|
+
- memory model
|
|
48
|
+
- data model boundaries
|
|
49
|
+
- multi-step user or system flows
|
|
50
|
+
- major decisions whose rationale should stand alone
|
|
51
|
+
|
|
52
|
+
Usually keep out of wiki:
|
|
53
|
+
|
|
54
|
+
- retry constants
|
|
55
|
+
- wire-frame field lists
|
|
56
|
+
- DDL naming polish
|
|
57
|
+
- exact indexes
|
|
58
|
+
- low-level timeout values
|
|
59
|
+
- model artifact ids unless they change product capability
|
|
60
|
+
|
|
61
|
+
## Page Selection
|
|
62
|
+
|
|
63
|
+
Create or update concept pages for stable entities, terms, and invariants.
|
|
64
|
+
|
|
65
|
+
Create or update flow pages for sequences with:
|
|
66
|
+
|
|
67
|
+
- trigger
|
|
68
|
+
- actors
|
|
69
|
+
- ordered steps
|
|
70
|
+
- decision points
|
|
71
|
+
- terminal outcome
|
|
72
|
+
|
|
73
|
+
Create or update decision pages only when:
|
|
74
|
+
|
|
75
|
+
- a major tradeoff was resolved
|
|
76
|
+
- future maintainers will likely ask why an alternative was rejected
|
|
77
|
+
- the rationale would clutter a concept page
|
|
78
|
+
|
|
79
|
+
## Boundary
|
|
80
|
+
|
|
81
|
+
Keep the routed grilling log/status files as the detailed requirements record.
|
|
82
|
+
|
|
83
|
+
Use other routed `<wiki-root>/content/docs/project/` pages for synthesized project knowledge.
|
|
84
|
+
For the default scaffold, that routed project surface is `apps/wiki/content/docs/project/`.
|
|
85
|
+
|
|
86
|
+
Do not create a separate `apps/wiki/domains/` article tree. That duplicates the routed Fumadocs surface and makes later docs ingest choose between competing homes.
|
|
87
|
+
|
|
88
|
+
Do not duplicate the full grill log into concept, flow, or decision pages.
|
|
89
|
+
Summarize stable meaning, glossary, and axioms; link back to source docs when useful.
|
|
90
|
+
|
|
91
|
+
## Bookkeeping
|
|
92
|
+
|
|
93
|
+
After wiki changes:
|
|
94
|
+
|
|
95
|
+
- update the domain index page
|
|
96
|
+
- update root wiki index counts if pages were added
|
|
97
|
+
- append a concise entry to `apps/wiki/log.md`
|
|
98
|
+
- preserve existing frontmatter
|
|
99
|
+
- update `updated`
|
|
100
|
+
|
|
101
|
+
Do not mark grill docs as `ingested` unless they have frontmatter designed for ingest tracking.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Write Backlog Examples
|
|
2
|
+
|
|
3
|
+
## From discussion to backlog
|
|
4
|
+
|
|
5
|
+
Input:
|
|
6
|
+
|
|
7
|
+
> We need a workflow module for intake and review. Coordinators should capture submissions, reviewers should assess and route them, reassignment should preserve context, and archived records must remain visible for auditing.
|
|
8
|
+
|
|
9
|
+
Output shape:
|
|
10
|
+
|
|
11
|
+
- Module / milestone: `Intake and review`
|
|
12
|
+
- Epic: `Submission lifecycle management`
|
|
13
|
+
- Stories:
|
|
14
|
+
- Coordinator creates a new submission from external intake
|
|
15
|
+
- Reviewer updates notes and attached evidence
|
|
16
|
+
- Reviewer views the full submission timeline
|
|
17
|
+
- Lead reassigns ownership to another reviewer
|
|
18
|
+
- Lead manages unassigned submissions
|
|
19
|
+
- Lead imports historical submissions
|
|
20
|
+
- System marks submissions unassigned when a reviewer is deactivated
|
|
21
|
+
|
|
22
|
+
Native order:
|
|
23
|
+
|
|
24
|
+
- `Lead manages unassigned submissions` is blocked by:
|
|
25
|
+
- `Lead reassigns ownership to another reviewer`
|
|
26
|
+
- `Lead imports historical submissions`
|
|
27
|
+
- `System marks submissions unassigned when a reviewer is deactivated`
|
|
28
|
+
|
|
29
|
+
## From `requirements-grill` artifacts to backlog
|
|
30
|
+
|
|
31
|
+
Input artifacts:
|
|
32
|
+
|
|
33
|
+
- `docs/submission-lifecycle-grill-status.md`
|
|
34
|
+
- `docs/submission-lifecycle-grill-log.md`
|
|
35
|
+
|
|
36
|
+
Read status first:
|
|
37
|
+
|
|
38
|
+
- branch `ownership-transfer` = `100%`
|
|
39
|
+
- branch `unassigned-queue` = `100%`
|
|
40
|
+
- branch `historical-import` = `100%`
|
|
41
|
+
- branch `deactivation-handling` = `100%`
|
|
42
|
+
- recommended next direction = backlog/user-story creation
|
|
43
|
+
|
|
44
|
+
Read log second:
|
|
45
|
+
|
|
46
|
+
- accepted decisions define ownership visibility, unassigned handling, and import behavior
|
|
47
|
+
- superseded decisions are ignored in favor of the latest locked answer
|
|
48
|
+
|
|
49
|
+
Output shape:
|
|
50
|
+
|
|
51
|
+
- Module / milestone: `Intake and review`
|
|
52
|
+
- Epic: `Submission lifecycle management`
|
|
53
|
+
- Stories:
|
|
54
|
+
- Lead reassigns ownership to another reviewer
|
|
55
|
+
- Lead manages unassigned submissions
|
|
56
|
+
- Lead imports historical submissions
|
|
57
|
+
- System marks submissions unassigned when a reviewer is deactivated
|
|
58
|
+
|
|
59
|
+
## Story-shape reminder
|
|
60
|
+
|
|
61
|
+
Good story:
|
|
62
|
+
|
|
63
|
+
`As a team lead, I want to view and manage unassigned submissions so I can restore ownership quickly without losing context`
|
|
64
|
+
|
|
65
|
+
Bad story:
|
|
66
|
+
|
|
67
|
+
`Add queue table and reassignment mutation`
|