astro-skills
v0.0.5
Published
Load and serve Agent Skills from your Astro site via well-known URIs
Maintainers
Readme
astro-skills
Let your users do this: npx skills add https://your-website-here.com/
Bundle Agent Skills into your Astro site, for others to consume by URL. This integration implements the Agent Skills Discovery RFC, allowing AI agents to discover and use skills published on your website.
- Automatically generates your
/.well-known/skills/index.jsonindex file. - Validates your skills, frontmatter, etc. for compliance.
- Designed for Astro Content Collections.
Installation
Automatic Install
npx astro add astro-skillsManual Install
npm install astro-skillsThen, add the integration to your astro.config.mjs file:
// astro.config.mjs
import { defineConfig } from 'astro/config';
import skills from 'astro-skills';
export default defineConfig({
integrations: [skills()],
});Configuration
To get started, create a skills/ directory in your project root with your skills:
skills/
└── pdf-processing/
├── SKILL.md # Required: instructions + metadata
├── scripts/ # Optional: executable code
│ └── extract.py
├── references/ # Optional: documentation
│ └── REFERENCE.md
└── assets/ # Optional: templates, data files
└── schema.jsonThen, register your skills as a new content collection:
// src/content.config.ts
import { defineCollection } from 'astro:content';
import { skillsLoader } from 'astro-skills';
export const collections = {
skills: defineCollection({
loader: skillsLoader({ base: './skills' }),
}),
};