API documentation and reference provider for Astro/Starlight. Provides on-demand documentation lookup, API verification, and feature availability checks.
Provides on-demand API documentation for Astro and Starlight. Triggers during `/lookup`, `/dev`, or `/design` commands when you need to verify syntax, check feature availability, or access current API references.
/plugin marketplace add superbenefit/sb-marketplace/plugin install astro-dev@sb-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/docs-index.mdreferences/llms.txtExpert documentation and API reference provider for Astro and Starlight development.
The astro-knowledge skill provides on-demand documentation lookup and API verification. It helps agents confirm current syntax, check feature availability, and access comprehensive API references.
This skill loads on-demand when agents need:
This skill is loaded when:
/lookup command for quick API reference/dev for API verification/design for feature availability checksLocation: \${CLAUDE_PLUGIN_ROOT}/skills/astro-knowledge/references/
Location: \${CLAUDE_PLUGIN_ROOT}/knowledge-base/
If astro-docs MCP server is available:
```typescript // getCollection, getEntry, getEntries import { getCollection, getEntry } from 'astro:content';
// Get all entries const posts = await getCollection('blog');
// Get single entry const post = await getEntry('blog', 'post-slug');
// Filter entries const published = await getCollection('blog', ({ data }) => data.draft !== true ); ```
```typescript // getStaticPaths return format export async function getStaticPaths() { const entries = await getCollection('docs');
return entries.map(entry => ({ params: { slug: entry.slug }, props: { entry } })); } ```
```astro
<!-- Load immediately --> <Component client:load /> <!-- Load when browser idle --> <Component client:idle /> <!-- Load when visible --> <Component client:visible /> <!-- Load when media query matches --> <Component client:media="(max-width: 768px)" /> <!-- Only render on client --> <Component client:only="react" /> \`\`\````javascript import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight';
export default defineConfig({ integrations: [ starlight({ title: 'My Docs', social: { github: 'https://github.com/user/repo', }, sidebar: [ { label: 'Guides', items: [ { label: 'Getting Started', link: '/guides/getting-started/' }, ], }, ], }) ] }); ```
When providing documentation:
```markdown
[Code example]
Source: https://docs.astro.build/...
[Usage patterns]
Quick lookup: API signature + example (~100 tokens) Standard lookup: Full documentation + patterns (~300 tokens) Comprehensive: Multiple related APIs + guides (~600 tokens)
Skill Version: 2.0 (On-Demand Reference) Plugin Version: v0.4.0+ Last Updated: 2025-11-05
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.