Installation
Adding starlight-skills to your Astro Starlight project is a simple two-step process.
1. Install the Package
Section titled “1. Install the Package”Install the plugin using your preferred package manager:
# npmnpm install starlight-skills
# yarnyarn add starlight-skills
# pnpmpnpm add starlight-skills2. Configure Astro
Section titled “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.