Skip to content
Skill

Kb ingest batch

Runs batch ingest workflows for a materials-science knowledge base: ledger queries, batch

Kb ingest batch is an open-source agent skill for knowledge and memory. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Kb ingest batch

This skill gives an agent a second toolchain for batch ingestion into a literature knowledge base. It covers read-only ledger queries that report overall progress, list the papers in a given batch, and show pending batches, along with a planner that groups unprocessed papers into batches by tier and class and a closer that rebuilds the index, checks newly created pages and records completion.

The closer runs in dry-run mode by default and only writes files when given an apply flag. Its checks flag missing quoted raw links, too few outgoing links, pages with no inbound links, and missing critical-assessment or honest-boundaries sections. The documentation also warns about known defects, including a hard-coded date in the log entries and a conflict over which log file should receive entries, and tells the agent to follow the knowledge base's own protocol in those cases.

The workflow expects a local knowledge base with its own ingest rules, a classification state file and a batch file in version 2 format. Scripts are Python and read or write JSON and Markdown files in the project folder. The project's batches were reported complete in September 2026, so the skill is mainly for adding new papers or reproducing past runs.

When your agent uses it

综述工程 综述工程的「批次 ingest」编排工具链(台账查询、批次编排、批次收尾、批次文件 v1/v2 格式)。当需要在 <你的库根> 里查 ingest 进度、列出某批篇目、操作 batches_v2.json / batch_done.json、或执行 batch_close 时使用。⚠️ 该工程 64/64 批已于 2026-09-26 全部完成,本技能现为「按需复现/新增批次」用途。

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the matsci-knowledge-base plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add cqxcrl/matsci-kb-kit
/plugin install matsci-knowledge-base@matsci-local

Or copy only this skill to ~/.claude/skills/kb-ingest-batch:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cqxcrl/matsci-kb-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kb-ingest-batch &&
cp -R "$tmp/skills/kb-ingest-batch" ~/.claude/skills/kb-ingest-batch &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/kb-ingest-batch inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/kb-ingest-batch to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cqxcrl/matsci-kb-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kb-ingest-batch &&
cp -R "$tmp/skills/kb-ingest-batch" ~/.agents/skills/kb-ingest-batch &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/kb-ingest-batch inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/kb-ingest-batch to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cqxcrl/matsci-kb-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kb-ingest-batch &&
cp -R "$tmp/skills/kb-ingest-batch" ~/.cursor/skills/kb-ingest-batch &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/kb-ingest-batch inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/cqxcrl/matsci-kb-kit.git --path skills/kb-ingest-batch

Or copy the folder to ~/.gemini/skills/kb-ingest-batch yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kb-ingest-batch:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cqxcrl/matsci-kb-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kb-ingest-batch &&
cp -R "$tmp/skills/kb-ingest-batch" ~/.copilot/skills/kb-ingest-batch &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/kb-ingest-batch inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/cqxcrl/matsci-kb-kit.git

Then copy matsci-kb-kit/skills/kb-ingest-batch into your agent's skills folder as kb-ingest-batch. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Read-only ledger queries
Shows overall ingest progress, the next batch, pending batches and the papers in a chosen batch without changing any files.
Batch planning script
Regroups unprocessed papers into batches by tier and class, with size limits, and only overwrites the batch file when explicitly applied.
Batch closing checks
Rebuilds the index, validates newly created pages for broken links and missing sections, and records the batch as complete.
Batch file format rules
Defines the older and current batch JSON formats and the checklist that prevents mixing them.
Known defect warnings
Documents hard-coded dates and conflicting log targets so the agent can work around them.

Good for

  • Check how far a literature ingest project has progressed
  • List the papers in batch N14 with their DOIs
  • Plan a new batch for recently added papers in the knowledge base
  • Validate and close a finished batch after adding wiki pages

Kb ingest batch FAQ

What does Kb ingest batch need to run?

It needs a local knowledge base project with the tools folder and its classification state, batch and ledger files, plus Python to run the scripts.

Does the planning script change files by default?

No. The planner runs as a dry run and only overwrites the batch file and its overview when the apply flag is passed. The skill advises backing up the existing batch file first.

Is the ledger status script safe to run?

Yes, it is read-only and does not write any files.

Will the skill work if all batches are already done?

The skill states that all 64 batches were completed in September 2026 and is intended for adding new papers or reproducing past runs.

How do I install Kb ingest batch in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/kb-ingest-batch to use it in all your projects, or to .claude/skills/kb-ingest-batch in one project. Or install the matsci-knowledge-base plugin, which includes it: /plugin marketplace add cqxcrl/matsci-kb-kit, then /plugin install matsci-knowledge-base@matsci-local.

Does Kb ingest batch run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Kb ingest batch?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Kb ingest batch?

The closest alternatives to Kb ingest batch are Kb qc loop, Kb lint, Lit pipeline, LLM wiki and Lit watch.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from cqxcrl/matsci-kb-kit

  1. Runs health checks and batch fixes on a markdown knowledge base, with tiered lint modes

    • Open source
    • 6 GitHub stars
    • Knowledge and memory
  2. Interview-driven setup wizard that configures a literature library's research directions

    • Open source
    • 6 GitHub stars
    • Knowledge and memory
  3. Runs a serial, tick-based quality-check loop that flags numbers and claims missing from

    • Open source
    • 6 GitHub stars
    • Knowledge and memory
  4. Lets an agent answer questions from a local materials-science knowledge base with cited

    • Open source
    • 6 GitHub stars
    • Knowledge and memory
  5. Runs a reviewer-and-reviser loop on a literature review draft, checking claims against

    • Open source
    • 6 GitHub stars
    • Writing style
  6. Lets an agent retry blocked paper and supplement downloads through a real browser

    • Open source
    • 6 GitHub stars
    • Web search and scraping