@punks/cli 2.2.7 → 2.2.9
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 +1206 -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/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/dist/skills/agnostic/frontend/imagegen-frontend-web/SKILL.md +987 -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,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: writing-shape
|
|
3
|
+
description: Chooses the final structure for a public-facing article, guide, or docs page from fragments and beats. Use when turning raw material or beats into a publishable page plan, or when docs-ingest-phase needs the final writer artifact before page writing.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Writing Shape
|
|
7
|
+
|
|
8
|
+
## Quick Start
|
|
9
|
+
|
|
10
|
+
Read the available raw material first: fragments, beats, rough draft, or notes. Decide what the page is trying to do for the reader, then choose the structure that best carries that job.
|
|
11
|
+
|
|
12
|
+
Do not silently polish weak structure. Argue for the shape.
|
|
13
|
+
|
|
14
|
+
## Modes
|
|
15
|
+
|
|
16
|
+
### Standalone Writing
|
|
17
|
+
|
|
18
|
+
Use this when the user wants help shaping a publishable article.
|
|
19
|
+
|
|
20
|
+
1. Read the input pile end-to-end.
|
|
21
|
+
2. Draft 2-3 candidate openings or angles.
|
|
22
|
+
3. Force a choice or hybrid.
|
|
23
|
+
4. Grow the piece paragraph by paragraph.
|
|
24
|
+
5. Re-read the article file before every write.
|
|
25
|
+
6. Edit only the requested paragraph or block when revising.
|
|
26
|
+
|
|
27
|
+
### Docs-Ingest Artifact
|
|
28
|
+
|
|
29
|
+
Use this when called by `docs-ingest-phase`.
|
|
30
|
+
|
|
31
|
+
1. Read `fragments.md` and `beats.md` from the private writer artifact bundle.
|
|
32
|
+
2. Write `shape.md` in the same bundle.
|
|
33
|
+
3. Include traceability: target public page, source change/spec/run, upstream writer artifacts, updated date.
|
|
34
|
+
4. Define the final page structure, section order, component/callout choices, and merge notes for the final public page.
|
|
35
|
+
5. Link forward to the final public page when known.
|
|
36
|
+
|
|
37
|
+
Docs-ingest artifact shape:
|
|
38
|
+
|
|
39
|
+
```md
|
|
40
|
+
---
|
|
41
|
+
title: "<Topic> Shape"
|
|
42
|
+
type: writer-artifact
|
|
43
|
+
artifact: shape
|
|
44
|
+
target: "<public page path or pending target>"
|
|
45
|
+
source:
|
|
46
|
+
- "fragments.md"
|
|
47
|
+
- "beats.md"
|
|
48
|
+
updated: YYYY-MM-DD
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
# <Topic> Shape
|
|
52
|
+
|
|
53
|
+
## Page Promise
|
|
54
|
+
|
|
55
|
+
<What the reader should be able to understand or do.>
|
|
56
|
+
|
|
57
|
+
## Structure
|
|
58
|
+
|
|
59
|
+
1. <section and purpose>
|
|
60
|
+
2. <section and purpose>
|
|
61
|
+
3. <section and purpose>
|
|
62
|
+
|
|
63
|
+
## Format Decisions
|
|
64
|
+
|
|
65
|
+
- <prose/list/table/callout/code choice and reason>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Shape Rules
|
|
69
|
+
|
|
70
|
+
- Pick prose for argument and lists for genuinely parallel items.
|
|
71
|
+
- Use tables only when the same fields repeat three or more times.
|
|
72
|
+
- Use callouts for warnings, tips, or asides that would derail the main thread.
|
|
73
|
+
- Quote when wording matters; paraphrase when only the idea matters.
|
|
74
|
+
- Use code blocks for multi-line, runnable, or illustrative examples.
|
|
75
|
+
- If the opening promises one thing and the page drifts, change the opening or re-thread the body.
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-browser
|
|
3
|
+
description: A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands. Use when automating web interactions, extracting structured data from pages, filling forms programmatically, or testing web UIs.
|
|
4
|
+
metadata: {"clawdbot":{"emoji":"🌐","requires":{"bins":["node","npm"]}}}
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agent Browser
|
|
8
|
+
|
|
9
|
+
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
### npm recommended
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g agent-browser
|
|
17
|
+
agent-browser install
|
|
18
|
+
agent-browser install --with-deps
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### From Source
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
git clone https://github.com/vercel-labs/agent-browser
|
|
25
|
+
cd agent-browser
|
|
26
|
+
pnpm install
|
|
27
|
+
pnpm build
|
|
28
|
+
agent-browser install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Quick Start
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
agent-browser open example.com
|
|
35
|
+
agent-browser snapshot
|
|
36
|
+
agent-browser click @e2
|
|
37
|
+
agent-browser fill @e3 "test@example.com"
|
|
38
|
+
agent-browser get text @e1
|
|
39
|
+
agent-browser screenshot page.png
|
|
40
|
+
agent-browser close
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Using Real Chrome Profile (for OAuth/Logged-in Sessions)
|
|
44
|
+
|
|
45
|
+
For sites requiring Google/Discord/etc login (like star-swap.com):
|
|
46
|
+
|
|
47
|
+
**Method 1: Launch Chrome with custom profile, connect via CDP**
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Terminal 1: Launch Chrome with your real profile and remote debugging
|
|
51
|
+
google-chrome --remote-debugging-port=9222 --user-data-dir=/home/willr/.config/google-chrome/Default &
|
|
52
|
+
|
|
53
|
+
# Terminal 2: Connect agent-browser to that Chrome instance
|
|
54
|
+
agent-browser --cdp 9222 open "https://star-swap.com"
|
|
55
|
+
agent-browser --cdp 9222 snapshot -i
|
|
56
|
+
agent-browser --cdp 9222 click e2
|
|
57
|
+
|
|
58
|
+
# This reuses your existing Google session - no re-login needed!
|
|
59
|
+
# Works for: Google OAuth, Discord OAuth, any site you're logged into in Chrome
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Method 2: Session persistence (first-time manual login)**
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# First time: headed mode, login manually
|
|
66
|
+
agent-browser --headed --session starswap open "https://star-swap.com"
|
|
67
|
+
# Complete Google OAuth manually in the browser window
|
|
68
|
+
# Close when done
|
|
69
|
+
|
|
70
|
+
# Future runs: cookies persist!
|
|
71
|
+
agent-browser --session starswap open "https://star-swap.com"
|
|
72
|
+
# Already logged in automatically
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**am.will.ryan Chrome profile:** `/home/willr/.config/google-chrome/Default`
|
|
76
|
+
|
|
77
|
+
## Core Commands
|
|
78
|
+
|
|
79
|
+
### Navigation
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
agent-browser open <url>
|
|
83
|
+
agent-browser back
|
|
84
|
+
agent-browser forward
|
|
85
|
+
agent-browser reload
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Interaction
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
agent-browser click <sel>
|
|
92
|
+
agent-browser dblclick <sel>
|
|
93
|
+
agent-browser focus <sel>
|
|
94
|
+
agent-browser type <sel> <text>
|
|
95
|
+
agent-browser fill <sel> <text>
|
|
96
|
+
agent-browser clear <sel>
|
|
97
|
+
agent-browser press <key>
|
|
98
|
+
agent-browser keydown <key>
|
|
99
|
+
agent-browser keyup <key>
|
|
100
|
+
agent-browser hover <sel>
|
|
101
|
+
agent-browser select <sel> <val>
|
|
102
|
+
agent-browser check <sel>
|
|
103
|
+
agent-browser uncheck <sel>
|
|
104
|
+
agent-browser drag <src> <tgt>
|
|
105
|
+
agent-browser upload <sel> <files>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Extraction and Info
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
agent-browser snapshot
|
|
112
|
+
agent-browser get text <sel>
|
|
113
|
+
agent-browser get html <sel>
|
|
114
|
+
agent-browser get value <sel>
|
|
115
|
+
agent-browser get attr <sel> <attr>
|
|
116
|
+
agent-browser get title
|
|
117
|
+
agent-browser get url
|
|
118
|
+
agent-browser get count <sel>
|
|
119
|
+
agent-browser get box <sel>
|
|
120
|
+
agent-browser screenshot [path]
|
|
121
|
+
agent-browser pdf <path>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Check State
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
agent-browser is visible <sel>
|
|
128
|
+
agent-browser is enabled <sel>
|
|
129
|
+
agent-browser is checked <sel>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Find Elements
|
|
133
|
+
|
|
134
|
+
- agent-browser find role <role> <action> [value]
|
|
135
|
+
- agent-browser find text <text> <action>
|
|
136
|
+
- agent-browser find label <label> <action> [value]
|
|
137
|
+
- agent-browser find placeholder <ph> <action> [value]
|
|
138
|
+
- agent-browser find alt <text> <action>
|
|
139
|
+
- agent-browser find title <text> <action>
|
|
140
|
+
- agent-browser find testid <id> <action> [value]
|
|
141
|
+
|
|
142
|
+
Actions include click, fill, check, hover, and text.
|
|
143
|
+
|
|
144
|
+
### Wait and Timing
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
agent-browser wait <selector>
|
|
148
|
+
agent-browser wait <ms>
|
|
149
|
+
agent-browser wait --text "Welcome"
|
|
150
|
+
agent-browser wait --url "**/dash"
|
|
151
|
+
agent-browser wait --load networkidle
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Advanced Control
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
agent-browser scroll <dir> [px]
|
|
158
|
+
agent-browser scrollintoview <sel>
|
|
159
|
+
agent-browser eval <js>
|
|
160
|
+
agent-browser mouse move <x> <y>
|
|
161
|
+
agent-browser cookies
|
|
162
|
+
agent-browser storage local
|
|
163
|
+
agent-browser tab new [url]
|
|
164
|
+
agent-browser frame <sel>
|
|
165
|
+
agent-browser dialog accept [text]
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Sessions
|
|
169
|
+
|
|
170
|
+
Run multiple isolated browser instances.
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
agent-browser --session agent1 open site-a.com
|
|
174
|
+
agent-browser --session agent2 open site-b.com
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Snapshot Options
|
|
178
|
+
|
|
179
|
+
The snapshot command supports filtering to reduce output size.
|
|
180
|
+
|
|
181
|
+
- agent-browser snapshot -i
|
|
182
|
+
- agent-browser snapshot -c
|
|
183
|
+
- agent-browser snapshot -d 3
|
|
184
|
+
- agent-browser snapshot -s "#main"
|
|
185
|
+
|
|
186
|
+
## Selectors and Refs
|
|
187
|
+
|
|
188
|
+
Refs provide deterministic element selection from snapshots. Use the @ref syntax.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
agent-browser snapshot
|
|
192
|
+
agent-browser click @e2
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Agent Mode
|
|
196
|
+
|
|
197
|
+
Use --json for machine readable output.
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
agent-browser snapshot --json
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Optimal AI Workflow
|
|
204
|
+
|
|
205
|
+
- Navigate with agent-browser open <url>
|
|
206
|
+
- Observe with agent-browser snapshot -i --json
|
|
207
|
+
- Act with @ref from the snapshot
|
|
208
|
+
- Verify with agent-browser snapshot
|
|
209
|
+
|
|
210
|
+
## Troubleshooting
|
|
211
|
+
|
|
212
|
+
- If the command is not found on Linux ARM64, use the full path in the bin folder.
|
|
213
|
+
- If an element is not found, use snapshot to find the correct ref.
|
|
214
|
+
- If the page is not loaded, add a wait command after navigation.
|
|
215
|
+
- Use --headed to see the browser window for debugging.
|
|
216
|
+
|
|
217
|
+
## Options
|
|
218
|
+
|
|
219
|
+
- --session <name> uses an isolated session.
|
|
220
|
+
- --json provides JSON output.
|
|
221
|
+
- --full takes a full page screenshot.
|
|
222
|
+
- --headed shows the browser window.
|
|
223
|
+
- --timeout sets the command timeout in milliseconds.
|
|
224
|
+
|
|
225
|
+
## Notes
|
|
226
|
+
|
|
227
|
+
- Refs are stable per page load but change on navigation.
|
|
228
|
+
- Always snapshot after navigation to get new refs.
|
|
229
|
+
- Use fill instead of type for input fields to ensure existing text is cleared.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# Authentication Patterns
|
|
2
|
+
|
|
3
|
+
Login flows, session persistence, OAuth, 2FA, and authenticated browsing.
|
|
4
|
+
|
|
5
|
+
**Related**: [session-management.md](session-management.md) for state persistence details, [SKILL.md](../SKILL.md) for quick start.
|
|
6
|
+
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [Basic Login Flow](#basic-login-flow)
|
|
10
|
+
- [Saving Authentication State](#saving-authentication-state)
|
|
11
|
+
- [Restoring Authentication](#restoring-authentication)
|
|
12
|
+
- [OAuth / SSO Flows](#oauth--sso-flows)
|
|
13
|
+
- [Two-Factor Authentication](#two-factor-authentication)
|
|
14
|
+
- [HTTP Basic Auth](#http-basic-auth)
|
|
15
|
+
- [Cookie-Based Auth](#cookie-based-auth)
|
|
16
|
+
- [Token Refresh Handling](#token-refresh-handling)
|
|
17
|
+
- [Security Best Practices](#security-best-practices)
|
|
18
|
+
|
|
19
|
+
## Basic Login Flow
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Navigate to login page
|
|
23
|
+
agent-browser open https://app.example.com/login
|
|
24
|
+
agent-browser wait --load networkidle
|
|
25
|
+
|
|
26
|
+
# Get form elements
|
|
27
|
+
agent-browser snapshot -i
|
|
28
|
+
# Output: @e1 [input type="email"], @e2 [input type="password"], @e3 [button] "Sign In"
|
|
29
|
+
|
|
30
|
+
# Fill credentials
|
|
31
|
+
agent-browser fill @e1 "user@example.com"
|
|
32
|
+
agent-browser fill @e2 "password123"
|
|
33
|
+
|
|
34
|
+
# Submit
|
|
35
|
+
agent-browser click @e3
|
|
36
|
+
agent-browser wait --load networkidle
|
|
37
|
+
|
|
38
|
+
# Verify login succeeded
|
|
39
|
+
agent-browser get url # Should be dashboard, not login
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Saving Authentication State
|
|
43
|
+
|
|
44
|
+
After logging in, save state for reuse:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Login first (see above)
|
|
48
|
+
agent-browser open https://app.example.com/login
|
|
49
|
+
agent-browser snapshot -i
|
|
50
|
+
agent-browser fill @e1 "user@example.com"
|
|
51
|
+
agent-browser fill @e2 "password123"
|
|
52
|
+
agent-browser click @e3
|
|
53
|
+
agent-browser wait --url "**/dashboard"
|
|
54
|
+
|
|
55
|
+
# Save authenticated state
|
|
56
|
+
agent-browser state save ./auth-state.json
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Restoring Authentication
|
|
60
|
+
|
|
61
|
+
Skip login by loading saved state:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Load saved auth state
|
|
65
|
+
agent-browser state load ./auth-state.json
|
|
66
|
+
|
|
67
|
+
# Navigate directly to protected page
|
|
68
|
+
agent-browser open https://app.example.com/dashboard
|
|
69
|
+
|
|
70
|
+
# Verify authenticated
|
|
71
|
+
agent-browser snapshot -i
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## OAuth / SSO Flows
|
|
75
|
+
|
|
76
|
+
For OAuth redirects:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# Start OAuth flow
|
|
80
|
+
agent-browser open https://app.example.com/auth/google
|
|
81
|
+
|
|
82
|
+
# Handle redirects automatically
|
|
83
|
+
agent-browser wait --url "**/accounts.google.com**"
|
|
84
|
+
agent-browser snapshot -i
|
|
85
|
+
|
|
86
|
+
# Fill Google credentials
|
|
87
|
+
agent-browser fill @e1 "user@gmail.com"
|
|
88
|
+
agent-browser click @e2 # Next button
|
|
89
|
+
agent-browser wait 2000
|
|
90
|
+
agent-browser snapshot -i
|
|
91
|
+
agent-browser fill @e3 "password"
|
|
92
|
+
agent-browser click @e4 # Sign in
|
|
93
|
+
|
|
94
|
+
# Wait for redirect back
|
|
95
|
+
agent-browser wait --url "**/app.example.com**"
|
|
96
|
+
agent-browser state save ./oauth-state.json
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Two-Factor Authentication
|
|
100
|
+
|
|
101
|
+
Handle 2FA with manual intervention:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Login with credentials
|
|
105
|
+
agent-browser open https://app.example.com/login --headed # Show browser
|
|
106
|
+
agent-browser snapshot -i
|
|
107
|
+
agent-browser fill @e1 "user@example.com"
|
|
108
|
+
agent-browser fill @e2 "password123"
|
|
109
|
+
agent-browser click @e3
|
|
110
|
+
|
|
111
|
+
# Wait for user to complete 2FA manually
|
|
112
|
+
echo "Complete 2FA in the browser window..."
|
|
113
|
+
agent-browser wait --url "**/dashboard" --timeout 120000
|
|
114
|
+
|
|
115
|
+
# Save state after 2FA
|
|
116
|
+
agent-browser state save ./2fa-state.json
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## HTTP Basic Auth
|
|
120
|
+
|
|
121
|
+
For sites using HTTP Basic Authentication:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Set credentials before navigation
|
|
125
|
+
agent-browser set credentials username password
|
|
126
|
+
|
|
127
|
+
# Navigate to protected resource
|
|
128
|
+
agent-browser open https://protected.example.com/api
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Cookie-Based Auth
|
|
132
|
+
|
|
133
|
+
Manually set authentication cookies:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Set auth cookie
|
|
137
|
+
agent-browser cookies set session_token "abc123xyz"
|
|
138
|
+
|
|
139
|
+
# Navigate to protected page
|
|
140
|
+
agent-browser open https://app.example.com/dashboard
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Token Refresh Handling
|
|
144
|
+
|
|
145
|
+
For sessions with expiring tokens:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
#!/bin/bash
|
|
149
|
+
# Wrapper that handles token refresh
|
|
150
|
+
|
|
151
|
+
STATE_FILE="./auth-state.json"
|
|
152
|
+
|
|
153
|
+
# Try loading existing state
|
|
154
|
+
if [[ -f "$STATE_FILE" ]]; then
|
|
155
|
+
agent-browser state load "$STATE_FILE"
|
|
156
|
+
agent-browser open https://app.example.com/dashboard
|
|
157
|
+
|
|
158
|
+
# Check if session is still valid
|
|
159
|
+
URL=$(agent-browser get url)
|
|
160
|
+
if [[ "$URL" == *"/login"* ]]; then
|
|
161
|
+
echo "Session expired, re-authenticating..."
|
|
162
|
+
# Perform fresh login
|
|
163
|
+
agent-browser snapshot -i
|
|
164
|
+
agent-browser fill @e1 "$USERNAME"
|
|
165
|
+
agent-browser fill @e2 "$PASSWORD"
|
|
166
|
+
agent-browser click @e3
|
|
167
|
+
agent-browser wait --url "**/dashboard"
|
|
168
|
+
agent-browser state save "$STATE_FILE"
|
|
169
|
+
fi
|
|
170
|
+
else
|
|
171
|
+
# First-time login
|
|
172
|
+
agent-browser open https://app.example.com/login
|
|
173
|
+
# ... login flow ...
|
|
174
|
+
fi
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Security Best Practices
|
|
178
|
+
|
|
179
|
+
1. **Never commit state files** - They contain session tokens
|
|
180
|
+
```bash
|
|
181
|
+
echo "*.auth-state.json" >> .gitignore
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
2. **Use environment variables for credentials**
|
|
185
|
+
```bash
|
|
186
|
+
agent-browser fill @e1 "$APP_USERNAME"
|
|
187
|
+
agent-browser fill @e2 "$APP_PASSWORD"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
3. **Clean up after automation**
|
|
191
|
+
```bash
|
|
192
|
+
agent-browser cookies clear
|
|
193
|
+
rm -f ./auth-state.json
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
4. **Use short-lived sessions for CI/CD**
|
|
197
|
+
```bash
|
|
198
|
+
# Don't persist state in CI
|
|
199
|
+
agent-browser open https://app.example.com/login
|
|
200
|
+
# ... login and perform actions ...
|
|
201
|
+
agent-browser close # Session ends, nothing persisted
|
|
202
|
+
```
|