download-docs
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "download-docs" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1de459d89a97ee1e7dd0b5788f17a65ef35ec04258669040779e6614cef095b8. Verify the upstream source and version against https://github.com/olorehq/olore before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Download and filter documents from source configuration. Supports standalone mode to re-download documents without rebuilding artifacts, for document retrieval and filtering workflows.
Introduction source: third_party · olorehq · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Download and filter documentation from source configs. Use standalone to re-download without rebuilding artifacts.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- `$ARGUMENTS` format: `{config_name}@{version}` (e.g., `prisma@latest`, `[email protected]`) Optional flags: `--force` - Re-download even if already built
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: download-docs
description: Download and filter documentation from source configs. Use standalone to re-download without rebuilding artifacts.Download Docs
Download documentation files from a source config and filter non-useful files.
Usage
/download-docs prisma@latest # Download specific version
/download-docs prisma@latest --force # Re-download even if exists
Input
$ARGUMENTS format: {config_name}@{version} (e.g., prisma@latest, nextjs@16.1.3)
Optional flags:
--force- Re-download even if already built
Execution Steps
Step 1: Parse Arguments and Load Config
Parse $ARGUMENTS:
- Extract
config_nameandversionfrom{config_name}@{version} - Check for
--forceflag
Load config file:
cat vault/configs/{config_name}.json
Extract:
name- Package name_source.type- Source type (githuborurl)_source.repo- GitHub repo (if github type)versions.{version}.ref- Git ref for the version
Step 2: Check if Already Built
test -f vault/packages/{config_name}/{version}/olore-lock.json && echo "EXISTS" || echo "NOT_FOUND"
If exists and no --force flag:
skip: {config_name}@{version} already built (use --force to rebuild)
Return early.
Step 3: Download Documentation
For GitHub sources:
bash -c 'source .claude/skills/build-docs/scripts/github.sh && download_from_github "vault/configs/{config_name}.json" "vault/packages" "{version}"'
For URL sources:
bash -c 'source .claude/skills/build-docs/scripts/url.sh && download_from_urls "vault/configs/{config_name}.json" "vault/packages" "{version}"'
With --force: pass "true" (or "--force") as the 4th argument, otherwise an already-built version is skipped:
bash -c 'source .claude/skills/build-docs/scripts/github.sh && download_from_github "vault/configs/{config_name}.json" "vault/packages" "{version}" true'
(Same for download_from_urls.)
Verify download succeeded:
test -f vault/packages/{config_name}/{version}/olore-lock.json && echo "OK" || echo "FAILED"
If download failed, return error:
error: {config_name}@{version} download failed
Step 4: Count Files and Determine Tier
file_count=$(find vault/packages/{config_name}/{version}/contents -type f \( -name "*.md" -o -name "*.mdx" \) | wc -l)
total_size=$(du -sk vault/packages/{config_name}/{version}/contents | cut -f1)
| Tier | Criteria |
|---|---|
| 1 | < 30 files AND < 500KB |
| 2 | 30-100 files OR 500KB-2MB |
| 3 | > 100 files OR > 2MB |
Step 5: Filter Files (GitHub sources with >50 files only)
Skip this step if:
- Source type is
url - File count is <= 50
For GitHub sources with >50 files:
-
For each file, read only the first 20-30 lines to make filtering decisions:
- Frontmatter/metadata (YAML block)
- Title and first heading
- Opening paragraph describing the content
This is sufficient to identify file type (changelog, RFC, API doc, tutorial, etc.). Do NOT read entire files for filtering - it wastes tokens on large repos.
-
Evaluate each file against criteria:
KEEP - Files that help developers USE the library:
- API reference documentation
- Usage guides and tutorials
- Configuration and setup docs
- Code examples and patterns
- Integration guides
- Troubleshooting guides
DELETE - Files NOT useful for using the library:
- Internal development docs
- Contribution guidelines
- Release notes and changelogs
- Meeting notes, RFCs, proposals
- Marketing and landing pages
- Duplicate or stub files
- Auto-generated index files with no content
-
Delete files that should be removed:
rm "vault/packages/{config_name}/{version}/contents/{path_to_delete}" -
Remove empty directories:
find vault/packages/{config_name}/{version}/contents -type d -empty -delete
Step 6: Update olore-lock.json
Update the lock file with final file count:
# Get final count
final_count=$(find vault/packages/{config_name}/{version}/contents -type f \( -name "*.md" -o -name "*.mdx" \) | wc -l)
Update files field in olore-lock.json if filtering occurred.
Step 7: Return Summary
Return ONLY a brief summary:
done: {config_name}@{version} downloaded, {final_count} files{filtered_info}, tier {tier}
Examples:
done: prisma@latest downloaded, 312 files (126 filtered), tier 3done: zod@latest downloaded, 17 files, tier 1
Outputs
vault/packages/{config_name}/{version}/contents/- Downloaded documentation filesvault/packages/{config_name}/{version}/olore-lock.json- Build metadata
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供从源配置下载技术文档的完整解决方案
- 支持GitHub和URL两种源类型,适用性广
- 智能文件筛选机制提升文档质量
Highlights
- 触发词格式清晰明确(config_name@version)
- 支持--force等可选参数扩展
- description内容完整且位置正确
Highlights
- 7个执行步骤逻辑清晰完整
- 包含详细的输入输出说明和示例
- frontmatter规范完整,文档结构合理
Highlights
- 覆盖文件已存在、下载失败等主要异常场景
- 提供--force确认机制避免误操作
- 工具和参数使用规范明确
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.