# Index manager

> Index manager is an open-source agent skill for legal and government. Manages patent legal-source downloads, index rebuilds, diagnostics and backups. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/RobThePCGuy/Claude-Patent-Creator/tree/main/skills/index-manager
- **Repository:** https://github.com/robthepcguy/claude-patent-creator
- **GitHub stars:** 222
- **License:** MIT
- **Skill name:** index-manager
- **Collection:** https://github.com/RobThePCGuy/Claude-Patent-Creator
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-12-03

## About

This skill guides the agent through maintaining the local search index used by the Claude Patent Creator toolkit. It walks through checking the health of the installed CLI, locating the active PDF and index directories, downloading missing legal sources and rebuilding the index with the setup command.

The instructions also cover tuning: lowering the embedding batch size when memory runs short, forcing CPU processing, and restoring defaults through the config command. A backup step copies the index directory to a timestamped sibling folder before risky changes, and a verification step checks the index and chunk count after a rebuild.

The skill expects the patent-creator virtual environment to be installed under the home directory, with commands given for macOS, Linux and Windows PowerShell. It does not replace existing PDFs with newer legal editions, so edition changes require the user to supply official files.

## When your agent uses it

> Manage legal-source downloads, index builds, diagnostics and maintenance.

## What it can access

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

- [Instructions only, no scripts](https://github.com/RobThePCGuy/Claude-Patent-Creator/tree/HEAD/skills/index-manager)
- [License: MIT](https://github.com/RobThePCGuy/Claude-Patent-Creator/tree/HEAD/skills/index-manager)

## Features

- **Health diagnostics:** Runs the CLI health check and reports storage paths, index state and chunk counts.
- **Source downloads and rebuilds:** Fetches missing legal sources and reprocesses the current files into the index.
- **Edition change guidance:** Explains how to replace PDFs with newer official editions and rebuild safely.
- **Memory and device tuning:** Adjusts embedding batch size and switches processing to CPU through config settings.
- **Index backups:** Copies the index directory to a timestamped backup before changes are made.
- **Post-build verification:** Checks that the rebuilt index works with a sample MPEP search.

## Good for

- Check whether the patent search index is healthy and where its files live
- Download missing MPEP sources and rebuild the search index
- Fix out-of-memory errors during an index build by lowering the batch size
- Back up the current index before replacing legal source PDFs
- Switch the index build to CPU processing

## Install

### Claude Code

This skill ships in the `claude-patent-creator-standalone` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add RobThePCGuy/Claude-Patent-Creator
/plugin install claude-patent-creator-standalone@claude-patent-creator
```

Or copy only this skill to `~/.claude/skills/index-manager`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RobThePCGuy/Claude-Patent-Creator.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/index-manager &&
cp -R "$tmp/skills/index-manager" ~/.claude/skills/index-manager &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/index-manager` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/index-manager` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RobThePCGuy/Claude-Patent-Creator.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/index-manager &&
cp -R "$tmp/skills/index-manager" ~/.agents/skills/index-manager &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/index-manager` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/index-manager` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RobThePCGuy/Claude-Patent-Creator.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/index-manager &&
cp -R "$tmp/skills/index-manager" ~/.cursor/skills/index-manager &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/index-manager` 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/RobThePCGuy/Claude-Patent-Creator.git --path skills/index-manager
```

Or copy the folder to `~/.gemini/skills/index-manager` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RobThePCGuy/Claude-Patent-Creator.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/index-manager &&
cp -R "$tmp/skills/index-manager" ~/.copilot/skills/index-manager &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/index-manager` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/RobThePCGuy/Claude-Patent-Creator.git
```

Then copy `Claude-Patent-Creator/skills/index-manager` into your agent's skills folder as `index-manager`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Index manager need installed?

It assumes the patent-creator CLI is installed in a virtual environment at patent-creator-venv under the home directory, and it runs commands through that CLI and its Python interpreter.

### Does a rebuild update the legal text to the latest edition?

No. Setup downloads missing sources and reprocesses current files without replacing existing PDFs with newer editions. Edition changes need official files placed manually before rebuilding.

### Where does the index and PDF data live?

Defaults are under the home directory's local share folder on macOS and Linux, and under APPDATA on Windows. The PATENT_DATA_DIR setting or existing legacy data can change these locations.

### How do I reduce memory use during a build?

Set PATENT_EMBED_BATCH_SIZE to 16 with the config command, or to 8 if that still runs out of memory. Removing the override restores the automatic default.

### How do I install Index manager in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/index-manager to use it in all your projects, or to .claude/skills/index-manager in one project. Or install the claude-patent-creator-standalone plugin, which includes it: /plugin marketplace add RobThePCGuy/Claude-Patent-Creator, then /plugin install claude-patent-creator-standalone@claude-patent-creator.

### Does Index manager 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 Index manager?

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 Index manager?

The closest alternatives to Index manager are Setup assistant, Patent application creator, Patent search, Patent reviewer and Epc search.

## Where this comes from

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

## Alternatives

- [Setup assistant](https://ai-powered.com/skills/setup-assistant): Setup assistant is an open-source agent skill for legal and government.
- [Patent application creator](https://ai-powered.com/skills/patent-application-creator): Patent application creator is an open-source agent skill for legal and government.
- [Patent search](https://ai-powered.com/skills/patent-search-robthepcguy): Patent search is an open-source agent skill for legal and government.
- [Patent reviewer](https://ai-powered.com/skills/patent-reviewer): Patent reviewer is an open-source agent skill for legal and government.
- [Epc search](https://ai-powered.com/skills/epc-search): Epc search is an open-source agent skill for legal and government.
- [Prior art search](https://ai-powered.com/skills/prior-art-search): Prior art search is an open-source agent skill for legal and government.
- [Mpep search](https://ai-powered.com/skills/mpep-search): Mpep search is an open-source agent skill for legal and government.
- [Patent claims analyzer](https://ai-powered.com/skills/patent-claims-analyzer): Patent claims analyzer is an open-source agent skill for legal and government.

---
Source: https://ai-powered.com/skills/index-manager
