blueprint-plugin/skills/blueprint-curate-docs/SKILL.md
Curate library gotchas and project patterns into .claude/rules/ entries for AI context. Use when documenting library knowledge for PRP reuse.
npx skillsauth add laurigates/claude-plugins blueprint-curate-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Curate library or project documentation into .claude/rules/ entries optimized for AI agents — concise, actionable, gotcha-aware context that is auto-loaded into sessions and referenceable from PRPs.
Note: earlier blueprint versions wrote these entries to
docs/blueprint/ai_docs/. That location is deprecated —.claude/rules/is the canonical home for curated AI context, since rules are loaded by Claude Code natively and shared with every contributor.
Usage: /blueprint:curate-docs [library-name] or /blueprint:curate-docs project:[pattern-name]
| Use this skill when... | Use alternative when... |
|------------------------|-------------------------|
| Documenting library gotchas for PRP/context reuse | Reading raw documentation for ad-hoc tasks |
| Codifying project patterns as rules | One-time library usage |
| Building a knowledge base under .claude/rules/ | General library research |
find . -maxdepth 2 -type d -name rules -path '*/.claude/*'find . -maxdepth 3 -path '*/.claude/rules/*' -name "*.md" -type ffind . -maxdepth 3 -path '*/docs/blueprint/manifest.json' -exec jq -r '.structure.generated_rules_path // ".claude/rules/"' {} +find . -maxdepth 1 \( -name package.json -o -name pyproject.toml -o -name requirements.txt \) -exec grep -m1 "^$1[\":@=]" {} +Parse $ARGUMENTS:
library-name: Name of library to document (e.g., redis, pydantic)
$RULES_DIR/lib-[library-name].mdproject:[pattern-name] for project patterns$RULES_DIR/[pattern-name].md$RULES_DIR is structure.generated_rules_path from docs/blueprint/manifest.json when set, otherwise .claude/rules/.
Execute complete documentation curation workflow:
$RULES_DIR (manifest structure.generated_rules_path, default .claude/rules/)$RULES_DIRFor libraries:
For project patterns:
grep -r "{pattern}" src/Sources for gotchas: GitHub issues, Stack Overflow, team experience, official docs warnings.
Generate the file at $RULES_DIR/lib-[library-name].md or $RULES_DIR/[pattern-name].md (see REFERENCE.md).
Never overwrite a hand-authored rule. If a file with the target name exists and was not produced by this skill, pick a distinct name (e.g. lib-[library-name]-gotchas.md) or ask.
Include all sections from template: Quick Reference, Patterns We Use, Configuration, Gotchas, Testing, Examples.
Keep under 200 lines total.
Include copy-paste-ready code snippets from:
Update the task registry entry in docs/blueprint/manifest.json:
jq --arg now "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--argjson processed "${ITEMS_PROCESSED:-0}" \
--argjson created "${ITEMS_CREATED:-0}" \
'.task_registry["curate-docs"].last_completed_at = $now |
.task_registry["curate-docs"].last_result = "success" |
.task_registry["curate-docs"].stats.runs_total = ((.task_registry["curate-docs"].stats.runs_total // 0) + 1) |
.task_registry["curate-docs"].stats.items_processed = $processed |
.task_registry["curate-docs"].stats.items_created = $created' \
docs/blueprint/manifest.json > tmp.json && mv tmp.json docs/blueprint/manifest.json
| Context | Command |
|---------|---------|
| Resolve rules dir | jq -r '.structure.generated_rules_path // ".claude/rules/"' docs/blueprint/manifest.json |
| List existing rules | ls .claude/rules/ 2>/dev/null |
| Check library version | grep "{library}" package.json pyproject.toml 2>/dev/null \| head -1 |
| Search for patterns | Use grep on src/ for project patterns |
| Fast research | Use WebSearch for common issues instead of fetching docs |
For the rule template, section guidelines, and example entries, see REFERENCE.md.
development
Debug HTTP APIs: trace requests, inspect headers. Use when a request fails: check status first.
documentation
Render architecture diagrams from text sources. Use when documenting system topology.
tools
Inspect JSON payloads and extract nested fields. Use when parsing API responses.
tools
--- name: no-description allowed-tools: Read --- # No Description This skill has no description and must be dropped with a warning.