@dtlabs/ai-toolkit 0.1.2

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.
Files changed (51) hide show
  1. package/.claude/agents/assessment-manager.md +218 -0
  2. package/.claude/agents/concurrency-safety-assessment.md +190 -0
  3. package/.claude/agents/define-feature.md +265 -0
  4. package/.claude/agents/dependency-injection-refactoring.md +237 -0
  5. package/.claude/agents/dependency-supply-chain-security.md +262 -0
  6. package/.claude/agents/developer-backend.md +105 -0
  7. package/.claude/agents/developer-frontend.md +111 -0
  8. package/.claude/agents/developer-testing.md +121 -0
  9. package/.claude/agents/domain-model-refactoring.md +208 -0
  10. package/.claude/agents/generate-requirements.md +168 -0
  11. package/.claude/agents/generate-tech-spec.md +259 -0
  12. package/.claude/agents/generate-work-breakdown.md +284 -0
  13. package/.claude/agents/generic-software-assessment.md +165 -0
  14. package/.claude/agents/god-class-decomposition.md +198 -0
  15. package/.claude/agents/init-agents-md.md +322 -0
  16. package/.claude/agents/install-toolkit.md +196 -0
  17. package/.claude/agents/intervention-documentation-standard.md +131 -0
  18. package/.claude/agents/layered-architecture-assessment.md +205 -0
  19. package/.claude/agents/project-manager.md +309 -0
  20. package/.claude/agents/review-solution.md +138 -0
  21. package/.claude/agents/security-hardening.md +240 -0
  22. package/.claude/agents/validate-feature-docs.md +171 -0
  23. package/.claude/commands/assessment-status.md +116 -0
  24. package/.claude/commands/check-docs.md +18 -0
  25. package/.claude/commands/feature-status.md +20 -0
  26. package/.claude/commands/next-task.md +37 -0
  27. package/.claude/commands/pr-description.md +34 -0
  28. package/.claude/skills/assess-codebase/SKILL.md +16 -0
  29. package/.claude/skills/define-feature/SKILL.md +13 -0
  30. package/.claude/skills/hi-gaia/SKILL.md +261 -0
  31. package/.claude/skills/implement-feature/SKILL.md +69 -0
  32. package/.claude/skills/init-agents/SKILL.md +14 -0
  33. package/.claude/skills/install-toolkit/SKILL.md +14 -0
  34. package/CLAUDE.md +135 -0
  35. package/README.md +77 -0
  36. package/bin/cli.js +350 -0
  37. package/docs/installation.md +80 -0
  38. package/docs/pricing.md +99 -0
  39. package/docs/procedures/approval-gates.md +142 -0
  40. package/docs/procedures/assessment-approval-gate.md +60 -0
  41. package/docs/procedures/code-generation.md +48 -0
  42. package/docs/procedures/code-review.md +63 -0
  43. package/docs/procedures/effort-estimation.md +86 -0
  44. package/docs/procedures/feature-registry.md +50 -0
  45. package/docs/procedures/issues-register.md +24 -0
  46. package/docs/procedures/process-log.md +28 -0
  47. package/docs/procedures/secure-coding.md +50 -0
  48. package/docs/procedures/testing.md +63 -0
  49. package/docs/procedures/token-estimation.md +123 -0
  50. package/docs/reference.md +228 -0
  51. package/package.json +23 -0
@@ -0,0 +1,228 @@
1
+ # AI Toolkit — Quick Reference
2
+
3
+ Cheatsheet of every skill, command, agent, and procedure shipped with this toolkit. For the full integration guide see [`CLAUDE.md`](../CLAUDE.md). For installation see [`installation.md`](installation.md).
4
+
5
+ ---
6
+
7
+ ## When do I use what?
8
+
9
+ ### Feature Delivery
10
+
11
+ | You want to… | Use |
12
+ |---|---|
13
+ | Start a new feature from scratch | Skill `/define-feature` (produces `feature.md`) |
14
+ | Run the full delivery pipeline end-to-end | Skill `/implement-feature` |
15
+ | Onboard a new project to the toolkit | Skill `/init-agents` |
16
+ | Copy the toolkit into another folder | Skill `/install-toolkit` |
17
+ | See what's left on a feature | Command `/feature-status <slug>` |
18
+ | Verify docs are consistent | Command `/check-docs <slug>` |
19
+ | Draft a PR description | Command `/pr-description` |
20
+ | Pick the next task to tackle | Command `/next-task [slug]` |
21
+ | Implement a single backend task | Agent `developer-backend` |
22
+ | Implement a single frontend task | Agent `developer-frontend` |
23
+ | Write tests for a task | Agent `developer-testing` |
24
+ | Get an architect-level code review | Agent `review-solution` |
25
+
26
+ ### Assessment & Remediation
27
+
28
+ | You want to… | Use |
29
+ |---|---|
30
+ | Audit an existing codebase for quality issues | Skill `/assess-codebase` |
31
+ | Run only specific assessment dimensions | Skill `/assess-codebase --scope=security,architecture` |
32
+ | Check the state of an ongoing assessment | Command `/assessment-status <prefix>` |
33
+ | Decompose a God Class or God Method | Agent `god-class-decomposition` |
34
+ | Convert static coupling to DI | Agent `dependency-injection-refactoring` |
35
+ | Audit layer boundary violations | Agent `layered-architecture-assessment` |
36
+ | Harden security at system boundaries | Agent `security-hardening` |
37
+ | Audit dependency supply chain | Agent `dependency-supply-chain-security` |
38
+ | Check for race conditions and shared state | Agent `concurrency-safety-assessment` |
39
+ | Refactor a monolithic domain model | Agent `domain-model-refactoring` |
40
+ | Generate intervention documents from findings | Agent `intervention-documentation-standard` |
41
+
42
+ ---
43
+
44
+ ## Skills (in `.claude/skills/`)
45
+
46
+ Invoked as `/<name>`. Comprehensive workflows that may chain multiple agents.
47
+
48
+ ### Feature Delivery
49
+
50
+ | Skill | Purpose | Typical usage |
51
+ |---|---|---|
52
+ | `/define-feature` | Interviews you to produce `feature.md` | `/define-feature` then answer the prompts |
53
+ | `/init-agents` | Analyzes the codebase and generates `AGENTS.md` (the conventions file the toolkit depends on) | Run once per new project |
54
+ | `/install-toolkit` | Copies agents/skills/commands/procedures into a destination project | `/install-toolkit /path/to/dest [--force]` |
55
+ | `/implement-feature` | Full pipeline: requirements → tech-spec → approval → work breakdown → implementation → review → PR | `/implement-feature docs/features/FTR-001-foo/feature.md` |
56
+
57
+ ### Assessment & Remediation
58
+
59
+ | Skill | Purpose | Typical usage |
60
+ |---|---|---|
61
+ | `/assess-codebase` | Full pipeline: parallel assessment → intervention docs → approval gate → remediation → review → PR | `/assess-codebase [path] [--scope=security,architecture] [--force]` |
62
+
63
+ ### General
64
+
65
+ | Skill | Purpose | Typical usage |
66
+ |---|---|---|
67
+ | `/hi-gaia [topic]` | **Gaia** — your toolkit assistant. Explains pipelines, agents, commands; helps you find the right tool for your situation | `/hi-gaia`, `/hi-gaia assess`, `/hi-gaia setup`, `/hi-gaia feature` |
68
+
69
+ ---
70
+
71
+ ## Commands (in `.claude/commands/`)
72
+
73
+ Invoked as `/<name>`. Lightweight shortcuts focused on the current state of the repo. Do **not** spawn long-running workflows.
74
+
75
+ ### Feature Delivery
76
+
77
+ | Command | Purpose | Args |
78
+ |---|---|---|
79
+ | `/feature-status` | ✅/⚠️/❌ status table for all feature artifacts + next steps | `<feature-slug>` |
80
+ | `/check-docs` | Inconsistencies between `feature.md`, `requirements.md`, `tech-spec.md` — gaps only | `<feature-slug>` |
81
+ | `/pr-description` | Generates PR description from branch + commits + linked feature.md | (none) |
82
+ | `/next-task` | Next unblocked task from the work breakdown + suggested agent | `[feature-slug]` (optional) |
83
+
84
+ ### Assessment & Remediation
85
+
86
+ | Command | Purpose | Args |
87
+ |---|---|---|
88
+ | `/assessment-status` | ✅/⚠️/❌ status table for all assessment artifacts (assessments, interventions, approvals, issues) + next steps | `<assessment-prefix>` |
89
+
90
+ ---
91
+
92
+ ## Agents (in `.claude/agents/`)
93
+
94
+ Invoked via the Agent tool with `subagent_type`. Specialised sub-conversations that produce a single deliverable.
95
+
96
+ ### Bootstrap
97
+
98
+ | `subagent_type` | What it produces |
99
+ |---|---|
100
+ | `install-toolkit` | Toolkit files copied into a destination |
101
+ | `init-agents-md` | `AGENTS.md` for a new project |
102
+
103
+ ### Feature pipeline
104
+
105
+ | `subagent_type` | Input | Output |
106
+ |---|---|---|
107
+ | `define-feature` | User answers | `feature.md` |
108
+ | `generate-requirements` | `feature.md` | `requirements.md` |
109
+ | `generate-tech-spec` | `feature.md` + `requirements.md` | `tech-spec.md` |
110
+ | `validate-feature-docs` | All three above | Validation report + targeted revisions |
111
+ | `generate-work-breakdown` | Approved docs | `work-breakdown.md` (user stories + tasks) |
112
+ | `project-manager` | `feature.md` path | Orchestrates the whole pipeline |
113
+
114
+ ### Implementation
115
+
116
+ | `subagent_type` | Domain | Notes |
117
+ |---|---|---|
118
+ | `developer-backend` | DB, BE, INFRA tasks | Reads `AGENTS.md` for tech stack |
119
+ | `developer-frontend` | FE tasks | Reads `AGENTS.md` for design system |
120
+ | `developer-testing` | TEST tasks | Unit + integration tests |
121
+
122
+ ### Review
123
+
124
+ | `subagent_type` | Scope |
125
+ |---|---|
126
+ | `review-solution` | Full review across quality, reuse, architecture, security — reports findings, does NOT auto-fix |
127
+
128
+ ### Assessment pipeline
129
+
130
+ | `subagent_type` | Input | Output |
131
+ |---|---|---|
132
+ | `assessment-manager` | codebase path | Orchestrates the full assessment + remediation pipeline |
133
+ | `generic-software-assessment` | codebase path + prefix | `{PREFIX}-Generic-Assessment.md` |
134
+ | `layered-architecture-assessment` | codebase path + prefix | `{PREFIX}-Layer-Assessment.md` |
135
+ | `concurrency-safety-assessment` | codebase path + prefix | `{PREFIX}-Concurrency-Assessment.md` |
136
+ | `intervention-documentation-standard` | assessment files + prefix | `{PREFIX}-INT-NNN-*.md` + `Interventions-Index.md` |
137
+
138
+ ### Remediation
139
+
140
+ | `subagent_type` | What it fixes | Reads |
141
+ |---|---|---|
142
+ | `god-class-decomposition` | Oversized classes and methods | Intervention doc + `AGENTS.md` |
143
+ | `domain-model-refactoring` | Monolithic model files, missing type hierarchies | Intervention doc + `AGENTS.md` |
144
+ | `dependency-injection-refactoring` | Static/direct coupling converted to DI | Intervention doc + `AGENTS.md` |
145
+ | `security-hardening` | Input validation, SQL injection, secrets, log sanitisation, TLS | Intervention doc + `AGENTS.md` |
146
+ | `dependency-supply-chain-security` | Lock files, integrity verification, unused deps, SCA in CI | Intervention doc + `AGENTS.md` |
147
+
148
+ ---
149
+
150
+ ## Procedures (in `docs/procedures/`)
151
+
152
+ Reusable text procedures referenced by agents. **Override locally** by placing a file with the same name in your project's `docs/procedures/` — agents check the project first, then fall back to the toolkit.
153
+
154
+ | File | Used by |
155
+ |---|---|
156
+ | `code-generation.md` | All `developer-*` agents |
157
+ | `code-review.md` | `review-solution` |
158
+ | `secure-coding.md` | `developer-backend`, `review-solution`, `security-hardening` |
159
+ | `testing.md` | `developer-testing` |
160
+
161
+ ---
162
+
163
+ ## Typical flows
164
+
165
+ ### Flow 1 — Brand new feature, end-to-end
166
+
167
+ ```text
168
+ /define-feature → produces docs/features/FTR-XXX-slug/feature.md
169
+ /implement-feature docs/features/FTR-XXX-slug/feature.md
170
+ ```
171
+
172
+ The pipeline pauses for human approval after requirements + tech-spec.
173
+
174
+ ### Flow 2 — Pick up an in-progress feature
175
+
176
+ ```text
177
+ /feature-status <slug> → see what's done and what's left
178
+ /next-task <slug> → identify the next task and which agent to use
179
+ ```
180
+
181
+ Then delegate manually to the suggested agent, or rerun `/implement-feature` to continue automatically.
182
+
183
+ ### Flow 3 — Ship a PR
184
+
185
+ ```text
186
+ /check-docs <slug> → no inconsistencies?
187
+ /pr-description → markdown ready to paste
188
+ ```
189
+
190
+ ### Flow 4 — Audit an existing codebase
191
+
192
+ ```text
193
+ /assess-codebase . → runs all assessment agents in parallel
194
+ → produces intervention documents
195
+ → pauses for human approval of remediation scope
196
+ → implements approved interventions
197
+ → opens PR
198
+ ```
199
+
200
+ ### Flow 5 — Targeted assessment (security only)
201
+
202
+ ```text
203
+ /assess-codebase . --scope=security
204
+ → runs only security-related assessment agents
205
+ → same approval gate + remediation pipeline
206
+ ```
207
+
208
+ ### Flow 6 — Resume an interrupted assessment
209
+
210
+ ```text
211
+ /assessment-status ASSESS-001 → see what's done and what's next
212
+ /assess-codebase . --force → restart from scratch
213
+ /assess-codebase . → resume (skips fresh artifacts)
214
+ ```
215
+
216
+ ---
217
+
218
+ ## File locations
219
+
220
+ | What | Local install | Global install |
221
+ |---|---|---|
222
+ | Agents | `<project>/.claude/agents/` | `~/.claude/agents/` |
223
+ | Skills | `<project>/.claude/skills/` | `~/.claude/skills/` |
224
+ | Commands | `<project>/.claude/commands/` | `~/.claude/commands/` |
225
+ | Procedures | `<project>/docs/procedures/` | `~/.claude/docs/procedures/` |
226
+ | Feature docs | `<project>/docs/features/FTR-NNN-slug/` | — |
227
+ | Assessment docs | `<project>/docs/assessments/ASSESS-NNN/` | — |
228
+ | This reference | `<project>/docs/reference.md` | `~/.claude/docs/reference.md` |
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@dtlabs/ai-toolkit",
3
+ "version": "0.1.2",
4
+ "description": "AI Toolkit — reusable agents and procedures for developers to build AI-powered applications.",
5
+ "files": [
6
+ "docs/",
7
+ "CLAUDE.md",
8
+ ".claude",
9
+ "bin"
10
+ ],
11
+ "bin": {
12
+ "ai-toolkit": "bin/cli.js"
13
+ },
14
+ "scripts": {
15
+ "prepublishOnly": "npm pack --dry-run"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/dtlab-tech/ai-toolkit"
20
+ },
21
+ "author": "Denis Tomada",
22
+ "license": "MIT"
23
+ }