Skip to content

Installation

Adding starlight-skills to your Astro Starlight project is a simple two-step process.

Install the plugin using your preferred package manager:

Terminal window
# npm
npm install starlight-skills
# yarn
yarn add starlight-skills
# pnpm
pnpm add starlight-skills

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.