# Kb ingest batch

> Kb ingest batch is an open-source agent skill for knowledge and memory. Runs batch ingest workflows for a materials-science knowledge base: ledger queries, batch. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/cqxcrl/matsci-kb-kit/tree/main/skills/kb-ingest-batch
- **Repository:** https://github.com/cqxcrl/matsci-kb-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** kb-ingest-batch
- **Collection:** https://github.com/cqxcrl/matsci-kb-kit
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-02

## About

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 全部完成，本技能现为「按需复现/新增批次」用途。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/cqxcrl/matsci-kb-kit/tree/HEAD/skills/kb-ingest-batch)
- [License: MIT](https://github.com/cqxcrl/matsci-kb-kit/tree/HEAD/skills/kb-ingest-batch)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Kb qc loop](https://ai-powered.com/skills/kb-qc-loop): Kb qc loop is an open-source agent skill for knowledge and memory.
- [Kb lint](https://ai-powered.com/skills/kb-lint): Kb lint is an open-source agent skill for knowledge and memory.
- [Lit pipeline](https://ai-powered.com/skills/lit-pipeline): Lit pipeline is an open-source agent skill for knowledge and memory.
- [LLM wiki](https://ai-powered.com/skills/llm-wiki): LLM wiki is an open-source agent skill for knowledge and memory.
- [Lit watch](https://ai-powered.com/skills/lit-watch): Lit watch is an open-source agent skill for knowledge and memory.
- [Consolidate](https://ai-powered.com/skills/consolidate-onebrain-ai): Consolidate is an open-source agent skill for knowledge and memory.
- [Kb query](https://ai-powered.com/skills/kb-query): Kb query is an open-source agent skill for knowledge and memory.
- [Bench read](https://ai-powered.com/skills/bench-read): Bench read is an open-source agent skill for productivity.

---
Source: https://ai-powered.com/skills/kb-ingest-batch
