From explore-packages
Use when exploring a monorepo or multi-package codebase to generate natural-language summaries of each package's purpose, examples, and public APIs using parallel haiku subagents
How this skill is triggered — by the user, by Claude, or both
Slash command
/explore-packages:explore-packagesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Dispatch one haiku subagent per package in parallel to produce concise, no-code, natural-language documentation. Run three passes (description, examples, APIs), then consolidate into a unified output.
Dispatch one haiku subagent per package in parallel to produce concise, no-code, natural-language documentation. Run three passes (description, examples, APIs), then consolidate into a unified output.
Use Glob to find every package.json in the repo (excluding node_modules). Each directory containing a package.json is a package. Every single one is a target — do not skip, filter, or judge which packages are "meaningful." You explore all of them.
For EACH package, launch a background haiku Agent with this prompt (substitute the path):
Explore /absolute/path/to/packages/PKG_NAME/. Read the README.md and browse key source files to understand what this package does. Then write a brief, 1-page natural language description (no code examples) of:
- What the package's intended purpose is
- Why it is cool / what makes it interesting
Write the description to /absolute/path/to/packages/PKG_NAME/DESCRIPTION.md. Keep it concise, engaging, and accessible. No code blocks.
Launch ALL agents simultaneously using run_in_background: true, then wait for all to complete.
For EACH package, launch a background haiku Agent with this prompt:
Explore /absolute/path/to/packages/PKG_NAME/ for any examples included in the package. Look in directories like examples/, test/, docs/, or any other location that contains example usage. Check the README.md for example references too. Search for directories named "example*", "demo*", "sample*", and also look at test files for usage patterns.
Write a brief, no-code, natural language description of what examples exist, what each one demonstrates, and how they showcase the package's capabilities. Write it to /absolute/path/to/packages/PKG_NAME/EXAMPLES.md. No code blocks. Keep it concise and accessible.
Launch ALL agents simultaneously, then wait for all to complete.
For EACH package, launch a background haiku Agent with this prompt:
Explore /absolute/path/to/packages/PKG_NAME/ to find the most useful external/public APIs this package exports. Look at the main entry point (index.ts or similar), package.json "exports" field, and any barrel files. Identify the key exported functions, classes, types, and constants that consumers of this package would use.
Write a brief, no-code, natural language description of the most useful exported APIs. For each one, mention its export name, what it does, and why it's useful. Do NOT include any code blocks or code examples. Only reference APIs by their export name.
Write the result to /absolute/path/to/packages/PKG_NAME/APIS.md. Keep it concise and organized.
Launch ALL agents simultaneously, then wait for all to complete.
After all three passes complete, run these bash commands:
mkdir -p /path/to/repo/summaries/{pkg1,pkg2,...}
for pkg in pkg1 pkg2 ...; do
cp "/path/to/repo/packages/$pkg/DESCRIPTION.md" "/path/to/repo/summaries/$pkg/"
cp "/path/to/repo/packages/$pkg/EXAMPLES.md" "/path/to/repo/summaries/$pkg/"
cp "/path/to/repo/packages/$pkg/APIS.md" "/path/to/repo/summaries/$pkg/"
done
output="/path/to/repo/summaries/summary.md"
echo "# Repo Name - Package Summaries" > "$output"
echo "" >> "$output"
for pkg in pkg1 pkg2 ...; do
echo "---" >> "$output"
echo "" >> "$output"
echo "# Package: $pkg" >> "$output"
echo "" >> "$output"
for file in DESCRIPTION.md EXAMPLES.md APIS.md; do
cat "/path/to/repo/summaries/$pkg/$file" >> "$output"
echo "" >> "$output"
echo "" >> "$output"
done
done
for pkg in pkg1 pkg2 ...; do
rm "/path/to/repo/packages/$pkg/DESCRIPTION.md"
rm "/path/to/repo/packages/$pkg/EXAMPLES.md"
rm "/path/to/repo/packages/$pkg/APIS.md"
done
The summaries/ folder is the single source of truth. The files in the package directories were just an intermediate step.
| Pass | Output File | Agent Task |
|---|---|---|
| 1 | DESCRIPTION.md | Read README + source, describe purpose and appeal |
| 2 | EXAMPLES.md | Find examples/tests/demos, describe what each shows |
| 3 | APIS.md | Read entry points + exports, describe public API surface |
npx claudepluginhub frontboat/explore-packages --plugin explore-packagesAnalyzes repository structure to generate or update AGENTS.md contributor guides for AI agents. Supports single-repo and monorepo layouts with update mode that preserves custom sections.
Scans codebase to update CLAUDE.md and AGENTS.md with production-quality docs on stack, structure, models, APIs, services, repositories, auth, and frontend.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.