@softspark/ai-toolkit 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/AGENTS.md +412 -0
- package/CHANGELOG.md +68 -0
- package/LICENSE +21 -0
- package/README.md +632 -0
- package/action.yml +53 -0
- package/app/.claude-plugin/plugin.json +44 -0
- package/app/ARCHITECTURE.md +306 -0
- package/app/CLAUDE.md.template +23 -0
- package/app/agents/ai-engineer.md +128 -0
- package/app/agents/backend-specialist.md +193 -0
- package/app/agents/business-intelligence.md +54 -0
- package/app/agents/chaos-monkey.md +67 -0
- package/app/agents/chief-of-staff.md +51 -0
- package/app/agents/code-archaeologist.md +127 -0
- package/app/agents/code-reviewer.md +184 -0
- package/app/agents/command-expert.md +131 -0
- package/app/agents/data-analyst.md +205 -0
- package/app/agents/data-scientist.md +151 -0
- package/app/agents/database-architect.md +317 -0
- package/app/agents/debugger.md +238 -0
- package/app/agents/devops-implementer.md +194 -0
- package/app/agents/documenter.md +364 -0
- package/app/agents/explorer-agent.md +145 -0
- package/app/agents/fact-checker.md +172 -0
- package/app/agents/frontend-specialist.md +209 -0
- package/app/agents/game-developer.md +216 -0
- package/app/agents/incident-responder.md +226 -0
- package/app/agents/infrastructure-architect.md +127 -0
- package/app/agents/infrastructure-validator.md +247 -0
- package/app/agents/llm-ops-engineer.md +237 -0
- package/app/agents/mcp-expert.md +228 -0
- package/app/agents/mcp-server-architect.md +195 -0
- package/app/agents/mcp-testing-engineer.md +292 -0
- package/app/agents/meta-architect.md +58 -0
- package/app/agents/ml-engineer.md +136 -0
- package/app/agents/mobile-developer.md +190 -0
- package/app/agents/night-watchman.md +55 -0
- package/app/agents/nlp-engineer.md +154 -0
- package/app/agents/orchestrator.md +437 -0
- package/app/agents/performance-optimizer.md +254 -0
- package/app/agents/predictive-analyst.md +57 -0
- package/app/agents/product-manager.md +194 -0
- package/app/agents/project-planner.md +287 -0
- package/app/agents/prompt-engineer.md +103 -0
- package/app/agents/qa-automation-engineer.md +182 -0
- package/app/agents/rag-engineer.md +201 -0
- package/app/agents/research-synthesizer.md +138 -0
- package/app/agents/search-specialist.md +101 -0
- package/app/agents/security-architect.md +62 -0
- package/app/agents/security-auditor.md +293 -0
- package/app/agents/seo-specialist.md +111 -0
- package/app/agents/system-governor.md +57 -0
- package/app/agents/tech-lead.md +62 -0
- package/app/agents/technical-researcher.md +103 -0
- package/app/agents/test-engineer.md +264 -0
- package/app/constitution.md +38 -0
- package/app/hooks/_profile-check.sh +11 -0
- package/app/hooks/guard-destructive.sh +74 -0
- package/app/hooks/guard-path.sh +73 -0
- package/app/hooks/post-tool-use.sh +35 -0
- package/app/hooks/pre-compact.sh +31 -0
- package/app/hooks/quality-check.sh +22 -0
- package/app/hooks/quality-gate.sh +49 -0
- package/app/hooks/save-session.sh +24 -0
- package/app/hooks/session-end.sh +37 -0
- package/app/hooks/session-start.sh +29 -0
- package/app/hooks/subagent-start.sh +16 -0
- package/app/hooks/subagent-stop.sh +16 -0
- package/app/hooks/track-usage.sh +50 -0
- package/app/hooks/user-prompt-submit.sh +25 -0
- package/app/hooks.json +178 -0
- package/app/mcp-defaults.json +23 -0
- package/app/output-styles/golden-rules.md +43 -0
- package/app/plugins/README.md +19 -0
- package/app/plugins/csharp-pack/README.md +11 -0
- package/app/plugins/csharp-pack/plugin.json +18 -0
- package/app/plugins/enterprise-pack/README.md +16 -0
- package/app/plugins/enterprise-pack/hooks/output-style.sh +6 -0
- package/app/plugins/enterprise-pack/hooks/status-line.sh +8 -0
- package/app/plugins/enterprise-pack/plugin.json +24 -0
- package/app/plugins/frontend-pack/README.md +14 -0
- package/app/plugins/frontend-pack/plugin.json +22 -0
- package/app/plugins/java-pack/README.md +11 -0
- package/app/plugins/java-pack/plugin.json +18 -0
- package/app/plugins/kotlin-pack/README.md +11 -0
- package/app/plugins/kotlin-pack/plugin.json +18 -0
- package/app/plugins/memory-pack/README.md +24 -0
- package/app/plugins/memory-pack/hooks/observation-capture.sh +67 -0
- package/app/plugins/memory-pack/hooks/session-summary.sh +71 -0
- package/app/plugins/memory-pack/plugin.json +22 -0
- package/app/plugins/memory-pack/scripts/init_db.py +81 -0
- package/app/plugins/memory-pack/scripts/strip_private.py +22 -0
- package/app/plugins/memory-pack/skills/mem-search/SKILL.md +70 -0
- package/app/plugins/research-pack/README.md +14 -0
- package/app/plugins/research-pack/plugin.json +22 -0
- package/app/plugins/ruby-pack/README.md +11 -0
- package/app/plugins/ruby-pack/plugin.json +18 -0
- package/app/plugins/rust-pack/README.md +11 -0
- package/app/plugins/rust-pack/plugin.json +18 -0
- package/app/plugins/security-pack/README.md +15 -0
- package/app/plugins/security-pack/plugin.json +23 -0
- package/app/plugins/swift-pack/README.md +11 -0
- package/app/plugins/swift-pack/plugin.json +18 -0
- package/app/rules/claude-toolkit-rules.md +21 -0
- package/app/rules/git-conventions.md +5 -0
- package/app/rules/quality-gates.md +10 -0
- package/app/skills/_lib/__init__.py +1 -0
- package/app/skills/_lib/detect_utils.py +150 -0
- package/app/skills/agent-creator/SKILL.md +82 -0
- package/app/skills/analyze/SKILL.md +92 -0
- package/app/skills/analyze/scripts/complexity.py +165 -0
- package/app/skills/api-patterns/SKILL.md +305 -0
- package/app/skills/app-builder/SKILL.md +187 -0
- package/app/skills/architecture-audit/SKILL.md +141 -0
- package/app/skills/architecture-decision/SKILL.md +55 -0
- package/app/skills/architecture-decision/templates/adr-template.md +36 -0
- package/app/skills/biz-scan/SKILL.md +30 -0
- package/app/skills/briefing/SKILL.md +27 -0
- package/app/skills/build/SKILL.md +97 -0
- package/app/skills/build/scripts/detect-build.py +151 -0
- package/app/skills/chaos/SKILL.md +32 -0
- package/app/skills/ci/SKILL.md +77 -0
- package/app/skills/ci/scripts/ci-detect.py +135 -0
- package/app/skills/ci/templates/github-actions-node.yml +38 -0
- package/app/skills/ci/templates/github-actions-python.yml +42 -0
- package/app/skills/ci-cd-patterns/SKILL.md +299 -0
- package/app/skills/clean-code/SKILL.md +110 -0
- package/app/skills/clean-code/reference/dart.md +18 -0
- package/app/skills/clean-code/reference/go.md +23 -0
- package/app/skills/clean-code/reference/php.md +32 -0
- package/app/skills/clean-code/reference/python.md +180 -0
- package/app/skills/clean-code/reference/typescript.md +26 -0
- package/app/skills/command-creator/SKILL.md +83 -0
- package/app/skills/commit/SKILL.md +98 -0
- package/app/skills/commit/scripts/pre-commit-check.py +87 -0
- package/app/skills/commit/templates/conventional-commit.md +52 -0
- package/app/skills/csharp-patterns/SKILL.md +450 -0
- package/app/skills/database-patterns/SKILL.md +297 -0
- package/app/skills/debug/SKILL.md +154 -0
- package/app/skills/debug/scripts/error-parser.py +187 -0
- package/app/skills/debugging-tactics/SKILL.md +136 -0
- package/app/skills/deploy/SKILL.md +130 -0
- package/app/skills/deploy/scripts/pre_deploy_check.py +171 -0
- package/app/skills/deploy/templates/deployment-checklist.md +31 -0
- package/app/skills/design-an-interface/SKILL.md +105 -0
- package/app/skills/design-engineering/SKILL.md +260 -0
- package/app/skills/docker-devops/SKILL.md +303 -0
- package/app/skills/docs/SKILL.md +145 -0
- package/app/skills/docs/scripts/doc-inventory.py +176 -0
- package/app/skills/docs/templates/adr-template.md +36 -0
- package/app/skills/docs/templates/readme-template.md +67 -0
- package/app/skills/documentation-standards/SKILL.md +191 -0
- package/app/skills/ecommerce-patterns/SKILL.md +209 -0
- package/app/skills/evaluate/SKILL.md +132 -0
- package/app/skills/evolve/SKILL.md +27 -0
- package/app/skills/explain/SKILL.md +54 -0
- package/app/skills/explain/scripts/dependency-graph.py +215 -0
- package/app/skills/explore/SKILL.md +112 -0
- package/app/skills/explore/scripts/visualize.py +117 -0
- package/app/skills/fix/SKILL.md +78 -0
- package/app/skills/fix/scripts/error-classifier.py +191 -0
- package/app/skills/flutter-patterns/SKILL.md +254 -0
- package/app/skills/git-mastery/SKILL.md +70 -0
- package/app/skills/grill-me/SKILL.md +38 -0
- package/app/skills/health/SKILL.md +91 -0
- package/app/skills/health/scripts/health_check.py +162 -0
- package/app/skills/hive-mind/SKILL.md +56 -0
- package/app/skills/hook-creator/SKILL.md +107 -0
- package/app/skills/index/SKILL.md +74 -0
- package/app/skills/instinct-review/SKILL.md +77 -0
- package/app/skills/java-patterns/SKILL.md +442 -0
- package/app/skills/kotlin-patterns/SKILL.md +446 -0
- package/app/skills/lint/SKILL.md +103 -0
- package/app/skills/lint/scripts/detect-linters.py +112 -0
- package/app/skills/mcp-patterns/SKILL.md +270 -0
- package/app/skills/mem-search/SKILL.md +70 -0
- package/app/skills/migrate/SKILL.md +90 -0
- package/app/skills/migrate/scripts/migration-status.py +195 -0
- package/app/skills/migration-patterns/SKILL.md +260 -0
- package/app/skills/night-watch/SKILL.md +28 -0
- package/app/skills/observability-patterns/SKILL.md +203 -0
- package/app/skills/onboard/SKILL.md +76 -0
- package/app/skills/orchestrate/SKILL.md +86 -0
- package/app/skills/panic/SKILL.md +30 -0
- package/app/skills/performance-profiling/SKILL.md +59 -0
- package/app/skills/plan/SKILL.md +110 -0
- package/app/skills/plan/templates/plan-template.md +40 -0
- package/app/skills/plan-writing/SKILL.md +201 -0
- package/app/skills/plugin-creator/SKILL.md +78 -0
- package/app/skills/pr/SKILL.md +129 -0
- package/app/skills/pr/scripts/pr-summary.py +175 -0
- package/app/skills/prd-to-issues/SKILL.md +108 -0
- package/app/skills/prd-to-plan/SKILL.md +120 -0
- package/app/skills/predict/SKILL.md +30 -0
- package/app/skills/qa-session/SKILL.md +110 -0
- package/app/skills/rag-patterns/SKILL.md +203 -0
- package/app/skills/refactor/SKILL.md +124 -0
- package/app/skills/refactor/scripts/refactor-scan.py +210 -0
- package/app/skills/refactor-plan/SKILL.md +112 -0
- package/app/skills/repeat/SKILL.md +149 -0
- package/app/skills/research-mastery/SKILL.md +56 -0
- package/app/skills/review/SKILL.md +141 -0
- package/app/skills/review/scripts/diff-analyzer.py +170 -0
- package/app/skills/rollback/SKILL.md +87 -0
- package/app/skills/rollback/scripts/rollback_info.py +149 -0
- package/app/skills/ruby-patterns/SKILL.md +454 -0
- package/app/skills/rust-patterns/SKILL.md +446 -0
- package/app/skills/search/SKILL.md +64 -0
- package/app/skills/security-patterns/SKILL.md +91 -0
- package/app/skills/security-patterns/reference/authentication.md +37 -0
- package/app/skills/security-patterns/reference/authorization.md +22 -0
- package/app/skills/security-patterns/reference/input-validation.md +30 -0
- package/app/skills/security-patterns/reference/oauth-csrf-audit.md +131 -0
- package/app/skills/skill-creator/SKILL.md +154 -0
- package/app/skills/skill-creator/templates/dashboard/index.html +130 -0
- package/app/skills/skill-creator/templates/reasoning-engine/assets/example.json +12 -0
- package/app/skills/skill-creator/templates/reasoning-engine/search.py +110 -0
- package/app/skills/subagent-development/SKILL.md +225 -0
- package/app/skills/subagent-development/reference/code-quality-reviewer-prompt.md +145 -0
- package/app/skills/subagent-development/reference/implementer-prompt.md +118 -0
- package/app/skills/subagent-development/reference/spec-reviewer-prompt.md +100 -0
- package/app/skills/swarm/SKILL.md +81 -0
- package/app/skills/swift-patterns/SKILL.md +500 -0
- package/app/skills/tdd/SKILL.md +174 -0
- package/app/skills/tdd/reference/deep-modules.md +32 -0
- package/app/skills/tdd/reference/interface-design.md +32 -0
- package/app/skills/tdd/reference/mocking.md +52 -0
- package/app/skills/tdd/reference/refactoring.md +10 -0
- package/app/skills/tdd/reference/tests.md +59 -0
- package/app/skills/teams/SKILL.md +101 -0
- package/app/skills/test/SKILL.md +107 -0
- package/app/skills/test/scripts/detect-runner.py +113 -0
- package/app/skills/testing-patterns/SKILL.md +73 -0
- package/app/skills/testing-patterns/reference/flutter-testing.md +33 -0
- package/app/skills/testing-patterns/reference/go-testing.md +52 -0
- package/app/skills/testing-patterns/reference/php-phpunit.md +39 -0
- package/app/skills/testing-patterns/reference/python-pytest.md +228 -0
- package/app/skills/testing-patterns/reference/typescript-vitest.md +50 -0
- package/app/skills/triage-issue/SKILL.md +120 -0
- package/app/skills/typescript-patterns/SKILL.md +256 -0
- package/app/skills/ubiquitous-language/SKILL.md +74 -0
- package/app/skills/verification-before-completion/SKILL.md +108 -0
- package/app/skills/workflow/SKILL.md +250 -0
- package/app/skills/write-a-prd/SKILL.md +129 -0
- package/app/skills/write-a-prd/reference/visual-companion.md +78 -0
- package/app/skills/write-a-prd/scripts/frame-template.html +111 -0
- package/app/skills/write-a-prd/scripts/visual-server.cjs +79 -0
- package/app/templates/skill/generator/SKILL.md.template +40 -0
- package/app/templates/skill/knowledge/SKILL.md.template +52 -0
- package/app/templates/skill/linter/SKILL.md.template +34 -0
- package/app/templates/skill/reviewer/SKILL.md.template +51 -0
- package/app/templates/skill/workflow/SKILL.md.template +49 -0
- package/benchmarks/README.md +111 -0
- package/benchmarks/ecosystem-dashboard.json +148 -0
- package/benchmarks/ecosystem-harvest.json +148 -0
- package/benchmarks/results.json +38 -0
- package/benchmarks/run.py +351 -0
- package/bin/ai-toolkit.js +345 -0
- package/kb/best-practices/README.md +11 -0
- package/kb/howto/README.md +11 -0
- package/kb/procedures/maintenance-sop.md +306 -0
- package/kb/reference/agents-catalog.md +124 -0
- package/kb/reference/anti-pattern-registry-format.md +221 -0
- package/kb/reference/architecture-overview.md +232 -0
- package/kb/reference/benchmark-config.md +62 -0
- package/kb/reference/ci-integration.md +66 -0
- package/kb/reference/claude-ecosystem-benchmark-snapshot.md +80 -0
- package/kb/reference/claude-ecosystem-expansion-foundations.md +102 -0
- package/kb/reference/commands-catalog.md +21 -0
- package/kb/reference/distribution-model.md +63 -0
- package/kb/reference/global-install-model.md +56 -0
- package/kb/reference/hierarchical-override-pattern.md +200 -0
- package/kb/reference/hooks-catalog.md +306 -0
- package/kb/reference/integrations.md +88 -0
- package/kb/reference/language-packs.md +52 -0
- package/kb/reference/merge-friendly-install-model.md +58 -0
- package/kb/reference/plugin-pack-conventions.md +151 -0
- package/kb/reference/quick-wins-implementation-summary.md +70 -0
- package/kb/reference/skill-templates.md +50 -0
- package/kb/reference/skills-catalog.md +215 -0
- package/kb/reference/skills-unification.md +57 -0
- package/kb/reference/stats.md +69 -0
- package/kb/reference/sync.md +76 -0
- package/kb/troubleshooting/README.md +11 -0
- package/llms-full.txt +3068 -0
- package/llms.txt +39 -0
- package/package.json +75 -0
- package/scripts/_common.py +160 -0
- package/scripts/add_rule.py +50 -0
- package/scripts/benchmark_config.py +127 -0
- package/scripts/benchmark_ecosystem.py +288 -0
- package/scripts/check_deps.py +260 -0
- package/scripts/create_skill.py +118 -0
- package/scripts/doctor.py +504 -0
- package/scripts/eject.py +113 -0
- package/scripts/emission.py +256 -0
- package/scripts/evaluate_skills.py +260 -0
- package/scripts/frontmatter.py +58 -0
- package/scripts/generate_agents_md.py +91 -0
- package/scripts/generate_aider_conf.py +51 -0
- package/scripts/generate_cline.py +35 -0
- package/scripts/generate_copilot.py +30 -0
- package/scripts/generate_cursor_rules.py +35 -0
- package/scripts/generate_gemini.py +28 -0
- package/scripts/generate_llms_txt.py +164 -0
- package/scripts/generate_roo_modes.py +80 -0
- package/scripts/generate_windsurf.py +35 -0
- package/scripts/generator_base.py +140 -0
- package/scripts/harvest_ecosystem.py +50 -0
- package/scripts/inject_rule_cli.py +101 -0
- package/scripts/inject_section_cli.py +47 -0
- package/scripts/injection.py +180 -0
- package/scripts/install.py +236 -0
- package/scripts/install_git_hooks.py +71 -0
- package/scripts/install_steps/__init__.py +5 -0
- package/scripts/install_steps/ai_tools.py +261 -0
- package/scripts/install_steps/hooks.py +90 -0
- package/scripts/install_steps/markers.py +79 -0
- package/scripts/install_steps/symlinks.py +87 -0
- package/scripts/merge-hooks.py +192 -0
- package/scripts/plugin.py +642 -0
- package/scripts/plugin_schema.py +138 -0
- package/scripts/remove_rule.py +58 -0
- package/scripts/stats.py +81 -0
- package/scripts/sync.py +215 -0
- package/scripts/uninstall.py +292 -0
- package/scripts/validate.py +700 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Quick Wins Implementation Summary"
|
|
3
|
+
category: reference
|
|
4
|
+
service: ai-toolkit
|
|
5
|
+
tags: [implementation, hooks, cli, benchmark, validation]
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
created: "2026-03-28"
|
|
8
|
+
last_updated: "2026-04-01"
|
|
9
|
+
description: "Reference summary of the quick-win execution slice that became part of the baseline toolkit implementation."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Quick Wins Implementation Summary
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
This document records the implementation slice that hardened the toolkit around creator workflows, diagnostics, lifecycle hooks, benchmark tooling, and validation.
|
|
17
|
+
|
|
18
|
+
## Delivered Runtime Features
|
|
19
|
+
|
|
20
|
+
### Creator workflows
|
|
21
|
+
- `app/skills/hook-creator/SKILL.md`
|
|
22
|
+
- `app/skills/command-creator/SKILL.md`
|
|
23
|
+
- `app/skills/agent-creator/SKILL.md`
|
|
24
|
+
- `app/skills/plugin-creator/SKILL.md`
|
|
25
|
+
|
|
26
|
+
### CLI and diagnostics
|
|
27
|
+
- `ai-toolkit doctor`
|
|
28
|
+
- `ai-toolkit benchmark-ecosystem`
|
|
29
|
+
- `scripts/harvest_ecosystem.py`
|
|
30
|
+
|
|
31
|
+
### Hook coverage
|
|
32
|
+
- `PreCompact`
|
|
33
|
+
- `PostToolUse`
|
|
34
|
+
- `UserPromptSubmit`
|
|
35
|
+
- `SubagentStart`
|
|
36
|
+
- `SubagentStop`
|
|
37
|
+
- `SessionEnd`
|
|
38
|
+
|
|
39
|
+
### Validation and benchmarks
|
|
40
|
+
- benchmark dashboard JSON
|
|
41
|
+
- benchmark harvest JSON
|
|
42
|
+
- plugin-pack validation
|
|
43
|
+
- benchmark freshness checks in `doctor`
|
|
44
|
+
- expanded lifecycle and asset checks in `validate.py`
|
|
45
|
+
|
|
46
|
+
## Delivered Documentation
|
|
47
|
+
|
|
48
|
+
Updated baseline docs:
|
|
49
|
+
- `README.md`
|
|
50
|
+
- `app/ARCHITECTURE.md`
|
|
51
|
+
- `kb/reference/architecture-overview.md`
|
|
52
|
+
- `kb/reference/hooks-catalog.md`
|
|
53
|
+
- `kb/reference/skills-catalog.md`
|
|
54
|
+
- `kb/reference/plugin-pack-conventions.md`
|
|
55
|
+
- `kb/reference/claude-ecosystem-benchmark-snapshot.md`
|
|
56
|
+
- `kb/procedures/maintenance-sop.md`
|
|
57
|
+
|
|
58
|
+
## Validation Evidence
|
|
59
|
+
|
|
60
|
+
The implementation is backed by:
|
|
61
|
+
- `scripts/validate.py`
|
|
62
|
+
- CLI tests
|
|
63
|
+
- install tests
|
|
64
|
+
- generator tests
|
|
65
|
+
- metadata contract tests
|
|
66
|
+
- validator negative tests
|
|
67
|
+
|
|
68
|
+
## Final Outcome
|
|
69
|
+
|
|
70
|
+
The quick-win slice is no longer a pending execution plan. Its outputs are part of the default toolkit baseline and should be treated as shipped product behavior.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "AI Toolkit - Skill Templates"
|
|
3
|
+
category: reference
|
|
4
|
+
service: ai-toolkit
|
|
5
|
+
tags: [templates, scaffolding, create, skills]
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
created: "2026-03-29"
|
|
8
|
+
last_updated: "2026-04-01"
|
|
9
|
+
description: "5 skill templates for scaffolding new skills: linter, reviewer, generator, workflow, knowledge."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Skill Templates
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
`ai-toolkit create skill` scaffolds new skills from predefined templates. Each template produces a valid SKILL.md that passes `validate.py`.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
ai-toolkit create skill my-skill --template=linter
|
|
22
|
+
ai-toolkit create skill my-checker --template=reviewer --description="Review security headers"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Available Templates
|
|
26
|
+
|
|
27
|
+
| Template | Skill Type | Key Frontmatter | Use When |
|
|
28
|
+
|----------|-----------|-----------------|----------|
|
|
29
|
+
| `linter` | Task | `disable-model-invocation: true`, `allowed-tools: Bash, Read` | Automated checks, validators |
|
|
30
|
+
| `reviewer` | Hybrid | `context: fork`, `agent: code-reviewer` | Code review with agent delegation |
|
|
31
|
+
| `generator` | Task | `allowed-tools: Read, Write, Bash, Glob` | File generation, scaffolding |
|
|
32
|
+
| `workflow` | Hybrid | `context: fork`, `agent: orchestrator`, `model: opus` | Multi-phase orchestration |
|
|
33
|
+
| `knowledge` | Knowledge | `user-invocable: false` | Auto-loaded domain patterns |
|
|
34
|
+
|
|
35
|
+
## Template Variables
|
|
36
|
+
|
|
37
|
+
| Variable | Replaced With | Example |
|
|
38
|
+
|----------|--------------|---------|
|
|
39
|
+
| `{{NAME}}` | Skill name argument | `my-linter` |
|
|
40
|
+
| `{{DESCRIPTION}}` | `--description` value or default | `Provides my-linter functionality` |
|
|
41
|
+
|
|
42
|
+
## Template Location
|
|
43
|
+
|
|
44
|
+
Templates are stored in `app/templates/skill/{type}/SKILL.md.template`.
|
|
45
|
+
|
|
46
|
+
## After Scaffolding
|
|
47
|
+
|
|
48
|
+
1. Edit the generated `app/skills/{name}/SKILL.md`
|
|
49
|
+
2. Add `reference/` or `templates/` subdirectories if needed
|
|
50
|
+
3. Run `ai-toolkit validate` to verify
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "AI Toolkit - Skills Catalog"
|
|
3
|
+
category: reference
|
|
4
|
+
service: ai-toolkit
|
|
5
|
+
tags: [skills, domain-knowledge, catalog, task-skills, hybrid-skills]
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
created: "2026-03-23"
|
|
8
|
+
last_updated: "2026-04-01"
|
|
9
|
+
description: "Complete catalog of 85 skills: 27 task, 27 hybrid, 31 knowledge. Includes effort levels, skill-scoped hooks, executable scripts, and creator workflows."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Skills Catalog (85 skills)
|
|
13
|
+
|
|
14
|
+
All functionality is unified under skills. Task and hybrid skills are user-invocable as slash commands. Knowledge skills provide domain patterns auto-loaded by agents.
|
|
15
|
+
|
|
16
|
+
## Skill Tiers
|
|
17
|
+
|
|
18
|
+
| Tier | Skills | When |
|
|
19
|
+
|------|--------|------|
|
|
20
|
+
| **1 — Quick single-agent** | `/debug`, `/review`, `/refactor`, `/analyze`, `/docs`, `/plan`, `/explain` | One concern, fast |
|
|
21
|
+
| **2 — Multi-agent workflow** | `/workflow <type>` | Cross-cutting task with known pattern |
|
|
22
|
+
| **3 — Custom parallelism** | `/orchestrate`, `/swarm` | No predefined workflow matches |
|
|
23
|
+
|
|
24
|
+
## Task Skills (27)
|
|
25
|
+
|
|
26
|
+
Task skills execute a specific action. Invoked via slash commands. `disable-model-invocation: true`.
|
|
27
|
+
|
|
28
|
+
| Skill | Slash Command | Effort | Description |
|
|
29
|
+
|-------|---------------|--------|-------------|
|
|
30
|
+
| **commit** | `/commit` | medium | Create well-structured git commits (Conventional Commits) |
|
|
31
|
+
| **pr** | `/pr` | medium | Create GitHub pull request with template and checks |
|
|
32
|
+
| **test** | `/test` | medium | Run tests (auto-detect: pytest, vitest, jest, phpunit, flutter, go, cargo) |
|
|
33
|
+
| **build** | `/build` | low | Build the current project (auto-detects project type) |
|
|
34
|
+
| **lint** | `/lint` | low | Run linting and type checking (ruff/mypy, eslint/tsc, phpstan, dart analyze) |
|
|
35
|
+
| **fix** | `/fix` | low | Autonomously fix failing tests or lint errors (iterative loop) |
|
|
36
|
+
| **deploy** | `/deploy` | medium | Deploy to target environment with pre-deployment checks |
|
|
37
|
+
| **rollback** | `/rollback` | medium | Safe rollback (git, database migrations, deployments) |
|
|
38
|
+
| **migrate** | `/migrate` | medium | Database migration workflow (auto-detect: Alembic, Prisma, Laravel, Django) |
|
|
39
|
+
| **ci** | `/ci` | medium | Generate/manage CI/CD pipeline configuration (GitHub Actions, GitLab CI) |
|
|
40
|
+
| **panic** | `/panic` | low | EMERGENCY: Immediately halt all autonomous agent operations |
|
|
41
|
+
| **index** | `/index` | low | Reindex knowledge base to vector store with change detection |
|
|
42
|
+
| **onboard** | `/onboard` | medium | Guided project setup with the toolkit |
|
|
43
|
+
| **night-watch** | `/night-watch` | medium | Trigger Night Watchman autonomous maintenance cycle |
|
|
44
|
+
| **evolve** | `/evolve` | medium | Trigger Meta-Architect self-optimization cycle |
|
|
45
|
+
| **chaos** | `/chaos` | medium | Trigger Chaos Engineering experiment |
|
|
46
|
+
| **predict** | `/predict` | medium | Predict impact and risks of code changes |
|
|
47
|
+
| **biz-scan** | `/biz-scan` | medium | Scan project for business value opportunities and metric gaps |
|
|
48
|
+
| **briefing** | `/briefing` | medium | Generate daily executive summary of system status |
|
|
49
|
+
| **evaluate** | `/evaluate` | medium | Evaluate RAG quality using LLM-as-a-Judge methodology |
|
|
50
|
+
| **skill-creator** | `/skill-creator` | high | Create new skills following Agent Skills standard |
|
|
51
|
+
| **hook-creator** | `/hook-creator` | high | Create new Claude Code hooks with conventions and validation |
|
|
52
|
+
| **command-creator** | `/command-creator` | high | Create new slash commands with frontmatter and workflow guidance |
|
|
53
|
+
| **agent-creator** | `/agent-creator` | high | Create new specialized agents with trigger and tool selection guidance |
|
|
54
|
+
| **plugin-creator** | `/plugin-creator` | high | Create experimental opt-in plugin packs with manifests, conventions, and optional modules |
|
|
55
|
+
| **health** | `/health` | medium | Check health of project services (auto-detect) |
|
|
56
|
+
| **prd-to-issues** | `/prd-to-issues` | medium | Break PRD into GitHub issues with vertical slices and HITL/AFK tagging |
|
|
57
|
+
|
|
58
|
+
## Hybrid Skills (27)
|
|
59
|
+
|
|
60
|
+
Hybrid skills combine slash-command invocation with domain knowledge that agents reference.
|
|
61
|
+
|
|
62
|
+
| Skill | Slash Command | Effort | Description |
|
|
63
|
+
|-------|---------------|--------|-------------|
|
|
64
|
+
| **explore** | `/explore` | medium | Explore and understand codebase structure and tech stack |
|
|
65
|
+
| **debug** | `/debug` | medium | Systematic debugging with logs, health checks, diagnostics (Tier 1 — single agent) |
|
|
66
|
+
| **review** | `/review` | high | Review code changes: quality, security, performance (Tier 1 — single agent) |
|
|
67
|
+
| **plan** | `/plan` | high | Create structured plan with task breakdown and agent assignments |
|
|
68
|
+
| **refactor** | `/refactor` | high | Plan and execute code refactoring with safety checks (Tier 1 — single agent) |
|
|
69
|
+
| **analyze** | `/analyze` | medium | Analyze code quality, complexity, and patterns |
|
|
70
|
+
| **docs** | `/docs` | high | Generate/update docs: README, API docs, architecture notes, changelogs (Tier 1 — single agent) |
|
|
71
|
+
| **search** | `/search` | medium | Search knowledge base (MCP tools with local fallback) |
|
|
72
|
+
| **explain** | `/explain` | medium | Explain architecture of a file/module using Mermaid diagrams |
|
|
73
|
+
| **orchestrate** | `/orchestrate` | max | Custom multi-agent parallelism — Tier 3, spawns agents via Agent tool |
|
|
74
|
+
| **swarm** | `/swarm` | max | Massive parallelism: map-reduce, consensus, relay — Tier 3 |
|
|
75
|
+
| **workflow** | `/workflow` | max | 15 predefined multi-agent workflow types — Tier 2 |
|
|
76
|
+
| **instinct-review** | `/instinct-review` | low | Review, curate, and manage learned instincts from past sessions |
|
|
77
|
+
| **teams** | `/teams` | max | Launch pre-configured Agent Teams compositions for common workflows |
|
|
78
|
+
| **write-a-prd** | `/write-a-prd` | high | Create PRD through interactive interview, codebase exploration, and module design |
|
|
79
|
+
| **prd-to-plan** | `/prd-to-plan` | high | Convert PRD into phased implementation plan using tracer-bullet vertical slices |
|
|
80
|
+
| **tdd** | `/tdd` | high | Test-driven development with red-green-refactor loop and vertical slices |
|
|
81
|
+
| **design-an-interface** | `/design-an-interface` | high | Generate 3+ radically different interface designs using parallel sub-agents |
|
|
82
|
+
| **grill-me** | `/grill-me` | medium | Stress-test a plan through relentless Socratic questioning |
|
|
83
|
+
| **ubiquitous-language** | `/ubiquitous-language` | medium | Extract DDD-style ubiquitous language glossary from conversation |
|
|
84
|
+
| **refactor-plan** | `/refactor-plan` | high | Create detailed refactor plan with tiny commits via user interview |
|
|
85
|
+
| **qa-session** | `/qa-session` | high | Interactive QA session — report bugs conversationally, file GitHub issues |
|
|
86
|
+
| **triage-issue** | `/triage-issue` | high | Triage bug with deep codebase exploration and TDD fix plan |
|
|
87
|
+
| **architecture-audit** | `/architecture-audit` | high | Discover shallow modules and propose module-deepening refactors |
|
|
88
|
+
| **subagent-development** | `/subagent-development` | high | Execute plans with 2-stage review (spec + quality) per task |
|
|
89
|
+
| **repeat** | `/repeat` | medium | Autonomous loop with safety controls (Ralph Wiggum pattern) |
|
|
90
|
+
| **mem-search** | `/mem-search` | medium | Search past coding sessions via natural language (memory-pack) |
|
|
91
|
+
|
|
92
|
+
### `/workflow` types
|
|
93
|
+
|
|
94
|
+
| Type | Agents | Use case |
|
|
95
|
+
|------|--------|----------|
|
|
96
|
+
| `feature-development` | 8 | Full stack feature: plan → backend + frontend + DB + tests + security + docs |
|
|
97
|
+
| `backend-feature` | 5 | Backend only: API + logic + DB + tests + security |
|
|
98
|
+
| `frontend-feature` | 4 | UI: component + state + tests + docs |
|
|
99
|
+
| `api-design` | 7 | API contract → implement → test → benchmark → document |
|
|
100
|
+
| `database-evolution` | 7 | Schema change + migration + ORM update + tests + perf + security |
|
|
101
|
+
| `test-coverage` | 4 | Boost coverage: map gaps → unit tests + fixtures → review |
|
|
102
|
+
| `security-audit` | 7 | Multi-vector: OWASP + code + infra + DB → prioritize → report |
|
|
103
|
+
| `codebase-onboarding` | 6 | Read-only: structure + architecture + DB + tests + security → guide |
|
|
104
|
+
| `spike` | 7 | Research → feasibility → security + perf → architecture note |
|
|
105
|
+
| `debugging` | 5 | Diagnose → fix → test → document |
|
|
106
|
+
| `incident-response` | 3 | Triage → fix → postmortem |
|
|
107
|
+
| `performance-optimization` | 4 | Profile → optimize → benchmark → document |
|
|
108
|
+
| `infrastructure-change` | 5 | Design + implement + security + tests + runbook |
|
|
109
|
+
| `application-deploy` | 3 | Deploy → smoke test → release notes |
|
|
110
|
+
| `proactive-troubleshooting` | 4 | Investigate → check perf → preventive fix → docs |
|
|
111
|
+
|
|
112
|
+
## Knowledge Skills - Development (9)
|
|
113
|
+
|
|
114
|
+
| Skill | Directory | Domain |
|
|
115
|
+
|-------|-----------|--------|
|
|
116
|
+
| **app-builder** | `skills/app-builder/` | Full-stack application architecture |
|
|
117
|
+
| **api-patterns** | `skills/api-patterns/` | REST/GraphQL design, versioning, error handling |
|
|
118
|
+
| **database-patterns** | `skills/database-patterns/` | Schema design, indexing, query optimization |
|
|
119
|
+
| **flutter-patterns** | `skills/flutter-patterns/` | Flutter/Dart architecture, state management |
|
|
120
|
+
| **ecommerce-patterns** | `skills/ecommerce-patterns/` | E-commerce: catalog, cart, checkout, payments |
|
|
121
|
+
| **clean-code** | `skills/clean-code/` | Multi-language code quality: Python, TS, PHP, Go, Dart |
|
|
122
|
+
| **typescript-patterns** | `skills/typescript-patterns/` | TypeScript/JavaScript patterns for frontend and backend |
|
|
123
|
+
| **design-engineering** | `skills/design-engineering/` | UI polish, animation craft, easing, transforms, accessibility |
|
|
124
|
+
| **documentation-standards** | `skills/documentation-standards/` | KB document conventions, frontmatter validation, category taxonomy |
|
|
125
|
+
|
|
126
|
+
## Knowledge Skills - Infrastructure (6)
|
|
127
|
+
|
|
128
|
+
| Skill | Directory | Domain |
|
|
129
|
+
|-------|-----------|--------|
|
|
130
|
+
| **docker-devops** | `skills/docker-devops/` | Docker, deployment, infrastructure |
|
|
131
|
+
| **security-patterns** | `skills/security-patterns/` | OWASP, auth, encryption, vulnerability prevention |
|
|
132
|
+
| **ci-cd-patterns** | `skills/ci-cd-patterns/` | GitHub Actions, GitLab CI, Docker builds, Kubernetes |
|
|
133
|
+
| **observability-patterns** | `skills/observability-patterns/` | Logging, metrics, tracing, monitoring, SLOs |
|
|
134
|
+
| **testing-patterns** | `skills/testing-patterns/` | Multi-language TDD: pytest, vitest, phpunit, go test, flutter |
|
|
135
|
+
| **migration-patterns** | `skills/migration-patterns/` | Database migrations, API versioning, zero-downtime |
|
|
136
|
+
|
|
137
|
+
## Knowledge Skills - AI/RAG (2)
|
|
138
|
+
|
|
139
|
+
| Skill | Directory | Domain |
|
|
140
|
+
|-------|-----------|--------|
|
|
141
|
+
| **rag-patterns** | `skills/rag-patterns/` | RAG pipelines, chunking, reranking, evaluation |
|
|
142
|
+
| **mcp-patterns** | `skills/mcp-patterns/` | MCP protocol, server/client design, tools |
|
|
143
|
+
|
|
144
|
+
## Knowledge Skills - Process (7)
|
|
145
|
+
|
|
146
|
+
| Skill | Directory | Domain |
|
|
147
|
+
|-------|-----------|--------|
|
|
148
|
+
| **plan-writing** | `skills/plan-writing/` | Implementation plans, success criteria, pre-mortem |
|
|
149
|
+
| **debugging-tactics** | `skills/debugging-tactics/` | Iron Law 4-phase debugging: root cause → pattern → hypothesis → fix |
|
|
150
|
+
| **git-mastery** | `skills/git-mastery/` | Git workflows, branching, conflict resolution |
|
|
151
|
+
| **architecture-decision** | `skills/architecture-decision/` | Architecture notes, trade-off analysis, alternatives |
|
|
152
|
+
| **performance-profiling** | `skills/performance-profiling/` | Profiling, bottleneck analysis, optimization |
|
|
153
|
+
| **research-mastery** | `skills/research-mastery/` | Multi-source research, synthesis, fact-checking |
|
|
154
|
+
| **verification-before-completion** | `skills/verification-before-completion/` | Iron Law: evidence-before-claims, no completion without fresh verification |
|
|
155
|
+
|
|
156
|
+
## Knowledge Skills - Orchestration (1)
|
|
157
|
+
|
|
158
|
+
| Skill | Directory | Domain |
|
|
159
|
+
|-------|-----------|--------|
|
|
160
|
+
| **hive-mind** | `skills/hive-mind/` | Multi-agent aggregation, consensus, swarm patterns |
|
|
161
|
+
|
|
162
|
+
## Advanced Features
|
|
163
|
+
|
|
164
|
+
### Effort Levels
|
|
165
|
+
- **low**: Mechanical operations (lint, build, fix, panic, index)
|
|
166
|
+
- **medium**: Standard operations (most skills)
|
|
167
|
+
- **high**: Complex reasoning (review, plan, refactor, docs, skill-creator)
|
|
168
|
+
- **max**: Multi-agent orchestration (orchestrate, swarm, workflow)
|
|
169
|
+
|
|
170
|
+
### Skill-Scoped Hooks
|
|
171
|
+
5 skills have lifecycle hooks:
|
|
172
|
+
- **commit**: PreToolUse — lint reminder before committing
|
|
173
|
+
- **test**: PostToolUse — coverage threshold reminder
|
|
174
|
+
- **deploy**: PostToolUse — health check reminder
|
|
175
|
+
- **migrate**: PreToolUse — backup reminder before migrations
|
|
176
|
+
- **rollback**: PostToolUse — verification reminder after rollback
|
|
177
|
+
|
|
178
|
+
### Skill Frontmatter Conventions
|
|
179
|
+
- `agent: <name>` — delegates to a specialized agent persona
|
|
180
|
+
- `context: fork` — runs skill in isolated forked context
|
|
181
|
+
- `allowed-tools: ...` — tools available to the agent when processing this skill
|
|
182
|
+
- `depends-on: skill-a, skill-b` — declares dependencies on other skills (validated by `validate.py`)
|
|
183
|
+
|
|
184
|
+
### Skill Dependencies (`depends-on`)
|
|
185
|
+
Skills can declare dependencies on other skills (primarily knowledge skills) for documentation and validation:
|
|
186
|
+
```yaml
|
|
187
|
+
depends-on: clean-code, api-patterns
|
|
188
|
+
```
|
|
189
|
+
- CSV list of skill directory names
|
|
190
|
+
- Validated by `validate.py` — each dep must exist as `app/skills/{dep}/SKILL.md`
|
|
191
|
+
- Reported in `evaluate_skills.py` quality metrics
|
|
192
|
+
- No runtime autoloading — Claude loads knowledge skills contextually based on topic matching
|
|
193
|
+
|
|
194
|
+
### Executable Scripts (18 total, stdlib-only, JSON output)
|
|
195
|
+
|
|
196
|
+
| Skill | Script | Purpose |
|
|
197
|
+
|-------|--------|---------|
|
|
198
|
+
| **commit** | `scripts/pre-commit-check.py` | Staged files, secrets detection |
|
|
199
|
+
| **test** | `scripts/detect-runner.py` | Auto-detect test framework |
|
|
200
|
+
| **lint** | `scripts/detect-linters.py` | Detect available linters |
|
|
201
|
+
| **build** | `scripts/detect-build.py` | Detect build system |
|
|
202
|
+
| **deploy** | `scripts/pre_deploy_check.py` | Pre-deployment readiness |
|
|
203
|
+
| **rollback** | `scripts/rollback_info.py` | Rollback context |
|
|
204
|
+
| **migrate** | `scripts/migration-status.py` | Detect migration tool, status |
|
|
205
|
+
| **ci** | `scripts/ci-detect.py` | Detect CI platform |
|
|
206
|
+
| **fix** | `scripts/error-classifier.py` | Classify lint/test errors |
|
|
207
|
+
| **pr** | `scripts/pr-summary.py` | Generate PR title/description |
|
|
208
|
+
| **review** | `scripts/diff-analyzer.py` | Parse git diff, categorize files |
|
|
209
|
+
| **debug** | `scripts/error-parser.py` | Parse stack traces |
|
|
210
|
+
| **explore** | `scripts/visualize.py` | Interactive HTML codebase tree |
|
|
211
|
+
| **explain** | `scripts/dependency-graph.py` | Import graph → Mermaid |
|
|
212
|
+
| **docs** | `scripts/doc-inventory.py` | Inventory docs, measure coverage |
|
|
213
|
+
| **refactor** | `scripts/refactor-scan.py` | Detect code smells |
|
|
214
|
+
| **health** | `scripts/health_check.py` | JSON health report |
|
|
215
|
+
| **analyze** | `scripts/complexity.py` | Code complexity metrics |
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Skills Unification Model"
|
|
3
|
+
category: reference
|
|
4
|
+
service: ai-toolkit
|
|
5
|
+
tags: [skills, commands, architecture, classification]
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
created: "2026-03-25"
|
|
8
|
+
last_updated: "2026-03-28"
|
|
9
|
+
description: "Reference explanation of why ai-toolkit standardizes on the Agent Skills format for slash-command behavior."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Skills Unification Model
|
|
13
|
+
|
|
14
|
+
## Summary
|
|
15
|
+
|
|
16
|
+
`ai-toolkit` standardizes on the Agent Skills directory format for all reusable slash-command behavior.
|
|
17
|
+
|
|
18
|
+
The toolkit no longer treats commands and skills as separate implementation models. Instead, it uses one consistent format:
|
|
19
|
+
|
|
20
|
+
- task skills,
|
|
21
|
+
- hybrid skills,
|
|
22
|
+
- knowledge skills.
|
|
23
|
+
|
|
24
|
+
## Why this model is used
|
|
25
|
+
|
|
26
|
+
The Agent Skills format supports capabilities that plain command markdown files do not:
|
|
27
|
+
- richer frontmatter,
|
|
28
|
+
- progressive disclosure,
|
|
29
|
+
- bundled scripts,
|
|
30
|
+
- templates and reference files,
|
|
31
|
+
- cross-tool compatibility.
|
|
32
|
+
|
|
33
|
+
## Classification
|
|
34
|
+
|
|
35
|
+
| Type | Frontmatter signal | Purpose |
|
|
36
|
+
|------|--------------------|---------|
|
|
37
|
+
| Task skill | `disable-model-invocation: true` | explicit user-triggered actions |
|
|
38
|
+
| Hybrid skill | default invocation | user-invocable + agent-usable workflows |
|
|
39
|
+
| Knowledge skill | `user-invocable: false` | auto-loaded patterns and conventions |
|
|
40
|
+
|
|
41
|
+
## Consequences
|
|
42
|
+
|
|
43
|
+
### Positive
|
|
44
|
+
- one mental model for reusable behavior,
|
|
45
|
+
- easier validation,
|
|
46
|
+
- simpler install logic,
|
|
47
|
+
- better alignment with Claude Code ecosystem conventions.
|
|
48
|
+
|
|
49
|
+
### Trade-offs
|
|
50
|
+
- more directories than a flat commands model,
|
|
51
|
+
- stronger need for naming and frontmatter conventions,
|
|
52
|
+
- documentation and generators must stay synchronized with counts.
|
|
53
|
+
|
|
54
|
+
## Related Documents
|
|
55
|
+
|
|
56
|
+
- `kb/reference/skills-catalog.md`
|
|
57
|
+
- `kb/reference/architecture-overview.md`
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "AI Toolkit - Usage Statistics"
|
|
3
|
+
category: reference
|
|
4
|
+
service: ai-toolkit
|
|
5
|
+
tags: [stats, usage, tracking, analytics]
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
created: "2026-03-29"
|
|
8
|
+
last_updated: "2026-03-29"
|
|
9
|
+
description: "Local usage tracking for skill invocations. CLI command, JSON format, hook mechanism."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Usage Statistics
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
`ai-toolkit stats` tracks how often each skill is invoked via slash commands. All data is local — stored in `~/.ai-toolkit/stats.json`. No telemetry, no network calls.
|
|
17
|
+
|
|
18
|
+
## CLI Commands
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
ai-toolkit stats # Show usage table (sorted by count)
|
|
22
|
+
ai-toolkit stats --reset # Clear all stats
|
|
23
|
+
ai-toolkit stats --json # Output raw JSON
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## How It Works
|
|
27
|
+
|
|
28
|
+
A `UserPromptSubmit` hook (`track-usage.sh`) fires on every prompt. When the prompt starts with `/skill-name`, it increments the counter in `stats.json`.
|
|
29
|
+
|
|
30
|
+
### Hook Details
|
|
31
|
+
- **Event**: `UserPromptSubmit`
|
|
32
|
+
- **Script**: `~/.ai-toolkit/hooks/track-usage.sh`
|
|
33
|
+
- **Detection**: `grep -oE '^/[a-z][a-z0-9-]*'`
|
|
34
|
+
- **Storage**: Atomic write via python3 `os.replace()`
|
|
35
|
+
- **Overhead**: ~50ms (python3 startup + JSON read/write)
|
|
36
|
+
|
|
37
|
+
## JSON Format
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"commit": {
|
|
42
|
+
"count": 42,
|
|
43
|
+
"last_used": "2026-03-29 14:30:00"
|
|
44
|
+
},
|
|
45
|
+
"review": {
|
|
46
|
+
"count": 15,
|
|
47
|
+
"last_used": "2026-03-28 09:12:00"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Output Example
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
AI Toolkit Usage Stats
|
|
56
|
+
========================
|
|
57
|
+
|
|
58
|
+
Skill Count Last Used
|
|
59
|
+
------------------------------------------------------------
|
|
60
|
+
commit 42 2026-03-29 14:30:00
|
|
61
|
+
review 15 2026-03-28 09:12:00
|
|
62
|
+
debug 8 2026-03-27 16:45:00
|
|
63
|
+
|
|
64
|
+
Total invocations: 65
|
|
65
|
+
Unique skills: 3
|
|
66
|
+
|
|
67
|
+
File: ~/.ai-toolkit/stats.json
|
|
68
|
+
Reset: ai-toolkit stats --reset
|
|
69
|
+
```
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "AI Toolkit - Config Sync"
|
|
3
|
+
category: reference
|
|
4
|
+
service: ai-toolkit
|
|
5
|
+
tags: [sync, gist, portability, config, backup]
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
created: "2026-03-29"
|
|
8
|
+
last_updated: "2026-03-29"
|
|
9
|
+
description: "Sync ai-toolkit config to/from GitHub Gist for cross-machine portability."
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Config Sync
|
|
13
|
+
|
|
14
|
+
## Overview
|
|
15
|
+
|
|
16
|
+
`ai-toolkit sync` exports and imports your toolkit configuration (rules, stats) via GitHub Gist or local files. Zero infrastructure — uses `gh` CLI for Gist operations.
|
|
17
|
+
|
|
18
|
+
## Commands
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
ai-toolkit sync --export # JSON snapshot to stdout
|
|
22
|
+
ai-toolkit sync --push # Create/update secret Gist
|
|
23
|
+
ai-toolkit sync --pull [gist-id] # Pull from Gist and apply
|
|
24
|
+
ai-toolkit sync --import <file|url> # Import from file or URL
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## What Gets Synced
|
|
28
|
+
|
|
29
|
+
| Data | Included | Source |
|
|
30
|
+
|------|----------|--------|
|
|
31
|
+
| Custom rules | Yes | `~/.ai-toolkit/rules/*.md` |
|
|
32
|
+
| Usage stats | Yes | `~/.ai-toolkit/stats.json` |
|
|
33
|
+
| Toolkit version | Yes (metadata) | `package.json` |
|
|
34
|
+
| Agents/skills | No | Installed via `npm` |
|
|
35
|
+
| Hooks | No | Installed via `ai-toolkit install` |
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
|
|
39
|
+
### First machine (export)
|
|
40
|
+
```bash
|
|
41
|
+
ai-toolkit sync --push
|
|
42
|
+
# Creates secret Gist, saves ID to ~/.ai-toolkit/.gist-id
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Second machine (import)
|
|
46
|
+
```bash
|
|
47
|
+
ai-toolkit sync --pull abc123def456 # Use gist ID from first push
|
|
48
|
+
# Subsequent pulls: ai-toolkit sync --pull (uses saved ID)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Requirements
|
|
52
|
+
|
|
53
|
+
- `--export` / `--import`: No external dependencies
|
|
54
|
+
- `--push` / `--pull`: Requires [gh CLI](https://cli.github.com) + `gh auth login`
|
|
55
|
+
|
|
56
|
+
## JSON Schema
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"schema_version": 1,
|
|
61
|
+
"exported_at": "2026-03-29T14:00:00+00:00",
|
|
62
|
+
"toolkit_version": "1.0.0",
|
|
63
|
+
"rules": {
|
|
64
|
+
"rule-name": "# Rule content..."
|
|
65
|
+
},
|
|
66
|
+
"stats": {
|
|
67
|
+
"commit": { "count": 42, "last_used": "..." }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Security
|
|
73
|
+
|
|
74
|
+
- Gists are created as **secret** (not discoverable, but accessible via URL)
|
|
75
|
+
- Rules may contain project-specific instructions — review before sharing
|
|
76
|
+
- No credentials or tokens are stored in the snapshot
|