Installation
Adding starlight-skills to your Astro Starlight project is a simple two-step process.
1. Install the Package
Install the plugin using your preferred package manager:
# npm
npm install starlight-skills
# yarn
yarn add starlight-skills
# pnpm
pnpm add starlight-skills
2. Configure Astro
Add the plugin to your Starlight integration configuration inside astro.config.ts (or astro.config.mjs):
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightSkills from 'starlight-skills';
export default defineConfig({
integrations: [
starlight({
title: 'My Docs',
plugins: [
// Add the starlight-skills plugin here!
starlightSkills(),
],
}),
],
});
Once added, any .md or .mdx file under src/content/docs/ with skill: true in its frontmatter will be automatically processed.
See the Configuration chapter to learn how to customize where your skills are output and how the site integration behaves.