nemonix-cli 1.0.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/LICENSE +21 -0
- package/README.md +186 -0
- package/dist/cli.js +6870 -0
- package/package.json +48 -0
- package/src/config/claude-code-config/.claude/commands/setup-tmux.md +0 -0
- package/src/config/claude-code-config/CHANGELOG.md +261 -0
- package/src/config/claude-code-config/README.md +1 -0
- package/src/config/claude-code-config/agents/action.md +36 -0
- package/src/config/claude-code-config/agents/clean-code-runner.md +61 -0
- package/src/config/claude-code-config/agents/code-reviewer.md +172 -0
- package/src/config/claude-code-config/agents/code-simplifier.md +49 -0
- package/src/config/claude-code-config/agents/explore-codebase.md +65 -0
- package/src/config/claude-code-config/agents/explore-docs.md +65 -0
- package/src/config/claude-code-config/agents/explore-fast.md +22 -0
- package/src/config/claude-code-config/agents/implementer.md +181 -0
- package/src/config/claude-code-config/agents/snipper.md +36 -0
- package/src/config/claude-code-config/agents/websearch.md +42 -0
- package/src/config/claude-code-config/commands/prompts/create-vitejs-app.md +272 -0
- package/src/config/claude-code-config/commands/prompts/nextjs-add-prisma-db.md +136 -0
- package/src/config/claude-code-config/commands/prompts/nextjs-setup-better-auth.md +173 -0
- package/src/config/claude-code-config/commands/prompts/nextjs-setup-project.md +200 -0
- package/src/config/claude-code-config/commands/prompts/prompt.md +55 -0
- package/src/config/claude-code-config/commands/prompts/saas-challenge-idea.md +135 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-architecture.md +242 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-headline.md +132 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-landing-copywritting.md +267 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-legals-docs.md +176 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-logos.md +240 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-prd.md +195 -0
- package/src/config/claude-code-config/commands/prompts/saas-create-tasks.md +240 -0
- package/src/config/claude-code-config/commands/prompts/saas-define-pricing.md +293 -0
- package/src/config/claude-code-config/commands/prompts/saas-find-domain-name.md +190 -0
- package/src/config/claude-code-config/commands/prompts/saas-implement-landing-page.md +257 -0
- package/src/config/claude-code-config/commands/prompts/setup-tmux.md +160 -0
- package/src/config/claude-code-config/commands/prompts/tools.md +148 -0
- package/src/config/claude-code-config/hooks/hook-post-file.ts +162 -0
- package/src/config/claude-code-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
- package/src/config/claude-code-config/scripts/CLAUDE.md +50 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/CLAUDE.md +59 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/__tests__/shared.test.ts +185 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/__tests__/title-generation.test.ts +44 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/fixtures/sample-transcript.jsonl +3 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/fixtures/transcript-short-message.jsonl +2 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/fixtures/transcript-with-title.jsonl +3 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/src/index.ts +113 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/src/rename-all.ts +148 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/src/shared.ts +157 -0
- package/src/config/claude-code-config/scripts/auto-rename-session/src/worker.ts +58 -0
- package/src/config/claude-code-config/scripts/biome.json +37 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/CLAUDE.md +84 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/__tests__/claude.test.ts +19 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/__tests__/paths.test.ts +68 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/claude.ts +56 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/cli.ts +46 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/helper/credentials.ts +76 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/helper/index.ts +9 -0
- package/src/config/claude-code-config/scripts/claude-code-ai/helper/paths.ts +51 -0
- package/src/config/claude-code-config/scripts/command-validator/CLAUDE.md +112 -0
- package/src/config/claude-code-config/scripts/command-validator/README.md +147 -0
- package/src/config/claude-code-config/scripts/command-validator/src/__tests__/validator.test.ts +99 -0
- package/src/config/claude-code-config/scripts/command-validator/src/cli.ts +121 -0
- package/src/config/claude-code-config/scripts/command-validator/src/lib/security-rules.ts +174 -0
- package/src/config/claude-code-config/scripts/command-validator/src/lib/types.ts +34 -0
- package/src/config/claude-code-config/scripts/command-validator/src/lib/validator.ts +90 -0
- package/src/config/claude-code-config/scripts/package.json +43 -0
- package/src/config/claude-code-config/scripts/statusline/CLAUDE.md +205 -0
- package/src/config/claude-code-config/scripts/statusline/README.md +193 -0
- package/src/config/claude-code-config/scripts/statusline/__tests__/context.test.ts +229 -0
- package/src/config/claude-code-config/scripts/statusline/__tests__/formatters.test.ts +108 -0
- package/src/config/claude-code-config/scripts/statusline/__tests__/statusline.test.ts +309 -0
- package/src/config/claude-code-config/scripts/statusline/data/.gitkeep +0 -0
- package/src/config/claude-code-config/scripts/statusline/defaults.json +82 -0
- package/src/config/claude-code-config/scripts/statusline/docs/ARCHITECTURE.md +166 -0
- package/src/config/claude-code-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -0
- package/src/config/claude-code-config/scripts/statusline/fixtures/test-input.json +35 -0
- package/src/config/claude-code-config/scripts/statusline/src/analyze-daily-usage.ts +151 -0
- package/src/config/claude-code-config/scripts/statusline/src/commands/interactive-config.ts +515 -0
- package/src/config/claude-code-config/scripts/statusline/src/debug-payloads.ts +195 -0
- package/src/config/claude-code-config/scripts/statusline/src/index.ts +224 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/config-types.ts +110 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/config.ts +21 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/context.ts +103 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/limits/commands/weekly-analysis.ts +108 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/limits/index.ts +111 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/limits/types.ts +15 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/migrate-to-sqlite.ts +136 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/spend-day.ts +79 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/spend-month.ts +66 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/spend-project.ts +85 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/database.ts +395 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/index.ts +178 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/payload-logger.ts +161 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/types.ts +37 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/formatters.ts +426 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/git.ts +100 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/menu-factories.ts +224 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/presets.ts +177 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/render-pure.ts +516 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/types.ts +36 -0
- package/src/config/claude-code-config/scripts/statusline/src/lib/utils.ts +15 -0
- package/src/config/claude-code-config/scripts/statusline/src/stats.ts +119 -0
- package/src/config/claude-code-config/scripts/statusline/src/tests/spend-v2.test.ts +377 -0
- package/src/config/claude-code-config/scripts/statusline/src/tools/fixed-cost-calc.ts +317 -0
- package/src/config/claude-code-config/scripts/statusline/statusline.config.free.json +79 -0
- package/src/config/claude-code-config/scripts/statusline/statusline.config.json +100 -0
- package/src/config/claude-code-config/scripts/statusline/test-with-fixtures.ts +37 -0
- package/src/config/claude-code-config/scripts/statusline/test.ts +20 -0
- package/src/config/claude-code-config/scripts/statusline/tsconfig.json +27 -0
- package/src/config/claude-code-config/scripts/tsconfig.json +27 -0
- package/src/config/claude-code-config/settings.json +92 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/SKILL.md +176 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/references/architecture-template.md +436 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/references/challenge-framework.md +289 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/references/discovery-framework.md +338 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/references/prd-template.md +452 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/references/task-template.md +263 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/references/tools.md +132 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/scripts/rename-project.sh +42 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/scripts/setup.sh +104 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-00-init.md +174 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-01-discovery.md +342 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-02-brainstorm.md +230 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-03-validate.md +372 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-04-prd.md +364 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-05-architecture.md +904 -0
- package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-06-tasks.md +446 -0
- package/src/config/claude-code-config/skills/explore/SKILL.md +119 -0
- package/src/config/claude-code-config/skills/frontend-design/LICENSE.txt +177 -0
- package/src/config/claude-code-config/skills/frontend-design/SKILL.md +42 -0
- package/src/config/claude-code-config/skills/git-commit/SKILL.md +42 -0
- package/src/config/claude-code-config/skills/git-create-pr/SKILL.md +53 -0
- package/src/config/claude-code-config/skills/git-fix-pr-comments/SKILL.md +51 -0
- package/src/config/claude-code-config/skills/git-merge/SKILL.md +68 -0
- package/src/config/claude-code-config/skills/marketing-copywriting/SKILL.md +72 -0
- package/src/config/claude-code-config/skills/meta-claude-memory/SKILL.md +694 -0
- package/src/config/claude-code-config/skills/meta-claude-memory/references/comprehensive-example.md +175 -0
- package/src/config/claude-code-config/skills/meta-claude-memory/references/project-patterns.md +334 -0
- package/src/config/claude-code-config/skills/meta-claude-memory/references/prompting-techniques.md +411 -0
- package/src/config/claude-code-config/skills/meta-claude-memory/references/rules-directory-guide.md +298 -0
- package/src/config/claude-code-config/skills/meta-claude-memory/references/section-templates.md +347 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/SKILL.md +357 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/references/command-vs-prompt.md +287 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/references/examples.md +689 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/references/hook-types.md +495 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/references/input-output-schemas.md +503 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/references/matchers.md +517 -0
- package/src/config/claude-code-config/skills/meta-hooks-creator/references/troubleshooting.md +653 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/SKILL.md +285 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/anthropic-best-practices.md +126 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/anti-patterns.md +57 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/clarity-principles.md +54 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/context-management.md +389 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/few-shot-patterns.md +47 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/openai-best-practices.md +50 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/prompt-templates.md +110 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/reasoning-techniques.md +52 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/system-prompt-patterns.md +48 -0
- package/src/config/claude-code-config/skills/meta-prompt-creator/references/xml-structure.md +36 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/LICENSE.txt +202 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/SKILL.md +421 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/package.json +5 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/output-patterns.md +82 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md +374 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/prompting-integration.md +363 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/real-world-examples.md +513 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/script-patterns.md +385 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/workflows.md +28 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/references/xml-tag-guide.md +606 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/scripts/init-skill.ts +214 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/scripts/package-skill.ts +146 -0
- package/src/config/claude-code-config/skills/meta-skill-creator/scripts/validate.ts +138 -0
- package/src/config/claude-code-config/skills/meta-skill-workflow-creator/SKILL.md +390 -0
- package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/ask-patterns.md +225 -0
- package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/prompt-engineering.md +377 -0
- package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/state-management.md +275 -0
- package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/step-template.md +334 -0
- package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/workflow-patterns.md +300 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/SKILL.md +451 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/context-management.md +567 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/debugging-agents.md +714 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/error-handling-and-recovery.md +502 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/evaluation-and-testing.md +374 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/orchestration-patterns.md +591 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/subagents.md +599 -0
- package/src/config/claude-code-config/skills/meta-subagent-creator/references/writing-subagent-prompts.md +513 -0
- package/src/config/claude-code-config/skills/ralph-loop/SKILL.md +117 -0
- package/src/config/claude-code-config/skills/ralph-loop/scripts/setup.sh +278 -0
- package/src/config/claude-code-config/skills/ralph-loop/steps/step-00-init.md +215 -0
- package/src/config/claude-code-config/skills/ralph-loop/steps/step-01-interactive-prd.md +366 -0
- package/src/config/claude-code-config/skills/ralph-loop/steps/step-02-create-stories.md +273 -0
- package/src/config/claude-code-config/skills/ralph-loop/steps/step-03-finish.md +245 -0
- package/src/config/claude-code-config/skills/ralph-tasks/SKILL.md +88 -0
- package/src/config/claude-code-config/skills/ralph-tasks/scripts/add-task.sh +36 -0
- package/src/config/claude-code-config/skills/ralph-tasks/scripts/list-tasks.sh +66 -0
- package/src/config/claude-code-config/skills/ralph-tasks/scripts/remove-task.sh +47 -0
- package/src/config/claude-code-config/skills/ralph-tasks/scripts/setup.sh +201 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-add-search.md +131 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-add.md +46 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-init.md +123 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-list.md +58 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-remove.md +48 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-setup.md +46 -0
- package/src/config/claude-code-config/skills/ralph-tasks/steps/action-wake-up.md +62 -0
- package/src/config/claude-code-config/skills/utils-fix-errors/SKILL.md +61 -0
- package/src/config/claude-code-config/skills/utils-fix-grammar/SKILL.md +59 -0
- package/src/config/claude-code-config/skills/utils-oneshot/SKILL.md +56 -0
- package/src/config/claude-code-config/skills/utils-refactor/SKILL.md +89 -0
- package/src/config/claude-code-config/skills/utils-save-docs/SKILL.md +74 -0
- package/src/config/claude-code-config/skills/utils-ultrathink/SKILL.md +42 -0
- package/src/config/claude-code-config/skills/workflow-apex/SKILL.md +116 -0
- package/src/config/claude-code-config/skills/workflow-apex/scripts/setup-templates.sh +144 -0
- package/src/config/claude-code-config/skills/workflow-apex/scripts/update-progress.sh +80 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-00-init.md +273 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-branch.md +126 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-economy.md +244 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-interactive.md +165 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-save.md +123 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-01-analyze.md +361 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-02-plan.md +422 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-02b-tasks.md +301 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-03-execute-teams.md +297 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-03-execute.md +239 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-04-validate.md +264 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +294 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +237 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +250 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +308 -0
- package/src/config/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +193 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/00-context.md +53 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/01-analyze.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/02-plan.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/03-execute.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/04-validate.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/05-examine.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/06-resolve.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/07-tests.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/09-finish.md +10 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/README.md +195 -0
- package/src/config/claude-code-config/skills/workflow-apex/templates/step-complete.md +7 -0
- package/src/config/claude-code-config/skills/workflow-brainstorm/SKILL.md +127 -0
- package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-01-explore.md +230 -0
- package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-02-challenge.md +238 -0
- package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-03-synthesize.md +337 -0
- package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-04-action.md +285 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/SKILL.md +150 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/references/cli-commands.md +122 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/references/github-cli.md +243 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/references/troubleshooting.md +362 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/references/vercel-cli.md +192 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-00-init.md +157 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-01-watch-ci.md +192 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-02-analyze-errors.md +263 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-03-fix-locally.md +312 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-04-commit-push.md +206 -0
- package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-05-cleanup.md +196 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/SKILL.md +129 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/references/general-clean-code.md +347 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/references/nextjs-clean-code.md +458 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/references/react-clean-code.md +406 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/references/tanstack-query-best-practices.md +516 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/references/zustand-best-practices.md +491 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/steps/step-01-scan.md +137 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/steps/step-02-apply.md +152 -0
- package/src/config/claude-code-config/skills/workflow-clean-code/steps/step-03-verify.md +143 -0
- package/src/config/claude-code-config/skills/workflow-debug/SKILL.md +126 -0
- package/src/config/claude-code-config/skills/workflow-debug/references/log-technique.md +285 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-00-init.md +94 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-01-analyze.md +180 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-01b-log-instrumentation.md +271 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-02-find-solutions.md +141 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-03-propose.md +142 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-04-fix.md +176 -0
- package/src/config/claude-code-config/skills/workflow-debug/steps/step-05-verify.md +279 -0
- package/src/config/claude-code-config/skills/workflow-review-code/SKILL.md +219 -0
- package/src/config/claude-code-config/skills/workflow-review-code/references/clean-code-principles.md +140 -0
- package/src/config/claude-code-config/skills/workflow-review-code/references/code-quality-metrics.md +174 -0
- package/src/config/claude-code-config/skills/workflow-review-code/references/feedback-patterns.md +149 -0
- package/src/config/claude-code-config/skills/workflow-review-code/references/security-checklist.md +127 -0
- package/src/config/claude-code-config/song/finish.mp3 +0 -0
- package/src/config/claude-code-config/song/need-human.mp3 +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# APEX Template System
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This directory contains template files used to initialize APEX workflow outputs when save mode (`-s`) is enabled. This template system significantly reduces token usage by moving repetitive content out of step files.
|
|
6
|
+
|
|
7
|
+
## Template Files
|
|
8
|
+
|
|
9
|
+
| Template | Purpose | Created When |
|
|
10
|
+
|----------|---------|--------------|
|
|
11
|
+
| `00-context.md` | Workflow configuration and progress tracking | Always (if save_mode) |
|
|
12
|
+
| `01-analyze.md` | Analysis findings | Always (if save_mode) |
|
|
13
|
+
| `02-plan.md` | Implementation plan | Always (if save_mode) |
|
|
14
|
+
| `03-execute.md` | Implementation log | Always (if save_mode) |
|
|
15
|
+
| `04-validate.md` | Validation results | Always (if save_mode) |
|
|
16
|
+
| `05-examine.md` | Adversarial review findings | Only if examine_mode enabled |
|
|
17
|
+
| `06-resolve.md` | Finding resolution log | Only if examine_mode enabled |
|
|
18
|
+
| `07-tests.md` | Test analysis and creation | Only if test_mode enabled |
|
|
19
|
+
| `08-run-tests.md` | Test runner log | Only if test_mode enabled |
|
|
20
|
+
| `09-finish.md` | PR creation log | Only if pr_mode enabled |
|
|
21
|
+
| `step-complete.md` | Completion marker template | Referenced in steps |
|
|
22
|
+
|
|
23
|
+
## Template Variables
|
|
24
|
+
|
|
25
|
+
Templates use `{{variable}}` syntax for placeholders:
|
|
26
|
+
|
|
27
|
+
| Variable | Description | Example |
|
|
28
|
+
|----------|-------------|---------|
|
|
29
|
+
| `{{task_id}}` | Kebab-case task identifier | `01-add-auth-middleware` |
|
|
30
|
+
| `{{task_description}}` | Plain text task description | `add authentication middleware` |
|
|
31
|
+
| `{{timestamp}}` | ISO 8601 timestamp | `2026-01-12T10:30:00Z` |
|
|
32
|
+
| `{{auto_mode}}` | Auto mode flag | `true` or `false` |
|
|
33
|
+
| `{{examine_mode}}` | Examine mode flag | `true` or `false` |
|
|
34
|
+
| `{{save_mode}}` | Save mode flag | `true` or `false` |
|
|
35
|
+
| `{{test_mode}}` | Test mode flag | `true` or `false` |
|
|
36
|
+
| `{{economy_mode}}` | Economy mode flag | `true` or `false` |
|
|
37
|
+
| `{{branch_mode}}` | Branch mode flag | `true` or `false` |
|
|
38
|
+
| `{{pr_mode}}` | PR mode flag | `true` or `false` |
|
|
39
|
+
| `{{interactive_mode}}` | Interactive mode flag | `true` or `false` |
|
|
40
|
+
| `{{branch_name}}` | Git branch name | `feature/add-auth` |
|
|
41
|
+
| `{{original_input}}` | Raw user input | `/apex -a -s add auth` |
|
|
42
|
+
| `{{examine_status}}` | Progress status for examine steps | `⏸ Pending` or `⏭ Skip` |
|
|
43
|
+
| `{{test_status}}` | Progress status for test steps | `⏸ Pending` or `⏭ Skip` |
|
|
44
|
+
| `{{pr_status}}` | Progress status for PR step | `⏸ Pending` or `⏭ Skip` |
|
|
45
|
+
|
|
46
|
+
## Setup Script
|
|
47
|
+
|
|
48
|
+
### `setup-templates.sh`
|
|
49
|
+
|
|
50
|
+
Initializes all template files in the output directory with variables replaced.
|
|
51
|
+
|
|
52
|
+
**Usage:**
|
|
53
|
+
```bash
|
|
54
|
+
bash scripts/setup-templates.sh \
|
|
55
|
+
"task_id" \
|
|
56
|
+
"task_description" \
|
|
57
|
+
"auto_mode" \
|
|
58
|
+
"examine_mode" \
|
|
59
|
+
"save_mode" \
|
|
60
|
+
"test_mode" \
|
|
61
|
+
"economy_mode" \
|
|
62
|
+
"branch_mode" \
|
|
63
|
+
"pr_mode" \
|
|
64
|
+
"interactive_mode" \
|
|
65
|
+
"branch_name" \
|
|
66
|
+
"original_input"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Output:**
|
|
70
|
+
```
|
|
71
|
+
.claude/output/apex/01-add-auth-middleware/
|
|
72
|
+
├── 00-context.md # Always created
|
|
73
|
+
├── 01-analyze.md # Always created
|
|
74
|
+
├── 02-plan.md # Always created
|
|
75
|
+
├── 03-execute.md # Always created
|
|
76
|
+
├── 04-validate.md # Always created
|
|
77
|
+
├── 05-examine.md # Only if examine_mode
|
|
78
|
+
├── 06-resolve.md # Only if examine_mode
|
|
79
|
+
├── 07-tests.md # Only if test_mode
|
|
80
|
+
├── 08-run-tests.md # Only if test_mode
|
|
81
|
+
└── 09-finish.md # Only if pr_mode
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Progress Update Script
|
|
85
|
+
|
|
86
|
+
### `update-progress.sh`
|
|
87
|
+
|
|
88
|
+
Updates the progress table in `00-context.md` without manual markdown editing.
|
|
89
|
+
|
|
90
|
+
**Usage:**
|
|
91
|
+
```bash
|
|
92
|
+
bash scripts/update-progress.sh <task_id> <step_number> <step_name> <status>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Examples:**
|
|
96
|
+
```bash
|
|
97
|
+
# Mark step 01 as in progress
|
|
98
|
+
bash scripts/update-progress.sh "01-add-auth" "01" "analyze" "in_progress"
|
|
99
|
+
|
|
100
|
+
# Mark step 01 as complete
|
|
101
|
+
bash scripts/update-progress.sh "01-add-auth" "01" "analyze" "complete"
|
|
102
|
+
|
|
103
|
+
# Mark step 02 as in progress
|
|
104
|
+
bash scripts/update-progress.sh "01-add-auth" "02" "plan" "in_progress"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Status Values:**
|
|
108
|
+
- `in_progress` → `⏳ In Progress`
|
|
109
|
+
- `complete` → `✓ Complete`
|
|
110
|
+
|
|
111
|
+
## Token Savings
|
|
112
|
+
|
|
113
|
+
### Before Optimization
|
|
114
|
+
|
|
115
|
+
Each step file contained full template content inline:
|
|
116
|
+
|
|
117
|
+
```markdown
|
|
118
|
+
### 1. Initialize Save Output (if save_mode)
|
|
119
|
+
|
|
120
|
+
**If `{save_mode}` = true:**
|
|
121
|
+
|
|
122
|
+
Create `{output_dir}/01-analyze.md`:
|
|
123
|
+
```markdown
|
|
124
|
+
# Step 01: Analyze
|
|
125
|
+
|
|
126
|
+
**Task:** {task_description}
|
|
127
|
+
**Started:** {ISO timestamp}
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Context Discovery
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Update `00-context.md` progress:
|
|
135
|
+
```markdown
|
|
136
|
+
| 01-analyze | ⏳ In Progress | {timestamp} |
|
|
137
|
+
```
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Token cost per step:** ~200 tokens × 9 steps = ~1,800 tokens
|
|
141
|
+
|
|
142
|
+
### After Optimization
|
|
143
|
+
|
|
144
|
+
Step files now reference templates and scripts:
|
|
145
|
+
|
|
146
|
+
```markdown
|
|
147
|
+
### 1. Initialize Save Output (if save_mode)
|
|
148
|
+
|
|
149
|
+
**If `{save_mode}` = true:**
|
|
150
|
+
|
|
151
|
+
The file `{output_dir}/01-analyze.md` has already been created by the setup script.
|
|
152
|
+
|
|
153
|
+
Update progress:
|
|
154
|
+
```bash
|
|
155
|
+
bash {skill_dir}/scripts/update-progress.sh "{task_id}" "01" "analyze" "in_progress"
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Append your findings to `01-analyze.md` as you work.
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Token cost per step:** ~50 tokens × 9 steps = ~450 tokens
|
|
162
|
+
|
|
163
|
+
**Total savings:** ~1,350 tokens per workflow execution (75% reduction)
|
|
164
|
+
|
|
165
|
+
## How It Works
|
|
166
|
+
|
|
167
|
+
1. **Initialization (step-00-init.md):**
|
|
168
|
+
- Runs `setup-templates.sh` once at workflow start
|
|
169
|
+
- Creates all template files with variables replaced
|
|
170
|
+
- Output directory is ready with pre-initialized files
|
|
171
|
+
|
|
172
|
+
2. **Each Step:**
|
|
173
|
+
- Runs `update-progress.sh` to mark step as "in_progress"
|
|
174
|
+
- Appends findings/logs to the pre-created step file
|
|
175
|
+
- Runs `update-progress.sh` again to mark step as "complete"
|
|
176
|
+
|
|
177
|
+
3. **Benefits:**
|
|
178
|
+
- AI doesn't need to hold template content in context
|
|
179
|
+
- Consistent formatting across all workflows
|
|
180
|
+
- Easy to update templates without editing step files
|
|
181
|
+
- Scripts handle the tedious markdown updates
|
|
182
|
+
|
|
183
|
+
## Updating Templates
|
|
184
|
+
|
|
185
|
+
To modify template content:
|
|
186
|
+
|
|
187
|
+
1. Edit the template file in `templates/`
|
|
188
|
+
2. Changes apply to all future workflows automatically
|
|
189
|
+
3. No need to update step files
|
|
190
|
+
|
|
191
|
+
## Maintenance
|
|
192
|
+
|
|
193
|
+
- Templates are stateless (no workflow-specific logic)
|
|
194
|
+
- Scripts are idempotent (safe to run multiple times)
|
|
195
|
+
- Variables use `{{var}}` syntax to avoid conflicts with markdown
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorm
|
|
3
|
+
description: Deep iterative research using progressive flow psychology (diverge-analyze-converge-execute) with parallel agents, skeptical analysis, and multi-perspective synthesis. Use for thorough topic exploration, decision-making research, or when you need battle-tested conclusions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Execute deep, iterative research on any topic using a 4-phase workflow that mirrors natural creative psychology. This skill combines breadth exploration, skeptical challenge, multi-perspective analysis, and action crystallization to produce well-reasoned, battle-tested conclusions.
|
|
8
|
+
|
|
9
|
+
Unlike simple searches, this workflow:
|
|
10
|
+
- Searches, then re-searches, then challenges findings
|
|
11
|
+
- Questions every assumption with skepticism
|
|
12
|
+
- Explores from 5 different expert perspectives
|
|
13
|
+
- Produces actionable recommendations with confidence levels
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<parameters>
|
|
17
|
+
**Optional flags:**
|
|
18
|
+
|
|
19
|
+
- `-e` / `--economy` - Economy mode: use direct tool calls (WebSearch, Grep, Read) instead of launching subagents. Reduces cost and context usage.
|
|
20
|
+
- `-f` / `--fast` - Fast mode: skip Phase 2 (challenge) and condense Phase 3 to 3 perspectives. Quicker results.
|
|
21
|
+
- `--file` - Save session: write research to `.claude/output/brainstorm/{topic-slug}-{date}.md`
|
|
22
|
+
|
|
23
|
+
**Examples:**
|
|
24
|
+
```
|
|
25
|
+
/brainstorm-skills What is the best CLI framework for building dev tools?
|
|
26
|
+
/brainstorm-skills -e Should I use Next.js or Remix for my project?
|
|
27
|
+
/brainstorm-skills -f Best practices for API rate limiting
|
|
28
|
+
/brainstorm-skills -e -f --file Microservices vs monolith tradeoffs
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Parse at start:**
|
|
32
|
+
1. Check if `-e` or `--economy` is present → set `{economy_mode}` = true
|
|
33
|
+
2. Check if `-f` or `--fast` is present → set `{fast_mode}` = true
|
|
34
|
+
3. Check if `--file` is present → set `{save_file}` = true
|
|
35
|
+
4. Remove flags from input → store as `{topic}`
|
|
36
|
+
</parameters>
|
|
37
|
+
|
|
38
|
+
<state_variables>
|
|
39
|
+
Capture at start and persist throughout all steps:
|
|
40
|
+
|
|
41
|
+
- `{topic}` - The research topic (with flags removed)
|
|
42
|
+
- `{economy_mode}` - true if `-e`/`--economy` flag was passed
|
|
43
|
+
- `{fast_mode}` - true if `-f`/`--fast` flag was passed
|
|
44
|
+
- `{save_file}` - true if `--file` flag was passed
|
|
45
|
+
- `{session_path}` - Path to session file (if `--file`)
|
|
46
|
+
- `{phase_1_discoveries}` - Broad exploration findings
|
|
47
|
+
- `{phase_2_challenges}` - Skeptical analysis results (skipped if fast_mode)
|
|
48
|
+
- `{phase_3_synthesis}` - Multi-perspective insights
|
|
49
|
+
</state_variables>
|
|
50
|
+
|
|
51
|
+
<persona>
|
|
52
|
+
You are a rigorous researcher with these traits:
|
|
53
|
+
|
|
54
|
+
- **Deeply skeptical** - Question everything, trust nothing at face value
|
|
55
|
+
- **Intellectually honest** - Admit uncertainty, acknowledge weak points
|
|
56
|
+
- **Multi-perspective** - See problems from every angle
|
|
57
|
+
- **Relentlessly curious** - Every answer spawns new questions
|
|
58
|
+
- **Strong opinions, loosely held** - Form views but update them with evidence
|
|
59
|
+
</persona>
|
|
60
|
+
|
|
61
|
+
<progressive_flow>
|
|
62
|
+
This skill follows the natural creative psychology cycle:
|
|
63
|
+
|
|
64
|
+
| Phase | Role | Goal |
|
|
65
|
+
|-------|------|------|
|
|
66
|
+
| 1. Expansive Exploration | CURIOUS EXPLORER | Maximum breadth, no filtering |
|
|
67
|
+
| 2. Critical Challenge | DEVIL'S ADVOCATE | Stress-test every finding |
|
|
68
|
+
| 3. Multi-Lens Synthesis | SYNTHESIZER | See from 5 perspectives |
|
|
69
|
+
| 4. Action Crystallization | STRATEGIC ADVISOR | Clear recommendations |
|
|
70
|
+
|
|
71
|
+
Each phase transitions naturally to the next, building deeper understanding.
|
|
72
|
+
</progressive_flow>
|
|
73
|
+
|
|
74
|
+
<quick_start>
|
|
75
|
+
<workflow>
|
|
76
|
+
|
|
77
|
+
1. Parse flags and topic
|
|
78
|
+
2. Load step-01-explore.md → cast wide net
|
|
79
|
+
3. Load step-02-challenge.md → stress-test findings **(skipped if fast_mode)**
|
|
80
|
+
4. Load step-03-synthesize.md → multi-perspective analysis (3 perspectives if fast_mode)
|
|
81
|
+
5. Load step-04-action.md → crystallize into action
|
|
82
|
+
</workflow>
|
|
83
|
+
</quick_start>
|
|
84
|
+
|
|
85
|
+
<entry_point>
|
|
86
|
+
<step_0 name="Initialize">
|
|
87
|
+
|
|
88
|
+
**FIRST ACTION - Parse flags:**
|
|
89
|
+
|
|
90
|
+
1. Check for `-e` or `--economy` in input → set `{economy_mode}` = true
|
|
91
|
+
2. Check for `-f` or `--fast` in input → set `{fast_mode}` = true
|
|
92
|
+
3. Check for `--file` in input → set `{save_file}` = true
|
|
93
|
+
4. Remove flags from input → store as `{topic}`
|
|
94
|
+
5. If `{save_file}` is true, set `{session_path}` = `.claude/output/brainstorm/{topic-slug}-{date}.md`
|
|
95
|
+
|
|
96
|
+
**THEN:** Load `steps/step-01-explore.md` to begin expansive exploration.
|
|
97
|
+
</step_0>
|
|
98
|
+
</entry_point>
|
|
99
|
+
|
|
100
|
+
<step_files>
|
|
101
|
+
Each step is a separate file for progressive context loading:
|
|
102
|
+
|
|
103
|
+
- `steps/step-01-explore.md` - CURIOUS EXPLORER: Broad research (agents or direct tools)
|
|
104
|
+
- `steps/step-02-challenge.md` - DEVIL'S ADVOCATE: Skeptical challenge **(skipped if fast_mode)**
|
|
105
|
+
- `steps/step-03-synthesize.md` - MULTI-LENS SYNTHESIZER: 5 perspectives (3 if fast_mode)
|
|
106
|
+
- `steps/step-04-action.md` - STRATEGIC ADVISOR: Recommendations and actions
|
|
107
|
+
</step_files>
|
|
108
|
+
|
|
109
|
+
<execution_rules>
|
|
110
|
+
|
|
111
|
+
- **Load one step at a time** - Only load the current step file
|
|
112
|
+
- **Persist state variables** across all steps
|
|
113
|
+
- **Follow next_step directive** at end of each step
|
|
114
|
+
- **Economy mode** - Use direct WebSearch/Grep/Read instead of launching subagents
|
|
115
|
+
- **Fast mode** - Skip Phase 2 and condense Phase 3 to 3 perspectives
|
|
116
|
+
</execution_rules>
|
|
117
|
+
|
|
118
|
+
<success_criteria>
|
|
119
|
+
|
|
120
|
+
- All phases completed (Phase 2 optional if fast_mode)
|
|
121
|
+
- Research executed via agents (default) or direct tools (economy_mode)
|
|
122
|
+
- Initial findings challenged (unless fast_mode)
|
|
123
|
+
- 5 perspectives explored (3 if fast_mode)
|
|
124
|
+
- Clear recommendation with confidence level
|
|
125
|
+
- Contrarian view presented
|
|
126
|
+
- Actionable insights produced
|
|
127
|
+
</success_criteria>
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: step-01-explore
|
|
3
|
+
description: Expansive exploration phase - cast wide net with parallel agents
|
|
4
|
+
next_step: steps/step-02-challenge.md
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Phase 1: Expansive Exploration
|
|
8
|
+
|
|
9
|
+
**Role: CURIOUS EXPLORER** - Generate maximum insight breadth without filtering
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<available_state>
|
|
14
|
+
From SKILL.md entry point:
|
|
15
|
+
|
|
16
|
+
- `{topic}` - The research topic
|
|
17
|
+
- `{economy_mode}` - If true, use direct tool calls instead of subagents
|
|
18
|
+
- `{fast_mode}` - If true, skip Phase 2 and condense Phase 3
|
|
19
|
+
- `{save_file}` - If true, save session to file
|
|
20
|
+
- `{session_path}` - Path to session file (if saving)
|
|
21
|
+
</available_state>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<mandatory_rules>
|
|
26
|
+
## MANDATORY EXECUTION RULES (READ FIRST)
|
|
27
|
+
|
|
28
|
+
- 🔍 EXPLORE without judgment - quantity over quality in this phase
|
|
29
|
+
- 🌐 LAUNCH parallel agents for maximum coverage
|
|
30
|
+
- 💡 CAPTURE every interesting thread, even tangential ones
|
|
31
|
+
- 🎯 EXPAND scope - what adjacent areas might matter?
|
|
32
|
+
- 🚫 FORBIDDEN: Filtering, critiquing, or discarding ideas in this phase
|
|
33
|
+
</mandatory_rules>
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
<execution_sequence>
|
|
38
|
+
|
|
39
|
+
<parse_topic>
|
|
40
|
+
**1. Parse and Expand Topic Scope**
|
|
41
|
+
|
|
42
|
+
Analyze the topic to identify:
|
|
43
|
+
- **Core question**: What exactly are we researching?
|
|
44
|
+
- **Adjacent areas**: What related topics might inform this?
|
|
45
|
+
- **Key terms**: What should we search for?
|
|
46
|
+
- **Stakeholders**: Who cares about this topic and why?
|
|
47
|
+
|
|
48
|
+
**Scope Expansion:**
|
|
49
|
+
"For `{topic}`, I'm also considering:
|
|
50
|
+
- [Related area 1] - because it might affect...
|
|
51
|
+
- [Related area 2] - to understand alternatives...
|
|
52
|
+
- [Related area 3] - to see historical context..."
|
|
53
|
+
</parse_topic>
|
|
54
|
+
|
|
55
|
+
<parallel_agents>
|
|
56
|
+
**2. Execute Research**
|
|
57
|
+
|
|
58
|
+
<economy_mode_research>
|
|
59
|
+
**If `{economy_mode}` = true:** Use direct tool calls in main thread
|
|
60
|
+
|
|
61
|
+
**Web Search** (use WebSearch tool directly)
|
|
62
|
+
- Search: `{topic} best practices 2024 2025`
|
|
63
|
+
- Search: `{topic} comparison alternatives`
|
|
64
|
+
- Search: `{topic} real-world examples case studies`
|
|
65
|
+
|
|
66
|
+
**Documentation** (use mcp__context7__resolve-library-id + mcp__context7__query-docs if technical)
|
|
67
|
+
- Find relevant library documentation for tools mentioned in topic
|
|
68
|
+
|
|
69
|
+
**Codebase** (use Grep/Glob directly if applicable)
|
|
70
|
+
- `Grep` for patterns related to topic in codebase
|
|
71
|
+
- `Glob` for relevant file types
|
|
72
|
+
</economy_mode_research>
|
|
73
|
+
|
|
74
|
+
<standard_mode_research>
|
|
75
|
+
**If `{economy_mode}` = false:** Launch parallel subagents
|
|
76
|
+
|
|
77
|
+
**CRITICAL: Launch ALL agents in a SINGLE message for parallel execution.**
|
|
78
|
+
|
|
79
|
+
**Agent 1: Web Search** (`websearch`)
|
|
80
|
+
```
|
|
81
|
+
Research the current state of: {topic}
|
|
82
|
+
|
|
83
|
+
Find:
|
|
84
|
+
1. Current best practices and popular approaches
|
|
85
|
+
2. Recent developments and trends (2024-2025)
|
|
86
|
+
3. Key players, thought leaders, and their perspectives
|
|
87
|
+
4. Common use cases and applications
|
|
88
|
+
5. Any recent controversies or debates
|
|
89
|
+
|
|
90
|
+
Focus on diverse, authoritative sources.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Agent 2: Documentation Research** (`explore-docs`) - if technical topic
|
|
94
|
+
```
|
|
95
|
+
Find documentation and technical guidance for: {topic}
|
|
96
|
+
|
|
97
|
+
Search for:
|
|
98
|
+
1. Official documentation from relevant tools/frameworks
|
|
99
|
+
2. Best practices guides
|
|
100
|
+
3. Code examples and patterns
|
|
101
|
+
4. Configuration recommendations
|
|
102
|
+
5. Known limitations or gotchas
|
|
103
|
+
|
|
104
|
+
Focus on practical implementation guidance.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Agent 3: Codebase Exploration** (`explore-codebase`) - if applicable
|
|
108
|
+
```
|
|
109
|
+
Search the codebase for patterns related to: {topic}
|
|
110
|
+
|
|
111
|
+
Find:
|
|
112
|
+
1. Existing implementations of similar functionality
|
|
113
|
+
2. Patterns and conventions already in use
|
|
114
|
+
3. Related utilities or helpers
|
|
115
|
+
4. Test patterns for similar features
|
|
116
|
+
5. Any prior attempts or related code
|
|
117
|
+
|
|
118
|
+
Return file paths with line numbers.
|
|
119
|
+
```
|
|
120
|
+
</standard_mode_research>
|
|
121
|
+
</parallel_agents>
|
|
122
|
+
|
|
123
|
+
<interactive_check>
|
|
124
|
+
**3. Quick Check** (skip if `{fast_mode}`)
|
|
125
|
+
|
|
126
|
+
If NOT in fast mode, briefly ask:
|
|
127
|
+
|
|
128
|
+
"Initial research done on **{topic}**. Any specific angle you want me to focus on? (or 'continue')"
|
|
129
|
+
</interactive_check>
|
|
130
|
+
|
|
131
|
+
<synthesize>
|
|
132
|
+
**4. Synthesize Broad Findings**
|
|
133
|
+
|
|
134
|
+
Combine all agent findings into comprehensive overview:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
## Phase 1 Discoveries: {topic}
|
|
138
|
+
|
|
139
|
+
**Current Landscape:**
|
|
140
|
+
- [Finding 1 with source]
|
|
141
|
+
- [Finding 2 with source]
|
|
142
|
+
- [Finding 3 with source]
|
|
143
|
+
|
|
144
|
+
**Key Players & Perspectives:**
|
|
145
|
+
- [Player/Expert 1]: [Their view]
|
|
146
|
+
- [Player/Expert 2]: [Their view]
|
|
147
|
+
|
|
148
|
+
**Popular Approaches:**
|
|
149
|
+
1. [Approach 1] - used by [who], pros/cons
|
|
150
|
+
2. [Approach 2] - used by [who], pros/cons
|
|
151
|
+
3. [Approach 3] - used by [who], pros/cons
|
|
152
|
+
|
|
153
|
+
**Interesting Threads:**
|
|
154
|
+
- [Tangential but relevant finding]
|
|
155
|
+
- [Unexpected connection]
|
|
156
|
+
- [Emerging trend]
|
|
157
|
+
|
|
158
|
+
**Initial Impressions:**
|
|
159
|
+
At first glance, it seems like [initial take]. But this needs to be challenged.
|
|
160
|
+
|
|
161
|
+
**Questions Raised:**
|
|
162
|
+
- [Question that emerged from research]
|
|
163
|
+
- [Uncertainty that needs investigation]
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Store in `{phase_1_discoveries}`
|
|
167
|
+
</synthesize>
|
|
168
|
+
|
|
169
|
+
<save_progress>
|
|
170
|
+
**5. Save Progress** (if `{save_file}` is true)
|
|
171
|
+
|
|
172
|
+
Append to `{session_path}`:
|
|
173
|
+
```markdown
|
|
174
|
+
# Brainstorm Session: {topic}
|
|
175
|
+
**Date:** {current_date}
|
|
176
|
+
|
|
177
|
+
## Phase 1: Expansive Exploration
|
|
178
|
+
|
|
179
|
+
[Phase 1 discoveries content]
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
```
|
|
183
|
+
</save_progress>
|
|
184
|
+
|
|
185
|
+
</execution_sequence>
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
<success_metrics>
|
|
190
|
+
|
|
191
|
+
- Multiple parallel agents launched for breadth
|
|
192
|
+
- Scope expanded beyond obvious interpretations
|
|
193
|
+
- Diverse sources and perspectives gathered
|
|
194
|
+
- Tangential but relevant threads captured
|
|
195
|
+
- Initial questions and uncertainties noted
|
|
196
|
+
- No premature filtering or conclusions
|
|
197
|
+
</success_metrics>
|
|
198
|
+
|
|
199
|
+
<failure_modes>
|
|
200
|
+
|
|
201
|
+
- Launching agents sequentially instead of parallel
|
|
202
|
+
- Only searching for confirming evidence
|
|
203
|
+
- Filtering out "irrelevant" findings too early
|
|
204
|
+
- Drawing conclusions before Phase 4
|
|
205
|
+
- Missing adjacent areas that could inform the topic
|
|
206
|
+
</failure_modes>
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
<next_step_directive>
|
|
211
|
+
**CRITICAL:** After presenting Phase 1 discoveries:
|
|
212
|
+
|
|
213
|
+
**If `{fast_mode}` = true:**
|
|
214
|
+
"**Phase 1 complete.** Skipping challenge phase (fast mode).
|
|
215
|
+
|
|
216
|
+
Loading `step-03-synthesize.md`..."
|
|
217
|
+
|
|
218
|
+
→ Load `steps/step-03-synthesize.md` directly
|
|
219
|
+
|
|
220
|
+
**If `{fast_mode}` = false:**
|
|
221
|
+
"**Phase 1 complete.** We've cast a wide net and gathered diverse perspectives.
|
|
222
|
+
|
|
223
|
+
**NEXT: Phase 2 - Critical Challenge**
|
|
224
|
+
|
|
225
|
+
Now I become the DEVIL'S ADVOCATE. Every finding above will be questioned and stress-tested.
|
|
226
|
+
|
|
227
|
+
Loading `step-02-challenge.md`..."
|
|
228
|
+
|
|
229
|
+
→ Load `steps/step-02-challenge.md`
|
|
230
|
+
</next_step_directive>
|