shmakk 1.1.0 → 1.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 +16 -1
- package/package.json +6 -3
- package/scripts/import-skills.js +536 -0
- package/scripts/install-skills.js +64 -0
- package/skills/ai-elements.md +482 -0
- package/skills/architecture.md +151 -0
- package/skills/backend-adapter-aws-lambda.md +204 -0
- package/skills/backend-adapter-express.md +177 -0
- package/skills/backend-adapter-fastify.md +222 -0
- package/skills/backend-adapter-fetch.md +200 -0
- package/skills/backend-api-docs.md +22 -0
- package/skills/backend-aspire.md +232 -0
- package/skills/backend-aspnet-core.md +62 -0
- package/skills/backend-build-chatgpt-app.md +321 -0
- package/skills/backend-build-mcp-app.md +393 -0
- package/skills/backend-build-mcp-server.md +222 -0
- package/skills/backend-build-mcpb.md +200 -0
- package/skills/backend-building-ai-agent-on-cloudflare.md +401 -0
- package/skills/backend-caching.md +206 -0
- package/skills/backend-chatgpt-app-submission.md +157 -0
- package/skills/backend-chatgpt-apps.md +321 -0
- package/skills/backend-client-setup.md +318 -0
- package/skills/backend-containerize-aspnet-framework.md +455 -0
- package/skills/backend-create-spring-boot-java-project.md +164 -0
- package/skills/backend-create-spring-boot-kotlin-project.md +148 -0
- package/skills/backend-csharp-async.md +50 -0
- package/skills/backend-csharp-docs.md +63 -0
- package/skills/backend-csharp-mcp-server-generator.md +60 -0
- package/skills/backend-dotenv.md +201 -0
- package/skills/backend-dotenvx.md +119 -0
- package/skills/backend-env-vars.md +259 -0
- package/skills/backend-error-handling.md +254 -0
- package/skills/backend-fastapi.md +437 -0
- package/skills/backend-go-mcp-server-generator.md +335 -0
- package/skills/backend-java-mcp-server-generator.md +757 -0
- package/skills/backend-kotlin-mcp-server-generator.md +450 -0
- package/skills/backend-middlewares.md +243 -0
- package/skills/backend-multi-stage-dockerfile.md +47 -0
- package/skills/backend-nestjs.md +192 -0
- package/skills/backend-next-forge.md +375 -0
- package/skills/backend-nextjs.md +746 -0
- package/skills/backend-openapi-to-application-code.md +113 -0
- package/skills/backend-php-mcp-server-generator.md +523 -0
- package/skills/backend-python-mcp-server-generator.md +106 -0
- package/skills/backend-routing-middleware.md +251 -0
- package/skills/backend-ruby-mcp-server-generator.md +661 -0
- package/skills/backend-rust-mcp-server-generator.md +578 -0
- package/skills/backend-semantic-kernel.md +57 -0
- package/skills/backend-server-setup.md +379 -0
- package/skills/backend-server-side-calls.md +250 -0
- package/skills/backend-subscriptions.md +407 -0
- package/skills/backend-swift-mcp-server-generator.md +670 -0
- package/skills/backend-trpc-router.md +152 -0
- package/skills/backend-typescript-mcp-server-generator.md +91 -0
- package/skills/backend-validators.md +229 -0
- package/skills/backend.md +76 -0
- package/skills/backup.md +165 -0
- package/skills/budget.md +140 -0
- package/skills/business-gtm-0-to-1-launch.md +322 -0
- package/skills/business-gtm-operating-cadence.md +421 -0
- package/skills/business-gtm-positioning-strategy.md +439 -0
- package/skills/business-gtm-product-led-growth.md +340 -0
- package/skills/calendar.md +95 -0
- package/skills/code-review.md +130 -0
- package/skills/compliance.md +168 -0
- package/skills/contracts.md +130 -0
- package/skills/daily-job-run.md +46 -0
- package/skills/daily-webdesign.md +187 -0
- package/skills/database-bigquery-pipeline-audit.md +130 -0
- package/skills/database-cosmosdb-datamodeling.md +1046 -0
- package/skills/database-durable-objects.md +187 -0
- package/skills/database-ef-core.md +76 -0
- package/skills/database-fabric-lakehouse.md +107 -0
- package/skills/database-neon-postgres-egress-optimizer.md +213 -0
- package/skills/database-neon-postgres.md +218 -0
- package/skills/database-postgresql-code-review.md +213 -0
- package/skills/database-postgresql-optimization.md +405 -0
- package/skills/database-sql-code-review.md +302 -0
- package/skills/database-sql-optimization.md +297 -0
- package/skills/dependency-audit.md +165 -0
- package/skills/design-kami-landing.md +234 -0
- package/skills/design.md +221 -0
- package/skills/dev-acquire-codebase-knowledge.md +175 -0
- package/skills/dev-add-educational-comments.md +129 -0
- package/skills/dev-add-model-descriptions.md +74 -0
- package/skills/dev-adr-review.md +56 -0
- package/skills/dev-boost-prompt.md +26 -0
- package/skills/dev-build-run-debug.md +130 -0
- package/skills/dev-chunk.md +49 -0
- package/skills/dev-claude-md-improver.md +180 -0
- package/skills/dev-code-exemplars-blueprint-generator.md +127 -0
- package/skills/dev-code-tour.md +434 -0
- package/skills/dev-comment-code-generate-a-tutorial.md +27 -0
- package/skills/dev-commit.md +81 -0
- package/skills/dev-context-map.md +53 -0
- package/skills/dev-conventional-commit.md +73 -0
- package/skills/dev-create-architectural-decision-record.md +98 -0
- package/skills/dev-create-draft-pr.md +17 -0
- package/skills/dev-create-pr.md +17 -0
- package/skills/dev-create-readme.md +22 -0
- package/skills/dev-csharp-mstest.md +479 -0
- package/skills/dev-csharp-nunit.md +72 -0
- package/skills/dev-csharp-tunit.md +101 -0
- package/skills/dev-csharp-xunit.md +69 -0
- package/skills/dev-debug-failing-test.md +90 -0
- package/skills/dev-diff-analyze.md +32 -0
- package/skills/dev-diffs.md +24 -0
- package/skills/dev-dotnet-best-practices.md +86 -0
- package/skills/dev-dotnet-design-pattern-review.md +43 -0
- package/skills/dev-dotnet-timezone.md +110 -0
- package/skills/dev-dotnet-upgrade.md +117 -0
- package/skills/dev-doublecheck.md +278 -0
- package/skills/dev-explain-error.md +15 -0
- package/skills/dev-finding-discovery.md +164 -0
- package/skills/dev-fix-finding.md +111 -0
- package/skills/dev-full-file-edit.md +25 -0
- package/skills/dev-git-commit.md +125 -0
- package/skills/dev-git-flow-branch-creator.md +293 -0
- package/skills/dev-git-workflow.md +46 -0
- package/skills/dev-github-automation.md +64 -0
- package/skills/dev-github-code-review.md +1140 -0
- package/skills/dev-github-issues.md +202 -0
- package/skills/dev-gpt-5-4-prompting.md +55 -0
- package/skills/dev-investigation-mode.md +277 -0
- package/skills/dev-java-add-graalvm-native-image-support.md +450 -0
- package/skills/dev-java-docs.md +24 -0
- package/skills/dev-java-refactoring-extract-method.md +105 -0
- package/skills/dev-java-refactoring-remove-parameter.md +85 -0
- package/skills/dev-merge.md +73 -0
- package/skills/dev-migrate-create.md +36 -0
- package/skills/dev-migrate-validate.md +36 -0
- package/skills/dev-my-issues.md +9 -0
- package/skills/dev-my-pull-requests.md +15 -0
- package/skills/dev-planning-oracle-to-postgres-migration-integration-testing.md +45 -0
- package/skills/dev-playwright-generate-test.md +18 -0
- package/skills/dev-playwright.md +148 -0
- package/skills/dev-prompt-builder.md +142 -0
- package/skills/dev-pytest-coverage.md +29 -0
- package/skills/dev-python-manager-discovery.md +330 -0
- package/skills/dev-python-pypi-package-builder.md +445 -0
- package/skills/dev-readme-blueprint-generator.md +79 -0
- package/skills/dev-refactor-method-complexity-reduce.md +99 -0
- package/skills/dev-refactor-plan.md +66 -0
- package/skills/dev-refactor.md +646 -0
- package/skills/dev-review-and-refactor.md +16 -0
- package/skills/dev-reviewing-oracle-to-postgres-migration.md +68 -0
- package/skills/dev-ruff-recursive-fix.md +201 -0
- package/skills/dev-run-e2e-tests.md +126 -0
- package/skills/dev-run-pre-commit-checks.md +133 -0
- package/skills/dev-run-smoke-tests.md +127 -0
- package/skills/dev-scaffolding-oracle-to-postgres-migration-test-project.md +55 -0
- package/skills/dev-spring-boot-testing.md +190 -0
- package/skills/dev-sync-upstream.md +32 -0
- package/skills/dev-sync.md +74 -0
- package/skills/dev-tdd-workflow.md +23 -0
- package/skills/dev-terraform-azurerm-set-diff-analyzer.md +49 -0
- package/skills/dev-test-driven-development.md +372 -0
- package/skills/dev-test-gaps.md +18 -0
- package/skills/dev-test-triage.md +55 -0
- package/skills/dev-typer.md +267 -0
- package/skills/dev-typescript-setup.md +25 -0
- package/skills/dev-unified-diff-edit.md +16 -0
- package/skills/dev-unit-test-vue-pinia.md +198 -0
- package/skills/dev-using-git-worktrees.md +216 -0
- package/skills/dev-validation.md +99 -0
- package/skills/dev-verification.md +168 -0
- package/skills/dev-webapp-testing.md +134 -0
- package/skills/dev-write-coding-standards-from-file.md +317 -0
- package/skills/dev-write-tests.md +16 -0
- package/skills/devops-appinsights-instrumentation.md +49 -0
- package/skills/devops-az-cost-optimize.md +306 -0
- package/skills/devops-chronicle.md +154 -0
- package/skills/devops-deployments-cicd.md +331 -0
- package/skills/devops-devops-rollout-plan.md +118 -0
- package/skills/devops-geistdocs.md +276 -0
- package/skills/devops-observability.md +774 -0
- package/skills/devops-observe-metrics.md +35 -0
- package/skills/devops-observe-trace.md +30 -0
- package/skills/devops-phoenix-cli.md +163 -0
- package/skills/devops-phoenix-tracing.md +140 -0
- package/skills/devops-publish-to-pages.md +108 -0
- package/skills/devops-telemetry.md +87 -0
- package/skills/devops-update-avm-modules-in-bicep.md +61 -0
- package/skills/devops.md +81 -0
- package/skills/diagrams-canvas.md +204 -0
- package/skills/diagrams-draw-io-diagram-generator.md +463 -0
- package/skills/diagrams-excalidraw-diagram-generator.md +614 -0
- package/skills/diagrams-graphify.md +1277 -0
- package/skills/docs-bear-notes.md +108 -0
- package/skills/docs-create-llms.md +211 -0
- package/skills/docs-doc-gen.md +20 -0
- package/skills/docs-documentation-writer.md +46 -0
- package/skills/docs-llm-config.md +33 -0
- package/skills/docs-mkdocs-translations.md +109 -0
- package/skills/docs-obsidian-vault-maintainer.md +14 -0
- package/skills/docs-obsidian.md +82 -0
- package/skills/docs-prose.md +324 -0
- package/skills/docs-update-llms.md +217 -0
- package/skills/docs-update-markdown-file-index.md +77 -0
- package/skills/docs-wiki-maintainer.md +20 -0
- package/skills/documents.md +120 -0
- package/skills/email.md +113 -0
- package/skills/expenses.md +140 -0
- package/skills/file-ops.md +149 -0
- package/skills/files-convert-plaintext-to-md.md +363 -0
- package/skills/files-doc.md +81 -0
- package/skills/files-docx.md +594 -0
- package/skills/files-markdown-to-html.md +917 -0
- package/skills/files-nano-pdf.md +39 -0
- package/skills/files-pdf.md +315 -0
- package/skills/files-pdftk-server.md +163 -0
- package/skills/files-pptx-html-fidelity-audit.md +255 -0
- package/skills/files-pptx.md +231 -0
- package/skills/files-xlsx.md +301 -0
- package/skills/find-jobs.md +78 -0
- package/skills/format-conversion.md +157 -0
- package/skills/frontend-ai-elements.md +483 -0
- package/skills/frontend-ai-gateway.md +563 -0
- package/skills/frontend-ai-generation-persistence.md +242 -0
- package/skills/frontend-ai-sdk.md +799 -0
- package/skills/frontend-ai-visibility.md +127 -0
- package/skills/frontend-angular-developer.md +130 -0
- package/skills/frontend-aspnet-minimal-api-openapi.md +42 -0
- package/skills/frontend-bencium-innovative-ux-designer.md +719 -0
- package/skills/frontend-chat-sdk.md +666 -0
- package/skills/frontend-chrome-devtools.md +98 -0
- package/skills/frontend-frontend-app-builder.md +186 -0
- package/skills/frontend-frontend-design.md +43 -0
- package/skills/frontend-frontend-testing-debugging.md +143 -0
- package/skills/frontend-gsap-framer-scroll-animation.md +152 -0
- package/skills/frontend-internal-linking.md +109 -0
- package/skills/frontend-json-render.md +335 -0
- package/skills/frontend-keyword-clustering.md +118 -0
- package/skills/frontend-next-intl-add-language.md +20 -0
- package/skills/frontend-on-page-seo.md +112 -0
- package/skills/frontend-premium-frontend-ui.md +114 -0
- package/skills/frontend-react-best-practices.md +143 -0
- package/skills/frontend-schema-markup.md +160 -0
- package/skills/frontend-seo-audit.md +110 -0
- package/skills/frontend-swr.md +215 -0
- package/skills/frontend-technical-seo.md +162 -0
- package/skills/frontend-use-dom.md +418 -0
- package/skills/frontend-web-coder.md +564 -0
- package/skills/frontend-web-design-reviewer.md +369 -0
- package/skills/frontend-web-perf.md +202 -0
- package/skills/frontend.md +125 -0
- package/skills/general-adapter-standalone.md +199 -0
- package/skills/general-auth.md +356 -0
- package/skills/general-containerize-aspnetcore.md +393 -0
- package/skills/general-create-technical-spike.md +231 -0
- package/skills/general-cron-jobs.md +72 -0
- package/skills/general-ddd-aggregate.md +52 -0
- package/skills/general-ddd-context.md +46 -0
- package/skills/general-ddd-validate.md +51 -0
- package/skills/general-dependency-check.md +26 -0
- package/skills/general-email-marketing.md +86 -0
- package/skills/general-healthcheck.md +246 -0
- package/skills/general-import-infrastructure-as-code.md +368 -0
- package/skills/general-init.md +49 -0
- package/skills/general-java-junit.md +64 -0
- package/skills/general-java-springboot.md +66 -0
- package/skills/general-javascript-typescript-jest.md +45 -0
- package/skills/general-kotlin-springboot.md +71 -0
- package/skills/general-make-repo-contribution.md +91 -0
- package/skills/general-market-research.md +78 -0
- package/skills/general-marketplace.md +468 -0
- package/skills/general-model-recommendation.md +673 -0
- package/skills/general-payments.md +352 -0
- package/skills/general-quality-playbook.md +480 -0
- package/skills/general-run-integration-tests.md +113 -0
- package/skills/general-superjson.md +274 -0
- package/skills/general-swiftpm-macos.md +51 -0
- package/skills/general-threat-model.md +61 -0
- package/skills/invoices.md +167 -0
- package/skills/licenses.md +159 -0
- package/skills/logs.md +156 -0
- package/skills/marketing.md +139 -0
- package/skills/media-image-manipulation-image-magick.md +253 -0
- package/skills/media-imagegen.md +357 -0
- package/skills/media-openai-whisper-api.md +63 -0
- package/skills/media-openai-whisper.md +39 -0
- package/skills/media-peekaboo.md +191 -0
- package/skills/media-screenshot.md +268 -0
- package/skills/media-speech.md +145 -0
- package/skills/media-transcribe.md +82 -0
- package/skills/media-video-frames.md +47 -0
- package/skills/mobile-android-emulator-qa.md +81 -0
- package/skills/mobile-android-performance.md +280 -0
- package/skills/mobile-building-mcp-server-on-cloudflare.md +267 -0
- package/skills/mobile-building-native-ui.md +322 -0
- package/skills/mobile-expo-api-routes.md +369 -0
- package/skills/mobile-expo-cicd-workflows.md +92 -0
- package/skills/mobile-expo-deployment.md +191 -0
- package/skills/mobile-expo-dev-client.md +165 -0
- package/skills/mobile-expo-module.md +177 -0
- package/skills/mobile-expo-tailwind-setup.md +481 -0
- package/skills/mobile-expo-ui-jetpack-compose.md +41 -0
- package/skills/mobile-expo-ui-swift-ui.md +40 -0
- package/skills/mobile-ios-app-intents.md +78 -0
- package/skills/mobile-ios-debugger-agent.md +52 -0
- package/skills/mobile-ios-ettrace-performance.md +198 -0
- package/skills/mobile-ios-memgraph-leaks.md +77 -0
- package/skills/mobile-native-data-fetching.md +508 -0
- package/skills/mobile-packaging-notarization.md +48 -0
- package/skills/mobile-react-native-architecture.md +672 -0
- package/skills/mobile-react-native-mobile-design.md +438 -0
- package/skills/mobile-signing-entitlements.md +59 -0
- package/skills/mobile-swiftui-liquid-glass.md +91 -0
- package/skills/mobile-swiftui-patterns.md +210 -0
- package/skills/mobile-swiftui-performance-audit.md +108 -0
- package/skills/mobile-swiftui-ui-patterns.md +97 -0
- package/skills/mobile-swiftui-view-refactor.md +204 -0
- package/skills/mobile-upgrading-expo.md +134 -0
- package/skills/mobile.md +183 -0
- package/skills/notes.md +106 -0
- package/skills/planning-adr-create.md +62 -0
- package/skills/planning-adr-index.md +67 -0
- package/skills/planning-architecture-blueprint-generator.md +323 -0
- package/skills/planning-brainstorming.md +165 -0
- package/skills/planning-breakdown-epic-arch.md +67 -0
- package/skills/planning-breakdown-epic-pm.md +59 -0
- package/skills/planning-breakdown-feature-implementation.md +129 -0
- package/skills/planning-breakdown-feature-prd.md +62 -0
- package/skills/planning-breakdown-plan.md +510 -0
- package/skills/planning-breakdown-test.md +366 -0
- package/skills/planning-cloud-design-patterns.md +63 -0
- package/skills/planning-content-brief.md +128 -0
- package/skills/planning-content-strategy.md +138 -0
- package/skills/planning-content-translation.md +143 -0
- package/skills/planning-create-github-action-workflow-specification.md +277 -0
- package/skills/planning-create-github-issues-feature-from-implementation-plan.md +29 -0
- package/skills/planning-create-github-issues-for-unmet-specification-requirements.md +36 -0
- package/skills/planning-create-github-pull-request-from-specification.md +25 -0
- package/skills/planning-create-implementation-plan.md +158 -0
- package/skills/planning-create-specification.md +128 -0
- package/skills/planning-first-ask.md +31 -0
- package/skills/planning-folder-structure-blueprint-generator.md +406 -0
- package/skills/planning-gen-specs-as-issues.md +166 -0
- package/skills/planning-generate-snapshot.md +144 -0
- package/skills/planning-generate-status-report.md +336 -0
- package/skills/planning-metric-pack-designer.md +27 -0
- package/skills/planning-pm-spec.md +53 -0
- package/skills/planning-prd.md +144 -0
- package/skills/planning-project-assessment.md +182 -0
- package/skills/planning-project-setup-info-local.md +128 -0
- package/skills/planning-project-workflow-analysis-blueprint-generator.md +294 -0
- package/skills/planning-service-oriented-architecture.md +248 -0
- package/skills/planning-spec-to-backlog.md +544 -0
- package/skills/planning-technology-stack-blueprint-generator.md +243 -0
- package/skills/planning-update-implementation-plan.md +158 -0
- package/skills/planning-update-specification.md +128 -0
- package/skills/planning-what-context-needed.md +40 -0
- package/skills/planning-writing-plans.md +153 -0
- package/skills/prepare-application.md +81 -0
- package/skills/productivity-apple-notes.md +78 -0
- package/skills/productivity-apple-reminders.md +119 -0
- package/skills/productivity-capture-tasks-from-meeting-notes.md +680 -0
- package/skills/productivity-daily-prep.md +156 -0
- package/skills/productivity-email-drafter.md +101 -0
- package/skills/productivity-hr-onboarding.md +53 -0
- package/skills/productivity-things-mac.md +87 -0
- package/skills/productivity-update.md +169 -0
- package/skills/reminders.md +109 -0
- package/skills/research-dossier-collect.md +71 -0
- package/skills/research-kg-extract.md +37 -0
- package/skills/research-openai-docs.md +89 -0
- package/skills/research-research-add-items.md +31 -0
- package/skills/research-research-report.md +94 -0
- package/skills/research-research-synthesize.md +63 -0
- package/skills/research-summarize.md +88 -0
- package/skills/research-transformers-js.md +635 -0
- package/skills/research.md +119 -0
- package/skills/security-ai-prompt-engineering-safety-review.md +231 -0
- package/skills/security-attack-path-analysis.md +182 -0
- package/skills/security-gdpr-compliant.md +284 -0
- package/skills/security-mcp-security-audit.md +279 -0
- package/skills/security-pii-detect.md +31 -0
- package/skills/security-secret-scanning.md +243 -0
- package/skills/security-security-best-practices.md +87 -0
- package/skills/security-security-ownership-map.md +207 -0
- package/skills/security-security-review.md +169 -0
- package/skills/security-security-scan.md +138 -0
- package/skills/security-security-threat-model.md +82 -0
- package/skills/security-threat-model-analyst.md +76 -0
- package/skills/sysmon.md +181 -0
- package/skills/system-arch-linux-triage.md +32 -0
- package/skills/system-centos-linux-triage.md +32 -0
- package/skills/system-debian-linux-triage.md +32 -0
- package/skills/system-fedora-linux-triage.md +32 -0
- package/skills/system-geofeed-tuner.md +865 -0
- package/skills/system-iot-anomalies.md +15 -0
- package/skills/system-iot-firmware.md +16 -0
- package/skills/system-iot-fleet.md +14 -0
- package/skills/system-iot-register.md +19 -0
- package/skills/system-iot-witness-verify.md +15 -0
- package/skills/system-tmux.md +171 -0
- package/skills/system-window-management.md +228 -0
- package/skills/task-management.md +90 -0
- package/skills/tasks.md +102 -0
- package/skills/test-coverage.md +188 -0
- package/skills/ux-ui.md +128 -0
- package/skills/web.md +186 -0
- package/skills/workflow-act-on-feedback.md +15 -0
- package/skills/workflow-automate-this.md +245 -0
- package/skills/workflow-autoresearch.md +276 -0
- package/skills/workflow-coding-agent.md +317 -0
- package/skills/workflow-deep-research.md +44 -0
- package/skills/workflow-dispatching-parallel-agents.md +183 -0
- package/skills/workflow-eval-driven-dev.md +148 -0
- package/skills/workflow-executing-plans.md +71 -0
- package/skills/workflow-mentoring-juniors.md +311 -0
- package/skills/workflow-receiving-code-review.md +214 -0
- package/skills/workflow-repo-story-time.md +155 -0
- package/skills/workflow-requesting-code-review.md +104 -0
- package/skills/workflow-session-report.md +43 -0
- package/skills/workflow-structured-autonomy-generate.md +126 -0
- package/skills/workflow-subagent-driven-development.md +280 -0
- package/skills/writing.md +106 -0
- package/src/agent.js +0 -0
- package/src/browser.js +297 -0
- package/src/cli.js +25 -4
- package/src/code-reviewer.js +119 -0
- package/src/completions.js +1 -1
- package/src/control.js +222 -30
- package/src/coordinator.js +303 -0
- package/src/correction.js +29 -8
- package/src/edit-tracker.js +21 -0
- package/src/edit-viewer.js +414 -0
- package/src/endpoints.js +64 -15
- package/src/index.js +45 -11
- package/src/llm.js +86 -2
- package/src/mcp-client.js +416 -0
- package/src/memory.js +182 -0
- package/src/planner.js +216 -0
- package/src/rules.js +90 -0
- package/src/self-commands.js +757 -0
- package/src/services/voice.js +10 -7
- package/src/session-search.js +427 -0
- package/src/session.js +487 -99
- package/src/shmakk-server.js +91 -0
- package/src/skills.js +410 -3
- package/src/subagent.js +4 -1
- package/src/system-prompt.js +13 -5
- package/src/task-file.js +114 -0
- package/src/taskClassifier.js +246 -0
- package/src/team.js +752 -0
- package/src/tools.js +142 -21
- package/src/web.js +35 -5
- package/src/workflows.js +261 -0
- package/src/workspace-index.js +25 -6
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: receiving-code-review
|
|
3
|
+
description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
|
|
4
|
+
category: workflow
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Code Review Reception
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Code review requires technical evaluation, not emotional performance.
|
|
12
|
+
|
|
13
|
+
**Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
|
|
14
|
+
|
|
15
|
+
## The Response Pattern
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
WHEN receiving code review feedback:
|
|
19
|
+
|
|
20
|
+
1. READ: Complete feedback without reacting
|
|
21
|
+
2. UNDERSTAND: Restate requirement in own words (or ask)
|
|
22
|
+
3. VERIFY: Check against codebase reality
|
|
23
|
+
4. EVALUATE: Technically sound for THIS codebase?
|
|
24
|
+
5. RESPOND: Technical acknowledgment or reasoned pushback
|
|
25
|
+
6. IMPLEMENT: One item at a time, test each
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Forbidden Responses
|
|
29
|
+
|
|
30
|
+
**NEVER:**
|
|
31
|
+
- "You're absolutely right!" (explicit CLAUDE.md violation)
|
|
32
|
+
- "Great point!" / "Excellent feedback!" (performative)
|
|
33
|
+
- "Let me implement that now" (before verification)
|
|
34
|
+
|
|
35
|
+
**INSTEAD:**
|
|
36
|
+
- Restate the technical requirement
|
|
37
|
+
- Ask clarifying questions
|
|
38
|
+
- Push back with technical reasoning if wrong
|
|
39
|
+
- Just start working (actions > words)
|
|
40
|
+
|
|
41
|
+
## Handling Unclear Feedback
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
IF any item is unclear:
|
|
45
|
+
STOP - do not implement anything yet
|
|
46
|
+
ASK for clarification on unclear items
|
|
47
|
+
|
|
48
|
+
WHY: Items may be related. Partial understanding = wrong implementation.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Example:**
|
|
52
|
+
```
|
|
53
|
+
your human partner: "Fix 1-6"
|
|
54
|
+
You understand 1,2,3,6. Unclear on 4,5.
|
|
55
|
+
|
|
56
|
+
❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
|
|
57
|
+
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Source-Specific Handling
|
|
61
|
+
|
|
62
|
+
### From your human partner
|
|
63
|
+
- **Trusted** - implement after understanding
|
|
64
|
+
- **Still ask** if scope unclear
|
|
65
|
+
- **No performative agreement**
|
|
66
|
+
- **Skip to action** or technical acknowledgment
|
|
67
|
+
|
|
68
|
+
### From External Reviewers
|
|
69
|
+
```
|
|
70
|
+
BEFORE implementing:
|
|
71
|
+
1. Check: Technically correct for THIS codebase?
|
|
72
|
+
2. Check: Breaks existing functionality?
|
|
73
|
+
3. Check: Reason for current implementation?
|
|
74
|
+
4. Check: Works on all platforms/versions?
|
|
75
|
+
5. Check: Does reviewer understand full context?
|
|
76
|
+
|
|
77
|
+
IF suggestion seems wrong:
|
|
78
|
+
Push back with technical reasoning
|
|
79
|
+
|
|
80
|
+
IF can't easily verify:
|
|
81
|
+
Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
|
|
82
|
+
|
|
83
|
+
IF conflicts with your human partner's prior decisions:
|
|
84
|
+
Stop and discuss with your human partner first
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**your human partner's rule:** "External feedback - be skeptical, but check carefully"
|
|
88
|
+
|
|
89
|
+
## YAGNI Check for "Professional" Features
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
IF reviewer suggests "implementing properly":
|
|
93
|
+
grep codebase for actual usage
|
|
94
|
+
|
|
95
|
+
IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
|
|
96
|
+
IF used: Then implement properly
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
|
|
100
|
+
|
|
101
|
+
## Implementation Order
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
FOR multi-item feedback:
|
|
105
|
+
1. Clarify anything unclear FIRST
|
|
106
|
+
2. Then implement in this order:
|
|
107
|
+
- Blocking issues (breaks, security)
|
|
108
|
+
- Simple fixes (typos, imports)
|
|
109
|
+
- Complex fixes (refactoring, logic)
|
|
110
|
+
3. Test each fix individually
|
|
111
|
+
4. Verify no regressions
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## When To Push Back
|
|
115
|
+
|
|
116
|
+
Push back when:
|
|
117
|
+
- Suggestion breaks existing functionality
|
|
118
|
+
- Reviewer lacks full context
|
|
119
|
+
- Violates YAGNI (unused feature)
|
|
120
|
+
- Technically incorrect for this stack
|
|
121
|
+
- Legacy/compatibility reasons exist
|
|
122
|
+
- Conflicts with your human partner's architectural decisions
|
|
123
|
+
|
|
124
|
+
**How to push back:**
|
|
125
|
+
- Use technical reasoning, not defensiveness
|
|
126
|
+
- Ask specific questions
|
|
127
|
+
- Reference working tests/code
|
|
128
|
+
- Involve your human partner if architectural
|
|
129
|
+
|
|
130
|
+
**Signal if uncomfortable pushing back out loud:** "Strange things are afoot at the Circle K"
|
|
131
|
+
|
|
132
|
+
## Acknowledging Correct Feedback
|
|
133
|
+
|
|
134
|
+
When feedback IS correct:
|
|
135
|
+
```
|
|
136
|
+
✅ "Fixed. [Brief description of what changed]"
|
|
137
|
+
✅ "Good catch - [specific issue]. Fixed in [location]."
|
|
138
|
+
✅ [Just fix it and show in the code]
|
|
139
|
+
|
|
140
|
+
❌ "You're absolutely right!"
|
|
141
|
+
❌ "Great point!"
|
|
142
|
+
❌ "Thanks for catching that!"
|
|
143
|
+
❌ "Thanks for [anything]"
|
|
144
|
+
❌ ANY gratitude expression
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
|
|
148
|
+
|
|
149
|
+
**If you catch yourself about to write "Thanks":** DELETE IT. State the fix instead.
|
|
150
|
+
|
|
151
|
+
## Gracefully Correcting Your Pushback
|
|
152
|
+
|
|
153
|
+
If you pushed back and were wrong:
|
|
154
|
+
```
|
|
155
|
+
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
|
|
156
|
+
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
|
|
157
|
+
|
|
158
|
+
❌ Long apology
|
|
159
|
+
❌ Defending why you pushed back
|
|
160
|
+
❌ Over-explaining
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
State the correction factually and move on.
|
|
164
|
+
|
|
165
|
+
## Common Mistakes
|
|
166
|
+
|
|
167
|
+
| Mistake | Fix |
|
|
168
|
+
|---------|-----|
|
|
169
|
+
| Performative agreement | State requirement or just act |
|
|
170
|
+
| Blind implementation | Verify against codebase first |
|
|
171
|
+
| Batch without testing | One at a time, test each |
|
|
172
|
+
| Assuming reviewer is right | Check if breaks things |
|
|
173
|
+
| Avoiding pushback | Technical correctness > comfort |
|
|
174
|
+
| Partial implementation | Clarify all items first |
|
|
175
|
+
| Can't verify, proceed anyway | State limitation, ask for direction |
|
|
176
|
+
|
|
177
|
+
## Real Examples
|
|
178
|
+
|
|
179
|
+
**Performative Agreement (Bad):**
|
|
180
|
+
```
|
|
181
|
+
Reviewer: "Remove legacy code"
|
|
182
|
+
❌ "You're absolutely right! Let me remove that..."
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Technical Verification (Good):**
|
|
186
|
+
```
|
|
187
|
+
Reviewer: "Remove legacy code"
|
|
188
|
+
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**YAGNI (Good):**
|
|
192
|
+
```
|
|
193
|
+
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
|
|
194
|
+
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Unclear Item (Good):**
|
|
198
|
+
```
|
|
199
|
+
your human partner: "Fix items 1-6"
|
|
200
|
+
You understand 1,2,3,6. Unclear on 4,5.
|
|
201
|
+
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## GitHub Thread Replies
|
|
205
|
+
|
|
206
|
+
When replying to inline review comments on GitHub, reply in the comment thread (`gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies`), not as a top-level PR comment.
|
|
207
|
+
|
|
208
|
+
## The Bottom Line
|
|
209
|
+
|
|
210
|
+
**External feedback = suggestions to evaluate, not orders to follow.**
|
|
211
|
+
|
|
212
|
+
Verify. Question. Then implement.
|
|
213
|
+
|
|
214
|
+
No performative agreement. Technical rigor always.
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: repo-story-time
|
|
3
|
+
description: 'Generate a comprehensive repository summary and narrative story from commit history'
|
|
4
|
+
category: workflow
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Role
|
|
8
|
+
|
|
9
|
+
You're a senior technical analyst and storyteller with expertise in repository archaeology, code pattern analysis, and narrative synthesis. Your mission is to transform raw repository data into compelling technical narratives that reveal the human stories behind the code.
|
|
10
|
+
|
|
11
|
+
## Task
|
|
12
|
+
|
|
13
|
+
Transform any repository into a comprehensive analysis with two deliverables:
|
|
14
|
+
|
|
15
|
+
1. **REPOSITORY_SUMMARY.md** - Technical architecture and purpose overview
|
|
16
|
+
2. **THE_STORY_OF_THIS_REPO.md** - Narrative story from commit history analysis
|
|
17
|
+
|
|
18
|
+
**CRITICAL**: You must CREATE and WRITE these files with complete markdown content. Do NOT output the markdown content in the chat - use the `editFiles` tool to create the actual files in the repository root directory.
|
|
19
|
+
|
|
20
|
+
## Methodology
|
|
21
|
+
|
|
22
|
+
### Phase 1: Repository Exploration
|
|
23
|
+
|
|
24
|
+
**EXECUTE these commands immediately** to understand the repository structure and purpose:
|
|
25
|
+
|
|
26
|
+
1. Get repository overview by running:
|
|
27
|
+
`Get-ChildItem -Recurse -Include "*.md","*.json","*.yaml","*.yml" | Select-Object -First 20 | Select-Object Name, DirectoryName`
|
|
28
|
+
|
|
29
|
+
2. Understand project structure by running:
|
|
30
|
+
`Get-ChildItem -Recurse -Directory | Where-Object {$_.Name -notmatch "(node_modules|\.git|bin|obj)"} | Select-Object -First 30 | Format-Table Name, FullName`
|
|
31
|
+
|
|
32
|
+
After executing these commands, use semantic search to understand key concepts and technologies. Look for:
|
|
33
|
+
- Configuration files (package.json, pom.xml, requirements.txt, etc.)
|
|
34
|
+
- README files and documentation
|
|
35
|
+
- Main source directories
|
|
36
|
+
- Test directories
|
|
37
|
+
- Build/deployment configurations
|
|
38
|
+
|
|
39
|
+
### Phase 2: Technical Deep Dive
|
|
40
|
+
Create comprehensive technical inventory:
|
|
41
|
+
- **Purpose**: What problem does this repository solve?
|
|
42
|
+
- **Architecture**: How is the code organized?
|
|
43
|
+
- **Technologies**: What languages, frameworks, and tools are used?
|
|
44
|
+
- **Key Components**: What are the main modules/services/features?
|
|
45
|
+
- **Data Flow**: How does information move through the system?
|
|
46
|
+
|
|
47
|
+
### Phase 3: Commit History Analysis
|
|
48
|
+
|
|
49
|
+
**EXECUTE these git commands systematically** to understand repository evolution:
|
|
50
|
+
|
|
51
|
+
**Step 1: Basic Statistics** - Run these commands to get repository metrics:
|
|
52
|
+
- `git rev-list --all --count` (total commit count)
|
|
53
|
+
- `(git log --oneline --since="1 year ago").Count` (commits in last year)
|
|
54
|
+
|
|
55
|
+
**Step 2: Contributor Analysis** - Run this command:
|
|
56
|
+
- `git shortlog -sn --since="1 year ago" | Select-Object -First 20`
|
|
57
|
+
|
|
58
|
+
**Step 3: Activity Patterns** - Run this command:
|
|
59
|
+
- `git log --since="1 year ago" --format="%ai" | ForEach-Object { $_.Substring(0,7) } | Group-Object | Sort-Object Count -Descending | Select-Object -First 12`
|
|
60
|
+
|
|
61
|
+
**Step 4: Change Pattern Analysis** - Run these commands:
|
|
62
|
+
- `git log --since="1 year ago" --oneline --grep="feat|fix|update|add|remove" | Select-Object -First 50`
|
|
63
|
+
- `git log --since="1 year ago" --name-only --oneline | Where-Object { $_ -notmatch "^[a-f0-9]" } | Group-Object | Sort-Object Count -Descending | Select-Object -First 20`
|
|
64
|
+
|
|
65
|
+
**Step 5: Collaboration Patterns** - Run this command:
|
|
66
|
+
- `git log --since="1 year ago" --merges --oneline | Select-Object -First 20`
|
|
67
|
+
|
|
68
|
+
**Step 6: Seasonal Analysis** - Run this command:
|
|
69
|
+
- `git log --since="1 year ago" --format="%ai" | ForEach-Object { $_.Substring(5,2) } | Group-Object | Sort-Object Name`
|
|
70
|
+
|
|
71
|
+
**Important**: Execute each command and analyze the output before proceeding to the next step.
|
|
72
|
+
**Important**: Use your best judgment to execute additional commands not listed above based on the output of previous commands or the repository's specific content.
|
|
73
|
+
|
|
74
|
+
### Phase 4: Pattern Recognition
|
|
75
|
+
Look for these narrative elements:
|
|
76
|
+
- **Characters**: Who are the main contributors? What are their specialties?
|
|
77
|
+
- **Seasons**: Are there patterns by month/quarter? Holiday effects?
|
|
78
|
+
- **Themes**: What types of changes dominate? (features, fixes, refactoring)
|
|
79
|
+
- **Conflicts**: Are there areas of frequent change or contention?
|
|
80
|
+
- **Evolution**: How has the repository grown and changed over time?
|
|
81
|
+
|
|
82
|
+
## Output Format
|
|
83
|
+
|
|
84
|
+
### REPOSITORY_SUMMARY.md Structure
|
|
85
|
+
```markdown
|
|
86
|
+
# Repository Analysis: [Repo Name]
|
|
87
|
+
|
|
88
|
+
## Overview
|
|
89
|
+
Brief description of what this repository does and why it exists.
|
|
90
|
+
|
|
91
|
+
## Architecture
|
|
92
|
+
High-level technical architecture and organization.
|
|
93
|
+
|
|
94
|
+
## Key Components
|
|
95
|
+
- **Component 1**: Description and purpose
|
|
96
|
+
- **Component 2**: Description and purpose
|
|
97
|
+
[Continue for all major components]
|
|
98
|
+
|
|
99
|
+
## Technologies Used
|
|
100
|
+
List of programming languages, frameworks, tools, and platforms.
|
|
101
|
+
|
|
102
|
+
## Data Flow
|
|
103
|
+
How information moves through the system.
|
|
104
|
+
|
|
105
|
+
## Team and Ownership
|
|
106
|
+
Who maintains different parts of the codebase.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### THE_STORY_OF_THIS_REPO.md Structure
|
|
110
|
+
```markdown
|
|
111
|
+
# The Story of [Repo Name]
|
|
112
|
+
|
|
113
|
+
## The Chronicles: A Year in Numbers
|
|
114
|
+
Statistical overview of the past year's activity.
|
|
115
|
+
|
|
116
|
+
## Cast of Characters
|
|
117
|
+
Profiles of main contributors with their specialties and impact.
|
|
118
|
+
|
|
119
|
+
## Seasonal Patterns
|
|
120
|
+
Monthly/quarterly analysis of development activity.
|
|
121
|
+
|
|
122
|
+
## The Great Themes
|
|
123
|
+
Major categories of work and their significance.
|
|
124
|
+
|
|
125
|
+
## Plot Twists and Turning Points
|
|
126
|
+
Notable events, major changes, or interesting patterns.
|
|
127
|
+
|
|
128
|
+
## The Current Chapter
|
|
129
|
+
Where the repository stands today and future implications.
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Key Instructions
|
|
133
|
+
|
|
134
|
+
1. **Be Specific**: Use actual file names, commit messages, and contributor names
|
|
135
|
+
2. **Find Stories**: Look for interesting patterns, not just statistics
|
|
136
|
+
3. **Context Matters**: Explain why patterns exist (holidays, releases, incidents)
|
|
137
|
+
4. **Human Element**: Focus on the people and teams behind the code
|
|
138
|
+
5. **Technical Depth**: Balance narrative with technical accuracy
|
|
139
|
+
6. **Evidence-Based**: Support observations with actual git data
|
|
140
|
+
|
|
141
|
+
## Success Criteria
|
|
142
|
+
|
|
143
|
+
- Both markdown files are **ACTUALLY CREATED** with complete, comprehensive content using the `editFiles` tool
|
|
144
|
+
- **NO markdown content should be output to chat** - all content must be written directly to the files
|
|
145
|
+
- Technical summary accurately represents repository architecture
|
|
146
|
+
- Narrative story reveals human patterns and interesting insights
|
|
147
|
+
- Git commands provide concrete evidence for all claims
|
|
148
|
+
- Analysis reveals both technical and cultural aspects of development
|
|
149
|
+
- Files are ready to use immediately without any copy/paste from chat dialog
|
|
150
|
+
|
|
151
|
+
## Critical Final Instructions
|
|
152
|
+
|
|
153
|
+
**DO NOT** output markdown content in the chat. **DO** use the `editFiles` tool to create both files with complete content. The deliverables are the actual files, not chat output.
|
|
154
|
+
|
|
155
|
+
Remember: Every repository tells a story. Your job is to uncover that story through systematic analysis and present it in a way that both technical and non-technical audiences can appreciate.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: requesting-code-review
|
|
3
|
+
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
|
|
4
|
+
category: workflow
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Requesting Code Review
|
|
8
|
+
|
|
9
|
+
Dispatch a code reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
|
|
10
|
+
|
|
11
|
+
**Core principle:** Review early, review often.
|
|
12
|
+
|
|
13
|
+
## When to Request Review
|
|
14
|
+
|
|
15
|
+
**Mandatory:**
|
|
16
|
+
- After each task in subagent-driven development
|
|
17
|
+
- After completing major feature
|
|
18
|
+
- Before merge to main
|
|
19
|
+
|
|
20
|
+
**Optional but valuable:**
|
|
21
|
+
- When stuck (fresh perspective)
|
|
22
|
+
- Before refactoring (baseline check)
|
|
23
|
+
- After fixing complex bug
|
|
24
|
+
|
|
25
|
+
## How to Request
|
|
26
|
+
|
|
27
|
+
**1. Get git SHAs:**
|
|
28
|
+
```bash
|
|
29
|
+
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
|
|
30
|
+
HEAD_SHA=$(git rev-parse HEAD)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**2. Dispatch code reviewer subagent:**
|
|
34
|
+
|
|
35
|
+
Use Task tool with `general-purpose` type, fill template at `code-reviewer.md`
|
|
36
|
+
|
|
37
|
+
**Placeholders:**
|
|
38
|
+
- `{DESCRIPTION}` - Brief summary of what you built
|
|
39
|
+
- `{PLAN_OR_REQUIREMENTS}` - What it should do
|
|
40
|
+
- `{BASE_SHA}` - Starting commit
|
|
41
|
+
- `{HEAD_SHA}` - Ending commit
|
|
42
|
+
|
|
43
|
+
**3. Act on feedback:**
|
|
44
|
+
- Fix Critical issues immediately
|
|
45
|
+
- Fix Important issues before proceeding
|
|
46
|
+
- Note Minor issues for later
|
|
47
|
+
- Push back if reviewer is wrong (with reasoning)
|
|
48
|
+
|
|
49
|
+
## Example
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
[Just completed Task 2: Add verification function]
|
|
53
|
+
|
|
54
|
+
You: Let me request code review before proceeding.
|
|
55
|
+
|
|
56
|
+
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
|
|
57
|
+
HEAD_SHA=$(git rev-parse HEAD)
|
|
58
|
+
|
|
59
|
+
[Dispatch code reviewer subagent]
|
|
60
|
+
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
|
|
61
|
+
PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md
|
|
62
|
+
BASE_SHA: a7981ec
|
|
63
|
+
HEAD_SHA: 3df7661
|
|
64
|
+
|
|
65
|
+
[Subagent returns]:
|
|
66
|
+
Strengths: Clean architecture, real tests
|
|
67
|
+
Issues:
|
|
68
|
+
Important: Missing progress indicators
|
|
69
|
+
Minor: Magic number (100) for reporting interval
|
|
70
|
+
Assessment: Ready to proceed
|
|
71
|
+
|
|
72
|
+
You: [Fix progress indicators]
|
|
73
|
+
[Continue to Task 3]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Integration with Workflows
|
|
77
|
+
|
|
78
|
+
**Subagent-Driven Development:**
|
|
79
|
+
- Review after EACH task
|
|
80
|
+
- Catch issues before they compound
|
|
81
|
+
- Fix before moving to next task
|
|
82
|
+
|
|
83
|
+
**Executing Plans:**
|
|
84
|
+
- Review after each task or at natural checkpoints
|
|
85
|
+
- Get feedback, apply, continue
|
|
86
|
+
|
|
87
|
+
**Ad-Hoc Development:**
|
|
88
|
+
- Review before merge
|
|
89
|
+
- Review when stuck
|
|
90
|
+
|
|
91
|
+
## Red Flags
|
|
92
|
+
|
|
93
|
+
**Never:**
|
|
94
|
+
- Skip review because "it's simple"
|
|
95
|
+
- Ignore Critical issues
|
|
96
|
+
- Proceed with unfixed Important issues
|
|
97
|
+
- Argue with valid technical feedback
|
|
98
|
+
|
|
99
|
+
**If reviewer wrong:**
|
|
100
|
+
- Push back with technical reasoning
|
|
101
|
+
- Show code/tests that prove it works
|
|
102
|
+
- Request clarification
|
|
103
|
+
|
|
104
|
+
See template at: requesting-code-review/code-reviewer.md
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: session-report
|
|
3
|
+
description: Generate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.
|
|
4
|
+
category: workflow
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Session Report
|
|
8
|
+
|
|
9
|
+
Produce a self-contained HTML report of Claude Code usage and save it to the current working directory.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
|
|
13
|
+
1. **Get data.** Run the bundled analyzer (default window: last 7 days; honor a different range if the user passed one, e.g. `24h`, `30d`, or `all`). The script `analyze-sessions.mjs` lives in the same directory as this SKILL.md — use its absolute path:
|
|
14
|
+
```sh
|
|
15
|
+
node <skill-dir>/analyze-sessions.mjs --json --since 7d > /tmp/session-report.json
|
|
16
|
+
```
|
|
17
|
+
For all-time, omit `--since`.
|
|
18
|
+
|
|
19
|
+
2. **Read** `/tmp/session-report.json`. Skim `overall`, `by_project`, `by_subagent_type`, `by_skill`, `cache_breaks`, `top_prompts`.
|
|
20
|
+
|
|
21
|
+
3. **Copy the template** (also bundled alongside this SKILL.md) to the output path in the current working directory:
|
|
22
|
+
```sh
|
|
23
|
+
cp <skill-dir>/template.html ./session-report-$(date +%Y%m%d-%H%M).html
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
4. **Edit the output file** (use Edit, not Write — preserve the template's JS/CSS):
|
|
27
|
+
- Replace the contents of `<script id="report-data" type="application/json">` with the full JSON from step 1. The page's JS renders the hero total, all tables, bars, and drill-downs from this blob automatically.
|
|
28
|
+
- Fill the `<!-- AGENT: anomalies -->` block with **3–5 one-line findings**. Express figures as a **% of total tokens** wherever possible (total = `overall.input_tokens.total + overall.output_tokens`). One line per finding, exact markup:
|
|
29
|
+
```html
|
|
30
|
+
<div class="take bad"><div class="fig">41.2%</div><div class="txt"><b>cc-monitor</b> consumed 41% of the week across just 3 sessions</div></div>
|
|
31
|
+
```
|
|
32
|
+
Classes: `.take bad` for waste/anomalies (red), `.take good` for healthy signals (green), `.take info` for neutral facts (blue). The `.fig` is one short number (a %, a count, or a multiplier like `12×`). The `.txt` is one plain-English sentence naming the project/skill/prompt; wrap the subject in `<b>`. Look for: a project or skill eating a disproportionate share, cache-hit <85%, a single prompt >2% of total, subagent types averaging >1M tokens/call, cache breaks clustering.
|
|
33
|
+
- Fill the `<!-- AGENT: optimizations -->` block (at the **bottom** of the page) with 1–4 `<div class="callout">` suggestions tied to specific rows (e.g. "`/weekly-status` spawned 7 subagents for 8.1% of total — scope it to fewer parallel agents").
|
|
34
|
+
- Do not restructure existing sections.
|
|
35
|
+
|
|
36
|
+
5. **Report** the saved file path to the user. Do not open it or render it.
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- The template is the source of interactivity (sorting, expand/collapse, block-char bars). Your job is data + narrative, not markup.
|
|
41
|
+
- Keep commentary terse and specific — reference actual project names, numbers, timestamps from the JSON.
|
|
42
|
+
- `top_prompts` already includes subagent tokens and rolls task-notification continuations into the originating prompt.
|
|
43
|
+
- If the JSON is >2MB, trim `top_prompts` to 100 entries and `cache_breaks` to 100 before embedding (they should already be capped).
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: structured-autonomy-generate
|
|
3
|
+
description: 'Structured Autonomy Implementation Generator Prompt'
|
|
4
|
+
category: workflow
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a PR implementation plan generator that creates complete, copy-paste ready implementation documentation.
|
|
8
|
+
|
|
9
|
+
Your SOLE responsibility is to:
|
|
10
|
+
1. Accept a complete PR plan (plan.md in plans/{feature-name}/)
|
|
11
|
+
2. Extract all implementation steps from the plan
|
|
12
|
+
3. Generate comprehensive step documentation with complete code
|
|
13
|
+
4. Save plan to: `plans/{feature-name}/implementation.md`
|
|
14
|
+
|
|
15
|
+
Follow the <workflow> below to generate and save implementation files for each step in the plan.
|
|
16
|
+
|
|
17
|
+
<workflow>
|
|
18
|
+
|
|
19
|
+
## Step 1: Parse Plan & Research Codebase
|
|
20
|
+
|
|
21
|
+
1. Read the plan.md file to extract:
|
|
22
|
+
- Feature name and branch (determines root folder: `plans/{feature-name}/`)
|
|
23
|
+
- Implementation steps (numbered 1, 2, 3, etc.)
|
|
24
|
+
- Files affected by each step
|
|
25
|
+
2. Run comprehensive research ONE TIME using <research_task>. Use `runSubagent` to execute. Do NOT pause.
|
|
26
|
+
3. Once research returns, proceed to Step 2 (file generation).
|
|
27
|
+
|
|
28
|
+
## Step 2: Generate Implementation File
|
|
29
|
+
|
|
30
|
+
Output the plan as a COMPLETE markdown document using the <plan_template>, ready to be saved as a `.md` file.
|
|
31
|
+
|
|
32
|
+
The plan MUST include:
|
|
33
|
+
- Complete, copy-paste ready code blocks with ZERO modifications needed
|
|
34
|
+
- Exact file paths appropriate to the project structure
|
|
35
|
+
- Markdown checkboxes for EVERY action item
|
|
36
|
+
- Specific, observable, testable verification points
|
|
37
|
+
- NO ambiguity - every instruction is concrete
|
|
38
|
+
- NO "decide for yourself" moments - all decisions made based on research
|
|
39
|
+
- Technology stack and dependencies explicitly stated
|
|
40
|
+
- Build/test commands specific to the project type
|
|
41
|
+
|
|
42
|
+
</workflow>
|
|
43
|
+
|
|
44
|
+
<research_task>
|
|
45
|
+
For the entire project described in the master plan, research and gather:
|
|
46
|
+
|
|
47
|
+
1. **Project-Wide Analysis:**
|
|
48
|
+
- Project type, technology stack, versions
|
|
49
|
+
- Project structure and folder organization
|
|
50
|
+
- Coding conventions and naming patterns
|
|
51
|
+
- Build/test/run commands
|
|
52
|
+
- Dependency management approach
|
|
53
|
+
|
|
54
|
+
2. **Code Patterns Library:**
|
|
55
|
+
- Collect all existing code patterns
|
|
56
|
+
- Document error handling patterns
|
|
57
|
+
- Record logging/debugging approaches
|
|
58
|
+
- Identify utility/helper patterns
|
|
59
|
+
- Note configuration approaches
|
|
60
|
+
|
|
61
|
+
3. **Architecture Documentation:**
|
|
62
|
+
- How components interact
|
|
63
|
+
- Data flow patterns
|
|
64
|
+
- API conventions
|
|
65
|
+
- State management (if applicable)
|
|
66
|
+
- Testing strategies
|
|
67
|
+
|
|
68
|
+
4. **Official Documentation:**
|
|
69
|
+
- Fetch official docs for all major libraries/frameworks
|
|
70
|
+
- Document APIs, syntax, parameters
|
|
71
|
+
- Note version-specific details
|
|
72
|
+
- Record known limitations and gotchas
|
|
73
|
+
- Identify permission/capability requirements
|
|
74
|
+
|
|
75
|
+
Return a comprehensive research package covering the entire project context.
|
|
76
|
+
</research_task>
|
|
77
|
+
|
|
78
|
+
<plan_template>
|
|
79
|
+
# {FEATURE_NAME}
|
|
80
|
+
|
|
81
|
+
## Goal
|
|
82
|
+
{One sentence describing exactly what this implementation accomplishes}
|
|
83
|
+
|
|
84
|
+
## Prerequisites
|
|
85
|
+
Make sure that the use is currently on the `{feature-name}` branch before beginning implementation.
|
|
86
|
+
If not, move them to the correct branch. If the branch does not exist, create it from main.
|
|
87
|
+
|
|
88
|
+
### Step-by-Step Instructions
|
|
89
|
+
|
|
90
|
+
#### Step 1: {Action}
|
|
91
|
+
- [ ] {Specific instruction 1}
|
|
92
|
+
- [ ] Copy and paste code below into `{file}`:
|
|
93
|
+
|
|
94
|
+
```{language}
|
|
95
|
+
{COMPLETE, TESTED CODE - NO PLACEHOLDERS - NO "TODO" COMMENTS}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- [ ] {Specific instruction 2}
|
|
99
|
+
- [ ] Copy and paste code below into `{file}`:
|
|
100
|
+
|
|
101
|
+
```{language}
|
|
102
|
+
{COMPLETE, TESTED CODE - NO PLACEHOLDERS - NO "TODO" COMMENTS}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
##### Step 1 Verification Checklist
|
|
106
|
+
- [ ] No build errors
|
|
107
|
+
- [ ] Specific instructions for UI verification (if applicable)
|
|
108
|
+
|
|
109
|
+
#### Step 1 STOP & COMMIT
|
|
110
|
+
**STOP & COMMIT:** Agent must stop here and wait for the user to test, stage, and commit the change.
|
|
111
|
+
|
|
112
|
+
#### Step 2: {Action}
|
|
113
|
+
- [ ] {Specific Instruction 1}
|
|
114
|
+
- [ ] Copy and paste code below into `{file}`:
|
|
115
|
+
|
|
116
|
+
```{language}
|
|
117
|
+
{COMPLETE, TESTED CODE - NO PLACEHOLDERS - NO "TODO" COMMENTS}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
##### Step 2 Verification Checklist
|
|
121
|
+
- [ ] No build errors
|
|
122
|
+
- [ ] Specific instructions for UI verification (if applicable)
|
|
123
|
+
|
|
124
|
+
#### Step 2 STOP & COMMIT
|
|
125
|
+
**STOP & COMMIT:** Agent must stop here and wait for the user to test, stage, and commit the change.
|
|
126
|
+
</plan_template>
|