agent-toolkit-cli 1.11.0__py3-none-win_amd64.whl
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.
- agent_toolkit/__init__.py +4 -0
- agent_toolkit/__main__.py +5 -0
- agent_toolkit/_paths.py +145 -0
- agent_toolkit/bin/.gitkeep +0 -0
- agent_toolkit/bin/agent-toolkit.exe +0 -0
- agent_toolkit/cli/__init__.py +0 -0
- agent_toolkit/cli/__main__.py +5 -0
- agent_toolkit/cli/build.py +278 -0
- agent_toolkit/cli/completion.py +297 -0
- agent_toolkit/cli/context_budget.py +455 -0
- agent_toolkit/cli/devcompanion.py +923 -0
- agent_toolkit/cli/devcompanion_queue.py +235 -0
- agent_toolkit/cli/diff.py +176 -0
- agent_toolkit/cli/doctor.py +1052 -0
- agent_toolkit/cli/insights.py +771 -0
- agent_toolkit/cli/install.py +706 -0
- agent_toolkit/cli/main.py +171 -0
- agent_toolkit/cli/mcp.py +537 -0
- agent_toolkit/cli/memory.py +739 -0
- agent_toolkit/cli/plugin.py +224 -0
- agent_toolkit/cli/project.py +459 -0
- agent_toolkit/cli/release.py +178 -0
- agent_toolkit/cli/skills.py +461 -0
- agent_toolkit/cli/uninstall.py +166 -0
- agent_toolkit/cli/update.py +298 -0
- agent_toolkit/cli/workspace.py +1713 -0
- agent_toolkit/compiler/hook_registry.py +110 -0
- agent_toolkit/compiler/loader.py +338 -0
- agent_toolkit/compiler/mcp_registry.py +87 -0
- agent_toolkit/compiler/model.py +182 -0
- agent_toolkit/compiler/provenance.py +140 -0
- agent_toolkit/compiler/registry_emit.py +263 -0
- agent_toolkit/compiler/target_registry.py +122 -0
- agent_toolkit/compiler/targets/__init__.py +1 -0
- agent_toolkit/compiler/targets/agent_plugins.py +160 -0
- agent_toolkit/compiler/targets/base.py +229 -0
- agent_toolkit/compiler/targets/claude_code.py +241 -0
- agent_toolkit/compiler/targets/codex.py +261 -0
- agent_toolkit/compiler/targets/copilot.py +275 -0
- agent_toolkit/compiler/targets/cursor.py +207 -0
- agent_toolkit/compiler/targets/gemini_cli.py +213 -0
- agent_toolkit/compiler/targets/muse_code.py +113 -0
- agent_toolkit/compiler/targets/opencode.py +204 -0
- agent_toolkit/compiler/targets/pi.py +263 -0
- agent_toolkit/compiler/targets/windsurf.py +267 -0
- agent_toolkit/compiler/tool_mapping.py +83 -0
- agent_toolkit/data/.gitignore +4 -0
- agent_toolkit/data/__init__.py +1 -0
- agent_toolkit/data/agents/agentic-security-reviewer/AGENT.md +60 -0
- agent_toolkit/data/agents/architect/AGENT.md +30 -0
- agent_toolkit/data/agents/assistant/AGENT.md +59 -0
- agent_toolkit/data/agents/build-error-resolver/AGENT.md +30 -0
- agent_toolkit/data/agents/client-workflow-bootstrap/AGENT.md +60 -0
- agent_toolkit/data/agents/code-reviewer/AGENT.md +49 -0
- agent_toolkit/data/agents/database-reviewer/AGENT.md +44 -0
- agent_toolkit/data/agents/docs-lookup/AGENT.md +28 -0
- agent_toolkit/data/agents/e2e-runner/AGENT.md +38 -0
- agent_toolkit/data/agents/performance-optimizer/AGENT.md +52 -0
- agent_toolkit/data/agents/planner/AGENT.md +41 -0
- agent_toolkit/data/agents/refactor-cleaner/AGENT.md +43 -0
- agent_toolkit/data/agents/reference-lookup/AGENT.md +33 -0
- agent_toolkit/data/agents/security-reviewer/AGENT.md +47 -0
- agent_toolkit/data/agents/tdd-guide/AGENT.md +58 -0
- agent_toolkit/data/agents/tech-assistant/AGENT.md +11 -0
- agent_toolkit/data/agents/typescript-reviewer/AGENT.md +61 -0
- agent_toolkit/data/capabilities/hooks/README.md +6 -0
- agent_toolkit/data/capabilities/hooks/pre-commit-validate.yaml +26 -0
- agent_toolkit/data/capabilities/hooks/scripts/pre-commit-validate.sh +41 -0
- agent_toolkit/data/capabilities/hooks/scripts/session-start-context.sh +11 -0
- agent_toolkit/data/capabilities/hooks/session-start-context.yaml +23 -0
- agent_toolkit/data/capabilities/targets/registry.yaml +90 -0
- agent_toolkit/data/capabilities/upstream.lock +118 -0
- agent_toolkit/data/catalogs/agent-catalog.yaml +81 -0
- agent_toolkit/data/catalogs/loop-catalog.yaml +55 -0
- agent_toolkit/data/catalogs/skill-catalog.yaml +520 -0
- agent_toolkit/data/catalogs/skills-layout.json +391 -0
- agent_toolkit/data/distributions/products.yaml +190 -0
- agent_toolkit/data/distributions/targets/claude-code.yaml +47 -0
- agent_toolkit/data/distributions/targets/cursor.yaml +42 -0
- agent_toolkit/data/distributions/targets/opencode.yaml +55 -0
- agent_toolkit/data/loops/changelog-drafter/loop.yaml +40 -0
- agent_toolkit/data/loops/ci-sweeper/loop.yaml +53 -0
- agent_toolkit/data/loops/daily-triage/loop.yaml +47 -0
- agent_toolkit/data/loops/dep-sweeper/loop.yaml +46 -0
- agent_toolkit/data/loops/issue-triage/loop.yaml +40 -0
- agent_toolkit/data/loops/oss-daily-briefing/loop.yaml +65 -0
- agent_toolkit/data/loops/oss-pr-monitor/loop.yaml +86 -0
- agent_toolkit/data/loops/oss-triage/loop.yaml +67 -0
- agent_toolkit/data/loops/post-merge-cleanup/loop.yaml +44 -0
- agent_toolkit/data/loops/pr-babysitter/loop.yaml +46 -0
- agent_toolkit/data/mcp/registry/chrome-devtools.yaml +61 -0
- agent_toolkit/data/mcp/registry/clickup.yaml +48 -0
- agent_toolkit/data/mcp/registry/figma.yaml +44 -0
- agent_toolkit/data/mcp/registry/github.yaml +52 -0
- agent_toolkit/data/mcp/registry/linear.yaml +47 -0
- agent_toolkit/data/mcp/registry/notion.yaml +48 -0
- agent_toolkit/data/mcp/registry/slack.yaml +46 -0
- agent_toolkit/data/mcp/templates/chrome-devtools/README.md +57 -0
- agent_toolkit/data/mcp/templates/chrome-devtools/config.template.json +6 -0
- agent_toolkit/data/mcp/templates/clickup/README.md +45 -0
- agent_toolkit/data/mcp/templates/clickup/config.template.json +8 -0
- agent_toolkit/data/mcp/templates/clickup/wrapper.sh +23 -0
- agent_toolkit/data/mcp/templates/figma/README.md +54 -0
- agent_toolkit/data/mcp/templates/figma/config.template.json +9 -0
- agent_toolkit/data/mcp/templates/github/README.md +16 -0
- agent_toolkit/data/mcp/templates/github/config.template.json +15 -0
- agent_toolkit/data/mcp/templates/github/wrapper.sh +6 -0
- agent_toolkit/data/mcp/templates/linear/README.md +49 -0
- agent_toolkit/data/mcp/templates/linear/config.template.json +10 -0
- agent_toolkit/data/mcp/templates/notion/README.md +7 -0
- agent_toolkit/data/mcp/templates/notion/config.template.json +8 -0
- agent_toolkit/data/mcp/templates/notion/wrapper.sh +23 -0
- agent_toolkit/data/mcp/templates/slack/README.md +8 -0
- agent_toolkit/data/mcp/templates/slack/config.template.json +9 -0
- agent_toolkit/data/mcp/templates/slack/wrapper.sh +23 -0
- agent_toolkit/data/packs/README.md +66 -0
- agent_toolkit/data/packs/agentic-security/README.md +19 -0
- agent_toolkit/data/packs/agentic-security/config.yaml +25 -0
- agent_toolkit/data/packs/architecture/README.md +22 -0
- agent_toolkit/data/packs/architecture/config.yaml +27 -0
- agent_toolkit/data/packs/code-quality/README.md +19 -0
- agent_toolkit/data/packs/code-quality/config.yaml +21 -0
- agent_toolkit/data/packs/delivery-discipline/README.md +19 -0
- agent_toolkit/data/packs/delivery-discipline/config.yaml +42 -0
- agent_toolkit/data/packs/design-engineering/README.md +19 -0
- agent_toolkit/data/packs/design-engineering/config.yaml +41 -0
- agent_toolkit/data/packs/engineering-workflow/README.md +21 -0
- agent_toolkit/data/packs/engineering-workflow/config.yaml +57 -0
- agent_toolkit/data/packs/oss-maintenance/README.md +245 -0
- agent_toolkit/data/packs/oss-maintenance/config.yaml +75 -0
- agent_toolkit/data/profiles/claude-code/CLAUDE.md +110 -0
- agent_toolkit/data/profiles/claude-code/agents/assistant.md +59 -0
- agent_toolkit/data/profiles/claude-code/agents/build-error-resolver.md +30 -0
- agent_toolkit/data/profiles/claude-code/agents/client-workflow-bootstrap.md +60 -0
- agent_toolkit/data/profiles/claude-code/agents/contribution-planner.md +39 -0
- agent_toolkit/data/profiles/claude-code/agents/database-reviewer.md +44 -0
- agent_toolkit/data/profiles/claude-code/agents/docs-lookup.md +28 -0
- agent_toolkit/data/profiles/claude-code/agents/e2e-runner.md +38 -0
- agent_toolkit/data/profiles/claude-code/agents/performance-optimizer.md +52 -0
- agent_toolkit/data/profiles/claude-code/agents/planner.md +41 -0
- agent_toolkit/data/profiles/claude-code/agents/refactor-cleaner.md +43 -0
- agent_toolkit/data/profiles/claude-code/agents/reference-lookup.md +33 -0
- agent_toolkit/data/profiles/claude-code/agents/security-reviewer.md +47 -0
- agent_toolkit/data/profiles/claude-code/agents/tdd-guide.md +58 -0
- agent_toolkit/data/profiles/claude-code/agents/typescript-reviewer.md +61 -0
- agent_toolkit/data/profiles/claude-code/settings.json +86 -0
- agent_toolkit/data/profiles/copilot/copilot-instructions.md +15 -0
- agent_toolkit/data/profiles/cursor/README.md +33 -0
- agent_toolkit/data/profiles/cursor/rules/architect.mdc +23 -0
- agent_toolkit/data/profiles/cursor/rules/assistant.mdc +61 -0
- agent_toolkit/data/profiles/cursor/rules/build-error-resolver.mdc +20 -0
- agent_toolkit/data/profiles/cursor/rules/code-reviewer.mdc +21 -0
- agent_toolkit/data/profiles/cursor/rules/database-reviewer.mdc +29 -0
- agent_toolkit/data/profiles/cursor/rules/docs-lookup.mdc +15 -0
- agent_toolkit/data/profiles/cursor/rules/e2e-runner.mdc +30 -0
- agent_toolkit/data/profiles/cursor/rules/performance-optimizer.mdc +27 -0
- agent_toolkit/data/profiles/cursor/rules/planner.mdc +28 -0
- agent_toolkit/data/profiles/cursor/rules/refactor-cleaner.mdc +26 -0
- agent_toolkit/data/profiles/cursor/rules/reference-lookup.mdc +20 -0
- agent_toolkit/data/profiles/cursor/rules/security-reviewer.mdc +20 -0
- agent_toolkit/data/profiles/cursor/rules/tdd-guide.mdc +26 -0
- agent_toolkit/data/profiles/cursor/rules/typescript-reviewer.mdc +28 -0
- agent_toolkit/data/profiles/muse-code/README.md +35 -0
- agent_toolkit/data/profiles/opencode/README.md +44 -0
- agent_toolkit/data/profiles/opencode/agents/architect.md +30 -0
- agent_toolkit/data/profiles/opencode/agents/assistant.md +96 -0
- agent_toolkit/data/profiles/opencode/agents/build-error-resolver.md +31 -0
- agent_toolkit/data/profiles/opencode/agents/client-workflow-bootstrap.md +66 -0
- agent_toolkit/data/profiles/opencode/agents/code-reviewer.md +47 -0
- agent_toolkit/data/profiles/opencode/agents/contribution-planner.md +44 -0
- agent_toolkit/data/profiles/opencode/agents/database-reviewer.md +43 -0
- agent_toolkit/data/profiles/opencode/agents/docs-lookup.md +28 -0
- agent_toolkit/data/profiles/opencode/agents/e2e-runner.md +33 -0
- agent_toolkit/data/profiles/opencode/agents/performance-optimizer.md +34 -0
- agent_toolkit/data/profiles/opencode/agents/planner.md +27 -0
- agent_toolkit/data/profiles/opencode/agents/refactor-cleaner.md +27 -0
- agent_toolkit/data/profiles/opencode/agents/reference-lookup.md +27 -0
- agent_toolkit/data/profiles/opencode/agents/security-reviewer.md +27 -0
- agent_toolkit/data/profiles/opencode/agents/tdd-guide.md +27 -0
- agent_toolkit/data/profiles/opencode/agents/typescript-reviewer.md +30 -0
- agent_toolkit/data/profiles/opencode/opencode.json +3 -0
- agent_toolkit/data/profiles/pi/skills/architect/skill.md +5 -0
- agent_toolkit/data/profiles/pi/skills/assistant/skill.md +3 -0
- agent_toolkit/data/profiles/pi/skills/code-reviewer/skill.md +5 -0
- agent_toolkit/data/profiles/pi/skills/planner/skill.md +3 -0
- agent_toolkit/data/profiles/pi/skills/security-reviewer/skill.md +3 -0
- agent_toolkit/data/profiles/windsurf/memories/global_rules.md +114 -0
- agent_toolkit/data/profiles/windsurf/rules/architect.mdc +23 -0
- agent_toolkit/data/profiles/windsurf/rules/assistant.mdc +61 -0
- agent_toolkit/data/profiles/windsurf/rules/build-error-resolver.mdc +20 -0
- agent_toolkit/data/profiles/windsurf/rules/code-reviewer.mdc +21 -0
- agent_toolkit/data/profiles/windsurf/rules/database-reviewer.mdc +29 -0
- agent_toolkit/data/profiles/windsurf/rules/docs-lookup.mdc +15 -0
- agent_toolkit/data/profiles/windsurf/rules/e2e-runner.mdc +30 -0
- agent_toolkit/data/profiles/windsurf/rules/performance-optimizer.mdc +27 -0
- agent_toolkit/data/profiles/windsurf/rules/planner.mdc +28 -0
- agent_toolkit/data/profiles/windsurf/rules/refactor-cleaner.mdc +26 -0
- agent_toolkit/data/profiles/windsurf/rules/reference-lookup.mdc +20 -0
- agent_toolkit/data/profiles/windsurf/rules/security-reviewer.mdc +20 -0
- agent_toolkit/data/profiles/windsurf/rules/tdd-guide.mdc +26 -0
- agent_toolkit/data/profiles/windsurf/rules/typescript-reviewer.mdc +28 -0
- agent_toolkit/data/skills/accessibility/review/SKILL.md +116 -0
- agent_toolkit/data/skills/accessibility/review/references/a11y-checklist.md +25 -0
- agent_toolkit/data/skills/accessibility/review/references/a11y-findings-template.md +56 -0
- agent_toolkit/data/skills/accessibility/review/references/research.md +47 -0
- agent_toolkit/data/skills/agentic-security/mcp-audit/SKILL.md +116 -0
- agent_toolkit/data/skills/agentic-security/mcp-audit/references/mcp-audit-template.md +51 -0
- agent_toolkit/data/skills/agentic-security/owasp-agentic-review/SKILL.md +73 -0
- agent_toolkit/data/skills/agentic-security/owasp-agentic-review/references/owasp-agentic-template.md +32 -0
- agent_toolkit/data/skills/agentic-security/supply-chain-audit/SKILL.md +142 -0
- agent_toolkit/data/skills/agentic-security/threat-modeling/SKILL.md +100 -0
- agent_toolkit/data/skills/agentic-security/threat-modeling/references/threat-model-template.md +55 -0
- agent_toolkit/data/skills/architecture/c4-model/SKILL.md +49 -0
- agent_toolkit/data/skills/cloud/aws-well-architected-review/SKILL.md +37 -0
- agent_toolkit/data/skills/cloud/cloud-design-patterns/SKILL.md +38 -0
- agent_toolkit/data/skills/core/assistant/SKILL.md +216 -0
- agent_toolkit/data/skills/core/assistant/references/AGENTS_TEMPLATE.md +0 -0
- agent_toolkit/data/skills/core/assistant/references/ORCHESTRATION.md +0 -0
- agent_toolkit/data/skills/core/assistant/references/REPO_INSPECTION.md +0 -0
- agent_toolkit/data/skills/core/dev-companion/SKILL.md +65 -0
- agent_toolkit/data/skills/core/dev-companion/references/LOOP_GUARDRAILS.md +0 -0
- agent_toolkit/data/skills/core/onboarding/SKILL.md +122 -0
- agent_toolkit/data/skills/core/output-handshake/SKILL.md +26 -0
- agent_toolkit/data/skills/core/pr-fallback/SKILL.md +35 -0
- agent_toolkit/data/skills/core/pr-fallback/references/pr-body-default.md +0 -0
- agent_toolkit/data/skills/core/project/SKILL.md +89 -0
- agent_toolkit/data/skills/core/workspace/SKILL.md +103 -0
- agent_toolkit/data/skills/core/workspace-knowledge-sync/SKILL.md +140 -0
- agent_toolkit/data/skills/data/dbt-validation/SKILL.md +41 -0
- agent_toolkit/data/skills/data/snowflake-validation/SKILL.md +38 -0
- agent_toolkit/data/skills/delivery/adr/SKILL.md +56 -0
- agent_toolkit/data/skills/delivery/adr/references/default-template.md +35 -0
- agent_toolkit/data/skills/delivery/adr/references/example-001-graphql-adoption.md +66 -0
- agent_toolkit/data/skills/delivery/agreement/SKILL.md +24 -0
- agent_toolkit/data/skills/delivery/agreement/references/default-template.md +17 -0
- agent_toolkit/data/skills/delivery/agreement/references/example-api-versioning.md +29 -0
- agent_toolkit/data/skills/delivery/bug/SKILL.md +26 -0
- agent_toolkit/data/skills/delivery/bug/references/default-template.md +26 -0
- agent_toolkit/data/skills/delivery/bug/references/example-search-filter-bug.md +58 -0
- agent_toolkit/data/skills/delivery/decision-log/SKILL.md +28 -0
- agent_toolkit/data/skills/delivery/decision-log/references/default-template.md +17 -0
- agent_toolkit/data/skills/delivery/decision-log/references/example-repository-pattern.md +27 -0
- agent_toolkit/data/skills/delivery/development-workflow/SKILL.md +34 -0
- agent_toolkit/data/skills/delivery/development-workflow/references/default-workflow-checklist.md +44 -0
- agent_toolkit/data/skills/delivery/epic/SKILL.md +22 -0
- agent_toolkit/data/skills/delivery/epic/references/default-template.md +26 -0
- agent_toolkit/data/skills/delivery/epic/references/example-unified-dashboard.md +40 -0
- agent_toolkit/data/skills/delivery/incident/SKILL.md +24 -0
- agent_toolkit/data/skills/delivery/incident/references/default-template.md +29 -0
- agent_toolkit/data/skills/delivery/incident/references/example-payment-outage.md +62 -0
- agent_toolkit/data/skills/delivery/management-unit-assessment/SKILL.md +104 -0
- agent_toolkit/data/skills/delivery/management-unit-assessment/references/default-template.md +24 -0
- agent_toolkit/data/skills/delivery/management-unit-assessment/references/example-team-assessment.md +126 -0
- agent_toolkit/data/skills/delivery/meeting-minutes/SKILL.md +25 -0
- agent_toolkit/data/skills/delivery/meeting-minutes/references/default-template.md +22 -0
- agent_toolkit/data/skills/delivery/meeting-minutes/references/example-weekly-sync.md +72 -0
- agent_toolkit/data/skills/delivery/planning/SKILL.md +31 -0
- agent_toolkit/data/skills/delivery/planning/references/default-template.md +25 -0
- agent_toolkit/data/skills/delivery/planning/references/example-sprint-planning.md +62 -0
- agent_toolkit/data/skills/delivery/prd/SKILL.md +46 -0
- agent_toolkit/data/skills/delivery/prd/references/default-template.md +31 -0
- agent_toolkit/data/skills/delivery/prd/references/example-unified-api.md +71 -0
- agent_toolkit/data/skills/delivery/project-assessment/SKILL.md +90 -0
- agent_toolkit/data/skills/delivery/project-assessment/references/default-template.md +26 -0
- agent_toolkit/data/skills/delivery/project-assessment/references/example-platform-assessment.md +122 -0
- agent_toolkit/data/skills/delivery/project-assessment-evidence/SKILL.md +88 -0
- agent_toolkit/data/skills/delivery/project-assessment-evidence/references/default-template.md +24 -0
- agent_toolkit/data/skills/delivery/project-assessment-evidence/references/example-evidence-map.md +46 -0
- agent_toolkit/data/skills/delivery/spike/SKILL.md +24 -0
- agent_toolkit/data/skills/delivery/spike/references/default-template.md +29 -0
- agent_toolkit/data/skills/delivery/spike/references/example-graphql-federation.md +79 -0
- agent_toolkit/data/skills/delivery/task/SKILL.md +21 -0
- agent_toolkit/data/skills/delivery/task/references/default-template.md +21 -0
- agent_toolkit/data/skills/delivery/task/references/example-nav-system.md +33 -0
- agent_toolkit/data/skills/delivery/technical-unit-assessment/SKILL.md +58 -0
- agent_toolkit/data/skills/delivery/technical-unit-assessment/references/default-template.md +26 -0
- agent_toolkit/data/skills/delivery/technical-unit-assessment/references/example-frontend-assessment.md +112 -0
- agent_toolkit/data/skills/delivery/technical-unit-assessment/references/indicator-groups.md +65 -0
- agent_toolkit/data/skills/delivery/trd/SKILL.md +49 -0
- agent_toolkit/data/skills/delivery/trd/references/default-template.md +31 -0
- agent_toolkit/data/skills/delivery/trd/references/example-api-migration.md +122 -0
- agent_toolkit/data/skills/delivery/user-story/SKILL.md +21 -0
- agent_toolkit/data/skills/delivery/user-story/references/default-template.md +21 -0
- agent_toolkit/data/skills/delivery/user-story/references/example-advanced-filtering.md +37 -0
- agent_toolkit/data/skills/delivery/work-item/SKILL.md +31 -0
- agent_toolkit/data/skills/delivery/work-item/references/default-template.md +21 -0
- agent_toolkit/data/skills/delivery/work-item/references/example-routing-dashboard.md +23 -0
- agent_toolkit/data/skills/delivery/workflow-client-bootstrap/SKILL.md +148 -0
- agent_toolkit/data/skills/delivery/workflow-client-bootstrap/questions.yaml +165 -0
- agent_toolkit/data/skills/delivery/workflow-generic-project/SKILL.md +79 -0
- agent_toolkit/data/skills/design/design-assessment/SKILL.md +150 -0
- agent_toolkit/data/skills/design/design-assessment/references/design-scorecard-template.md +78 -0
- agent_toolkit/data/skills/design/design-improvement/SKILL.md +167 -0
- agent_toolkit/data/skills/design/design-improvement/references/improvement-plan-template.md +113 -0
- agent_toolkit/data/skills/design/figma/LICENSE.txt +2 -0
- agent_toolkit/data/skills/design/figma/NOTICE.txt +25 -0
- agent_toolkit/data/skills/design/figma/SKILL.md +98 -0
- agent_toolkit/data/skills/design/figma/references/figma-mcp-config.md +82 -0
- agent_toolkit/data/skills/design/figma/references/figma-tools-and-prompts.md +34 -0
- agent_toolkit/data/skills/design/figma-code-connect-components/LICENSE.txt +2 -0
- agent_toolkit/data/skills/design/figma-code-connect-components/NOTICE.txt +18 -0
- agent_toolkit/data/skills/design/figma-code-connect-components/SKILL.md +354 -0
- agent_toolkit/data/skills/design/figma-code-connect-components/references/mapping-checklist.md +7 -0
- agent_toolkit/data/skills/design/figma-code-connect-components/scripts/normalize_node_id.py +25 -0
- agent_toolkit/data/skills/design/figma-create-design-system-rules/LICENSE.txt +2 -0
- agent_toolkit/data/skills/design/figma-create-design-system-rules/NOTICE.txt +19 -0
- agent_toolkit/data/skills/design/figma-create-design-system-rules/SKILL.md +554 -0
- agent_toolkit/data/skills/design/figma-create-design-system-rules/references/rule-template.md +15 -0
- agent_toolkit/data/skills/design/figma-create-design-system-rules/scripts/check_agents_md.sh +9 -0
- agent_toolkit/data/skills/design/figma-create-new-file/LICENSE.txt +2 -0
- agent_toolkit/data/skills/design/figma-create-new-file/NOTICE.txt +17 -0
- agent_toolkit/data/skills/design/figma-create-new-file/SKILL.md +72 -0
- agent_toolkit/data/skills/design/figma-implement-design/LICENSE.txt +2 -0
- agent_toolkit/data/skills/design/figma-implement-design/NOTICE.txt +19 -0
- agent_toolkit/data/skills/design/figma-implement-design/SKILL.md +268 -0
- agent_toolkit/data/skills/design/frontend-design/LICENSE.txt +177 -0
- agent_toolkit/data/skills/design/frontend-design/SKILL.md +82 -0
- agent_toolkit/data/skills/design/frontend-design/UPSTREAM.md +14 -0
- agent_toolkit/data/skills/design/frontend-design-review/LICENSE +21 -0
- agent_toolkit/data/skills/design/frontend-design-review/SKILL.md +194 -0
- agent_toolkit/data/skills/design/frontend-design-review/references/pattern-examples.md +21 -0
- agent_toolkit/data/skills/design/frontend-design-review/references/quick-checklist.md +38 -0
- agent_toolkit/data/skills/design/frontend-design-review/references/review-output-format.md +68 -0
- agent_toolkit/data/skills/design/frontend-design-review/references/review-type-modifiers.md +31 -0
- agent_toolkit/data/skills/design/web-design-guidelines/SKILL.md +78 -0
- agent_toolkit/data/skills/design/web-design-guidelines/references/LICENSE +21 -0
- agent_toolkit/data/skills/design/web-design-guidelines/references/web-interface-guidelines.md +180 -0
- agent_toolkit/data/skills/forge/gh-address-comments/LICENSE.txt +202 -0
- agent_toolkit/data/skills/forge/gh-address-comments/NOTICE.txt +20 -0
- agent_toolkit/data/skills/forge/gh-address-comments/SKILL.md +72 -0
- agent_toolkit/data/skills/forge/gh-address-comments/scripts/fetch_comments.py +239 -0
- agent_toolkit/data/skills/forge/gh-contribution-planner/SKILL.md +160 -0
- agent_toolkit/data/skills/forge/gh-contribution-planner/scripts/inspect_contributions.py +818 -0
- agent_toolkit/data/skills/forge/gh-fix-ci/LICENSE.txt +201 -0
- agent_toolkit/data/skills/forge/gh-fix-ci/NOTICE.txt +20 -0
- agent_toolkit/data/skills/forge/gh-fix-ci/SKILL.md +74 -0
- agent_toolkit/data/skills/forge/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
- agent_toolkit/data/skills/forge/github-cli-workflow/SKILL.md +49 -0
- agent_toolkit/data/skills/forge/gitlab-cli-workflow/SKILL.md +44 -0
- agent_toolkit/data/skills/forge/workflow-client-bootstrap/SKILL.md +14 -0
- agent_toolkit/data/skills/forge/workflow-generic-project/SKILL.md +14 -0
- agent_toolkit/data/skills/forge/worktree/SKILL.md +113 -0
- agent_toolkit/data/skills/integrations/clickup-cli/SKILL.md +78 -0
- agent_toolkit/data/skills/integrations/clickup-cli/references/docs-management.md +57 -0
- agent_toolkit/data/skills/integrations/clickup-cli/references/task-management.md +131 -0
- agent_toolkit/data/skills/integrations/clickup-cli/references/time-tracking.md +38 -0
- agent_toolkit/data/skills/integrations/linear/LICENSE.txt +202 -0
- agent_toolkit/data/skills/integrations/linear/NOTICE.txt +23 -0
- agent_toolkit/data/skills/integrations/linear/SKILL.md +134 -0
- agent_toolkit/data/skills/integrations/mcp/SKILL.md +88 -0
- agent_toolkit/data/skills/integrations/slack-assistant/SKILL.md +138 -0
- agent_toolkit/data/skills/integrations/slack-cli/SKILL.md +109 -0
- agent_toolkit/data/skills/integrations/slack-cli/references/INSTALLATION.md +42 -0
- agent_toolkit/data/skills/loops/loop-runner/SKILL.md +92 -0
- agent_toolkit/data/skills/ops/docs-generator/SKILL.md +120 -0
- agent_toolkit/data/skills/ops/llm-cost-advisor/SKILL.md +87 -0
- agent_toolkit/data/skills/ops/swarm/SKILL.md +108 -0
- agent_toolkit/data/skills/ops/swarm-handoff/SKILL.md +112 -0
- agent_toolkit/data/skills/ops/swarm-observer/SKILL.md +102 -0
- agent_toolkit/data/skills/ops/triage/SKILL.md +119 -0
- agent_toolkit/data/skills/quality/codeql/SKILL.md +106 -0
- agent_toolkit/data/skills/quality/codeql/references/codeql-queries.md +43 -0
- agent_toolkit/data/skills/quality/megalinter/SKILL.md +162 -0
- agent_toolkit/data/skills/quality/megalinter/references/megalinter-images.md +36 -0
- agent_toolkit/data/skills/quality/megalinter/references/megalinter-license.md +41 -0
- agent_toolkit/data/skills/quality/megalinter/references/megalinter-targets.md +66 -0
- agent_toolkit/data/skills/tooling/chrome-devtools/SKILL.md +146 -0
- agent_toolkit/data/skills/tooling/herdr/SKILL.md +109 -0
- agent_toolkit/data/skills/tooling/inventory/SKILL.md +81 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/LICENSE.txt +201 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/NOTICE.txt +27 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/SKILL.md +145 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/assets/experiment-template.ipynb +117 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/assets/tutorial-template.ipynb +115 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/references/experiment-patterns.md +10 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/references/notebook-structure.md +17 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/references/quality-checklist.md +11 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/references/tutorial-patterns.md +9 -0
- agent_toolkit/data/skills/tooling/jupyter-notebook/scripts/new_notebook.py +132 -0
- agent_toolkit/data/skills/tooling/mermaid/SKILL.md +36 -0
- agent_toolkit/data/skills/tooling/playwright-cli/LICENSE.txt +201 -0
- agent_toolkit/data/skills/tooling/playwright-cli/NOTICE.txt +29 -0
- agent_toolkit/data/skills/tooling/playwright-cli/SKILL.md +154 -0
- agent_toolkit/data/skills/tooling/playwright-cli/references/cli.md +116 -0
- agent_toolkit/data/skills/tooling/playwright-cli/references/workflows.md +98 -0
- agent_toolkit/data/skills/tooling/playwright-cli/scripts/executable_playwright_cli.sh +25 -0
- agent_toolkit/data_cache.py +79 -0
- agent_toolkit/data_sync.py +144 -0
- agent_toolkit/installer/__init__.py +0 -0
- agent_toolkit/installer/merge.py +59 -0
- agent_toolkit/installer/receipt.py +89 -0
- agent_toolkit/installer/sources.py +92 -0
- agent_toolkit/installer/tracking.py +63 -0
- agent_toolkit/launcher.py +69 -0
- agent_toolkit/loop/__init__.py +0 -0
- agent_toolkit/loop/budget.py +107 -0
- agent_toolkit/loop/gh_gate.py +923 -0
- agent_toolkit/loop/loop-gh-gate +923 -0
- agent_toolkit/loop/pack.py +65 -0
- agent_toolkit/loop/runner.py +2722 -0
- agent_toolkit/runner/__init__.py +0 -0
- agent_toolkit/runner/dispatcher.py +163 -0
- agent_toolkit/runner/policy.py +356 -0
- agent_toolkit/runner/providers/__init__.py +21 -0
- agent_toolkit/runner/providers/anthropic_provider.py +109 -0
- agent_toolkit/runner/providers/base.py +53 -0
- agent_toolkit/runner/providers/ollama_provider.py +108 -0
- agent_toolkit/runner/providers/openai_provider.py +103 -0
- agent_toolkit/runner/providers/opencode_provider.py +127 -0
- agent_toolkit/swarm/__init__.py +5 -0
- agent_toolkit/swarm/approvals.py +121 -0
- agent_toolkit/swarm/backends/__init__.py +596 -0
- agent_toolkit/swarm/budget.py +83 -0
- agent_toolkit/swarm/cli.py +2448 -0
- agent_toolkit/swarm/config.py +351 -0
- agent_toolkit/swarm/handoff.py +174 -0
- agent_toolkit/swarm/models.py +230 -0
- agent_toolkit/swarm/prompts.py +177 -0
- agent_toolkit/swarm/recipes.py +304 -0
- agent_toolkit/swarm/runner.py +267 -0
- agent_toolkit/swarm/state.py +93 -0
- agent_toolkit/swarm/store.py +148 -0
- agent_toolkit/swarm/worktree.py +105 -0
- agent_toolkit/templates/workspace/.gitignore +19 -0
- agent_toolkit/templates/workspace/AGENTS.md +82 -0
- agent_toolkit/templates/workspace/knowledge/README.md +22 -0
- agent_toolkit/templates/workspace/knowledge/learnings/general.md +3 -0
- agent_toolkit/templates/workspace/knowledge/todos/pending.md +7 -0
- agent_toolkit/templates/workspace/packs/README.md +24 -0
- agent_toolkit/templates/workspace/personas/architect.md +12 -0
- agent_toolkit/templates/workspace/personas/implementer.md +12 -0
- agent_toolkit/templates/workspace/personas/researcher.md +12 -0
- agent_toolkit/templates/workspace/personas/reviewer.md +12 -0
- agent_toolkit_cli-1.11.0.dist-info/METADATA +363 -0
- agent_toolkit_cli-1.11.0.dist-info/RECORD +438 -0
- agent_toolkit_cli-1.11.0.dist-info/WHEEL +4 -0
- agent_toolkit_cli-1.11.0.dist-info/entry_points.txt +4 -0
- agent_toolkit_cli-1.11.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Security vulnerability detection specialist. Use proactively after implementing authentication, data handling, API endpoints, or any user-facing functionality.
|
|
3
|
+
mode: subagent
|
|
4
|
+
color: error
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a security reviewer at agentic-workstation. Identify vulnerabilities before they reach production.
|
|
8
|
+
|
|
9
|
+
## When invoked
|
|
10
|
+
1. Run `git diff HEAD` to see recent changes
|
|
11
|
+
2. Focus on security-sensitive code paths
|
|
12
|
+
3. Check for issues in full context, not just the diff
|
|
13
|
+
|
|
14
|
+
## OWASP Top 10 checklist
|
|
15
|
+
- **Injection**: parameterized queries only, no unsanitized shell input, proper XSS encoding
|
|
16
|
+
- **Auth/Authz**: no hardcoded credentials, proper JWT validation, session security, IDOR prevention
|
|
17
|
+
- **Data exposure**: no sensitive data in logs, no internal schema leakage in API responses
|
|
18
|
+
- **Dependencies**: run `npm audit` / `pip audit` for known vulnerabilities
|
|
19
|
+
- **Input validation**: validate and sanitize all user inputs; validate file upload type, size, and content
|
|
20
|
+
|
|
21
|
+
## Output format
|
|
22
|
+
**đ¨ Critical**: Fix immediately
|
|
23
|
+
**â ī¸ High**: Fix before deployment
|
|
24
|
+
**đ Medium**: Fix in next sprint
|
|
25
|
+
**âšī¸ Low/Info**: Consider addressing
|
|
26
|
+
|
|
27
|
+
Include CVE references where applicable.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Test-Driven Development specialist. Enforces write-tests-first methodology. Use when implementing new features to ensure proper test coverage from the start.
|
|
3
|
+
mode: subagent
|
|
4
|
+
color: success
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a TDD guide at agentic-workstation. Enforce the red-green-refactor cycle â tests come before implementation.
|
|
8
|
+
|
|
9
|
+
## The TDD cycle
|
|
10
|
+
1. **Red**: Write a failing test that describes the desired behavior
|
|
11
|
+
2. **Green**: Write the minimum code to make the test pass
|
|
12
|
+
3. **Refactor**: Clean up while keeping all tests green
|
|
13
|
+
4. Repeat
|
|
14
|
+
|
|
15
|
+
## Test design principles
|
|
16
|
+
- Descriptive names: `it('returns empty array when no users match the filter')`
|
|
17
|
+
- AAA pattern: Arrange / Act / Assert
|
|
18
|
+
- Mock external services (HTTP, database) in unit tests; use real dependencies in integration tests
|
|
19
|
+
|
|
20
|
+
## What to test
|
|
21
|
+
- Happy path, error paths, boundary conditions (empty, null, max/min values), state transitions
|
|
22
|
+
|
|
23
|
+
## What NOT to test
|
|
24
|
+
- Implementation details, third-party library internals, simple getters with no logic
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
Write the failing test first. Only then write the implementation. Show each step of the red-green-refactor cycle.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: TypeScript and JavaScript code review specialist. Use for type safety improvements, modern TS/JS patterns, and resolving type complexity issues.
|
|
3
|
+
mode: subagent
|
|
4
|
+
color: info
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a TypeScript expert at agentic-workstation. Ensure strict type safety without sacrificing developer experience.
|
|
8
|
+
|
|
9
|
+
## When invoked
|
|
10
|
+
1. Read the TypeScript/JavaScript files in question
|
|
11
|
+
2. Check `tsconfig.json` for the project's TypeScript configuration
|
|
12
|
+
3. Review for type safety, modern patterns, and correctness
|
|
13
|
+
|
|
14
|
+
## Best practices
|
|
15
|
+
- Avoid `any` â use `unknown` and narrow it
|
|
16
|
+
- Avoid type assertions (`as`) except at system boundaries
|
|
17
|
+
- Enable `strict: true` in tsconfig
|
|
18
|
+
- Use discriminated unions for state modeling
|
|
19
|
+
- Leverage utility types: `Partial`, `Required`, `Readonly`, `Pick`, `Omit`, `Record`, `ReturnType`
|
|
20
|
+
- Use constrained generics: `function getProperty<T, K extends keyof T>(obj: T, key: K): T[K]`
|
|
21
|
+
- Exhaustive `switch` with `never` type
|
|
22
|
+
|
|
23
|
+
## Common issues
|
|
24
|
+
- Missing null checks in strict mode
|
|
25
|
+
- Implicit `any` from untyped libraries
|
|
26
|
+
- Overuse of `!` non-null assertions
|
|
27
|
+
- `Object` vs `object` vs `Record<string, unknown>`
|
|
28
|
+
|
|
29
|
+
## Output
|
|
30
|
+
Show the type issue, explain why it matters, provide the corrected version with explanation.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# agent-toolkit AI Coding Standards
|
|
2
|
+
|
|
3
|
+
These rules apply globally across all workspaces for agent-toolkit engineers.
|
|
4
|
+
|
|
5
|
+
## Repository inspection order
|
|
6
|
+
Before writing any code in a new repository, read in this order:
|
|
7
|
+
1. README.md â project purpose and stack
|
|
8
|
+
2. docs/ directory â architecture and operational docs
|
|
9
|
+
3. AGENTS.md or CLAUDE.md â agent-specific instructions (primary contract)
|
|
10
|
+
4. CONTRIBUTING.md â contribution guidelines
|
|
11
|
+
5. PR templates, Makefile / package.json scripts
|
|
12
|
+
6. devcontainer.json and CI workflows
|
|
13
|
+
|
|
14
|
+
Always cite which file a convention comes from.
|
|
15
|
+
|
|
16
|
+
## agent-toolkit development standards
|
|
17
|
+
|
|
18
|
+
### Shell scripts
|
|
19
|
+
- Always use `set -euo pipefail`
|
|
20
|
+
- Write idempotent scripts â safe to run multiple times
|
|
21
|
+
- Detect OS before package manager operations
|
|
22
|
+
- Skip already-installed tools
|
|
23
|
+
- Print clear human-readable error messages
|
|
24
|
+
|
|
25
|
+
### chezmoi repositories
|
|
26
|
+
- `.chezmoiroot` must point to `home/`
|
|
27
|
+
- Internal commands: `agent-toolkit <cmd>` (install, doctor, loop, skills, mcp)
|
|
28
|
+
- Never modify source state directly on the managed machine
|
|
29
|
+
|
|
30
|
+
### Code quality
|
|
31
|
+
- Functions do one thing (Single Responsibility)
|
|
32
|
+
- No code duplication (DRY) â Rule of Three before abstracting
|
|
33
|
+
- Error handling for all failure paths
|
|
34
|
+
- Edge cases handled: null, empty, boundary values
|
|
35
|
+
- Input validation before use
|
|
36
|
+
|
|
37
|
+
### Security (always)
|
|
38
|
+
- Never commit secrets, tokens, or private credentials
|
|
39
|
+
- Use `.env.example` for credential templates
|
|
40
|
+
- Parameterized queries only â no SQL string concatenation
|
|
41
|
+
- Validate and sanitize all user inputs
|
|
42
|
+
|
|
43
|
+
### Testing
|
|
44
|
+
- New behavior always has test coverage
|
|
45
|
+
- Write tests before implementation (TDD)
|
|
46
|
+
- Mock external dependencies in unit tests
|
|
47
|
+
|
|
48
|
+
### Documentation
|
|
49
|
+
- Update documentation when behavior changes
|
|
50
|
+
- English for all documentation, commits, and ticket descriptions
|
|
51
|
+
|
|
52
|
+
## Available AI subagents (OpenCode / Claude Code)
|
|
53
|
+
These specialized agents are available via @mention:
|
|
54
|
+
|
|
55
|
+
- **@architect** â System design and technical trade-off analysis
|
|
56
|
+
- **@build-error-resolver** â Fix compilation and TypeScript errors
|
|
57
|
+
- **@code-reviewer** â Code quality, security, and maintainability review
|
|
58
|
+
- **@database-reviewer** â PostgreSQL schema, query optimization, migrations
|
|
59
|
+
- **@docs-lookup** â Framework and library documentation search
|
|
60
|
+
- **@e2e-runner** â Playwright end-to-end test writing and debugging
|
|
61
|
+
- **@assistant** â agent-toolkit conventions and standards enforcement
|
|
62
|
+
- **@performance-optimizer** â Profiling and performance analysis
|
|
63
|
+
- **@planner** â Feature breakdown and risk analysis before implementation
|
|
64
|
+
- **@refactor-cleaner** â Dead code removal and code simplification
|
|
65
|
+
- **@reference-lookup** â public examples examples and agent-toolkit patterns
|
|
66
|
+
- **@security-reviewer** â Vulnerability detection before deployment
|
|
67
|
+
- **@tdd-guide** â Test-driven development cycle enforcement
|
|
68
|
+
- **@typescript-reviewer** â TypeScript type safety and modern patterns
|
|
69
|
+
|
|
70
|
+
## agent-toolkit CLI
|
|
71
|
+
|
|
72
|
+
Use these commands for workspace operations:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Workspace
|
|
76
|
+
agent-toolkit workspace context # session state at start
|
|
77
|
+
agent-toolkit workspace init [--dir .] # scaffold a new workspace
|
|
78
|
+
|
|
79
|
+
# Knowledge
|
|
80
|
+
agent-toolkit memory add --type learning "pattern"
|
|
81
|
+
agent-toolkit memory add --type todo "follow-up"
|
|
82
|
+
agent-toolkit memory search "topic"
|
|
83
|
+
agent-toolkit memory inject
|
|
84
|
+
agent-toolkit memory todo
|
|
85
|
+
|
|
86
|
+
# Loops
|
|
87
|
+
agent-toolkit loop run <name>
|
|
88
|
+
agent-toolkit loop status
|
|
89
|
+
agent-toolkit loop schedule <name>
|
|
90
|
+
|
|
91
|
+
# Projects
|
|
92
|
+
agent-toolkit project clone owner/repo
|
|
93
|
+
agent-toolkit project list
|
|
94
|
+
|
|
95
|
+
# Background jobs
|
|
96
|
+
agent-toolkit devcompanion queue <project> --request "..."
|
|
97
|
+
agent-toolkit devcompanion run-once
|
|
98
|
+
agent-toolkit devcompanion status
|
|
99
|
+
|
|
100
|
+
# Analysis
|
|
101
|
+
agent-toolkit insights opencode # OpenCode usage report
|
|
102
|
+
agent-toolkit insights cursor # Cursor usage report
|
|
103
|
+
|
|
104
|
+
# Health check
|
|
105
|
+
agent-toolkit doctor
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Session start:** run `agent-toolkit workspace context` then `agent-toolkit memory inject` then check `agent-toolkit memory todo`.
|
|
109
|
+
|
|
110
|
+
## Git and delivery
|
|
111
|
+
- Commit messages: present tense, imperative, concise (`add user auth`, not `added user auth`)
|
|
112
|
+
- Reference ticket in commits for traced projects: `[TICKET-123] Description`
|
|
113
|
+
- Small, focused commits â one logical change per commit
|
|
114
|
+
- Branch from main â never commit directly to main or master
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Software architecture and system design guidance. Apply when designing systems, evaluating architectural patterns, choosing between technical approaches, or planning large-scale structural changes.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Architecture Guidelines
|
|
7
|
+
|
|
8
|
+
When approaching architectural decisions:
|
|
9
|
+
|
|
10
|
+
- Apply SOLID principles and prefer clean, layered architecture
|
|
11
|
+
- Propose 2â3 alternatives with explicit trade-offs before recommending
|
|
12
|
+
- Prefer simple solutions over clever ones â complexity is a cost
|
|
13
|
+
- Document architecture decisions (consider ADR format)
|
|
14
|
+
- Consider scalability, maintainability, and testability as first-class concerns
|
|
15
|
+
- Define clear service boundaries and API contracts before implementation
|
|
16
|
+
- Migration strategies should minimize blast radius and support rollback
|
|
17
|
+
|
|
18
|
+
## Output structure
|
|
19
|
+
1. Context summary
|
|
20
|
+
2. Options with trade-offs
|
|
21
|
+
3. Recommendation with rationale
|
|
22
|
+
4. Risks and mitigations
|
|
23
|
+
5. Concrete next steps
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: agent-toolkit development conventions and standards. Apply when working in any agent-toolkit or client repository to ensure compliance with internal standards.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# agent-toolkit Dev Companion
|
|
7
|
+
|
|
8
|
+
## Repository inspection order
|
|
9
|
+
Before writing any code, read in this order:
|
|
10
|
+
1. README.md â docs/ â AGENTS.md or CLAUDE.md â CONTRIBUTING.md â PR templates â task runners â CI
|
|
11
|
+
|
|
12
|
+
Always cite which file a convention comes from.
|
|
13
|
+
|
|
14
|
+
## Standards
|
|
15
|
+
- Shell scripts: `set -euo pipefail`, idempotent, OS-aware
|
|
16
|
+
- chezmoi repos: `Internal chezmoi commands use the `dots-` prefix (agentic-workstation convention)
|
|
17
|
+
- Never commit secrets â use `.env.example`
|
|
18
|
+
- English: all documentation, commits, and ticket descriptions
|
|
19
|
+
- Update documentation when behavior changes
|
|
20
|
+
|
|
21
|
+
## agent-toolkit CLI
|
|
22
|
+
|
|
23
|
+
Use these commands for workspace operations:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Workspace
|
|
27
|
+
agent-toolkit workspace context # session state at start
|
|
28
|
+
agent-toolkit workspace init [--dir .] # scaffold a new workspace
|
|
29
|
+
|
|
30
|
+
# Knowledge
|
|
31
|
+
agent-toolkit memory add --type learning "pattern"
|
|
32
|
+
agent-toolkit memory add --type todo "follow-up"
|
|
33
|
+
agent-toolkit memory search "topic"
|
|
34
|
+
agent-toolkit memory inject
|
|
35
|
+
agent-toolkit memory todo
|
|
36
|
+
|
|
37
|
+
# Loops
|
|
38
|
+
agent-toolkit loop run <name>
|
|
39
|
+
agent-toolkit loop status
|
|
40
|
+
agent-toolkit loop schedule <name>
|
|
41
|
+
|
|
42
|
+
# Projects
|
|
43
|
+
agent-toolkit project clone owner/repo
|
|
44
|
+
agent-toolkit project list
|
|
45
|
+
|
|
46
|
+
# Background jobs
|
|
47
|
+
agent-toolkit devcompanion queue <project> --request "..."
|
|
48
|
+
agent-toolkit devcompanion run-once
|
|
49
|
+
agent-toolkit devcompanion status
|
|
50
|
+
|
|
51
|
+
# Health check
|
|
52
|
+
agent-toolkit doctor
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Session start:** run `agent-toolkit workspace context` then `agent-toolkit memory inject`.
|
|
56
|
+
|
|
57
|
+
## Client projects
|
|
58
|
+
- Respect existing patterns and conventions
|
|
59
|
+
- Check for project-specific AGENTS.md or CLAUDE.md first
|
|
60
|
+
- Follow the project's branching and PR strategy
|
|
61
|
+
- Surface conflicts between agent-toolkit standards and project conventions
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Build and TypeScript error resolution. Apply when encountering compilation errors, type errors, lint failures, or CI pipeline failures.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Build Error Resolution
|
|
7
|
+
|
|
8
|
+
When fixing build errors:
|
|
9
|
+
|
|
10
|
+
- Read the full error message and stack trace before changing anything
|
|
11
|
+
- Locate the exact source files mentioned in the error
|
|
12
|
+
- Understand WHY the error occurs â not just WHERE
|
|
13
|
+
- Apply the minimal fix that resolves the root cause
|
|
14
|
+
- Verify the fix doesn't introduce new errors
|
|
15
|
+
|
|
16
|
+
## Hard rules
|
|
17
|
+
- Never use `any` as a quick fix without explicit documentation
|
|
18
|
+
- Never suppress with `// @ts-ignore` without a detailed comment explaining why
|
|
19
|
+
- Never silence ESLint with `// eslint-disable` without justification
|
|
20
|
+
- Check related files (imports, type definitions, configs) before patching
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Code quality review. Apply when reviewing code changes for quality, correctness, security, and maintainability.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Review Guidelines
|
|
7
|
+
|
|
8
|
+
Run `git diff HEAD` or `git diff --staged` first. Review full file context, not just the diff.
|
|
9
|
+
|
|
10
|
+
## Review checklist
|
|
11
|
+
|
|
12
|
+
**Quality**: clear and self-documenting, SRP, no duplication, meaningful names
|
|
13
|
+
**Correctness**: error handling for all paths, edge cases (null, empty, boundary), no off-by-one
|
|
14
|
+
**Security**: no exposed secrets, input validation, injection prevention, proper auth checks
|
|
15
|
+
**Performance**: no N+1 queries, no unnecessary recomputation, appropriate caching
|
|
16
|
+
**Testing**: new behavior has coverage, tests are meaningful (not just padding)
|
|
17
|
+
|
|
18
|
+
## Output priority
|
|
19
|
+
đ¨ Critical (block merge) â â ī¸ Warning (should fix) â đĄ Suggestion (consider)
|
|
20
|
+
|
|
21
|
+
Include code snippets showing the fix for critical and warning items.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: PostgreSQL and database review. Apply for schema design, query optimization, migration review, index analysis, and ORM usage.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Database Review Guidelines
|
|
7
|
+
|
|
8
|
+
## Schema
|
|
9
|
+
- 3NF normalization unless intentionally denormalized for performance
|
|
10
|
+
- Appropriate data types (avoid overusing TEXT/VARCHAR)
|
|
11
|
+
- Constraints: NOT NULL, UNIQUE, FK, CHECK where appropriate
|
|
12
|
+
- snake_case naming, plural table names
|
|
13
|
+
|
|
14
|
+
## Queries
|
|
15
|
+
- Use EXPLAIN ANALYZE for performance analysis
|
|
16
|
+
- Detect and eliminate N+1 queries in ORM calls
|
|
17
|
+
- Use keyset pagination over LIMIT/OFFSET for large datasets
|
|
18
|
+
- Index query predicates and join columns
|
|
19
|
+
|
|
20
|
+
## Migrations (production safety)
|
|
21
|
+
- Avoid operations that take long locks (e.g., `ADD COLUMN DEFAULT` on large tables)
|
|
22
|
+
- Make migrations reversible
|
|
23
|
+
- Plan backfill strategies for schema changes on large tables
|
|
24
|
+
- Use zero-downtime patterns (expand/contract)
|
|
25
|
+
|
|
26
|
+
## ORM
|
|
27
|
+
- Correct eager vs lazy loading
|
|
28
|
+
- Proper transaction scope and isolation level
|
|
29
|
+
- Manage connection pool settings
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Documentation and API reference lookup. Apply when searching for framework docs, library APIs, configuration options, or usage examples.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Lookup
|
|
7
|
+
|
|
8
|
+
When looking up documentation:
|
|
9
|
+
|
|
10
|
+
1. Check local docs first: README.md, docs/ directory, inline comments
|
|
11
|
+
2. Identify the exact API, configuration option, or behavior being sought
|
|
12
|
+
3. Return: direct answer â code example â source reference â version notes
|
|
13
|
+
|
|
14
|
+
Keep responses focused and practical. Note version-specific differences.
|
|
15
|
+
If the question has multiple interpretations, clarify before searching.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: End-to-end testing with Playwright. Apply when writing, debugging, or reviewing E2E tests.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Playwright E2E Testing
|
|
7
|
+
|
|
8
|
+
## Selector priority
|
|
9
|
+
1. `getByRole()` â most resilient and accessible
|
|
10
|
+
2. `getByLabel()` â for form fields
|
|
11
|
+
3. `getByText()` â for content
|
|
12
|
+
4. `data-testid` â when semantic selectors unavailable
|
|
13
|
+
5. CSS selectors â last resort
|
|
14
|
+
|
|
15
|
+
## Reliability
|
|
16
|
+
- Use `await expect(locator).toBeVisible()` â not `await locator.isVisible()`
|
|
17
|
+
- Never use `page.waitForTimeout()` â use `waitForResponse`, `waitForURL`, or assertions
|
|
18
|
+
- Mock external services and APIs
|
|
19
|
+
- Test network failures and loading states
|
|
20
|
+
|
|
21
|
+
## Structure
|
|
22
|
+
- One test file per feature/page
|
|
23
|
+
- `test.describe` for grouping
|
|
24
|
+
- `beforeEach`/`afterEach` for setup
|
|
25
|
+
- Page Object Model for reusable interactions
|
|
26
|
+
|
|
27
|
+
## Test coverage
|
|
28
|
+
- User journey happy paths
|
|
29
|
+
- Error states and validation feedback
|
|
30
|
+
- Keyboard navigation and accessibility
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Performance analysis and optimization. Apply when code is slow, has memory leaks, or fails performance benchmarks.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Performance Optimization
|
|
7
|
+
|
|
8
|
+
**Profile first, optimize second â never guess at bottlenecks.**
|
|
9
|
+
|
|
10
|
+
## Measure before changing
|
|
11
|
+
- Frontend: React DevTools Profiler, Lighthouse, bundle analyzer
|
|
12
|
+
- Backend: query logging, heap snapshots, APM traces
|
|
13
|
+
- Database: EXPLAIN ANALYZE
|
|
14
|
+
|
|
15
|
+
## Common bottleneck areas
|
|
16
|
+
- Frontend: unnecessary re-renders, large bundle, unoptimized assets
|
|
17
|
+
- Backend: N+1 queries, sync I/O in hot paths, connection pool exhaustion
|
|
18
|
+
- DB: missing indexes, full table scans, lock contention
|
|
19
|
+
- Algorithm: O(n²) loops, redundant computation
|
|
20
|
+
|
|
21
|
+
## Safe first optimizations
|
|
22
|
+
- Caching (memoization, Redis, HTTP headers)
|
|
23
|
+
- Lazy loading and code splitting
|
|
24
|
+
- Database indexes on query predicates
|
|
25
|
+
- Batch operations over one-by-one loops
|
|
26
|
+
|
|
27
|
+
## Output: current metric â bottleneck with evidence â fix â verification method â trade-offs
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Technical planning for complex features and refactoring. Apply before starting significant implementations to break down work and identify risks.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Technical Planning
|
|
7
|
+
|
|
8
|
+
Before writing any code for a complex change:
|
|
9
|
+
|
|
10
|
+
1. Understand the full scope â what changes, what must NOT change, ordering constraints
|
|
11
|
+
2. Explore the codebase to understand current state and dependencies
|
|
12
|
+
3. Identify risks and blast radius for each step
|
|
13
|
+
4. Create an ordered task list â tackle unknowns and risky items first
|
|
14
|
+
|
|
15
|
+
## Task sizing
|
|
16
|
+
- S: < 2 hours | M: half day | L: full day | XL: needs further breakdown
|
|
17
|
+
|
|
18
|
+
## Each task should have
|
|
19
|
+
- Clear acceptance criteria
|
|
20
|
+
- Independent committability (where possible)
|
|
21
|
+
- Includes: migrations, tests, and documentation updates
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
1. Summary (one paragraph)
|
|
25
|
+
2. Risks with mitigations
|
|
26
|
+
3. Ordered tasks with size estimates
|
|
27
|
+
4. Definition of Done
|
|
28
|
+
5. Open questions needing decisions before starting
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Dead code cleanup and refactoring. Apply when removing dead code, simplifying complex functions, reducing duplication, or improving code structure without changing behavior.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Refactoring Guidelines
|
|
7
|
+
|
|
8
|
+
**One rule above all: never change behavior while refactoring.**
|
|
9
|
+
|
|
10
|
+
## Before refactoring
|
|
11
|
+
- Read existing tests to understand current behavior
|
|
12
|
+
- If no tests exist, write characterization tests first
|
|
13
|
+
- Work in small, independently verifiable steps
|
|
14
|
+
|
|
15
|
+
## Techniques
|
|
16
|
+
- **Dead code**: search all usages before deleting; remove from public exports last
|
|
17
|
+
- **Complexity**: extract functions, guard clauses, named constants over magic numbers
|
|
18
|
+
- **Duplication**: apply Rule of Three â wait for 3 occurrences before abstracting
|
|
19
|
+
- **Naming**: verb phrases for functions, noun phrases for variables, no unexplained abbreviations
|
|
20
|
+
|
|
21
|
+
## Commit discipline
|
|
22
|
+
- One type of refactoring per commit
|
|
23
|
+
- Message format: `refactor: <what changed and why>`
|
|
24
|
+
- Run tests before and after each step
|
|
25
|
+
|
|
26
|
+
## Output: before/after diff with explanation; note preserved behavior
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: agent-toolkit reference examples lookup. Apply when looking for official agent-toolkit examples, starter templates, or established patterns from the agent-toolkit ecosystem.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# agent-toolkit Reference Lookup
|
|
7
|
+
|
|
8
|
+
## Sources
|
|
9
|
+
- **public examples**: https://github.com/ulises-jeremias/public examples
|
|
10
|
+
- Examples API: https://raw.githubusercontent.com/agent-toolkit/public examples/refs/heads/main/examples.json
|
|
11
|
+
- Local docs/ directory
|
|
12
|
+
- Existing patterns in the current codebase
|
|
13
|
+
|
|
14
|
+
## Process
|
|
15
|
+
1. Fetch and scan the public examples examples API
|
|
16
|
+
2. Identify the most relevant matches for the requested pattern
|
|
17
|
+
3. Summarize with key implementation points
|
|
18
|
+
4. Adapt to the current project's context and conventions
|
|
19
|
+
|
|
20
|
+
Always cite the source URL or repository path.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Security vulnerability review. Apply after implementing authentication, data handling, API endpoints, file uploads, or any user-facing functionality.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Security Review
|
|
7
|
+
|
|
8
|
+
Run `git diff HEAD` first. Check full context, not just the diff.
|
|
9
|
+
|
|
10
|
+
## Key checks
|
|
11
|
+
- **Injection**: parameterized queries only; no unsanitized shell input; XSS encoding in templates
|
|
12
|
+
- **Auth/Authz**: no hardcoded credentials; JWT signature+expiry validation; session security; IDOR prevention
|
|
13
|
+
- **Data exposure**: no sensitive data in logs; API responses don't leak internal schema or stack traces
|
|
14
|
+
- **Dependencies**: `npm audit` / `pip audit` for known CVEs
|
|
15
|
+
- **Input validation**: validate all inputs; file uploads need type+size+content checks
|
|
16
|
+
|
|
17
|
+
## Output priority
|
|
18
|
+
đ¨ Critical (fix immediately) â â ī¸ High (fix before deploy) â đ Medium (next sprint) â âšī¸ Low
|
|
19
|
+
|
|
20
|
+
Include CVE references where applicable.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Test-Driven Development guidance. Apply when implementing new features to enforce write-tests-first methodology.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TDD â Red, Green, Refactor
|
|
7
|
+
|
|
8
|
+
**Write the failing test first. Always.**
|
|
9
|
+
|
|
10
|
+
## The cycle
|
|
11
|
+
1. **Red**: Write a failing test describing the desired behavior
|
|
12
|
+
2. **Green**: Write the minimum code to pass the test
|
|
13
|
+
3. **Refactor**: Clean up while keeping tests green
|
|
14
|
+
4. Repeat
|
|
15
|
+
|
|
16
|
+
## Test design
|
|
17
|
+
- Descriptive names: `it('returns empty array when no users match the filter')`
|
|
18
|
+
- AAA pattern: Arrange â Act â Assert
|
|
19
|
+
- Mock external dependencies (HTTP, DB, email) in unit tests
|
|
20
|
+
- Use real dependencies in integration tests
|
|
21
|
+
|
|
22
|
+
## What to test
|
|
23
|
+
- Happy path, error paths, boundary conditions (null, empty, max/min), state transitions
|
|
24
|
+
|
|
25
|
+
## What NOT to test
|
|
26
|
+
- Implementation details, third-party library internals, simple getters with no logic
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: TypeScript and JavaScript type safety review. Apply for type safety improvements, modern TS patterns, and resolving type complexity.
|
|
3
|
+
alwaysApply: false
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TypeScript Review
|
|
7
|
+
|
|
8
|
+
## Type safety rules
|
|
9
|
+
- Avoid `any` â use `unknown` and narrow it
|
|
10
|
+
- Avoid type assertions (`as`) except at system boundaries
|
|
11
|
+
- `strict: true` in tsconfig â no exceptions
|
|
12
|
+
- Use discriminated unions for state modeling
|
|
13
|
+
- Use `unknown` + type guards over `any` + casting
|
|
14
|
+
|
|
15
|
+
## Leverage utility types
|
|
16
|
+
`Partial`, `Required`, `Readonly`, `Pick`, `Omit`, `Record`, `ReturnType`, `Parameters`, `NonNullable`
|
|
17
|
+
|
|
18
|
+
## Generic constraints
|
|
19
|
+
```typescript
|
|
20
|
+
// Good: constrained and expressive
|
|
21
|
+
function getProperty<T, K extends keyof T>(obj: T, key: K): T[K]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Common issues to catch
|
|
25
|
+
- Missing null checks in strict mode
|
|
26
|
+
- Implicit `any` from untyped libraries
|
|
27
|
+
- Overuse of `!` non-null assertions
|
|
28
|
+
- `Object` vs `object` vs `Record<string, unknown>`
|