Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add olorehq/olore --skill "build-docs"
Install specific skill from multi-skill repository
# Description
Build documentation packages from configs. Downloads docs, filters with AI, generates SKILL.md. Use when setting up or updating local documentation.
# SKILL.md
name: build-docs
description: Build documentation packages from configs. Downloads docs, filters with AI, generates SKILL.md. Use when setting up or updating local documentation.
Build Docs
Build documentation packages from configs in vault/configs/.
Usage
/build-docs # All configs, all versions
/build-docs prisma # All versions for prisma config
/build-docs prisma@latest # Specific version only
/build-docs prisma zod # Multiple configs
/build-docs prisma --force # Re-download even if exists
Workflow
Phase 1: Parse Arguments
Parse $ARGUMENTS:
- No args β Process all configs in vault/configs/*.json
- name without @ β All versions for that config
- name@version β Specific version only
- --force flag β Re-download even if exists
Phase 2: Discover Work
For each config, list versions and check what needs building:
# List configs
ls vault/configs/*.json
# Get versions from a config
jq -r '.versions | keys[]' vault/configs/{name}.json
# Check if version is built (olore-lock.json exists)
test -f vault/packages/{name}/{version}/olore-lock.json
Built = vault/packages/{name}/{version}/olore-lock.json exists
Work = versions without olore-lock.json (unless --force)
Phase 3: Report Plan and Confirm
Show what will be built and ask for confirmation:
Build plan:
prisma@latest - not built
zod@latest - exists (skip)
[email protected] - not built
Will build 2 packages. Proceed?
Phase 4: Spawn Subagents (PARALLEL)
CRITICAL: Spawn ALL subagents in a SINGLE message for parallel execution.
For each package that needs building, spawn a package-builder subagent:
Use package-builder agent: prisma@latest
Use package-builder agent: [email protected]
If --force flag was set, pass it to subagents:
Use package-builder agent: prisma@latest --force
Example with 3 packages:
In ONE message, spawn THREE subagents:
- package-builder: prisma@latest
- package-builder: zod@latest
- package-builder: [email protected]
All subagents run in parallel. Each handles:
1. Download docs from source
2. Filter files (if needed)
3. Generate TOC.md
4. Generate SKILL.md
Phase 5: Summary
Collect results from all subagents and report:
Build complete:
β
prisma@latest - 312 files (126 filtered), tier 3
β
zod@latest - 17 files, tier 1
βοΈ [email protected] - skipped (exists)
Install with: olore install ./vault/packages/prisma/latest
Config Structure
Config file: vault/configs/prisma.json
{
"name": "prisma",
"_source": { "type": "github", "repo": "prisma/docs", "path": "content" },
"versions": {
"latest": { "ref": "main" }
}
}
Package Structure (after build)
vault/packages/{name}/{version}/
βββ olore-lock.json # Build metadata
βββ SKILL.md # Skill definition (generated)
βββ TOC.md # Table of contents (generated)
βββ contents/
βββ *.md # Documentation files
After Build
For development (changes immediately visible):
olore link ./vault/packages/prisma/latest
For testing final package (copies to ~/.olore):
olore install ./vault/packages/prisma/latest
After install/link, skills are available as /olore-<name>-<version> (e.g., /olore-prisma-latest).
Reference
- Adding new documentation - Config file format, GitHub/URL sources
- Conventions - Config vs lock files, naming rules
- Templates:
vault/packages/docs-packager/1.0.0/templates/(single source of truth)
Requirements
jq- JSON parsinggit- GitHub cloningcurl- URL downloads
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.