download-docs
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "download-docs":https://skillpi.com/zh/skills/deepskill-1de459d89a97ee1e7dd0b5788f17a65ef35ec04258669040779e6614cef095b8。安装前核对上游来源和版本:https://github.com/olorehq/olore。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
从源配置下载并筛选文档。支持 standalone 模式重新下载文档而无需重新构建工件,用于文档获取和过滤流程。
介绍来源: third_party · olorehq · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
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
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供从源配置下载技术文档的完整解决方案
- 支持GitHub和URL两种源类型,适用性广
- 智能文件筛选机制提升文档质量
亮点
- 触发词格式清晰明确(config_name@version)
- 支持--force等可选参数扩展
- description内容完整且位置正确
亮点
- 7个执行步骤逻辑清晰完整
- 包含详细的输入输出说明和示例
- frontmatter规范完整,文档结构合理
亮点
- 覆盖文件已存在、下载失败等主要异常场景
- 提供--force确认机制避免误操作
- 工具和参数使用规范明确
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。