From be85307343bf0bf746bb96d43d4b7190c03fd827 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Sat, 31 Jan 2026 01:53:07 +0000 Subject: [PATCH 1/2] docs: add skills-npm for npm package agent skills Amp-Thread-ID: https://ampcode.com/threads/T-019c11bf-fbc8-7774-b7e9-9ef1555e910f Co-authored-by: Amp --- src/pages/guide/building-with-ai.mdx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pages/guide/building-with-ai.mdx b/src/pages/guide/building-with-ai.mdx index ab6c87e5..ec5575df 100644 --- a/src/pages/guide/building-with-ai.mdx +++ b/src/pages/guide/building-with-ai.mdx @@ -129,6 +129,26 @@ $ cp -r agent-skills/skills/tempo ~/.config/agents/skills/ Or add to your project's [`.agents/skills/`](https://github.com/tempoxyz/agent-skills/tree/main/skills) directory for project-specific access. +### npm Package Skills + +For packages that ship their own agent skills, use [`skills-npm`](https://github.com/antfu/skills-npm) to automatically discover and symlink them: + +```bash +pnpm add -D skills-npm +``` + +Add a `prepare` script to your `package.json`: + +```json +{ + "scripts": { + "prepare": "skills-npm" + } +} +``` + +Skills from installed npm packages are symlinked to `skills/npm--` for your agent. Add `skills/npm-*` to your `.gitignore`. + ### Usage Once installed, the skill is automatically available. The agent will use it when relevant tasks are detected. From cb0029cb4b8951306f7de382938be5d65f82b093 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Sat, 31 Jan 2026 01:54:38 +0000 Subject: [PATCH 2/2] docs: use code-group for install commands Amp-Thread-ID: https://ampcode.com/threads/T-019c11bf-fbc8-7774-b7e9-9ef1555e910f Co-authored-by: Amp --- src/pages/guide/building-with-ai.mdx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/guide/building-with-ai.mdx b/src/pages/guide/building-with-ai.mdx index ec5575df..f1208e5f 100644 --- a/src/pages/guide/building-with-ai.mdx +++ b/src/pages/guide/building-with-ai.mdx @@ -133,9 +133,17 @@ Or add to your project's [`.agents/skills/`](https://github.com/tempoxyz/agent-s For packages that ship their own agent skills, use [`skills-npm`](https://github.com/antfu/skills-npm) to automatically discover and symlink them: -```bash +:::code-group +```bash [npm] +npm add -D skills-npm +``` +```bash [pnpm] pnpm add -D skills-npm ``` +```bash [bun] +bun add -D skills-npm +``` +::: Add a `prepare` script to your `package.json`: