@ranimontagna/agent-toolkit 0.1.4 → 0.1.5

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 (30) hide show
  1. package/README.md +282 -277
  2. package/docs/assets/install-plan.svg +29 -0
  3. package/docs/assets/install-skill-packages.svg +31 -0
  4. package/docs/assets/install-status.svg +32 -0
  5. package/package.json +10 -9
  6. package/setup-agent-toolkit.sh +1 -1
  7. package/skills/backend/fastify-best-practices/LICENSE +21 -0
  8. package/skills/backend/fastify-best-practices/NOTICE.md +11 -0
  9. package/skills/backend/fastify-best-practices/SKILL.md +75 -0
  10. package/skills/backend/fastify-best-practices/rules/authentication.md +521 -0
  11. package/skills/backend/fastify-best-practices/rules/configuration.md +217 -0
  12. package/skills/backend/fastify-best-practices/rules/content-type.md +387 -0
  13. package/skills/backend/fastify-best-practices/rules/cors-security.md +445 -0
  14. package/skills/backend/fastify-best-practices/rules/database.md +320 -0
  15. package/skills/backend/fastify-best-practices/rules/decorators.md +416 -0
  16. package/skills/backend/fastify-best-practices/rules/deployment.md +423 -0
  17. package/skills/backend/fastify-best-practices/rules/error-handling.md +412 -0
  18. package/skills/backend/fastify-best-practices/rules/hooks.md +464 -0
  19. package/skills/backend/fastify-best-practices/rules/http-proxy.md +247 -0
  20. package/skills/backend/fastify-best-practices/rules/logging.md +402 -0
  21. package/skills/backend/fastify-best-practices/rules/performance.md +425 -0
  22. package/skills/backend/fastify-best-practices/rules/plugins.md +320 -0
  23. package/skills/backend/fastify-best-practices/rules/routes.md +467 -0
  24. package/skills/backend/fastify-best-practices/rules/schemas.md +585 -0
  25. package/skills/backend/fastify-best-practices/rules/serialization.md +475 -0
  26. package/skills/backend/fastify-best-practices/rules/testing.md +536 -0
  27. package/skills/backend/fastify-best-practices/rules/typescript.md +458 -0
  28. package/skills/backend/fastify-best-practices/rules/websockets.md +421 -0
  29. package/skills/backend/fastify-best-practices/tile.json +11 -0
  30. package/skills/core/agent-toolkit-maintainer/SKILL.md +16 -14
@@ -0,0 +1,29 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="980" height="560" viewBox="0 0 980 560" role="img" aria-labelledby="title desc">
2
+ <title id="title">Agent Toolkit install plan screen</title>
3
+ <desc id="desc">Terminal screenshot showing the final install plan before the installer asks for confirmation.</desc>
4
+ <rect width="980" height="560" rx="18" fill="#111827"/>
5
+ <rect x="24" y="24" width="932" height="512" rx="14" fill="#0b1020" stroke="#263247"/>
6
+ <circle cx="52" cy="52" r="7" fill="#ff5f57"/>
7
+ <circle cx="76" cy="52" r="7" fill="#ffbd2e"/>
8
+ <circle cx="100" cy="52" r="7" fill="#28c840"/>
9
+ <text x="126" y="57" fill="#9ca3af" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">Ready to install</text>
10
+
11
+ <text x="52" y="104" fill="#93c5fd" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="19" font-weight="700">Install plan</text>
12
+
13
+ <text x="74" y="144" fill="#cbd5e1" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Selected tools:</text>
14
+ <text x="96" y="174" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- RTK: rtk 0.42.1 already on PATH</text>
15
+ <text x="96" y="202" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Graphify: graphify 0.8.31 already on PATH</text>
16
+ <text x="96" y="230" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Custom Skills: 1 selected source skill</text>
17
+
18
+ <text x="74" y="282" fill="#cbd5e1" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Selected runtimes:</text>
19
+ <text x="96" y="312" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Codex CLI: installed</text>
20
+ <text x="96" y="340" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Gemini CLI: missing from PATH; selected runtime may be skipped</text>
21
+
22
+ <text x="74" y="392" fill="#cbd5e1" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Custom Skills:</text>
23
+ <text x="96" y="422" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Selected packages: core</text>
24
+ <text x="96" y="450" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Selected source skills: core/agent-toolkit-maintainer</text>
25
+ <text x="96" y="478" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">- Codex CLI: 0/1 already present at ~/.codex/skills; 1 will be copied</text>
26
+
27
+ <rect x="52" y="506" width="876" height="36" rx="8" fill="#111827" stroke="#334155"/>
28
+ <text x="70" y="530" fill="#86efac" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Continue with installation? Yes</text>
29
+ </svg>
@@ -0,0 +1,31 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="980" height="520" viewBox="0 0 980 520" role="img" aria-labelledby="title desc">
2
+ <title id="title">Agent Toolkit Custom Skill package selection screen</title>
3
+ <desc id="desc">Terminal screenshot showing selectable Custom Skill packages in the Clack installer.</desc>
4
+ <rect width="980" height="520" rx="18" fill="#111827"/>
5
+ <rect x="24" y="24" width="932" height="472" rx="14" fill="#0b1020" stroke="#263247"/>
6
+ <circle cx="52" cy="52" r="7" fill="#ff5f57"/>
7
+ <circle cx="76" cy="52" r="7" fill="#ffbd2e"/>
8
+ <circle cx="100" cy="52" r="7" fill="#28c840"/>
9
+ <text x="126" y="57" fill="#9ca3af" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">Custom Skills package selection</text>
10
+
11
+ <text x="52" y="104" fill="#93c5fd" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="19" font-weight="700">Select Custom Skill packages</text>
12
+ <text x="52" y="138" fill="#cbd5e1" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Space toggles a package. Enter confirms the selection.</text>
13
+
14
+ <rect x="72" y="172" width="836" height="56" rx="10" fill="#172033" stroke="#3b82f6"/>
15
+ <text x="96" y="207" fill="#bfdbfe" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16">(*) All skill packages</text>
16
+ <text x="388" y="207" fill="#94a3b8" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">install every bundled package</text>
17
+
18
+ <rect x="72" y="244" width="836" height="56" rx="10" fill="#111827" stroke="#334155"/>
19
+ <text x="96" y="279" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16">( ) core</text>
20
+ <text x="238" y="279" fill="#94a3b8" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">agent-toolkit-maintainer and repository workflow skills</text>
21
+
22
+ <rect x="72" y="316" width="836" height="56" rx="10" fill="#111827" stroke="#334155" opacity="0.72"/>
23
+ <text x="96" y="351" fill="#94a3b8" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16">( ) backend</text>
24
+ <text x="266" y="351" fill="#64748b" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">appears automatically when skills/backend exists</text>
25
+
26
+ <rect x="72" y="388" width="836" height="56" rx="10" fill="#111827" stroke="#334155" opacity="0.72"/>
27
+ <text x="96" y="423" fill="#94a3b8" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16">( ) frontend</text>
28
+ <text x="278" y="423" fill="#64748b" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">appears automatically when skills/frontend exists</text>
29
+
30
+ <text x="52" y="474" fill="#c4b5fd" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">CLI equivalent: --skills-package core</text>
31
+ </svg>
@@ -0,0 +1,32 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="980" height="520" viewBox="0 0 980 520" role="img" aria-labelledby="title desc">
2
+ <title id="title">Agent Toolkit detected status screen</title>
3
+ <desc id="desc">Terminal screenshot showing the installer detecting installed and missing tools before prompting for selections.</desc>
4
+ <rect width="980" height="520" rx="18" fill="#111827"/>
5
+ <rect x="24" y="24" width="932" height="472" rx="14" fill="#0b1020" stroke="#263247"/>
6
+ <circle cx="52" cy="52" r="7" fill="#ff5f57"/>
7
+ <circle cx="76" cy="52" r="7" fill="#ffbd2e"/>
8
+ <circle cx="100" cy="52" r="7" fill="#28c840"/>
9
+ <text x="126" y="57" fill="#9ca3af" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="14">npx -y @ranimontagna/agent-toolkit</text>
10
+
11
+ <text x="52" y="104" fill="#93c5fd" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="19" font-weight="700">Agent Toolkit</text>
12
+ <text x="52" y="134" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="16">Detected status</text>
13
+
14
+ <text x="74" y="174" fill="#cbd5e1" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Tools:</text>
15
+ <text x="96" y="204" fill="#86efac" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">[installed]</text>
16
+ <text x="205" y="204" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">RTK - rtk 0.42.1 (/home/user/.local/bin/rtk)</text>
17
+ <text x="96" y="232" fill="#fde68a" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">[external ]</text>
18
+ <text x="205" y="232" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Caveman - checked by the Caveman installer</text>
19
+ <text x="96" y="260" fill="#86efac" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">[installed]</text>
20
+ <text x="205" y="260" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Graphify - graphify 0.8.31</text>
21
+ <text x="96" y="288" fill="#93c5fd" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">[available]</text>
22
+ <text x="205" y="288" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Custom Skills - 1 source skill package found</text>
23
+
24
+ <text x="74" y="336" fill="#cbd5e1" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Runtimes:</text>
25
+ <text x="96" y="366" fill="#86efac" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">[installed]</text>
26
+ <text x="205" y="366" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Codex CLI - codex 0.137.0</text>
27
+ <text x="96" y="394" fill="#fca5a5" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">[missing ]</text>
28
+ <text x="205" y="394" fill="#e5e7eb" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Gemini CLI - missing from PATH</text>
29
+
30
+ <rect x="52" y="432" width="876" height="36" rx="8" fill="#111827" stroke="#334155"/>
31
+ <text x="70" y="456" fill="#c4b5fd" font-family="ui-monospace, SFMono-Regular, Menlo, Consolas, monospace" font-size="15">Next: select tools and runtimes. Nothing has been installed yet.</text>
32
+ </svg>
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@ranimontagna/agent-toolkit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Personal AI agent toolkit installer for Claude Code, Codex CLI, OpenCode, Gemini CLI and graph-aware workflows.",
5
5
  "type": "module",
6
+ "packageManager": "pnpm@11.0.6",
6
7
  "bin": {
7
8
  "agent-toolkit": "dist/bin/agent-toolkit.js",
8
9
  "setup-agent-toolkit": "dist/bin/agent-toolkit.js"
9
10
  },
10
11
  "files": [
11
12
  "dist",
13
+ "docs/assets",
12
14
  "skills",
13
15
  "tools.lock.json",
14
16
  "setup-agent-toolkit.sh",
@@ -19,16 +21,15 @@
19
21
  },
20
22
  "scripts": {
21
23
  "build": "tsc -p tsconfig.json",
22
- "check": "npm run lint && npm run typecheck && npm run test:unit && npm run build && find dist/bin dist/src -name '*.js' -print0 | xargs -0 -n1 node --check && bash -n setup-agent-toolkit.sh && npm run test:integration",
24
+ "check": "pnpm run lint && pnpm run typecheck && pnpm run test:unit && pnpm run build && find dist/bin dist/src -name '*.js' -print0 | xargs -0 -n1 node --check && bash -n setup-agent-toolkit.sh && pnpm run test:integration",
23
25
  "format": "biome format --write .",
24
26
  "lint": "biome check .",
25
27
  "lint:fix": "biome check --write .",
26
- "prepare": "npm run build",
27
- "security": "npm run security:audit && npm run security:signatures",
28
- "security:audit": "npm audit --audit-level=moderate",
29
- "security:signatures": "npm audit signatures",
30
- "test": "npm run test:unit && npm run test:integration",
31
- "test:integration": "npm run build && bash tests/test-agent-toolkit.sh",
28
+ "prepare": "pnpm run build",
29
+ "security": "pnpm run security:audit",
30
+ "security:audit": "pnpm audit --audit-level=moderate",
31
+ "test": "pnpm run test:unit && pnpm run test:integration",
32
+ "test:integration": "pnpm run build && bash tests/test-agent-toolkit.sh",
32
33
  "test:unit": "vitest run",
33
34
  "typecheck": "tsc -p tsconfig.test.json --noEmit"
34
35
  },
@@ -48,6 +49,6 @@
48
49
  "vitest": "^4.1.8"
49
50
  },
50
51
  "dependencies": {
51
- "@clack/prompts": "^1.5.1"
52
+ "@clack/prompts": "^1.5.0"
52
53
  }
53
54
  }
@@ -13,7 +13,7 @@ CLI_ENTRYPOINT="$SCRIPT_DIR/dist/bin/agent-toolkit.js"
13
13
 
14
14
  if [[ ! -f "$CLI_ENTRYPOINT" ]]; then
15
15
  echo "Agent Toolkit build not found: dist/bin/agent-toolkit.js" >&2
16
- echo "Run npm install && npm run build, then run this command again." >&2
16
+ echo "Run pnpm install && pnpm run build, then run this command again." >&2
17
17
  exit 1
18
18
  fi
19
19
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matteo Collina
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,11 @@
1
+ # Attribution
2
+
3
+ This skill is copied from Matteo Collina's public `mcollina/skills` repository.
4
+
5
+ - Source: https://github.com/mcollina/skills/tree/main/skills/fastify
6
+ - Imported from commit: `5b2a81354b6d10325da0db9decc9ce5ecc714138`
7
+ - Upstream package name: `mcollina/fastify-best-practices`
8
+ - License: MIT
9
+ - Copyright: Copyright (c) 2026 Matteo Collina
10
+
11
+ The upstream MIT license text is preserved in `LICENSE`.
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: fastify-best-practices
3
+ description: "Guides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts."
4
+ metadata:
5
+ tags: fastify, nodejs, typescript, backend, api, server, http
6
+ ---
7
+
8
+ ## When to use
9
+
10
+ Use this skill when you need to:
11
+ - Develop backend applications using Fastify
12
+ - Implement Fastify plugins and route handlers
13
+ - Get guidance on Fastify architecture and patterns
14
+ - Use TypeScript with Fastify (strip types)
15
+ - Implement testing with Fastify's inject method
16
+ - Configure validation, serialization, and error handling
17
+
18
+ ## Quick Start
19
+
20
+ A minimal, runnable Fastify server to get started immediately:
21
+
22
+ ```ts
23
+ import Fastify from 'fastify'
24
+
25
+ const app = Fastify({ logger: true })
26
+
27
+ app.get('/health', async (request, reply) => {
28
+ return { status: 'ok' }
29
+ })
30
+
31
+ const start = async () => {
32
+ await app.listen({ port: 3000, host: '0.0.0.0' })
33
+ }
34
+ start()
35
+ ```
36
+
37
+ ## Recommended Reading Order for Common Scenarios
38
+
39
+ - **New to Fastify?** Start with `plugins.md` → `routes.md` → `schemas.md`
40
+ - **Adding authentication:** `plugins.md` → `hooks.md` → `authentication.md`
41
+ - **Improving performance:** `schemas.md` → `serialization.md` → `performance.md`
42
+ - **Setting up testing:** `routes.md` → `testing.md`
43
+ - **Going to production:** `logging.md` → `configuration.md` → `deployment.md`
44
+
45
+ ## How to use
46
+
47
+ Read individual rule files for detailed explanations and code examples:
48
+
49
+ - [rules/plugins.md](rules/plugins.md) - Plugin development and encapsulation
50
+ - [rules/routes.md](rules/routes.md) - Route organization and handlers
51
+ - [rules/schemas.md](rules/schemas.md) - JSON Schema validation
52
+ - [rules/error-handling.md](rules/error-handling.md) - Error handling patterns
53
+ - [rules/hooks.md](rules/hooks.md) - Hooks and request lifecycle
54
+ - [rules/authentication.md](rules/authentication.md) - Authentication and authorization
55
+ - [rules/testing.md](rules/testing.md) - Testing with inject()
56
+ - [rules/performance.md](rules/performance.md) - Performance optimization
57
+ - [rules/logging.md](rules/logging.md) - Logging with Pino
58
+ - [rules/typescript.md](rules/typescript.md) - TypeScript integration
59
+ - [rules/decorators.md](rules/decorators.md) - Decorators and extensions
60
+ - [rules/content-type.md](rules/content-type.md) - Content type parsing
61
+ - [rules/serialization.md](rules/serialization.md) - Response serialization
62
+ - [rules/cors-security.md](rules/cors-security.md) - CORS and security headers
63
+ - [rules/websockets.md](rules/websockets.md) - WebSocket support
64
+ - [rules/database.md](rules/database.md) - Database integration patterns
65
+ - [rules/configuration.md](rules/configuration.md) - Application configuration
66
+ - [rules/deployment.md](rules/deployment.md) - Production deployment
67
+ - [rules/http-proxy.md](rules/http-proxy.md) - HTTP proxying and reply.from()
68
+
69
+ ## Core Principles
70
+
71
+ - **Encapsulation**: Fastify's plugin system provides automatic encapsulation
72
+ - **Schema-first**: Define schemas for validation and serialization
73
+ - **Performance**: Fastify is optimized for speed; use its features correctly
74
+ - **Async/await**: All handlers and hooks support async functions
75
+ - **Minimal dependencies**: Prefer Fastify's built-in features and official plugins