agentic-toolbox 0.1.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.
Files changed (56) hide show
  1. package/AGENTS.md +242 -0
  2. package/LICENSE +21 -0
  3. package/README.md +326 -0
  4. package/agents/Agent.md.sample +384 -0
  5. package/agents/agentic-tools-creator.md +143 -0
  6. package/dist/cli.d.ts +12 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +74 -0
  9. package/dist/cli.js.map +1 -0
  10. package/dist/config.d.ts +6 -0
  11. package/dist/config.d.ts.map +1 -0
  12. package/dist/config.js +40 -0
  13. package/dist/config.js.map +1 -0
  14. package/dist/constants.d.ts +6 -0
  15. package/dist/constants.d.ts.map +1 -0
  16. package/dist/constants.js +36 -0
  17. package/dist/constants.js.map +1 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +5 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/sync.d.ts +13 -0
  23. package/dist/sync.d.ts.map +1 -0
  24. package/dist/sync.js +75 -0
  25. package/dist/sync.js.map +1 -0
  26. package/dist/transform.d.ts +2 -0
  27. package/dist/transform.d.ts.map +1 -0
  28. package/dist/transform.js +42 -0
  29. package/dist/transform.js.map +1 -0
  30. package/dist/types.d.ts +25 -0
  31. package/dist/types.d.ts.map +1 -0
  32. package/dist/types.js +2 -0
  33. package/dist/types.js.map +1 -0
  34. package/package.json +55 -0
  35. package/skills/SKILL.md.sample +322 -0
  36. package/skills/agent-creator/SKILL.md +110 -0
  37. package/skills/agent-creator/assets/examples/code-reviewer.md +68 -0
  38. package/skills/agent-creator/assets/examples/docs-writer.md +67 -0
  39. package/skills/agent-creator/assets/examples/read-only-researcher.md +64 -0
  40. package/skills/agent-creator/references/AGENT_TEMPLATE.md +391 -0
  41. package/skills/agent-creator/references/frontmatter.md +544 -0
  42. package/skills/agent-creator/references/prompt.md +449 -0
  43. package/skills/agent-creator/references/validation.md +309 -0
  44. package/skills/agentic-resource-gatherer/SKILL.md +249 -0
  45. package/skills/agentic-resource-gatherer/assets/examples/frontend-developer-agent.md +52 -0
  46. package/skills/agentic-resource-gatherer/assets/examples/git-formatter-skill.md +52 -0
  47. package/skills/agentic-resource-gatherer/references/agent-repos.md +190 -0
  48. package/skills/agentic-resource-gatherer/references/skill-repos.md +225 -0
  49. package/skills/skill-creator/SKILL.md +178 -0
  50. package/skills/skill-creator/assets/examples/background-knowledge-skill.md +25 -0
  51. package/skills/skill-creator/assets/examples/code-generation-skill.md +51 -0
  52. package/skills/skill-creator/assets/examples/simple-git-skill.md +36 -0
  53. package/skills/skill-creator/references/SKILL_TEMPLATE.md +322 -0
  54. package/skills/skill-creator/references/frontmatter.md +441 -0
  55. package/skills/skill-creator/references/prompt.md +384 -0
  56. package/skills/skill-creator/references/validation.md +282 -0
@@ -0,0 +1,544 @@
1
+ # Agent Frontmatter Reference
2
+
3
+ Complete reference for all frontmatter fields available in agent files.
4
+
5
+ ---
6
+
7
+ ## Cross-Platform Fields
8
+
9
+ These fields are supported by both Claude and OpenCode.
10
+
11
+ ### `name` (Required)
12
+
13
+ Agent identifier.
14
+
15
+ | Platform | Constraints |
16
+ |----------|-------------|
17
+ | **Claude** | Required. Lowercase letters and hyphens. |
18
+ | **OpenCode** | Required. Lowercase letters and hyphens. |
19
+
20
+ **Valid examples:**
21
+ ```yaml
22
+ name: code-researcher
23
+ name: docs-writer
24
+ name: senior-dev
25
+ ```
26
+
27
+ **Invalid examples:**
28
+ ```yaml
29
+ name: Code-Researcher # uppercase not allowed
30
+ name: code_researcher # underscore not allowed
31
+ name: -code # cannot start with hyphen
32
+ ```
33
+
34
+ ### `description` (Required)
35
+
36
+ What the agent does and when to call it.
37
+
38
+ | Platform | Constraints |
39
+ |----------|-------------|
40
+ | **Claude** | Free-flowing paragraph |
41
+ | **OpenCode** | Required. Free-flowing paragraph |
42
+
43
+ **Description must include:**
44
+ 1. What this agent does (core capability)
45
+ 2. When to call this agent (trigger conditions)
46
+ 3. What NOT to use it for (exclusions)
47
+ 4. What it returns (for subagents, omit for primary agents)
48
+
49
+ **Good example:**
50
+ ```yaml
51
+ description: >
52
+ Explores codebases and provides detailed analysis of code structure,
53
+ patterns, and relationships. Call this agent when you need to understand
54
+ code architecture, find specific implementations, trace function calls,
55
+ or get summaries of code modules. Do not use for making code changes,
56
+ writing new code, or executing shell commands that modify the filesystem.
57
+ Returns structured analysis with file paths, line numbers, function names,
58
+ and code relationships including dependency graphs and architecture notes.
59
+ ```
60
+
61
+ **Poor examples:**
62
+ ```yaml
63
+ description: Analyzes code # Missing context
64
+ description: Helps with code stuff # Too vague
65
+ ```
66
+
67
+ ### `model` (Required)
68
+
69
+ Model to use for this agent.
70
+
71
+ | Platform | Values |
72
+ |----------|--------|
73
+ | **Claude** | `inherit`, `sonnet`, `opus`, `haiku`, `fable`, or full model ID |
74
+ | **OpenCode** | `inherit` or `provider/model-id` (e.g., `anthropic/claude-sonnet-4-20250514`) |
75
+
76
+ **Examples:**
77
+ ```yaml
78
+ model: inherit # Keep active model
79
+ model: sonnet # Claude Sonnet
80
+ model: anthropic/claude-sonnet-4-20250514 # OpenCode format
81
+ ```
82
+
83
+ ### `color` (Optional)
84
+
85
+ Display color for the agent.
86
+
87
+ | Platform | Values |
88
+ |----------|--------|
89
+ | **Claude** | `red`, `blue`, `green`, `yellow`, `purple`, `orange`, `pink`, `cyan` |
90
+ | **OpenCode** | Hex (`#FF5733`), `primary`, `secondary`, `accent`, `success`, `warning`, `error`, `info` |
91
+
92
+ **Examples:**
93
+ ```yaml
94
+ color: primary # OpenCode
95
+ color: blue # Claude
96
+ color: "#4CAF50" # OpenCode hex
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Claude-Specific Fields
102
+
103
+ These fields are only supported by Claude and will be ignored by OpenCode.
104
+
105
+ ### `tools`
106
+
107
+ Comma-separated tool allowlist.
108
+
109
+ | Constraint |
110
+ |------------|
111
+ | Optional. Comma-separated list of tool names. |
112
+
113
+ **Available tools:**
114
+ `Read`, `Write`, `Edit`, `Glob`, `Grep`, `Bash`, `PowerShell`, `WebFetch`, `WebSearch`, `TodoWrite`, `NotebookEdit`, `Agent`, `Skill`
115
+
116
+ **Example:**
117
+ ```yaml
118
+ tools: Read, Glob, Grep, Bash
119
+ ```
120
+
121
+ **⚠️ Cross-Platform Note**: Include this field only when targeting Claude. OpenCode does not support `tools` and will error if present.
122
+
123
+ ### `disallowedTools`
124
+
125
+ Comma-separated tool denylist.
126
+
127
+ | Constraint |
128
+ |------------|
129
+ | Optional. Applied before tools field. Supports MCP patterns. |
130
+
131
+ **Example:**
132
+ ```yaml
133
+ disallowedTools: Write, Edit
134
+ disallowedTools: mcp__server, mcp__server__*, mcp__*
135
+ ```
136
+
137
+ ### `permissionMode`
138
+
139
+ Permission handling mode.
140
+
141
+ | Constraint |
142
+ |------------|
143
+ | Optional. Default: `default`. |
144
+
145
+ **Values:**
146
+ - `default` - Standard permission handling
147
+ - `acceptEdits` - Auto-accept file edits
148
+ - `auto` - Auto-accept all actions
149
+ - `dontAsk` - Never ask for permissions
150
+ - `bypassPermissions` - Skip all permission checks
151
+ - `plan` - Planning mode only
152
+
153
+ **Example:**
154
+ ```yaml
155
+ permissionMode: plan
156
+ ```
157
+
158
+ ### `maxTurns`
159
+
160
+ Maximum agentic turns before stopping.
161
+
162
+ | Constraint |
163
+ |------------|
164
+ | Optional. Integer. |
165
+
166
+ **Example:**
167
+ ```yaml
168
+ maxTurns: 20
169
+ ```
170
+
171
+ ### `skills`
172
+
173
+ Skills to preload into context at startup.
174
+
175
+ | Constraint |
176
+ |------------|
177
+ | Optional. Array of skill names. |
178
+
179
+ **Example:**
180
+ ```yaml
181
+ skills:
182
+ - research-patterns
183
+ - web-scraping
184
+ ```
185
+
186
+ ### `mcpServers`
187
+
188
+ MCP servers available to this agent.
189
+
190
+ | Constraint |
191
+ |------------|
192
+ | Optional. Array of server configs or references. |
193
+
194
+ **Example:**
195
+ ```yaml
196
+ mcpServers:
197
+ - github
198
+ - server-name:
199
+ type: stdio
200
+ command: npx
201
+ args: ["-y", "@server/mcp"]
202
+ ```
203
+
204
+ ### `hooks`
205
+
206
+ Lifecycle hooks scoped to this agent.
207
+
208
+ | Constraint |
209
+ |------------|
210
+ | Optional. YAML object. |
211
+
212
+ **Example:**
213
+ ```yaml
214
+ hooks:
215
+ PreToolUse:
216
+ - matcher: "Bash"
217
+ hooks:
218
+ - type: command
219
+ command: "echo 'Executing bash command'"
220
+ ```
221
+
222
+ ### `memory`
223
+
224
+ Persistent memory scope for cross-session learning.
225
+
226
+ | Constraint |
227
+ |------------|
228
+ | Optional. |
229
+
230
+ **Values:**
231
+ - `user` - `~/.claude/agent-memory/<name>/`
232
+ - `project` - `.claude/agent-memory/<name>/`
233
+ - `local` - `.claude/agent-memory-local/<name>/`
234
+
235
+ **Example:**
236
+ ```yaml
237
+ memory: project
238
+ ```
239
+
240
+ ### `background`
241
+
242
+ Run as background task.
243
+
244
+ | Constraint |
245
+ |------------|
246
+ | Optional. Boolean. |
247
+
248
+ **Values:**
249
+ - `true` - Always background
250
+ - `false` - Never background
251
+ - unset - Claude decides (default: background)
252
+
253
+ **Example:**
254
+ ```yaml
255
+ background: false
256
+ ```
257
+
258
+ ### `effort`
259
+
260
+ Effort level when agent is active.
261
+
262
+ | Constraint |
263
+ |------------|
264
+ | Optional. |
265
+
266
+ **Values:**
267
+ - `low`
268
+ - `medium`
269
+ - `high`
270
+ - `xhigh`
271
+ - `max`
272
+
273
+ **Example:**
274
+ ```yaml
275
+ effort: high
276
+ ```
277
+
278
+ ### `isolation`
279
+
280
+ Run in temporary git worktree.
281
+
282
+ | Constraint |
283
+ |------------|
284
+ | Optional. |
285
+
286
+ **Values:**
287
+ - `worktree` - Isolated copy of repository
288
+
289
+ **Example:**
290
+ ```yaml
291
+ isolation: worktree
292
+ ```
293
+
294
+ ### `initialPrompt`
295
+
296
+ Auto-submitted as first user turn when agent runs as main session agent.
297
+
298
+ | Constraint |
299
+ |------------|
300
+ | Optional. String. |
301
+
302
+ **Example:**
303
+ ```yaml
304
+ initialPrompt: "Your first task"
305
+ ```
306
+
307
+ ---
308
+
309
+ ## OpenCode-Specific Fields
310
+
311
+ These fields are only supported by OpenCode and will be ignored by Claude.
312
+
313
+ ### `mode`
314
+
315
+ Agent type.
316
+
317
+ | Constraint |
318
+ |------------|
319
+ | Optional. Default: `all`. |
320
+
321
+ **Values:**
322
+ - `primary` - Main assistant, switchable with Tab
323
+ - `subagent` - Invoked by primary agents or @ mention
324
+ - `all` - Can be both
325
+
326
+ **Example:**
327
+ ```yaml
328
+ mode: subagent
329
+ ```
330
+
331
+ ### `temperature`
332
+
333
+ Response randomness (0.0-1.0).
334
+
335
+ | Constraint |
336
+ |------------|
337
+ | Optional. |
338
+
339
+ **Values:**
340
+ - `0.0-0.2` - Focused, deterministic (code analysis)
341
+ - `0.3-0.5` - Balanced (general development)
342
+ - `0.6-1.0` - Creative (brainstorming)
343
+
344
+ **Example:**
345
+ ```yaml
346
+ temperature: 0.2
347
+ ```
348
+
349
+ ### `steps`
350
+
351
+ Max agentic iterations before text-only response.
352
+
353
+ | Constraint |
354
+ |------------|
355
+ | Optional. Integer. |
356
+
357
+ **Example:**
358
+ ```yaml
359
+ steps: 15
360
+ ```
361
+
362
+ ### `disable`
363
+
364
+ Disable this agent entirely.
365
+
366
+ | Constraint |
367
+ |------------|
368
+ | Optional. Boolean. |
369
+
370
+ **Example:**
371
+ ```yaml
372
+ disable: false
373
+ ```
374
+
375
+ ### `prompt`
376
+
377
+ External prompt file path.
378
+
379
+ | Constraint |
380
+ |------------|
381
+ | Optional. Path is relative to config file location. |
382
+
383
+ **Example:**
384
+ ```yaml
385
+ prompt: "{file:./prompts/agent.txt}"
386
+ ```
387
+
388
+ ### `hidden`
389
+
390
+ Hide from @ autocomplete menu.
391
+
392
+ | Constraint |
393
+ |------------|
394
+ | Optional. Boolean. Only applies to mode: subagent. |
395
+
396
+ **Example:**
397
+ ```yaml
398
+ hidden: false
399
+ ```
400
+
401
+ ### `top_p`
402
+
403
+ Alternative to temperature for diversity control.
404
+
405
+ | Constraint |
406
+ |------------|
407
+ | Optional. Values: 0.0-1.0 (lower = more focused). |
408
+
409
+ **Example:**
410
+ ```yaml
411
+ top_p: 0.9
412
+ ```
413
+
414
+ ### `permission`
415
+
416
+ Fine-grained tool permissions.
417
+
418
+ | Constraint |
419
+ |------------|
420
+ | Optional. Object with permission keys. |
421
+
422
+ **Keys:**
423
+ - `read` - File reading
424
+ - `edit` - File writes, edits, patches
425
+ - `bash` - Shell commands (supports glob patterns)
426
+ - `glob` - File pattern matching
427
+ - `grep` - Content search
428
+ - `list` - Directory listing
429
+ - `task` - Subagent invocation
430
+ - `external_directory` - Tools outside worktree
431
+ - `todowrite` - Todo list management
432
+ - `webfetch` - Web content fetching
433
+ - `websearch` - Web searching
434
+ - `lsp` - Language Server Protocol
435
+ - `skill` - Skill invocation
436
+ - `question` - User questions
437
+ - `doom_loop` - Recovery when stuck
438
+
439
+ **Values:**
440
+ - `allow` - Always allow
441
+ - `ask` - Ask for permission
442
+ - `deny` - Never allow
443
+ - Object with glob patterns
444
+
445
+ **Example:**
446
+ ```yaml
447
+ permission:
448
+ read: allow
449
+ glob: allow
450
+ grep: allow
451
+ edit: deny
452
+ bash:
453
+ "*": ask
454
+ "git status*": allow
455
+ "git diff*": allow
456
+ "git log*": allow
457
+ "npm run*": allow
458
+ "npx*": allow
459
+ "node*": allow
460
+ "cat*": allow
461
+ "ls*": allow
462
+ "grep*": allow
463
+ "find*": allow
464
+ task: allow
465
+ external_directory: deny
466
+ todowrite: allow
467
+ webfetch: allow
468
+ websearch: allow
469
+ lsp: allow
470
+ skill: allow
471
+ question: allow
472
+ doom_loop: allow
473
+ ```
474
+
475
+ ### `reasoningEffort`
476
+
477
+ Provider-specific parameter (e.g., OpenAI reasoning).
478
+
479
+ | Constraint |
480
+ |------------|
481
+ | Optional. |
482
+
483
+ **Example:**
484
+ ```yaml
485
+ reasoningEffort: high
486
+ ```
487
+
488
+ ### `textVerbosity`
489
+
490
+ Provider-specific parameter.
491
+
492
+ | Constraint |
493
+ |------------|
494
+ | Optional. |
495
+
496
+ **Example:**
497
+ ```yaml
498
+ textVerbosity: low
499
+ ```
500
+
501
+ ---
502
+
503
+ ## Field Summary
504
+
505
+ ### Cross-Platform (Use for Both)
506
+
507
+ | Field | Required | Description |
508
+ |-------|----------|-------------|
509
+ | `name` | Yes | Agent identifier |
510
+ | `description` | Yes | What it does and when to call it |
511
+ | `model` | Yes | Model to use |
512
+ | `color` | No | Display color |
513
+
514
+ ### Claude-Only
515
+
516
+ | Field | Required | Description |
517
+ |-------|----------|-------------|
518
+ | `tools` | No | Tool allowlist |
519
+ | `disallowedTools` | No | Tool denylist |
520
+ | `permissionMode` | No | Permission mode |
521
+ | `maxTurns` | No | Turn limit |
522
+ | `skills` | No | Preloaded skills |
523
+ | `mcpServers` | No | MCP servers |
524
+ | `hooks` | No | Lifecycle hooks |
525
+ | `memory` | No | Memory scope |
526
+ | `background` | No | Background mode |
527
+ | `effort` | No | Effort level |
528
+ | `isolation` | No | Worktree isolation |
529
+ | `initialPrompt` | No | First user turn |
530
+
531
+ ### OpenCode-Only
532
+
533
+ | Field | Required | Description |
534
+ |-------|----------|-------------|
535
+ | `mode` | No | Agent type |
536
+ | `temperature` | No | Randomness |
537
+ | `steps` | No | Iteration limit |
538
+ | `disable` | No | Disable agent |
539
+ | `prompt` | No | External prompt file |
540
+ | `hidden` | No | Hide from autocomplete |
541
+ | `top_p` | No | Diversity control |
542
+ | `permission` | No | Tool permissions |
543
+ | `reasoningEffort` | No | Provider parameter |
544
+ | `textVerbosity` | No | Provider parameter |