@punks/cli 2.1.10 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/index.js +0 -0
- package/package.json +1 -1
- package/dist/data/AGENTS.md +0 -119
- package/dist/data/catalog/hooks.ts +0 -26
- package/dist/data/catalog/lint.ts +0 -266
- package/dist/data/catalog/packs.ts +0 -320
- package/dist/data/catalog/skills.ts +0 -441
- package/dist/data/catalog/tools.ts +0 -48
- package/dist/data/control-plane.json +0 -3
- package/dist/data/hooks/format-edited-file.mjs +0 -699
- package/dist/data/hooks/format-edited-file.sh +0 -37
- package/dist/data/hooks/require-tests-for-pr.mjs +0 -206
- package/dist/data/hooks/scaffold-update-check.mjs +0 -181
- package/dist/data/hooks.test.ts +0 -109
- package/dist/data/scripts/sync-subagents.mjs +0 -491
- package/dist/data/subagents/manifest.mjs +0 -487
- package/dist/data/subagents/manifest.test.ts +0 -40
- package/dist/skills/agnostic/backend/backend-domain-structure/SKILL.md +0 -50
- package/dist/skills/agnostic/backend/backend-domain-structure/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/backend/backend-domain-structure/references/layout.md +0 -167
- package/dist/skills/agnostic/backend/backend-recoverable-actions/SKILL.md +0 -49
- package/dist/skills/agnostic/backend/backend-recoverable-actions/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/strategy-matrix.md +0 -34
- package/dist/skills/agnostic/backend/backend-recoverable-actions/references/test-matrix.md +0 -34
- package/dist/skills/agnostic/backend/logging-best-practices/SKILL.md +0 -127
- package/dist/skills/agnostic/backend/logging-best-practices/rules/context.md +0 -157
- package/dist/skills/agnostic/backend/logging-best-practices/rules/pitfalls.md +0 -118
- package/dist/skills/agnostic/backend/logging-best-practices/rules/structure.md +0 -193
- package/dist/skills/agnostic/backend/logging-best-practices/rules/wide-events.md +0 -113
- package/dist/skills/agnostic/cli/dp-cli/SKILL.md +0 -125
- package/dist/skills/agnostic/cli/dp-cli/references/commands.md +0 -70
- package/dist/skills/agnostic/cli/dp-cli/references/post-command-flow.md +0 -70
- package/dist/skills/agnostic/debug/debug-agent/SKILL.md +0 -184
- package/dist/skills/agnostic/docs/docs-onboarding/SKILL.md +0 -46
- package/dist/skills/agnostic/docs/docs-onboarding/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/docs/docs-onboarding/references/artifact-contract.md +0 -67
- package/dist/skills/agnostic/docs/upstream/mattpocock-writing-skills.md +0 -41
- package/dist/skills/agnostic/docs/writing-beats/SKILL.md +0 -69
- package/dist/skills/agnostic/docs/writing-fragments/SKILL.md +0 -76
- package/dist/skills/agnostic/docs/writing-shape/SKILL.md +0 -75
- package/dist/skills/agnostic/frontend/agent-browser/.clawdhub/origin.json +0 -7
- package/dist/skills/agnostic/frontend/agent-browser/SKILL.md +0 -229
- package/dist/skills/agnostic/frontend/agent-browser/references/authentication.md +0 -202
- package/dist/skills/agnostic/frontend/agent-browser/references/commands.md +0 -259
- package/dist/skills/agnostic/frontend/agent-browser/references/proxy-support.md +0 -188
- package/dist/skills/agnostic/frontend/agent-browser/references/session-management.md +0 -193
- package/dist/skills/agnostic/frontend/agent-browser/references/snapshot-refs.md +0 -194
- package/dist/skills/agnostic/frontend/agent-browser/references/video-recording.md +0 -173
- package/dist/skills/agnostic/frontend/agent-browser/templates/authenticated-session.sh +0 -97
- package/dist/skills/agnostic/frontend/agent-browser/templates/capture-workflow.sh +0 -69
- package/dist/skills/agnostic/frontend/agent-browser/templates/form-automation.sh +0 -62
- package/dist/skills/agnostic/frontend/design-taste-frontend/SKILL.md +0 -226
- package/dist/skills/agnostic/frontend/frontend-domain-structure/SKILL.md +0 -55
- package/dist/skills/agnostic/frontend/frontend-domain-structure/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/react/structure.md +0 -102
- package/dist/skills/agnostic/frontend/frontend-domain-structure/references/structure.md +0 -257
- package/dist/skills/agnostic/frontend/gpt-taste/SKILL.md +0 -74
- package/dist/skills/agnostic/frontend/image-taste-frontend/SKILL.md +0 -1102
- package/dist/skills/agnostic/frontend/redesign-existing-projects/SKILL.md +0 -178
- package/dist/skills/agnostic/planning/create-plan/REFERENCE.md +0 -37
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +0 -87
- package/dist/skills/agnostic/planning/create-plan/references/backlog-sync.md +0 -44
- package/dist/skills/agnostic/planning/create-plan/references/grill-phase.md +0 -87
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +0 -70
- package/dist/skills/agnostic/planning/create-plan/references/planner-phase.md +0 -42
- package/dist/skills/agnostic/planning/create-plan/references/stop-conditions.md +0 -18
- package/dist/skills/agnostic/planning/create-plan/references/tdd-phase.md +0 -26
- package/dist/skills/agnostic/planning/create-spec/SKILL.md +0 -110
- package/dist/skills/agnostic/planning/create-spec/assets/SPEC-TEMPLATE.md +0 -91
- package/dist/skills/agnostic/planning/create-spec/references/backlog-sync.md +0 -49
- package/dist/skills/agnostic/planning/create-spec/references/discovery.md +0 -54
- package/dist/skills/agnostic/planning/create-spec/references/folder-naming.md +0 -33
- package/dist/skills/agnostic/planning/create-spec/references/grill-phase.md +0 -47
- package/dist/skills/agnostic/planning/create-spec/references/handoff.md +0 -47
- package/dist/skills/agnostic/planning/create-spec/references/questioning.md +0 -51
- package/dist/skills/agnostic/planning/create-spec/references/spec-quality-bar.md +0 -58
- package/dist/skills/agnostic/planning/create-spec/references/wiki-bookkeeping.md +0 -50
- package/dist/skills/agnostic/planning/grill-me/SKILL.md +0 -28
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +0 -99
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +0 -53
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +0 -193
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +0 -102
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +0 -67
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +0 -56
- package/dist/skills/agnostic/planning/implement-spec/references/sequential.md +0 -38
- package/dist/skills/agnostic/planning/stack/SKILL.md +0 -89
- package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +0 -179
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +0 -191
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +0 -1176
- package/dist/skills/agnostic/quality/autoreview/scripts/test-review-harness +0 -176
- package/dist/skills/agnostic/quality/simplify/SKILL.md +0 -14
- package/dist/skills/agnostic/quality/tdd/SKILL.md +0 -107
- package/dist/skills/agnostic/quality/tdd/deep-modules.md +0 -33
- package/dist/skills/agnostic/quality/tdd/interface-design.md +0 -31
- package/dist/skills/agnostic/quality/tdd/mocking.md +0 -59
- package/dist/skills/agnostic/quality/tdd/refactoring.md +0 -10
- package/dist/skills/agnostic/quality/tdd/tests.md +0 -61
- package/dist/skills/agnostic/requirements/requirements-grill/SKILL.md +0 -43
- package/dist/skills/agnostic/requirements/requirements-grill/references/artifact-output.md +0 -157
- package/dist/skills/agnostic/requirements/requirements-grill/references/grilling-flow.md +0 -69
- package/dist/skills/agnostic/requirements/requirements-grill/references/wiki-output.md +0 -101
- package/dist/skills/agnostic/requirements/write-backlog/EXAMPLES.md +0 -67
- package/dist/skills/agnostic/requirements/write-backlog/REFERENCE.md +0 -262
- package/dist/skills/agnostic/requirements/write-backlog/SKILL.md +0 -71
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/backlog-model.md +0 -69
- package/dist/skills/agnostic/requirements/write-backlog/assets/concepts/story-shape.md +0 -66
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/azure-devops-create-payload.md +0 -63
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/github-projects-create-payload.md +0 -224
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/linear-create-payload.md +0 -76
- package/dist/skills/agnostic/requirements/write-backlog/assets/providers/monday-create-payload.md +0 -146
- package/dist/skills/agnostic/research/improve-codebase-architecture/REFERENCE.md +0 -78
- package/dist/skills/agnostic/research/improve-codebase-architecture/SKILL.md +0 -76
- package/dist/skills/agnostic/research/parallel-research/SKILL.md +0 -68
- package/dist/skills/agnostic/research/parallel-research/agents/openai.yaml +0 -4
- package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +0 -179
- package/dist/skills/agnostic/write-a-skill/SKILL.md +0 -117
- package/dist/skills/frameworks/better-auth/better-auth-best-practices/SKILL.md +0 -166
- package/dist/skills/frameworks/better-auth/better-auth-security-best-practices/SKILL.MD +0 -432
- package/dist/skills/frameworks/effect/effect-authoring/SKILL.md +0 -116
- package/dist/skills/frameworks/effect/effect-authoring/references/branded-types.md +0 -98
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-atom-patterns.md +0 -257
- package/dist/skills/frameworks/effect/effect-authoring/references/effect-primitives.md +0 -144
- package/dist/skills/frameworks/effect/effect-authoring/references/error-patterns.md +0 -156
- package/dist/skills/frameworks/effect/effect-authoring/references/otel-patterns.md +0 -113
- package/dist/skills/frameworks/effect/effect-authoring/references/test-patterns.md +0 -146
- package/dist/skills/frameworks/effect/effect-backend-structure/SKILL.md +0 -96
- package/dist/skills/frameworks/effect/effect-backend-structure/agents/openai.yaml +0 -4
- package/dist/skills/frameworks/effect/effect-backend-structure/references/layout.md +0 -68
- package/dist/skills/frameworks/effect/effect-best-practices/SKILL.md +0 -517
- package/dist/skills/frameworks/effect/effect-best-practices/references/anti-patterns.md +0 -392
- package/dist/skills/frameworks/effect/effect-best-practices/references/effect-atom-patterns.md +0 -653
- package/dist/skills/frameworks/effect/effect-best-practices/references/error-patterns.md +0 -464
- package/dist/skills/frameworks/effect/effect-best-practices/references/language-server.md +0 -287
- package/dist/skills/frameworks/effect/effect-best-practices/references/layer-patterns.md +0 -495
- package/dist/skills/frameworks/effect/effect-best-practices/references/observability-patterns.md +0 -342
- package/dist/skills/frameworks/effect/effect-best-practices/references/rpc-cluster-patterns.md +0 -418
- package/dist/skills/frameworks/effect/effect-best-practices/references/schema-patterns.md +0 -353
- package/dist/skills/frameworks/effect/effect-best-practices/references/service-patterns.md +0 -299
- package/dist/skills/frameworks/effect/effect-recoverable-actions/SKILL.md +0 -65
- package/dist/skills/frameworks/effect/effect-recoverable-actions/agents/openai.yaml +0 -4
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/flow-examples.md +0 -154
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/source-backed-primitives.md +0 -104
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/strategy-matrix.md +0 -34
- package/dist/skills/frameworks/effect/effect-recoverable-actions/references/test-matrix.md +0 -36
- package/dist/skills/frameworks/elysia/elysiajs/SKILL.md +0 -475
- package/dist/skills/frameworks/elysia/elysiajs/examples/basic.ts +0 -9
- package/dist/skills/frameworks/elysia/elysiajs/examples/body-parser.ts +0 -33
- package/dist/skills/frameworks/elysia/elysiajs/examples/complex.ts +0 -112
- package/dist/skills/frameworks/elysia/elysiajs/examples/cookie.ts +0 -45
- package/dist/skills/frameworks/elysia/elysiajs/examples/error.ts +0 -38
- package/dist/skills/frameworks/elysia/elysiajs/examples/file.ts +0 -10
- package/dist/skills/frameworks/elysia/elysiajs/examples/guard.ts +0 -34
- package/dist/skills/frameworks/elysia/elysiajs/examples/map-response.ts +0 -15
- package/dist/skills/frameworks/elysia/elysiajs/examples/redirect.ts +0 -6
- package/dist/skills/frameworks/elysia/elysiajs/examples/rename.ts +0 -32
- package/dist/skills/frameworks/elysia/elysiajs/examples/schema.ts +0 -61
- package/dist/skills/frameworks/elysia/elysiajs/examples/state.ts +0 -6
- package/dist/skills/frameworks/elysia/elysiajs/examples/upload-file.ts +0 -20
- package/dist/skills/frameworks/elysia/elysiajs/examples/websocket.ts +0 -25
- package/dist/skills/frameworks/elysia/elysiajs/integrations/ai-sdk.md +0 -92
- package/dist/skills/frameworks/elysia/elysiajs/integrations/astro.md +0 -59
- package/dist/skills/frameworks/elysia/elysiajs/integrations/better-auth.md +0 -117
- package/dist/skills/frameworks/elysia/elysiajs/integrations/cloudflare-worker.md +0 -95
- package/dist/skills/frameworks/elysia/elysiajs/integrations/deno.md +0 -34
- package/dist/skills/frameworks/elysia/elysiajs/integrations/drizzle.md +0 -258
- package/dist/skills/frameworks/elysia/elysiajs/integrations/expo.md +0 -95
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nextjs.md +0 -103
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nodejs.md +0 -64
- package/dist/skills/frameworks/elysia/elysiajs/integrations/nuxt.md +0 -67
- package/dist/skills/frameworks/elysia/elysiajs/integrations/prisma.md +0 -93
- package/dist/skills/frameworks/elysia/elysiajs/integrations/react-email.md +0 -134
- package/dist/skills/frameworks/elysia/elysiajs/integrations/sveltekit.md +0 -53
- package/dist/skills/frameworks/elysia/elysiajs/integrations/tanstack-start.md +0 -87
- package/dist/skills/frameworks/elysia/elysiajs/integrations/vercel.md +0 -55
- package/dist/skills/frameworks/elysia/elysiajs/patterns/mvc.md +0 -380
- package/dist/skills/frameworks/elysia/elysiajs/plugins/bearer.md +0 -30
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cors.md +0 -141
- package/dist/skills/frameworks/elysia/elysiajs/plugins/cron.md +0 -265
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-apollo.md +0 -90
- package/dist/skills/frameworks/elysia/elysiajs/plugins/graphql-yoga.md +0 -87
- package/dist/skills/frameworks/elysia/elysiajs/plugins/html.md +0 -188
- package/dist/skills/frameworks/elysia/elysiajs/plugins/jwt.md +0 -197
- package/dist/skills/frameworks/elysia/elysiajs/plugins/openapi.md +0 -246
- package/dist/skills/frameworks/elysia/elysiajs/plugins/opentelemetry.md +0 -167
- package/dist/skills/frameworks/elysia/elysiajs/plugins/server-timing.md +0 -71
- package/dist/skills/frameworks/elysia/elysiajs/plugins/static.md +0 -84
- package/dist/skills/frameworks/elysia/elysiajs/references/bun-fullstack-dev-server.md +0 -129
- package/dist/skills/frameworks/elysia/elysiajs/references/cookie.md +0 -187
- package/dist/skills/frameworks/elysia/elysiajs/references/deployment.md +0 -413
- package/dist/skills/frameworks/elysia/elysiajs/references/eden.md +0 -158
- package/dist/skills/frameworks/elysia/elysiajs/references/lifecycle.md +0 -198
- package/dist/skills/frameworks/elysia/elysiajs/references/macro.md +0 -83
- package/dist/skills/frameworks/elysia/elysiajs/references/plugin.md +0 -207
- package/dist/skills/frameworks/elysia/elysiajs/references/route.md +0 -331
- package/dist/skills/frameworks/elysia/elysiajs/references/testing.md +0 -385
- package/dist/skills/frameworks/elysia/elysiajs/references/validation.md +0 -491
- package/dist/skills/frameworks/elysia/elysiajs/references/websocket.md +0 -250
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/branch-protection.yml +0 -24
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/.github/workflows/deploy.yml +0 -61
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/AGENTS.md +0 -5958
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/SKILL.md +0 -130
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-dto-serialization.md +0 -182
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-interceptors.md +0 -202
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-use-pipes.md +0 -205
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/api-versioning.md +0 -191
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-avoid-circular-deps.md +0 -80
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-feature-modules.md +0 -82
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-module-sharing.md +0 -141
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-single-responsibility.md +0 -106
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-events.md +0 -108
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/arch-use-repository-pattern.md +0 -97
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-avoid-n-plus-one.md +0 -139
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-migrations.md +0 -129
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/db-use-transactions.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-graceful-shutdown.md +0 -222
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-config-module.md +0 -167
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/devops-use-logging.md +0 -232
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-avoid-service-locator.md +0 -104
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-interface-segregation.md +0 -165
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-liskov-substitution.md +0 -221
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-prefer-constructor-injection.md +0 -86
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-scope-awareness.md +0 -94
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/di-use-interfaces-tokens.md +0 -101
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-handle-async-errors.md +0 -125
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-throw-http-exceptions.md +0 -114
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/error-use-exception-filters.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-health-checks.md +0 -226
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-patterns.md +0 -167
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/micro-use-queues.md +0 -252
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-async-hooks.md +0 -109
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-lazy-loading.md +0 -121
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-optimize-database.md +0 -131
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/perf-use-caching.md +0 -128
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-auth-jwt.md +0 -146
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-rate-limiting.md +0 -125
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-sanitize-output.md +0 -139
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-use-guards.md +0 -135
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/security-validate-all-input.md +0 -150
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-e2e-supertest.md +0 -178
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-mock-external-services.md +0 -179
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/rules/test-use-testing-module.md +0 -153
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build-agents.ts +0 -299
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/build.sh +0 -16
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package-lock.json +0 -237
- package/dist/skills/frameworks/nestjs/nestjs-best-practices/scripts/package.json +0 -15
- package/dist/skills/frameworks/nestjs/nestjs-expert/SKILL.md +0 -208
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/authentication.md +0 -166
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/controllers-routing.md +0 -111
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/dtos-validation.md +0 -153
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/migration-from-express.md +0 -1237
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/services-di.md +0 -140
- package/dist/skills/frameworks/nestjs/nestjs-expert/references/testing-patterns.md +0 -186
- package/dist/skills/frameworks/nextjs/next-best-practices/SKILL.md +0 -153
- package/dist/skills/frameworks/nextjs/next-best-practices/async-patterns.md +0 -87
- package/dist/skills/frameworks/nextjs/next-best-practices/bundling.md +0 -180
- package/dist/skills/frameworks/nextjs/next-best-practices/data-patterns.md +0 -297
- package/dist/skills/frameworks/nextjs/next-best-practices/debug-tricks.md +0 -105
- package/dist/skills/frameworks/nextjs/next-best-practices/directives.md +0 -73
- package/dist/skills/frameworks/nextjs/next-best-practices/error-handling.md +0 -227
- package/dist/skills/frameworks/nextjs/next-best-practices/file-conventions.md +0 -140
- package/dist/skills/frameworks/nextjs/next-best-practices/font.md +0 -245
- package/dist/skills/frameworks/nextjs/next-best-practices/functions.md +0 -108
- package/dist/skills/frameworks/nextjs/next-best-practices/hydration-error.md +0 -91
- package/dist/skills/frameworks/nextjs/next-best-practices/image.md +0 -173
- package/dist/skills/frameworks/nextjs/next-best-practices/metadata.md +0 -301
- package/dist/skills/frameworks/nextjs/next-best-practices/parallel-routes.md +0 -287
- package/dist/skills/frameworks/nextjs/next-best-practices/route-handlers.md +0 -146
- package/dist/skills/frameworks/nextjs/next-best-practices/rsc-boundaries.md +0 -159
- package/dist/skills/frameworks/nextjs/next-best-practices/runtime-selection.md +0 -39
- package/dist/skills/frameworks/nextjs/next-best-practices/scripts.md +0 -141
- package/dist/skills/frameworks/nextjs/next-best-practices/self-hosting.md +0 -371
- package/dist/skills/frameworks/nextjs/next-best-practices/suspense-boundaries.md +0 -67
- package/dist/skills/frameworks/nextjs/next-cache-components/SKILL.md +0 -360
- package/dist/skills/frameworks/react/async-react-patterns/SKILL.md +0 -78
- package/dist/skills/frameworks/react/vercel-composition-patterns/AGENTS.md +0 -946
- package/dist/skills/frameworks/react/vercel-composition-patterns/SKILL.md +0 -89
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +0 -100
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/architecture-compound-components.md +0 -112
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-children-over-render-props.md +0 -87
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/patterns-explicit-variants.md +0 -100
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/react19-no-forwardref.md +0 -42
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-context-interface.md +0 -191
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-decouple-implementation.md +0 -113
- package/dist/skills/frameworks/react/vercel-composition-patterns/rules/state-lift-state.md +0 -125
- package/dist/skills/frameworks/react/vercel-react-best-practices/AGENTS.md +0 -3750
- package/dist/skills/frameworks/react/vercel-react-best-practices/SKILL.md +0 -148
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-effect-event-deps.md +0 -56
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-init-once.md +0 -42
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/advanced-use-latest.md +0 -39
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-api-routes.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +0 -37
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-defer-await.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-dependencies.md +0 -51
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-parallel.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -60
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/bundle-preload.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -107
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-early-exit.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-flatmap-filter.md +0 -60
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-index-maps.md +0 -37
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-length-check-first.md +0 -49
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-request-idle-callback.md +0 -105
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-activity.md +0 -26
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +0 -30
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-resource-hints.md +0 -85
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-script-defer-async.md +0 -68
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +0 -38
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-memo.md +0 -44
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-no-inline-components.md +0 -82
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +0 -64
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-deferred-value.md +0 -59
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-auth-actions.md +0 -96
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-cache-react.md +0 -76
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-dedup-props.md +0 -65
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-hoist-static-io.md +0 -149
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-no-shared-module-state.md +0 -50
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +0 -34
- package/dist/skills/frameworks/react/vercel-react-best-practices/rules/server-serialization.md +0 -38
- package/dist/skills/frameworks/tanstack-query/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/skills/frameworks/tanstack-query/tanstack-query/SKILL.md +0 -849
- package/dist/skills/frameworks/tanstack-query/tanstack-query/assets/example-template.txt +0 -14
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/best-practices.md +0 -304
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/common-patterns.md +0 -271
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/example-reference.md +0 -26
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/testing.md +0 -282
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/top-errors.md +0 -332
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/typescript-patterns.md +0 -291
- package/dist/skills/frameworks/tanstack-query/tanstack-query/references/v4-to-v5-migration.md +0 -231
- package/dist/skills/frameworks/tanstack-query/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/skills/frameworks/tanstack-query/tanstack-query/scripts/example-script.sh +0 -15
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/custom-hooks-pattern.tsx +0 -281
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/devtools-setup.tsx +0 -248
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/error-boundary.tsx +0 -243
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/package.json +0 -31
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/provider-setup.tsx +0 -50
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/query-client-config.ts +0 -72
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-infinite-query.tsx +0 -214
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-basic.tsx +0 -201
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-mutation-optimistic.tsx +0 -234
- package/dist/skills/frameworks/tanstack-query/tanstack-query/templates/use-query-basic.tsx +0 -119
- package/dist/skills/frameworks/tanstack-start/tanstack-start/SKILL.md +0 -250
- package/dist/skills/frameworks/trpc/tanstack-query/.claude-plugin/plugin.json +0 -12
- package/dist/skills/frameworks/trpc/tanstack-query/SKILL.md +0 -1058
- package/dist/skills/frameworks/trpc/tanstack-query/assets/example-template.txt +0 -14
- package/dist/skills/frameworks/trpc/tanstack-query/references/best-practices.md +0 -304
- package/dist/skills/frameworks/trpc/tanstack-query/references/common-patterns.md +0 -271
- package/dist/skills/frameworks/trpc/tanstack-query/references/example-reference.md +0 -26
- package/dist/skills/frameworks/trpc/tanstack-query/references/testing.md +0 -282
- package/dist/skills/frameworks/trpc/tanstack-query/references/top-errors.md +0 -332
- package/dist/skills/frameworks/trpc/tanstack-query/references/typescript-patterns.md +0 -291
- package/dist/skills/frameworks/trpc/tanstack-query/references/v4-to-v5-migration.md +0 -231
- package/dist/skills/frameworks/trpc/tanstack-query/rules/tanstack-query.md +0 -126
- package/dist/skills/frameworks/trpc/tanstack-query/scripts/example-script.sh +0 -15
- package/dist/skills/frameworks/trpc/tanstack-query/templates/custom-hooks-pattern.tsx +0 -281
- package/dist/skills/frameworks/trpc/tanstack-query/templates/devtools-setup.tsx +0 -248
- package/dist/skills/frameworks/trpc/tanstack-query/templates/error-boundary.tsx +0 -243
- package/dist/skills/frameworks/trpc/tanstack-query/templates/package.json +0 -31
- package/dist/skills/frameworks/trpc/tanstack-query/templates/provider-setup.tsx +0 -50
- package/dist/skills/frameworks/trpc/tanstack-query/templates/query-client-config.ts +0 -72
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-infinite-query.tsx +0 -214
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-basic.tsx +0 -201
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-mutation-optimistic.tsx +0 -234
- package/dist/skills/frameworks/trpc/tanstack-query/templates/use-query-basic.tsx +0 -119
- package/dist/skills/frameworks/turborepo/turborepo/SKILL.md +0 -914
- package/dist/skills/frameworks/turborepo/turborepo/command/turborepo.md +0 -70
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/RULE.md +0 -241
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/dependencies.md +0 -246
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/packages.md +0 -335
- package/dist/skills/frameworks/turborepo/turborepo/references/best-practices/structure.md +0 -270
- package/dist/skills/frameworks/turborepo/turborepo/references/boundaries/RULE.md +0 -126
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/RULE.md +0 -107
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/gotchas.md +0 -169
- package/dist/skills/frameworks/turborepo/turborepo/references/caching/remote-cache.md +0 -127
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/RULE.md +0 -79
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/github-actions.md +0 -162
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/patterns.md +0 -145
- package/dist/skills/frameworks/turborepo/turborepo/references/ci/vercel.md +0 -103
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/RULE.md +0 -100
- package/dist/skills/frameworks/turborepo/turborepo/references/cli/commands.md +0 -297
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/RULE.md +0 -211
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/global-options.md +0 -187
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/gotchas.md +0 -348
- package/dist/skills/frameworks/turborepo/turborepo/references/configuration/tasks.md +0 -285
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/RULE.md +0 -96
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/gotchas.md +0 -141
- package/dist/skills/frameworks/turborepo/turborepo/references/environment/modes.md +0 -101
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/RULE.md +0 -148
- package/dist/skills/frameworks/turborepo/turborepo/references/filtering/patterns.md +0 -152
- package/dist/skills/frameworks/turborepo/turborepo/references/watch/RULE.md +0 -99
- package/dist/skills/languages/python/async-python-patterns/SKILL.md +0 -735
- package/dist/skills/languages/python/python-code-style/SKILL.md +0 -360
- package/dist/skills/languages/python/python-design-patterns/SKILL.md +0 -433
- package/dist/skills/languages/python/python-project-structure/SKILL.md +0 -252
- package/dist/skills/languages/python/python-testing-patterns/SKILL.md +0 -622
- package/dist/skills/languages/python/python-testing-patterns/references/advanced-patterns.md +0 -411
- package/dist/skills/languages/typescript/quality-types/SKILL.md +0 -93
- package/dist/skills/phases/bug-discovery-phase/REFERENCE.md +0 -140
- package/dist/skills/phases/bug-discovery-phase/SKILL.md +0 -78
- package/dist/skills/phases/bug-resolution-phase/REFERENCE.md +0 -160
- package/dist/skills/phases/bug-resolution-phase/SKILL.md +0 -64
- package/dist/skills/phases/debugging-phase/SKILL.md +0 -87
- package/dist/skills/phases/delivery-phase/SKILL.md +0 -87
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +0 -96
- package/dist/skills/phases/docs-ingest-phase/agents/openai.yaml +0 -4
- package/dist/skills/phases/docs-ingest-phase/references/concept-pages.md +0 -70
- package/dist/skills/phases/docs-ingest-phase/references/flow-pages.md +0 -56
- package/dist/skills/phases/docs-ingest-phase/references/fumadocs-routing.md +0 -74
- package/dist/skills/phases/docs-ingest-phase/references/public-docs.md +0 -82
- package/dist/skills/phases/docs-ingest-phase/references/repo-docs.md +0 -38
- package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +0 -133
- package/dist/skills/phases/goalify/EXAMPLES.md +0 -78
- package/dist/skills/phases/goalify/SKILL.md +0 -129
- package/dist/skills/phases/requirements-phase/SKILL.md +0 -69
- package/dist/skills/phases/resolve-debt-phase/SKILL.md +0 -87
- package/dist/skills/phases/review-phase/SKILL.md +0 -116
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: bug-discovery-phase
|
|
3
|
-
description: >-
|
|
4
|
-
Runs AFK ClawPatch bug discovery, reporting, and triage without source
|
|
5
|
-
mutation. Use when the user asks for ClawPatch discovery, broad bug discovery,
|
|
6
|
-
bug lifecycle triage, finding ledgers, AFK bug review, or durable bug reports.
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Bug Discovery Phase
|
|
10
|
-
|
|
11
|
-
`bug-discovery-phase` wraps ClawPatch discovery. It produces review state,
|
|
12
|
-
reports, and triage notes; it does not prove runtime root causes and does not
|
|
13
|
-
patch code by default.
|
|
14
|
-
|
|
15
|
-
See [REFERENCE.md](REFERENCE.md) for command patterns, provider warning wording,
|
|
16
|
-
and the full output checklist.
|
|
17
|
-
|
|
18
|
-
## Contract
|
|
19
|
-
|
|
20
|
-
- **Role:** public AFK ClawPatch discovery/report/triage phase
|
|
21
|
-
- **Owns:** ClawPatch setup checks, discovery scope, report path, durable state,
|
|
22
|
-
finding IDs, and branch-relevant triage notes
|
|
23
|
-
- **Does not own:** runtime reproduction, root-cause proof, code fixes, PRs, or
|
|
24
|
-
repo tech-debt docs
|
|
25
|
-
- **Allowed commands:** `clawpatch init`, `map`, `review`, `ci`, `report`,
|
|
26
|
-
`show`, `next`, `triage`, `status`, `doctor`, `revalidate`
|
|
27
|
-
- **Blocked by default:** `clawpatch fix --finding`, `clawpatch open-pr`
|
|
28
|
-
|
|
29
|
-
## Use When
|
|
30
|
-
|
|
31
|
-
- The user asks for broad ClawPatch review, discovery, report, triage, or status.
|
|
32
|
-
- A goal needs AFK static bug-finding before humans choose findings to resolve.
|
|
33
|
-
- Existing `.clawpatch/` state needs inspection, report generation, or triage.
|
|
34
|
-
- The desired output is a durable finding ledger, not a patch.
|
|
35
|
-
|
|
36
|
-
## Do Not Use When
|
|
37
|
-
|
|
38
|
-
- There is one concrete runtime symptom; use `$debugging-phase`.
|
|
39
|
-
- The user asks to fix a selected ClawPatch finding; use `$bug-resolution-phase`.
|
|
40
|
-
- The user wants repo tech-debt docs; route that through `$docs-ingest-phase`
|
|
41
|
-
after a selected finding is classified.
|
|
42
|
-
- The target repo, provider, or scope cannot be identified.
|
|
43
|
-
|
|
44
|
-
## Workflow
|
|
45
|
-
|
|
46
|
-
1. **Bound the run.** Record repo root, scope, provider, model, `--limit`,
|
|
47
|
-
`--jobs`, state dir, report path, dirty-worktree posture, and requested output
|
|
48
|
-
format before running ClawPatch.
|
|
49
|
-
2. **Warn on cost-sensitive routes.** Warn, but do not ban, Claude, Anthropic,
|
|
50
|
-
`acpx` resolving to Claude, `pi`, Anthropic model names, or
|
|
51
|
-
`ANTHROPIC_API_KEY`.
|
|
52
|
-
3. **Make provider explicit.** Generated goals and commands must include the
|
|
53
|
-
selected provider. Include the model when known.
|
|
54
|
-
4. **Inspect readiness.** Prefer `clawpatch doctor`, `status`, and existing
|
|
55
|
-
`.clawpatch/` state before long runs.
|
|
56
|
-
5. **Discover.** Use read-oriented ClawPatch commands: usually `init`, `map`,
|
|
57
|
-
then `review` or `ci` with explicit provider, model, limit, jobs, state dir,
|
|
58
|
-
scope, and output.
|
|
59
|
-
6. **Report and triage.** Generate a report under `.clawpatch/reports/` unless
|
|
60
|
-
the user supplied another path. Use `clawpatch report --output <path>` for
|
|
61
|
-
Markdown reports; for JSON, run `clawpatch report --json > <path>` because
|
|
62
|
-
`--output` writes Markdown. Use `show`, `next`, `triage`, `status`, or
|
|
63
|
-
`revalidate` only for inspection and classification.
|
|
64
|
-
7. **Stop before mutation.** Do not run `fix --finding` or `open-pr` unless the
|
|
65
|
-
user gives a new explicit resolution request.
|
|
66
|
-
|
|
67
|
-
## Output Contract
|
|
68
|
-
|
|
69
|
-
Return:
|
|
70
|
-
|
|
71
|
-
- repo root, scope, provider, model, `--limit`, `--jobs`
|
|
72
|
-
- report path and durable ClawPatch ledger/state path
|
|
73
|
-
- commands run and validation status
|
|
74
|
-
- relevant finding IDs, statuses, and branch relevance
|
|
75
|
-
- warning that findings are static-review candidates, not proven runtime root
|
|
76
|
-
causes
|
|
77
|
-
- next action: inspect selected finding, enter `$bug-resolution-phase`, enter
|
|
78
|
-
`$debugging-phase`, or stop
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
# Bug Resolution Phase Reference
|
|
2
|
-
|
|
3
|
-
## Operating Model
|
|
4
|
-
|
|
5
|
-
`bug-resolution-phase` starts after a human or upstream discovery step selects one ClawPatch finding. ClawPatch is the ledger and context source; it is not treated as proof of runtime behavior and is not the default patching engine.
|
|
6
|
-
|
|
7
|
-
Default to one finding. Accept a batch only when the user bounds it and the findings share at least one concrete constraint:
|
|
8
|
-
|
|
9
|
-
- same confirmed or suspected root cause
|
|
10
|
-
- same owned file set or package boundary
|
|
11
|
-
- same validation path or failing check
|
|
12
|
-
- same contract or test coverage gap
|
|
13
|
-
|
|
14
|
-
Do not turn a broad report into an automatic repair campaign. If the request is ambiguous, ask for the finding ID or batch boundary.
|
|
15
|
-
|
|
16
|
-
## Useful ClawPatch Commands
|
|
17
|
-
|
|
18
|
-
Use commands like these for context and state:
|
|
19
|
-
|
|
20
|
-
```sh
|
|
21
|
-
clawpatch show --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID"
|
|
22
|
-
clawpatch report --root "$REPO" --state-dir "$REPO/.clawpatch" --status open
|
|
23
|
-
clawpatch report --root "$REPO" --state-dir "$REPO/.clawpatch" --json > "$REPORT_JSON"
|
|
24
|
-
clawpatch triage --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID" --status "$STATUS" --note "$REASON"
|
|
25
|
-
clawpatch revalidate --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID"
|
|
26
|
-
clawpatch fix --root "$REPO" --state-dir "$REPO/.clawpatch" --finding "$FINDING_ID" --dry-run
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
`clawpatch report` renders the current finding ledger for context. Use it to
|
|
30
|
-
recover report context when a resolution goal starts from only a finding ID or
|
|
31
|
-
state directory. `--output <path>` writes Markdown. `--json` writes JSON to
|
|
32
|
-
stdout, so redirect stdout when a JSON artifact is needed.
|
|
33
|
-
|
|
34
|
-
`clawpatch fix --finding <id> --dry-run` is allowed for inspection when it clarifies the proposed patch, but do not apply it by default. `clawpatch fix --finding <id>` and `clawpatch open-pr --patch <patchAttemptId>` are explicit mutation paths and require a clear user request.
|
|
35
|
-
|
|
36
|
-
Preserve report linkage in notes and final output: finding ID, report path if known, `.clawpatch/` state path when relevant, and command outputs used for decisions.
|
|
37
|
-
|
|
38
|
-
## Classification Matrix
|
|
39
|
-
|
|
40
|
-
### `resolve-now`
|
|
41
|
-
|
|
42
|
-
Use when the finding is selected, bounded, code/docs ownership is clear, and verification is available.
|
|
43
|
-
|
|
44
|
-
Actions:
|
|
45
|
-
|
|
46
|
-
1. Inspect ClawPatch evidence and relevant source.
|
|
47
|
-
2. Optionally inspect `clawpatch fix --finding <id> --dry-run` for context only.
|
|
48
|
-
3. Patch through normal Harness/Codex edits.
|
|
49
|
-
4. Run focused tests, type checks, smoke checks, or docs validation appropriate to the touched scope.
|
|
50
|
-
5. Revalidate with `clawpatch revalidate --finding <id>` when possible.
|
|
51
|
-
6. If revalidation is unavailable or inconclusive, update triage/status with a clear note.
|
|
52
|
-
|
|
53
|
-
### `needs-runtime-debugging`
|
|
54
|
-
|
|
55
|
-
Use when the finding depends on runtime behavior, reproduction, logs, browser/CLI checks, flakiness, performance, or an observed symptom.
|
|
56
|
-
|
|
57
|
-
Actions:
|
|
58
|
-
|
|
59
|
-
1. Stop resolution edits unless a cause is already proven.
|
|
60
|
-
2. Route into `$debugging-phase`.
|
|
61
|
-
3. Pass input artifacts: finding ID, report path, source evidence, expected behavior, observed or suspected behavior, affected scenario, and any failed revalidation.
|
|
62
|
-
4. Let `$debugging-phase` own hypotheses, runtime evidence, fix, and verification.
|
|
63
|
-
|
|
64
|
-
### `tech-debt`
|
|
65
|
-
|
|
66
|
-
Use when the finding is real or plausible but too broad for selected-finding repair, needs product/architecture decisions, lacks acceptance criteria, or would require a larger spec.
|
|
67
|
-
|
|
68
|
-
Actions:
|
|
69
|
-
|
|
70
|
-
1. Classify the selected finding first. Discovery alone must not create debt docs.
|
|
71
|
-
2. Update ClawPatch triage/history with the tech-debt reason.
|
|
72
|
-
3. Run `$docs-ingest-phase` to create or update durable repo debt/docs context.
|
|
73
|
-
4. Preserve these fields in the durable context:
|
|
74
|
-
- ClawPatch finding ID
|
|
75
|
-
- ClawPatch report path or state path
|
|
76
|
-
- source evidence and affected paths
|
|
77
|
-
- classification reason
|
|
78
|
-
- human-review question
|
|
79
|
-
- why immediate resolution is unsafe or too broad
|
|
80
|
-
5. Do not write speculative architecture as current truth.
|
|
81
|
-
|
|
82
|
-
The debt context should be small and reviewable. It should point to the
|
|
83
|
-
ClawPatch report and finding instead of copying the full report. It should name
|
|
84
|
-
the human decision needed before architecture, product scope, or acceptance
|
|
85
|
-
criteria can change.
|
|
86
|
-
|
|
87
|
-
Human-review questions should be concrete, for example: "Should this contract be changed, tested, or accepted as a known limitation?"
|
|
88
|
-
|
|
89
|
-
### `false-positive`
|
|
90
|
-
|
|
91
|
-
Use when source inspection proves the finding is incorrect, stale, unreachable, already covered, or intentionally accepted behavior.
|
|
92
|
-
|
|
93
|
-
Actions:
|
|
94
|
-
|
|
95
|
-
1. Record the proof with file paths, tests, docs, or command evidence.
|
|
96
|
-
2. Run `clawpatch triage --finding <id> --status false-positive --note "<clear reason>"` or the closest supported false-positive status.
|
|
97
|
-
3. Revalidate only if it adds signal; otherwise report the triage command as the state update.
|
|
98
|
-
|
|
99
|
-
### `blocked`
|
|
100
|
-
|
|
101
|
-
Use when resolution cannot proceed because required access, artifacts, environment, owner decision, or reproduction evidence is missing.
|
|
102
|
-
|
|
103
|
-
Actions:
|
|
104
|
-
|
|
105
|
-
1. Record the blocker and the specific missing item.
|
|
106
|
-
2. Leave source unchanged unless partial safe cleanup was already verified.
|
|
107
|
-
3. Update ClawPatch triage/status when useful with a note that names the blocker.
|
|
108
|
-
4. Report the next human action.
|
|
109
|
-
|
|
110
|
-
## Parallel Batch Resolution
|
|
111
|
-
|
|
112
|
-
`parallel: true` means bounded batch findings can be resolved concurrently, not merely inspected concurrently.
|
|
113
|
-
|
|
114
|
-
Preconditions:
|
|
115
|
-
|
|
116
|
-
- The batch list is explicit.
|
|
117
|
-
- Each finding has a classification target or classification owner.
|
|
118
|
-
- File ownership is disjoint, or the batch intentionally shares one root-cause patch with one coordination owner.
|
|
119
|
-
- Validation commands are known and can be merged centrally.
|
|
120
|
-
- Shared files, generated files, lockfiles, migrations, docs, and schemas have a single owner.
|
|
121
|
-
- Every worker can state which files it may edit, which files it must not edit,
|
|
122
|
-
and which validation it must run before handoff.
|
|
123
|
-
|
|
124
|
-
Worker brief must include:
|
|
125
|
-
|
|
126
|
-
- finding IDs
|
|
127
|
-
- classification route
|
|
128
|
-
- owned files and forbidden files
|
|
129
|
-
- allowed validation commands
|
|
130
|
-
- ClawPatch context command outputs or paths
|
|
131
|
-
- merge/revalidation handoff expectations
|
|
132
|
-
- explicit note that final ClawPatch status changes are centralized unless the
|
|
133
|
-
coordinator assigns one worker to a single finding end to end
|
|
134
|
-
|
|
135
|
-
Central coordinator responsibilities:
|
|
136
|
-
|
|
137
|
-
1. Confirm no worker overwrote unrelated edits.
|
|
138
|
-
2. Review combined diff for overlap and consistency.
|
|
139
|
-
3. Run final focused validation.
|
|
140
|
-
4. Run `clawpatch revalidate --finding <id>` for each resolved finding when possible.
|
|
141
|
-
5. Update false-positive, tech-debt, or blocked statuses centrally.
|
|
142
|
-
6. Produce one final report mapping each finding to classification, changes, validation, and ClawPatch state.
|
|
143
|
-
|
|
144
|
-
If two workers discover that their findings require the same file or root-cause
|
|
145
|
-
patch, pause fan-out for that subset and consolidate under one owner. Do not let
|
|
146
|
-
parallel workers race on the same fix.
|
|
147
|
-
|
|
148
|
-
## Output Contract
|
|
149
|
-
|
|
150
|
-
Return:
|
|
151
|
-
|
|
152
|
-
- mode: `parallel: true|false`
|
|
153
|
-
- finding IDs and report/state paths used
|
|
154
|
-
- classification for each finding
|
|
155
|
-
- route taken: resolved, debugging, debt, false-positive, or blocked
|
|
156
|
-
- changes made through normal edits, if any
|
|
157
|
-
- ClawPatch commands run and resulting state
|
|
158
|
-
- verification commands and results
|
|
159
|
-
- debt/docs artifacts or debugging handoff, if created
|
|
160
|
-
- caveats, residual risk, and next human action
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: bug-resolution-phase
|
|
3
|
-
description: >-
|
|
4
|
-
Resolves selected ClawPatch findings through classification, bounded fixes,
|
|
5
|
-
triage, docs/debt routing, and revalidation. Use when the user selects a
|
|
6
|
-
ClawPatch finding, asks for ClawPatch-backed bug resolution, or gives a
|
|
7
|
-
tightly bounded finding batch for sequential or parallel handling.
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Bug Resolution Phase
|
|
11
|
-
|
|
12
|
-
## Contract
|
|
13
|
-
|
|
14
|
-
- **Role:** public ClawPatch selected-finding resolution phase
|
|
15
|
-
- **Scope:** one selected finding by default; bounded batch only when explicitly tied by root cause, owned files, validation path, or contract/test gap
|
|
16
|
-
- **Primary input:** ClawPatch finding ID plus report or `.clawpatch/` state path when available
|
|
17
|
-
- **Uses ClawPatch for:** finding context, report linkage, triage/history, optional dry-run inspection, revalidation
|
|
18
|
-
- **Does not use by default:** `clawpatch fix --finding`, `clawpatch open-pr --patch`
|
|
19
|
-
- **Patch path:** normal Harness/Codex edits unless the user explicitly requests ClawPatch patch attempts
|
|
20
|
-
- **Exit conditions:** resolved and revalidated, routed to debugging, recorded as debt, triaged false positive, or blocked with evidence
|
|
21
|
-
|
|
22
|
-
## Use When
|
|
23
|
-
|
|
24
|
-
- The user selects a ClawPatch finding for resolution.
|
|
25
|
-
- The user asks to resolve a ClawPatch finding or bounded batch.
|
|
26
|
-
- Discovery output needs follow-up classification and repair.
|
|
27
|
-
- `parallel: true` is requested for a bounded finding batch.
|
|
28
|
-
|
|
29
|
-
## Do Not Use When
|
|
30
|
-
|
|
31
|
-
- No finding is selected; use `$bug-discovery-phase` or ask for the finding ID.
|
|
32
|
-
- The work starts from a runtime symptom rather than a ClawPatch finding; use `$debugging-phase`.
|
|
33
|
-
- The user wants broad debt resolution from an existing debt artifact; use `$resolve-debt-phase`.
|
|
34
|
-
- The request is discovery/report generation only.
|
|
35
|
-
|
|
36
|
-
## Quick Start
|
|
37
|
-
|
|
38
|
-
1. Read the selected finding with `clawpatch show --finding <id>` and, when
|
|
39
|
-
useful, `clawpatch report`. Use `report --output <path>` for Markdown or
|
|
40
|
-
`report --json > <path>` for JSON.
|
|
41
|
-
2. Capture finding ID, report path, source evidence, affected files, claimed behavior, and current ClawPatch status.
|
|
42
|
-
3. Classify each finding as `resolve-now`, `needs-runtime-debugging`, `tech-debt`, `false-positive`, or `blocked`.
|
|
43
|
-
4. Execute the classification route:
|
|
44
|
-
- `resolve-now`: patch through normal Harness/Codex edits, then test and revalidate.
|
|
45
|
-
- `needs-runtime-debugging`: route into `$debugging-phase` with the finding context as input artifact.
|
|
46
|
-
- `tech-debt`: after classification, run `$docs-ingest-phase` to create or update durable debt/docs context.
|
|
47
|
-
- `false-positive`: run `clawpatch triage --finding <id> --status <status> --note <reason>`.
|
|
48
|
-
- `blocked`: record blocker, missing evidence, and next human action.
|
|
49
|
-
5. Finish with centralized verification and `clawpatch revalidate --finding <id>` or a triage/status update.
|
|
50
|
-
|
|
51
|
-
## Parallel Rules
|
|
52
|
-
|
|
53
|
-
`bug-resolution-phase` may run with `parallel: true` or `parallel: false`.
|
|
54
|
-
|
|
55
|
-
- `parallel: false`: resolve one finding, or a tiny batch sequentially.
|
|
56
|
-
- `parallel: true`: only for bounded batches with explicit worker ownership.
|
|
57
|
-
- Before fan-out, prove findings are safely disjoint or intentionally share one root-cause scope.
|
|
58
|
-
- Assign owned finding IDs, files, tests, and allowed commands per worker.
|
|
59
|
-
- Workers may patch only their owned scope through normal Harness/Codex edits.
|
|
60
|
-
- Final verification, status decisions, and ClawPatch revalidation stay centralized.
|
|
61
|
-
|
|
62
|
-
## Reference
|
|
63
|
-
|
|
64
|
-
See [REFERENCE.md](REFERENCE.md) for classification rules, ClawPatch command guidance, tech-debt artifact requirements, and output format.
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: debugging-phase
|
|
3
|
-
description: >-
|
|
4
|
-
Runs a standalone runtime-evidence debugging phase, or a scoped debugging
|
|
5
|
-
phase inside delivery when validation or review finds runtime failure. Use
|
|
6
|
-
when the user reports broken behavior, failing smoke checks, logs,
|
|
7
|
-
recordings, runtime symptoms, or asks to debug a delivery-scoped failure.
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Debugging Phase
|
|
11
|
-
|
|
12
|
-
## Contract
|
|
13
|
-
|
|
14
|
-
- **Role:** public runtime-evidence phase
|
|
15
|
-
- **Entrypoint type:** standalone public skill, or inner phase of `delivery-phase`
|
|
16
|
-
- **Standalone inputs:** user-reported broken behavior, failing smoke checks, logs, recordings, runtime symptoms
|
|
17
|
-
- **Delivery-internal inputs:** `implement-spec` validation failure or `review-phase` runtime failure
|
|
18
|
-
- **Wraps:** `$debug-agent`, optional readonly `$parallel-research`, bounded fixes, focused tests or scenario reruns, review
|
|
19
|
-
- **Owns:** evidence matrices, cited log references, hypothesis status, fix verification
|
|
20
|
-
- **Exit conditions:** bug fixed, concrete blocker proven, or scope proven to require a spec/delivery goal
|
|
21
|
-
|
|
22
|
-
## Use When
|
|
23
|
-
|
|
24
|
-
- Runtime behavior is broken, flaky, slow, or inconsistent.
|
|
25
|
-
- Smoke checks, browser checks, CLI checks, recordings, or logs show a failure.
|
|
26
|
-
- A delivery run hits a runtime failure during validation or review.
|
|
27
|
-
- The user asks for evidence-backed debugging instead of code-only inspection.
|
|
28
|
-
|
|
29
|
-
## Do Not Use When
|
|
30
|
-
|
|
31
|
-
- The work is pure planning, requirements discovery, or design.
|
|
32
|
-
- The failure is already proven and only needs implementation inside an active spec plan.
|
|
33
|
-
- The fix would require broad product scope, architecture, or acceptance changes; exit to `create-spec`, `create-plan`, or a delivery goal instead.
|
|
34
|
-
- The request is only static code review with no runtime symptom.
|
|
35
|
-
|
|
36
|
-
## Workflow
|
|
37
|
-
|
|
38
|
-
1. **Classify entry.**
|
|
39
|
-
- Standalone: record the broken behavior, artifact links/paths, reproduction command or manual scenario, expected behavior, and observed behavior.
|
|
40
|
-
- Delivery-internal: cite the validation or review failure that triggered debugging and the delivery scope it belongs to.
|
|
41
|
-
2. **Set bounds.**
|
|
42
|
-
- Define owned files, systems, and scenarios.
|
|
43
|
-
- For delivery-internal debugging, patch only inside the active delivery scope.
|
|
44
|
-
- If the evidence points outside that scope, record debt or open a separate debugging/debt goal.
|
|
45
|
-
3. **Run `$debug-agent`.**
|
|
46
|
-
- Build 3-5 hypotheses.
|
|
47
|
-
- Instrument or inspect with runtime evidence.
|
|
48
|
-
- Keep an evidence matrix with each hypothesis marked `confirmed`, `rejected`, or `inconclusive`.
|
|
49
|
-
- Cite log lines, recordings, commands, test output, or scenario evidence for every status.
|
|
50
|
-
4. **Optionally run readonly `$parallel-research`.**
|
|
51
|
-
- Use for independent hypotheses, unfamiliar subsystems, logs, docs, or prior-art inspection.
|
|
52
|
-
- Synthesize findings before fixing.
|
|
53
|
-
5. **Fix only proven causes.**
|
|
54
|
-
- Make the smallest bounded patch that addresses confirmed evidence.
|
|
55
|
-
- Remove speculative changes from rejected hypotheses.
|
|
56
|
-
- Keep debug instrumentation until post-fix evidence proves success, unless the user explicitly asks for cleanup.
|
|
57
|
-
6. **Verify.**
|
|
58
|
-
- Rerun the failing smoke check, focused test, browser path, CLI command, or manual scenario.
|
|
59
|
-
- Compare before/after evidence.
|
|
60
|
-
- Run review appropriate to the touched scope.
|
|
61
|
-
7. **Exit.**
|
|
62
|
-
- Fixed: report cause, patch, verification, and residual risk.
|
|
63
|
-
- Blocked: report the concrete blocker and the missing artifact/access/action.
|
|
64
|
-
- Out of scope: report why this needs a spec/delivery goal or debt issue.
|
|
65
|
-
|
|
66
|
-
## Parallel Rules
|
|
67
|
-
|
|
68
|
-
`debugging-phase` may run with `parallel: true` or `parallel: false`.
|
|
69
|
-
|
|
70
|
-
- `parallel: false`: one thread owns hypotheses, instrumentation, fix, verification, and review.
|
|
71
|
-
- `parallel: true`: fan out readonly research for independent hypotheses only.
|
|
72
|
-
- Disjoint worker fixes are allowed only after the cause is proven and file ownership is explicit.
|
|
73
|
-
- Never let parallel workers make speculative fixes against unproven hypotheses.
|
|
74
|
-
- Merge worker findings into one evidence matrix before deciding on a patch.
|
|
75
|
-
- In delivery-internal mode, parallel workers must stay inside the delivery scope unless assigned readonly investigation.
|
|
76
|
-
|
|
77
|
-
## Output Contract
|
|
78
|
-
|
|
79
|
-
Return a concise debugging report with:
|
|
80
|
-
|
|
81
|
-
- **Mode:** standalone or delivery-internal; `parallel: true|false`
|
|
82
|
-
- **Input artifacts:** reports, logs, recordings, checks, or symptoms used
|
|
83
|
-
- **Evidence matrix:** hypotheses, status, and cited evidence
|
|
84
|
-
- **Root cause:** confirmed cause or why none is proven
|
|
85
|
-
- **Changes:** bounded patch summary, or none if blocked/out of scope
|
|
86
|
-
- **Verification:** commands/scenarios rerun and result
|
|
87
|
-
- **Exit:** fixed, blocked, or escalated to spec/delivery/debt
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: delivery-phase
|
|
3
|
-
description: Goal-compatible workhorse wrapper for scoped execution from specification through delivery closeout. Use when a user asks to deliver a scoped goal end to end, especially when work should flow through create-spec, create-plan, implement-spec, review, optional debugging, and docs-ingest-phase.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Delivery Phase
|
|
7
|
-
|
|
8
|
-
`delivery-phase` owns scoped execution until the goal is either done or honestly
|
|
9
|
-
blocked. It preserves the workflow chain instead of compressing implementation
|
|
10
|
-
into a single coding pass.
|
|
11
|
-
|
|
12
|
-
## Use When
|
|
13
|
-
|
|
14
|
-
- The user asks to deliver, execute, finish, close, or carry a scoped goal end to end.
|
|
15
|
-
- A goal needs spec, plan, implementation, review, validation, and docs handling in one wrapper.
|
|
16
|
-
- Existing `SPEC.md` or `PLAN.md` artifacts may be reused, but delivery still needs closeout.
|
|
17
|
-
- The user chooses `parallel: true` or `parallel: false` for implementation mode.
|
|
18
|
-
|
|
19
|
-
## Do Not Use When
|
|
20
|
-
|
|
21
|
-
- The request is only requirements discovery, planning, review, debugging, or docs ingest.
|
|
22
|
-
- The scope is too vague to name a goal, issue, spec folder, or bounded change.
|
|
23
|
-
- The user explicitly asks not to code or wants a plan/spec only.
|
|
24
|
-
- Runtime evidence points to a broad bug outside the active delivery scope; create a separate debugging or debt goal.
|
|
25
|
-
|
|
26
|
-
## Contract
|
|
27
|
-
|
|
28
|
-
- **Role:** public scoped-delivery orchestrator
|
|
29
|
-
- **Wraps:** `$create-spec` -> `$create-plan` -> `$implement-spec` -> `$review-phase` -> optional `$debugging-phase` -> `$docs-ingest-phase`
|
|
30
|
-
- **Owns:** goal bounds, mode choice, validation, review follow-through, docs ingest outcome, debt capture, blocker reporting
|
|
31
|
-
- **Stop condition:** implemented, reviewed, validated, docs ingest handled, debt captured, or concrete blocker reported
|
|
32
|
-
|
|
33
|
-
## Workflow
|
|
34
|
-
|
|
35
|
-
1. **Frame the delivery goal.**
|
|
36
|
-
- Identify the bounded goal, issue, spec folder, branch, and ownership constraints.
|
|
37
|
-
- State assumptions, known artifacts, and the validation surface.
|
|
38
|
-
- If scope is ambiguous, ask before entering the chain.
|
|
39
|
-
2. **Create or reuse the spec.**
|
|
40
|
-
- If no reviewed `SPEC.md` exists, run `$create-spec`.
|
|
41
|
-
- If a spec exists, verify it matches the requested scope before continuing.
|
|
42
|
-
3. **Create or reuse the plan.**
|
|
43
|
-
- If no execution-ready `PLAN.md` exists, run `$create-plan`.
|
|
44
|
-
- If a plan exists, verify dependencies, validation gates, assigned skills, and review mode.
|
|
45
|
-
4. **Implement the plan.**
|
|
46
|
-
- Run `$implement-spec` with the selected `parallel: true|false` mode.
|
|
47
|
-
- Keep implementation inside the delivery scope and update required notes/debt artifacts.
|
|
48
|
-
5. **Review every coding run.**
|
|
49
|
-
- Run `$review-phase` after `implement-spec` even when tests pass.
|
|
50
|
-
- Fix in-scope blocking findings before final closeout.
|
|
51
|
-
6. **Debug only runtime-evidence failures.**
|
|
52
|
-
- Run `$debugging-phase` only when validation or review produces runtime evidence of a bug.
|
|
53
|
-
- Patch only inside delivery scope.
|
|
54
|
-
- If the bug is broader, capture tech debt or open a separate debugging/debt goal.
|
|
55
|
-
7. **Run docs ingest.**
|
|
56
|
-
- Run `$docs-ingest-phase` when implementation changed product behavior, architecture, setup, operator workflow, docs contracts, or spec domain knowledge.
|
|
57
|
-
- If docs ingest is not needed, record the explicit no-op reason in the final report or delivery notes.
|
|
58
|
-
8. **Check stack cleanliness.**
|
|
59
|
-
- Whenever a PR exists, run `stack status` and `stack sync --dry-run`.
|
|
60
|
-
- If the PR is stack-dependent and dry-run reports pending changes, run `stack sync` before closeout.
|
|
61
|
-
- Missing `stack` blocks stack-dependent closeout, but not independent trunk-based work.
|
|
62
|
-
9. **Close out.**
|
|
63
|
-
- Report implementation, review result, validation, docs ingest outcome, debt captured, and remaining blockers.
|
|
64
|
-
|
|
65
|
-
## Mode And Parallel Rules
|
|
66
|
-
|
|
67
|
-
- Preserve `parallel: true|false` through `$implement-spec`.
|
|
68
|
-
- If the user chose a mode, honor it.
|
|
69
|
-
- If not, choose the smallest safe mode:
|
|
70
|
-
- `parallel: false` for tightly coupled work, unclear ownership, or small changes.
|
|
71
|
-
- `parallel: true` only when the plan has independent waves and disjoint write scopes.
|
|
72
|
-
- Do not let parallel workers expand the delivery scope.
|
|
73
|
-
- Optional `$debugging-phase` may use parallel readonly hypothesis research, but speculative parallel fixes are not allowed.
|
|
74
|
-
|
|
75
|
-
## Output Contract
|
|
76
|
-
|
|
77
|
-
Return a concise delivery report with:
|
|
78
|
-
|
|
79
|
-
- **Goal:** scoped outcome delivered or blocker encountered
|
|
80
|
-
- **Mode:** `parallel: true|false` and why
|
|
81
|
-
- **Artifacts:** spec, plan, implementation notes, debt, docs, or tracker links touched
|
|
82
|
-
- **Review:** mandatory `$review-phase` result and remaining findings
|
|
83
|
-
- **Debugging:** skipped with reason, or `$debugging-phase` evidence and result
|
|
84
|
-
- **Validation:** commands, browser checks, smoke tests, or manual scenarios run
|
|
85
|
-
- **Stack:** `stack status` / `stack sync --dry-run` result when a PR exists, plus whether `stack sync` ran
|
|
86
|
-
- **Docs ingest:** `$docs-ingest-phase` run, or explicit no-op reason
|
|
87
|
-
- **Exit:** done, blocked, or split into follow-up debt/debugging goal
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: docs-ingest-phase
|
|
3
|
-
description: Ingests specs and docs-affecting changes into canonical private/project docs and public-facing docs. Use when a spec is ready for domain capture, public docs need creation or material updates, wiki/Fumadocs routing changes, or code changes alter architecture, setup, contracts, operator workflow, or user-facing behavior.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Docs Ingest Phase
|
|
7
|
-
|
|
8
|
-
## Contract
|
|
9
|
-
|
|
10
|
-
- **Role:** public phase entrypoint for docs ingest and repo-doc maintenance
|
|
11
|
-
- **Upstream:** reviewed or implemented spec folder, or concrete docs-affecting code changes
|
|
12
|
-
- **Delegates to:** private spec/project ingest, public-doc writer skills, routed page writing, route/navigation bookkeeping
|
|
13
|
-
- **Downstream:** canonical routed public and private docs, durable private writer artifacts, `meta.json` navigation, ingest metadata, wiki log/index updates, and required `docs/` updates
|
|
14
|
-
- **Stop conditions:** ingest bookkeeping complete, required docs updates complete, failures reported honestly
|
|
15
|
-
|
|
16
|
-
## Use When
|
|
17
|
-
|
|
18
|
-
- A reviewed or implemented spec folder should become durable routed domain knowledge.
|
|
19
|
-
- Substantial public-facing documentation needs to be created or materially updated.
|
|
20
|
-
- `apps/wiki` content, Fumadocs navigation, `meta.json`, or routed pages change.
|
|
21
|
-
- Code changes alter architecture, setup, contracts, decisions, runbooks, or operator workflow.
|
|
22
|
-
- `delivery-phase` reaches `$docs-ingest-phase` and docs-affecting changes exist.
|
|
23
|
-
|
|
24
|
-
## Do Not Use When
|
|
25
|
-
|
|
26
|
-
- The work is still requirements discovery, planning, coding, or review.
|
|
27
|
-
- The target spec is already marked `ingested: true`; report a no-op.
|
|
28
|
-
- The requested docs would document speculative future behavior as current truth.
|
|
29
|
-
- The task would duplicate large specs, plans, implementation notes, or runbooks into wiki/project pages instead of summarizing and linking.
|
|
30
|
-
|
|
31
|
-
## Quick Start
|
|
32
|
-
|
|
33
|
-
1. Resolve `<wiki-root>`:
|
|
34
|
-
- monorepo: `apps/wiki`
|
|
35
|
-
- single-repo: `wiki`
|
|
36
|
-
2. Read `<wiki-root>/AGENTS.md` before touching wiki content.
|
|
37
|
-
3. If ingesting a spec, read [references/wiki-ingest.md](references/wiki-ingest.md).
|
|
38
|
-
4. If creating or materially updating public-facing docs, read [references/public-docs.md](references/public-docs.md).
|
|
39
|
-
5. If updating routed docs or navigation, read [references/fumadocs-routing.md](references/fumadocs-routing.md).
|
|
40
|
-
6. If updating root `docs/`, read [references/repo-docs.md](references/repo-docs.md).
|
|
41
|
-
7. Finish by reporting written pages, writer artifacts, metadata changes, docs updates, validation run, and any no-op reason.
|
|
42
|
-
|
|
43
|
-
## Wiki Ingest Pipeline
|
|
44
|
-
|
|
45
|
-
Run this order exactly:
|
|
46
|
-
|
|
47
|
-
```text
|
|
48
|
-
docs-ingest-phase
|
|
49
|
-
-> resolve docs architecture and classify public/private targets
|
|
50
|
-
-> routed flow-writing phase
|
|
51
|
-
-> routed concept-writing phase
|
|
52
|
-
-> public-doc writer flow when substantial public-facing docs are created or materially updated
|
|
53
|
-
-> ingest bookkeeping
|
|
54
|
-
-> route/navigation bookkeeping
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Why: concept pages can cross-link flow pages, so flows must exist first.
|
|
58
|
-
|
|
59
|
-
Public-doc writer flow:
|
|
60
|
-
|
|
61
|
-
```text
|
|
62
|
-
writing-fragments
|
|
63
|
-
-> writing-beats
|
|
64
|
-
-> writing-shape
|
|
65
|
-
-> final public page write/merge
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Run this flow for substantial public-facing page creation or material updates. Small public-doc patches may skip it with an explicit no-op reason.
|
|
69
|
-
|
|
70
|
-
## Routing
|
|
71
|
-
|
|
72
|
-
Use the repo's existing public docs surfaces for reader-facing pages and its private docs surface for specs, runbooks, maintenance, project context, and durable writer artifacts. Do not enforce Harness Intelligence route names in other repos. Do not create a second routed docs surface or separate `domains/` owner layer just because docs ingest ran.
|
|
73
|
-
|
|
74
|
-
## Output Contract
|
|
75
|
-
|
|
76
|
-
Always report:
|
|
77
|
-
|
|
78
|
-
- source spec or docs-affecting change processed
|
|
79
|
-
- flows written or skipped
|
|
80
|
-
- concepts written or skipped
|
|
81
|
-
- public-doc writer artifacts written or skipped
|
|
82
|
-
- public pages written, merged, or skipped
|
|
83
|
-
- routed pages and `meta.json` updates
|
|
84
|
-
- ingest frontmatter/bookkeeping updates
|
|
85
|
-
- root `docs/` updates, if any
|
|
86
|
-
- validation commands run
|
|
87
|
-
- no-op reasons or blockers
|
|
88
|
-
|
|
89
|
-
## Never Do
|
|
90
|
-
|
|
91
|
-
- Leave new or moved routed pages out of navigation metadata.
|
|
92
|
-
- Strip access-control frontmatter from routed pages.
|
|
93
|
-
- Proceed to concept writing after a flow write fails.
|
|
94
|
-
- Create duplicate routed docs surfaces, `domains/` owner layers, roadmap mirrors, or backlog mirrors.
|
|
95
|
-
- Put agent task instructions inside human-facing docs pages.
|
|
96
|
-
- Duplicate article content across routed pages and another source tree.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name: "Docs Ingest Phase"
|
|
3
|
-
short_description: "Wiki ingest plus repo docs maintenance"
|
|
4
|
-
default_prompt: "Use $docs-ingest-phase to own the wiki ingest pipeline, then keep docs/ human-facing and implementation-grounded when code changes affect durable knowledge."
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Concept Pages
|
|
2
|
-
|
|
3
|
-
Use this reference when `docs-ingest-phase` writes concepts into routed wiki docs.
|
|
4
|
-
|
|
5
|
-
## Input Expansion
|
|
6
|
-
|
|
7
|
-
For each extracted concept:
|
|
8
|
-
|
|
9
|
-
1. Read related routed flow pages under the routed output root selected by [fumadocs-routing.md](fumadocs-routing.md), if any exist.
|
|
10
|
-
2. Scan `<wiki-root>/raw/` recursively and collect files where frontmatter `ingested: false` or `ingested` is absent.
|
|
11
|
-
3. Use relevant raw content only as supplementary material. Do not mark raw files as ingested here.
|
|
12
|
-
|
|
13
|
-
## Output Contract
|
|
14
|
-
|
|
15
|
-
Synthesize concept content in this precedence order:
|
|
16
|
-
|
|
17
|
-
1. `IMPLEMENTATION-NOTES.md` deviations, surprises, and judgment calls
|
|
18
|
-
2. `SPEC.md` acceptance criteria, data model, and technical notes
|
|
19
|
-
3. relevant sections from routed flow pages
|
|
20
|
-
4. relevant raw file content
|
|
21
|
-
|
|
22
|
-
Determine status:
|
|
23
|
-
|
|
24
|
-
- `proposed` when only `SPEC.md` is present
|
|
25
|
-
- `implemented` when `IMPLEMENTATION-NOTES.md` is present
|
|
26
|
-
|
|
27
|
-
Derive the routed output path:
|
|
28
|
-
|
|
29
|
-
1. Use the domain's existing route section if the concept clearly belongs there.
|
|
30
|
-
2. Write only when an existing project section is a clear fit; otherwise skip the concept page and report the route-policy gap.
|
|
31
|
-
3. Slugify the concept name to kebab-case.
|
|
32
|
-
|
|
33
|
-
For Harness-style domains, prefer existing topical sections such as `foundations`, `prompt-surfaces`, `skills-and-packs`, `execution-modes`, `validation-and-tools`, and `lifecycle-flows` when they already exist.
|
|
34
|
-
|
|
35
|
-
## Page Shape
|
|
36
|
-
|
|
37
|
-
Every concept page must include frontmatter:
|
|
38
|
-
|
|
39
|
-
```yaml
|
|
40
|
-
---
|
|
41
|
-
title: <Concept Name>
|
|
42
|
-
description: <one sentence>
|
|
43
|
-
surface: project
|
|
44
|
-
permission: project
|
|
45
|
-
domain: <domain>
|
|
46
|
-
type: concept
|
|
47
|
-
status: proposed | implemented
|
|
48
|
-
source:
|
|
49
|
-
- <source path>
|
|
50
|
-
updated: YYYY-MM-DD
|
|
51
|
-
---
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Every concept page should include:
|
|
55
|
-
|
|
56
|
-
- a definition or opening explanation
|
|
57
|
-
- the concept's invariants, attributes, or boundaries
|
|
58
|
-
- links to related flows or mechanics pages
|
|
59
|
-
- source links or a short source section when useful
|
|
60
|
-
|
|
61
|
-
## Merge Rules
|
|
62
|
-
|
|
63
|
-
When a routed concept page already exists:
|
|
64
|
-
|
|
65
|
-
- preserve established facts
|
|
66
|
-
- merge new implemented reality into the main article
|
|
67
|
-
- flag contradictions inline with a warning callout
|
|
68
|
-
- update `updated` and `source`
|
|
69
|
-
|
|
70
|
-
Update the nearest `meta.json` and section index page so the concept is discoverable.
|