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,384 @@
1
+ # SKILL.md Body Reference
2
+
3
+ Complete reference for writing the Markdown body (system prompt) of SKILL.md files.
4
+
5
+ ---
6
+
7
+ ## Overview
8
+
9
+ The Markdown body after frontmatter contains the skill instructions. There are no format restrictions - write whatever helps agents perform the task effectively.
10
+
11
+ ---
12
+
13
+ ## Recommended Structure
14
+
15
+ While not required, the following structure is recommended for consistency:
16
+
17
+ ### What I Do
18
+
19
+ Clear, concise description of the skill's purpose. This helps agents understand the skill's core capability.
20
+
21
+ ```markdown
22
+ ## What I Do
23
+
24
+ [Clear, concise description of the skill's purpose]
25
+ ```
26
+
27
+ ### When to Use Me
28
+
29
+ Specific trigger conditions and use cases. This helps agents decide when to invoke the skill.
30
+
31
+ ```markdown
32
+ ## When to Use Me
33
+
34
+ [Specific trigger conditions and use cases]
35
+ ```
36
+
37
+ ### Instructions
38
+
39
+ Step-by-step instructions for the skill. Use phases or numbered steps for complex workflows.
40
+
41
+ ```markdown
42
+ ## Instructions
43
+
44
+ ### Phase 1: [First Step]
45
+
46
+ 1. [Detailed instruction]
47
+ 2. [Detailed instruction]
48
+
49
+ ### Phase 2: [Second Step]
50
+
51
+ 1. [Detailed instruction]
52
+ 2. [Detailed instruction]
53
+ ```
54
+
55
+ ### Output Format
56
+
57
+ Expected output structure. This helps agents understand what to return.
58
+
59
+ ```markdown
60
+ ## Output Format
61
+
62
+ When providing results:
63
+ - [Format requirement 1]
64
+ - [Format requirement 2]
65
+ - [Format requirement 3]
66
+ ```
67
+
68
+ ### Examples
69
+
70
+ Example inputs and outputs. This helps agents understand the expected behavior.
71
+
72
+ ```markdown
73
+ ## Examples
74
+
75
+ ### Example 1: [Scenario]
76
+
77
+ **Input:** [What the user provides]
78
+
79
+ **Output:** [What the skill produces]
80
+ ```
81
+
82
+ ---
83
+
84
+ ## Content Types
85
+
86
+ Skills can contain different types of content:
87
+
88
+ ### Reference Content
89
+
90
+ Adds knowledge agents apply to your current work. Conventions, patterns, style guides, domain knowledge. This content runs inline so agents can use it alongside conversation context.
91
+
92
+ ```markdown
93
+ ## API Conventions
94
+
95
+ When writing API endpoints:
96
+ - Use RESTful naming conventions
97
+ - Return consistent error formats
98
+ - Include request validation
99
+ ```
100
+
101
+ ### Task Content
102
+
103
+ Gives agents step-by-step instructions for a specific action. These are often actions you want to invoke directly with `/skill-name`.
104
+
105
+ ```markdown
106
+ ## Instructions
107
+
108
+ Deploy the application:
109
+ 1. Run the test suite
110
+ 2. Build the application
111
+ 3. Push to the deployment target
112
+ ```
113
+
114
+ ### Background Knowledge
115
+
116
+ Context information that should be available when working in specific areas. Use `user-invocable: false` for this type.
117
+
118
+ ```markdown
119
+ ## Legacy System Context
120
+
121
+ The legacy payment system uses SOAP XML endpoints at:
122
+ - Processing: https://legacy-pay.example.com/soap/process
123
+ - Refunds: https://legacy-pay.example.com/soap/refund
124
+ ```
125
+
126
+ ---
127
+
128
+ ## Progressive Disclosure
129
+
130
+ Agents load skills progressively, pulling in more detail only as a task calls for it:
131
+
132
+ 1. **Metadata** (~100 tokens): `name` and `description` loaded at startup for all skills
133
+ 2. **Instructions** (<5000 tokens recommended): Full body loaded when skill activates
134
+ 3. **Resources** (as needed): Files in `scripts/`, `references/`, `assets/` loaded only when required
135
+
136
+ Keep your main `SKILL.md` under 500 lines. Move detailed reference material to separate files.
137
+
138
+ ---
139
+
140
+ ## Dynamic Context (Claude Only)
141
+
142
+ ### Inline Shell Commands
143
+
144
+ Use `` !`command` `` to inject shell output into skill content. Claude runs the command and replaces the line with its output.
145
+
146
+ **Examples:**
147
+ ```markdown
148
+ ## Current State
149
+ !`git status --short`
150
+
151
+ ## Files
152
+ !`ls -la src/`
153
+ ```
154
+
155
+ This is useful for grounding instructions in actual data rather than what agents can guess from open files.
156
+
157
+ ### String Substitutions
158
+
159
+ | Variable | Description |
160
+ |----------|-------------|
161
+ | `$ARGUMENTS` | All arguments passed when invoking the skill |
162
+ | `$0`, `$1`, `$2` | Specific arguments by index |
163
+ | `$name` | Named argument from `arguments` field |
164
+ | `${CLAUDE_SESSION_ID}` | Current session ID |
165
+ | `${CLAUDE_EFFORT}` | Current effort level |
166
+ | `${CLAUDE_SKILL_DIR}` | Directory containing this SKILL.md |
167
+ | `${CLAUDE_PROJECT_DIR}` | Project root directory |
168
+
169
+ **Examples:**
170
+ ```markdown
171
+ ## Session Log
172
+ Log to logs/${CLAUDE_SESSION_ID}.log:
173
+
174
+ $ARGUMENTS
175
+ ```
176
+
177
+ ```markdown
178
+ ## Script Execution
179
+ Run `${CLAUDE_SKILL_DIR}/scripts/helper.sh` to process data.
180
+ ```
181
+
182
+ ---
183
+
184
+ ## File References
185
+
186
+ When referencing other files in your skill, use relative paths from the skill root:
187
+
188
+ ```markdown
189
+ ## Additional Resources
190
+
191
+ - For templates, see [template.md](template.md)
192
+ - For examples, see [examples/sample.md](examples/sample.md)
193
+ - To run helper script: `${CLAUDE_SKILL_DIR}/scripts/helper.sh`
194
+ ```
195
+
196
+ Keep file references one level deep from `SKILL.md`. Avoid deeply nested reference chains.
197
+
198
+ ---
199
+
200
+ ## Conciseness Guidelines
201
+
202
+ The body content stays in context across turns, so every line is a recurring token cost:
203
+
204
+ - State what to do rather than narrating how or why
205
+ - Apply the same conciseness test you would for CLAUDE.md content
206
+ - Remove redundant phrases like "Please" or "You should"
207
+ - Use bullet points instead of prose when possible
208
+
209
+ **Verbose (avoid):**
210
+ ```markdown
211
+ You should first make sure to read the file that the user is asking about, and then you should analyze its contents carefully.
212
+ ```
213
+
214
+ **Concise (prefer):**
215
+ ```markdown
216
+ 1. Read the file
217
+ 2. Analyze contents
218
+ ```
219
+
220
+ ---
221
+
222
+ ## Examples from Real Skills
223
+
224
+ ### Simple Skill Body
225
+
226
+ ```markdown
227
+ ## What I Do
228
+
229
+ Display git log in a clean, readable format with:
230
+ - Commit hash (abbreviated)
231
+ - Author name
232
+ - Relative date
233
+ - Commit message
234
+
235
+ ## When to Use Me
236
+
237
+ - Reviewing recent commits
238
+ - Preparing standup notes
239
+ - Checking project history
240
+
241
+ ## Instructions
242
+
243
+ Run the following command and present the output:
244
+
245
+ !`git log --oneline --graph --decorate -20`
246
+
247
+ Format the output for readability and highlight any merge commits.
248
+ ```
249
+
250
+ ### Complex Skill Body with Phases
251
+
252
+ ```markdown
253
+ ## What I Do
254
+
255
+ Generate comprehensive unit tests for code, including:
256
+ - Test setup and teardown
257
+ - Happy path tests
258
+ - Edge cases
259
+ - Error handling
260
+ - Mocking where appropriate
261
+
262
+ ## When to Use Me
263
+
264
+ - Adding test coverage to existing code
265
+ - Creating test suites for new features
266
+ - Improving test quality
267
+
268
+ ## Instructions
269
+
270
+ ### Phase 1: Analysis
271
+
272
+ 1. Read the source file
273
+ 2. Identify all public functions and methods
274
+ 3. Determine the testing framework from project configuration
275
+
276
+ ### Phase 2: Generation
277
+
278
+ 1. Create test file with proper imports
279
+ 2. Generate test suite structure
280
+ 3. Write individual test cases with descriptive names
281
+ 4. Add edge case coverage
282
+ 5. Include comments explaining complex assertions
283
+
284
+ ### Phase 3: Validation
285
+
286
+ 1. Verify test syntax is valid
287
+ 2. Ensure all imports resolve
288
+ 3. Check for missing test cases
289
+
290
+ ## Input
291
+
292
+ The user will specify:
293
+ - File path to the source code
294
+ - Testing framework (if not specified, infer from project)
295
+
296
+ ## Output
297
+
298
+ A complete test file with:
299
+ - Proper imports
300
+ - Test suite structure
301
+ - Individual test cases
302
+ - Edge case coverage
303
+ ```
304
+
305
+ ### Background Knowledge Body
306
+
307
+ ```markdown
308
+ ## Legacy API Context
309
+
310
+ The legacy REST API uses these endpoints:
311
+ - Users: GET/POST /api/v1/users
312
+ - Orders: GET/POST /api/v1/orders
313
+ - Auth: POST /api/v1/auth/token
314
+
315
+ Key data structures:
316
+ - UserID: Integer (auto-increment)
317
+ - OrderID: UUID format
318
+ - Timestamps: ISO 8601
319
+
320
+ When modifying API code, always check for backwards
321
+ compatibility with these endpoints.
322
+ ```
323
+
324
+ ---
325
+
326
+ ## Common Patterns
327
+
328
+ ### Command Execution Pattern
329
+
330
+ ```markdown
331
+ ## Instructions
332
+
333
+ Run the following command and present the output:
334
+
335
+ !`[command here]`
336
+
337
+ Format the output for readability.
338
+ ```
339
+
340
+ ### Multi-Step Workflow Pattern
341
+
342
+ ```markdown
343
+ ## Instructions
344
+
345
+ ### Step 1: [Action]
346
+
347
+ [Instructions]
348
+
349
+ ### Step 2: [Action]
350
+
351
+ [Instructions]
352
+
353
+ ### Step 3: [Action]
354
+
355
+ [Instructions]
356
+ ```
357
+
358
+ ### Conditional Logic Pattern
359
+
360
+ ```markdown
361
+ ## Instructions
362
+
363
+ 1. Check [condition]
364
+ 2. If [condition] is true:
365
+ - [Action A]
366
+ 3. If [condition] is false:
367
+ - [Action B]
368
+ ```
369
+
370
+ ### Input/Output Pattern
371
+
372
+ ```markdown
373
+ ## Input
374
+
375
+ The user will provide:
376
+ - [Input item 1]
377
+ - [Input item 2]
378
+
379
+ ## Output
380
+
381
+ Return:
382
+ - [Output item 1]
383
+ - [Output item 2]
384
+ ```
@@ -0,0 +1,282 @@
1
+ # SKILL.md Validation Reference
2
+
3
+ Complete validation checklist for SKILL.md files.
4
+
5
+ ---
6
+
7
+ ## File Structure Validation
8
+
9
+ ### File Name and Location
10
+
11
+ | Rule | Constraint |
12
+ |------|------------|
13
+ | File name | Must be `SKILL.md` (all caps) |
14
+ | Directory name | Must match `name` field in frontmatter |
15
+ | Location | Must be inside a directory matching the skill name |
16
+
17
+ **Valid structure:**
18
+ ```
19
+ my-skill/
20
+ ├── SKILL.md # ✓ Correct
21
+ ```
22
+
23
+ **Invalid structure:**
24
+ ```
25
+ my-skill/
26
+ ├── skill.md # ✗ Wrong case
27
+ ├── Skill.md # ✗ Wrong case
28
+ MY-SKILL/
29
+ ├── SKILL.md # ✗ Directory name mismatch
30
+ ```
31
+
32
+ ---
33
+
34
+ ## Frontmatter Validation
35
+
36
+ ### `name` Field (Required)
37
+
38
+ | Rule | Constraint |
39
+ |------|------------|
40
+ | Length | 1-64 characters |
41
+ | Characters | Lowercase letters, numbers, hyphens only |
42
+ | Start | Cannot start with hyphen |
43
+ | End | Cannot end with hyphen |
44
+ | Consecutive | Cannot contain consecutive hyphens (`--`) |
45
+ | Match | Must match parent directory name |
46
+
47
+ **Valid examples:**
48
+ ```yaml
49
+ name: pdf-processing
50
+ name: data-analysis
51
+ name: code-review
52
+ name: test123
53
+ ```
54
+
55
+ **Invalid examples:**
56
+ ```yaml
57
+ name: PDF-Processing # uppercase not allowed
58
+ name: -pdf # cannot start with hyphen
59
+ name: pdf- # cannot end with hyphen
60
+ name: pdf--processing # consecutive hyphens not allowed
61
+ name: pdf_processing # underscore not allowed
62
+ ```
63
+
64
+ ### `description` Field (Required)
65
+
66
+ | Rule | Constraint |
67
+ |------|------------|
68
+ | Length | 1-1024 characters |
69
+ | Content | Must describe what it does AND when to use it |
70
+
71
+ **Description must include:**
72
+ 1. What it does (core capability)
73
+ 2. When to invoke (trigger conditions)
74
+ 3. What NOT to use it for (exclusions)
75
+ 4. What it returns (output structure)
76
+
77
+ **Good example:**
78
+ ```yaml
79
+ description: >
80
+ Create consistent releases and changelogs from merged PRs. Use when
81
+ preparing a tagged release or generating release notes. Do not use for
82
+ feature branch merges, hotfix deployments, or version bumps without
83
+ release notes. Returns a structured release with version bump
84
+ recommendation, changelog entries, and a ready-to-run gh release command.
85
+ ```
86
+
87
+ **Poor examples:**
88
+ ```yaml
89
+ description: Helps with releases # Too vague
90
+ description: Release # Missing context
91
+ description: A skill for releases... # Missing "when to use"
92
+ ```
93
+
94
+ ### `license` Field (Optional)
95
+
96
+ | Rule | Constraint |
97
+ |------|------------|
98
+ | Format | License name or reference to bundled license file |
99
+ | Length | No specific limit |
100
+
101
+ **Examples:**
102
+ ```yaml
103
+ license: MIT
104
+ license: Apache-2.0
105
+ license: Proprietary. LICENSE.txt has complete terms
106
+ ```
107
+
108
+ ### `compatibility` Field (Optional)
109
+
110
+ | Rule | Constraint |
111
+ |------|------------|
112
+ | Length | 1-500 characters |
113
+ | Content | Environment requirements (product, packages, network) |
114
+
115
+ **Examples:**
116
+ ```yaml
117
+ compatibility: Designed for Claude Code (or similar products)
118
+ compatibility: Requires git, docker, jq, and access to the internet
119
+ compatibility: Requires Python 3.14+ and uv
120
+ ```
121
+
122
+ Most skills do not need this field.
123
+
124
+ ### `metadata` Field (Optional)
125
+
126
+ | Rule | Constraint |
127
+ |------|------------|
128
+ | Type | Map from string keys to string values |
129
+ | Keys | String |
130
+ | Values | String |
131
+
132
+ **Example:**
133
+ ```yaml
134
+ metadata:
135
+ author: example-org
136
+ version: "1.0"
137
+ audience: developers
138
+ workflow: github
139
+ ```
140
+
141
+ ### `allowed-tools` Field (Optional)
142
+
143
+ | Rule | Constraint |
144
+ |------|------------|
145
+ | Format | Space-separated string or YAML list |
146
+ | Values | Tool names |
147
+
148
+ **Examples:**
149
+ ```yaml
150
+ allowed-tools: Read Grep Glob Bash
151
+ allowed-tools: Read, Write, Edit, Bash
152
+ allowed-tools:
153
+ - Read
154
+ - Write
155
+ - Edit
156
+ - Bash
157
+ ```
158
+
159
+ ### Claude-Specific Fields
160
+
161
+ | Field | Type | Description |
162
+ |-------|------|-------------|
163
+ | `when_to_use` | String | Additional trigger context |
164
+ | `argument-hint` | String | Autocomplete hint |
165
+ | `arguments` | List | Named positional arguments |
166
+ | `disable-model-invocation` | Boolean | Prevent Claude auto-invocation |
167
+ | `user-invocable` | Boolean | Hide from `/` menu |
168
+ | `disallowed-tools` | List | Tools to remove while active |
169
+ | `model` | String | Model override |
170
+ | `effort` | String | Effort level override |
171
+ | `context` | String | Run in forked subagent |
172
+ | `agent` | String | Subagent type |
173
+ | `background` | Boolean | Run in background |
174
+ | `hooks` | Object | Lifecycle hooks |
175
+ | `paths` | List | Glob patterns for activation |
176
+ | `shell` | String | Shell for inline commands |
177
+
178
+ ---
179
+
180
+ ## Body Content Validation
181
+
182
+ ### Structure
183
+
184
+ | Rule | Constraint |
185
+ |------|------------|
186
+ | Format | Markdown after frontmatter |
187
+ | Length | Under 500 lines recommended |
188
+ | Sections | Recommended but not required |
189
+
190
+ **Recommended sections:**
191
+ - What I Do
192
+ - When to Use Me
193
+ - Instructions
194
+ - Output Format
195
+ - Examples
196
+
197
+ ### Quality
198
+
199
+ | Rule | Constraint |
200
+ |------|------------|
201
+ | Clarity | Clear, actionable instructions |
202
+ | Completeness | Covers edge cases |
203
+ | Conciseness | No redundant phrases |
204
+ | Examples | Input/output examples provided |
205
+
206
+ **Conciseness guidelines:**
207
+ - State what to do rather than narrating how or why
208
+ - Remove "Please" and "You should"
209
+ - Use bullet points instead of prose
210
+
211
+ ---
212
+
213
+ ## Platform-Specific Validation
214
+
215
+ ### OpenCode
216
+
217
+ | Rule | Constraint |
218
+ |------|------------|
219
+ | `name` | Required, must match directory |
220
+ | `description` | Required, 1-1024 characters |
221
+ | Other fields | Ignored (not processed) |
222
+
223
+ ### Claude
224
+
225
+ | Rule | Constraint |
226
+ |------|------------|
227
+ | `name` | Optional, defaults to directory name |
228
+ | `description` | Required for auto-invocation |
229
+ | `allowed-tools` | Space or comma-separated, or YAML list |
230
+ | `arguments` | Space-separated string or YAML list |
231
+
232
+ ### Cross-Platform
233
+
234
+ | Rule | Constraint |
235
+ |------|------------|
236
+ | Directory structure | Follows Agent Skills specification |
237
+ | File name | `SKILL.md` (all caps) |
238
+ | Frontmatter | YAML format |
239
+
240
+ ---
241
+
242
+ ## Validation Checklist
243
+
244
+ Use this checklist to validate your skill:
245
+
246
+ ### File Structure
247
+ - [ ] File is named `SKILL.md` (all caps)
248
+ - [ ] File is in a directory matching the skill name
249
+
250
+ ### Frontmatter
251
+ - [ ] `name` is 1-64 characters
252
+ - [ ] `name` contains only lowercase letters, numbers, hyphens
253
+ - [ ] `name` does not start or end with hyphen
254
+ - [ ] `name` does not contain consecutive hyphens
255
+ - [ ] `name` matches directory name
256
+ - [ ] `description` is 1-1024 characters
257
+ - [ ] `description` includes what, when, not-for, returns
258
+
259
+ ### Body Content
260
+ - [ ] Has clear, step-by-step instructions
261
+ - [ ] Includes input/output examples
262
+ - [ ] Uses proper markdown formatting
263
+ - [ ] Under 500 lines (or moved to separate files)
264
+ - [ ] File references are one level deep
265
+
266
+ ### Optional
267
+ - [ ] `license` field included if applicable
268
+ - [ ] `compatibility` field included if applicable
269
+ - [ ] `metadata` field included if applicable
270
+ - [ ] `allowed-tools` field included if applicable
271
+
272
+ ---
273
+
274
+ ## Automated Validation
275
+
276
+ Use the [skills-ref](https://github.com/agentskills/agentskills/tree/main/skills-ref) library to validate skills programmatically:
277
+
278
+ ```bash
279
+ skills-ref validate ./my-skill
280
+ ```
281
+
282
+ This checks that `SKILL.md` frontmatter is valid and follows all naming conventions.