一键导入
ingest-collection
Rebuild a knowledge store from a paper collection by running paper-process per paper, then doing one final build and optional stance backfill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rebuild a knowledge store from a paper collection by running paper-process per paper, then doing one final build and optional stance backfill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Credentialed-source backend for retrieving books from Bookshare (bookshare.org) into the papers/ collection. Given a book title or ISBN and a target directory name, it searches Bookshare and downloads the EPUB via the published `bookshare` CLI. Download-only (produces book.epub). Enable only if you have a Bookshare account; requires credentials in a gitignored .secrets/bookshare.json.
Paywalled-access backend for paper-retriever. Retrieves a paywalled paper's PDF through an institutional / library subscription (a library proxy such as EZproxy or OpenAthens, or an institutional login), given an identifier (DOI/URL) and the target paper directory name. Invoked by paper-retriever when open-access channels fail. Enable this skill only if the install has institutional access configured.
Paywalled-access backend for paper-retriever. Retrieves a paywalled paper's PDF via sci-hub browser automation, given an identifier (DOI/URL) and the target paper directory name. Invoked by paper-retriever when open-access channels fail; enabled by default. Disable this skill to remove sci-hub from the retrieval waterfall.
Retrieve a scientific paper PDF given an arxiv URL, DOI, or paper title. Downloads to papers/ directory. Handles open-access retrieval (arxiv direct, Chrome print-to-pdf for publisher-direct HTML, Unpaywall, title-based open-repository search); for paywalled papers it hands off to whichever paper-retriever-* access skill is enabled (sci-hub by default, or institutional).
Read scientific papers and extract implementation-focused notes. Converts PDFs to page images, then reads them. Papers <=300pp are read directly by the assigned worker; papers >300pp use a chapter-aligned chunk protocol (preferred) or 50-page chunks (fallback) and synthesize a master notes.md that links to per-chapter files. Creates structured notes in papers/ directory.
Cross-reference a paper against the collection. Finds which cited papers are already collected, which are new leads, which collection papers cite this one, and reconciles all cross-references bidirectionally. Run on a single paper directory or use --all for the entire collection.
| name | ingest-collection |
| description | Rebuild a knowledge store from a paper collection by running paper-process per paper, then doing one final build and optional stance backfill. |
| argument-hint | <papers-directory> [--knowledge-dir <path>] |
| disable-model-invocation | false |
| compatibility | Claude Code, Codex CLI, and Gemini CLI. |
Ingest a paper collection into a propstore knowledge store using incremental per-paper processing.
The default path is:
paper-process for each paperextract-stancespks buildpapers_dir="$ARGUMENTS"
knowledge_dir="${papers_dir}/../knowledge"
ls "$papers_dir"/*/notes.md | head -20
List candidate paper directories and stop if none are present.
if [ ! -d "$knowledge_dir/.git" ]; then
pks init "$knowledge_dir"
fi
If the knowledge store already exists, reuse it. If it does not exist yet, initialize it before processing papers.
For each paper directory, invoke:
/research-papers:paper-process <paper_dir>
If subagents are available, run one worker per paper in parallel. If subagents are unavailable, process the papers sequentially.
Each paper is expected to:
There is no collection-wide promote gate before paper-level progress is allowed.
Workers may call pks against the same knowledge store concurrently. Treat stale branch-head / compare-and-swap errors as retryable coordination failures, not paper failures.
Retry these exact step failures after a short randomized backoff:
StaleHeadErrorhead mismatchhead changedRetry rule:
This retry policy applies especially to master-branch steps such as context authoring, predicate authoring, rule authoring, source promotion, and build. Source-branch proposal commands may already retry internally; still report any final stale-head failure with the exact command and paper.
Optional cleanup is allowed after the first full pass.
Examples:
extract-stances --all to backfill cross-paper links that became visible only after later papers were promotedThis step is optional. Do not treat it as a required second promotion ceremony.
After the paper-process wave is complete, run one final build:
pks build
Then verify the resulting store:
pks world status
Write reports/ingest-collection-report.md summarizing:
extract-stances backfill was runpks build resultpks world status resultpks build fails, report the exact error and stop there.