lookup

lookup is a command for Claude Code from superbenefit/sb-marketplace. It costs 13 tokens per session (1,393 once invoked), scanned A, original, CC0-1.0.

A command for quickly checking Astro and Starlight documentation, which cover website and documentation-site development. It returns API syntax, examples, related references, and version information when available.

In plain words
What is it for?
Use it to look up routes, content collections, configuration, client directives, image handling, or other Astro and Starlight topics.
Why use it?
It helps you confirm how an API works instead of relying on outdated examples or assumptions.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the astro-dev plugin — 2 skills, 3 commands, 1 MCP server shipped together

Good fit Use it to look up routes, content collections, configuration, client directives, image handling, or other Astro and Starlight topics.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add superbenefit/sb-marketplace
Claude Code
/plugin install astro-dev

Made for: Claude Code.

Or install astro-dev, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lookup

README.md
[![agentmods](https://agentmods.dev/badge/commands/superbenefit/sb-marketplace/lookup/github.svg)](https://agentmods.dev/commands/superbenefit/sb-marketplace/lookup)
Your own site
<a href="https://agentmods.dev/commands/superbenefit/sb-marketplace/lookup"><img src="https://agentmods.dev/badge/commands/superbenefit/sb-marketplace/lookup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lookup

Your own site · 80×15
<a href="https://agentmods.dev/commands/superbenefit/sb-marketplace/lookup"><img src="https://agentmods.dev/badge/commands/superbenefit/sb-marketplace/lookup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,393 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.01393
Opus 5 $0.00006 $0.00696
Sonnet 5 $0.00003 $0.00279
Haiku 4.5 $0.00001 $0.00139

Measured 9d ago against content hash 040bd8d67a68, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

lookup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

astro-dev/commands/lookup.md · 307 lines

How it starts

The opening of the file, as written. The whole thing — 307 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/lookup Command

Fast API verification and documentation search using the astro-knowledge skill.

Usage

/lookup [api-name or topic]

Description

The /lookup command provides quick access to Astro and Starlight API documentation, syntax examples, and best practices via the astro-knowledge skill.

Examples

/lookup getStaticPaths
/lookup content collections
/lookup starlight config
/lookup client directives
/lookup image optimization
/lookup defineCollection

What You Get

1. Current Syntax

// Latest API syntax with TypeScript types
import { getCollection } from 'astro:content';

const posts = await getCollection('blog');

2. Usage Examples

// Common patterns
const published = await getCollection('blog', ({ data }) => {
  return data.draft !== true;
});

3. Documentation Links

  • Official Astro docs URL
  • Related API references
  • Migration guides (if applicable)

4. Best Practices

  • Performance tips
  • Common pitfalls
  • Security considerations

Common Lookups

Content Collections

/lookup getCollection

Returns:

import { getCollection, getEntry, getEntries } from 'astro:content';

// Get all entries
const allPosts = await getCollection('blog');

// Filter entries
const publishedPosts = await getCollection('blog', ({ data }) => 
  !data.draft
);

// Get single entry
const post = await getEntry('blog', 'post-slug');

Dynamic Routes

/lookup getStaticPaths

Returns:

export async function getStaticPaths() {
  const posts = await getCollection('blog');
  
  return posts.map(post => ({
    params: { slug: post.slug },
    props: { post },
  }));
}

const { post } = Astro.props;

Client Directives

/lookup client directives

Returns:

<!-- Load on page load -->
<Component client:load />

<!-- Load when browser idle -->
<Component client:idle />

<!-- Load when visible -->
<Component client:visible />

<!-- Conditional load -->
<Component client:media="(max-width: 768px)" />

<!-- Client-only render -->
<Component client:only="react" />

Read the full file on GitHub · 307 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 307 lines · 13 tokens per session scan A 040bd8d67a68

Subscribe to this mod's changes

lookup is a command published in the GitHub repository superbenefit/sb-marketplace (5 stars, last pushed 7mo ago), licensed CC0-1.0. It adds 13 tokens to every session and 1,393 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.