arc-corpus

arc-corpus is a skill for Claude Code from cwensel/arcaneum. It costs 84 tokens per session (3,917 once invoked), scanned A, original, MIT.

A tool for managing one searchable content collection in both semantic search and full-text search systems. Semantic search finds related meaning, while full-text search matches words and phrases.

In plain words
What is it for?
Use it to create, sync, inspect, verify, export, import, or delete collections of PDFs, code, or Markdown files.
Why use it?
It keeps the two search indexes synchronized instead of requiring separate updates and risking inconsistent results.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the arc plugin — 5 skills, 10 commands shipped together

Good fit Use it to create, sync, inspect, verify, export, import, or delete collections of PDFs, code, or Markdown files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cwensel/arcaneum/arc-corpus
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cwensel/arcaneum --skill arc-corpus
Clone the repo
git clone --depth 1 https://github.com/cwensel/arcaneum

Made for: Claude Code.

Or install arc, the plugin that ships this one along with the rest of its 5 skills, 10 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for arc-corpus

README.md
[![agentmods](https://agentmods.dev/badge/skills/cwensel/arcaneum/arc-corpus/github.svg)](https://agentmods.dev/skills/cwensel/arcaneum/arc-corpus)
Your own site
<a href="https://agentmods.dev/skills/cwensel/arcaneum/arc-corpus"><img src="https://agentmods.dev/badge/skills/cwensel/arcaneum/arc-corpus/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for arc-corpus

Your own site · 80×15
<a href="https://agentmods.dev/skills/cwensel/arcaneum/arc-corpus"><img src="https://agentmods.dev/badge/skills/cwensel/arcaneum/arc-corpus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 16
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Excessive Agency · line 24
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 73
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03917
Opus 5.5 $0.00034 $0.01567
Sonnet 5.5 $0.00017 $0.00783
Haiku 4.5 $0.00008 $0.00392

Measured 6d ago against content hash 01a67cd49bd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arc-corpus scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/arc-corpus/SKILL.md · 304 lines

How it starts

The opening of the file, as written. The whole thing — 304 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Corpus Management

A corpus is a Qdrant collection serving semantic search and full-text search (a BM25 text index in the same collection, Qdrant 1.20+); a meili corpus also keeps a MeiliSearch index in sync for its full-text search.

For adding or updating content, always prefer arc corpus sync over arc index, arc collection, or arc indexes. The corpus commands manage a corpus's semantic and full-text search together. Single-system commands (arc index, arc collection, arc indexes) are for advanced workflows; arc indexes and arc index text are MeiliSearch-only and need meilisearch.enabled: true.

MeiliSearch is optional: a corpus on the qdrant text backend serves full-text search from its Qdrant collection. Without --text-backend, arc corpus create uses corpus.default_text_backend from ~/.config/arcaneum/config.yaml (qdrant for a new user, meili for one who already ran MeiliSearch). While meilisearch.enabled is false, --text-backend meili, arc corpus migrate-text --to meili and --finalize are refused. To move an existing install to Qdrant only, arc corpus migrate-text --all --to qdrant migrates every corpus on meili; docs/guides/qdrant-only-text.md has every step.

# Create corpus (a Qdrant collection; a meili corpus also gets a MeiliSearch index)
arc corpus create MyCorpus --type pdf
arc corpus create MyCorpus --type code
arc corpus create MyCorpus --type markdown
arc corpus create MyCorpus --type pdf --models qwen3-embed,jina-v3  # Multiple models

# Delete corpus (deletes the collection and any MeiliSearch index)
arc corpus delete MyCorpus              # With confirmation prompt
arc corpus delete MyCorpus --confirm    # Skip confirmation
arc corpus delete MyCorpus --confirm --json  # JSON output

# Sync files into a corpus (preferred command for adding/updating content)
arc corpus sync MyCorpus /path/to/files
arc corpus sync MyCorpus /path/one /path/two /path/three    # Multiple directories
arc corpus sync MyCorpus /path/to/files --parity            # Detect renames, remove files no longer on disk
arc corpus sync MyCorpus /path/to/files --parity --dry-run  # Preview parity changes first
arc corpus sync MyCorpus /path/to/files --force             # Force reindex
arc corpus sync MyCorpus /path/to/files --verify            # Verify after sync
arc corpus sync MyCorpus /path/to/files --verbose           # Show progress
arc corpus sync MyCorpus /path/to/files --gpu               # Opt into experimental accelerator (CPU is default)

# Keep a git repo in sync automatically (installs a git hook)
arc corpus hook install                               # Guided: pick/create corpus, choose hooks
arc corpus hook install MyCorpus                      # Auto-sync the default branch
arc corpus hook install MyCorpus --branch develop     # Follow another branch
arc corpus hook install MyCorpus --service            # Plus an OS watcher for reboot recovery
arc corpus hook status                                # What is installed in this repo
arc corpus jobs                                       # Running syncs/drains and queued hook work
arc corpus hook uninstall MyCorpus                    # Remove just this corpus's hook

# Sync only what a commit touched, without installing a hook
arc corpus sync MyCorpus --changed-since HEAD              # Last commit
arc corpus sync MyCorpus --changed-since ORIG_HEAD..HEAD   # Since a pull

# Re-extract unchanged files chosen by stored metadata (after an extractor fix);
# `!fallback` selects only PDFs not yet re-extracted since the column-order fix
arc corpus sync MyCorpus --from-index 'method=pymupdf_normalized,!fallback' --dry-run
arc corpus sync MyCorpus --from-index 'method=pymupdf_normalized,!fallback'
arc corpus sync MyCorpus --from-index 'version<0.10.0'

# Check health: content quality plus text coverage (qdrant) or Qdrant/MeiliSearch parity (meili)
arc corpus verify MyCorpus                            # Human-readable report
arc corpus verify MyCorpus --json                     # parity_status (meili corpora): synced | mismatch | unknown
arc corpus verify MyCorpus --strict --json            # Exit 1 on any issue, including mismatch

# Sweep every corpus (read-only) and get the commands that fix each one
arc corpus doctor                                     # All corpora; lists commands to run
arc corpus doctor MyCorpus OtherCorpus --json         # data.commands / data.optional_commands

# Repair incomplete or garbled files, then restore text coverage/parity
arc corpus repair MyCorpus                            # Detect and fix quality and parity issues
arc corpus repair MyCorpus --dry-run                  # Preview what would be repaired
arc corpus repair MyCorpus --include-stale-policy     # Also migrate policy-only files
arc corpus repair MyCorpus --prune-orphans            # Also delete MeiliSearch docs for files gone everywhere (meili)
arc corpus repair MyCorpus --quality-threshold 0.5    # More aggressive detection
arc corpus repair MyCorpus --verbose                  # Show per-file quality scores

# View corpus info
arc corpus info MyCorpus
arc corpus info MyCorpus --json

# List indexed items (Q/M parity status on a meili corpus)
arc corpus items MyCorpus               # Table output with Q/M chunk counts
arc corpus items MyCorpus --json        # JSON output for automation

# Check and restore the text index; Qdrant/MeiliSearch parity, --prune-orphans and
# --create-missing apply to meili corpora only
arc corpus parity MyCorpus              # Check and backfill single corpus
arc corpus parity MyCorpus --dry-run    # Preview only
arc corpus parity MyCorpus --verify     # Verify chunk counts match
arc corpus parity MyCorpus --repair-metadata  # Fix missing git metadata (code corpora)
arc corpus parity MyCorpus --prune-orphans    # Delete MeiliSearch docs for files gone everywhere
arc corpus parity MyCorpus --force-prune      # Same, even if the file's directory is missing
arc corpus parity MyCorpus --verbose    # Detailed progress

# All-corpora mode (no corpus name)
arc corpus parity                       # Process all corpora
arc corpus parity --dry-run             # Preview all
arc corpus parity --confirm             # Skip confirmation prompt

# Create missing MeiliSearch indexes for qdrant_only collections (meili backend only)
arc corpus parity --create-missing --dry-run   # Preview what would be created
arc corpus parity --create-missing --confirm   # Create and sync all

Read the full file on GitHub · 304 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +3 lines · +17 tokens per session 01a67cd49bd0
  2. 8d ago Changed · +15 lines 95de921a2449
  3. 1mo ago Changed · +8 lines d8bf6f2fe728
  4. 1mo ago Changed · +24 lines 7ed36655f6ef
  5. 1mo ago Changed · +8 lines 81d3fcfe1391
  6. 1mo ago Changed · +19 lines 6a4d053ece83
  7. 1mo ago Changed · +29 lines 0478265c0daf
  8. 2mo ago Changed · +15 lines 5fa0afcb6bad
  9. 3mo ago First seen · 183 lines · 67 tokens per session scan A f4046ab739d3

Subscribe to this mod's changes

arc-corpus is a skill published in the GitHub repository cwensel/arcaneum (8 stars, last pushed 3d ago), licensed MIT. It adds 84 tokens to every session and 3,917 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

arc-corpus compared with skills from other repositories

arc-corpus next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
arc-corpuscwensel/arcaneumSkill83d agoMITA84Claude Code
embeddingsruvnet/rufloSkill83ktodayMITA62Claude Code
rag-pineconedavila7/claude-code-templatesSkill35ktodayMITA65Claude Code, Codex
ingesting-into-data-lakeaws/agent-toolkit-for-awsSkill3.6ktodayApache-2.0A228Claude Code
graphjin-envdosco/graphjinSkill3.2k2d agoApache-2.0A61Claude Code, Codex
similarity-search-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.9k22d agoApache-2.0A30Claude Code, Codex
qdrant-search-quality-diagnosistruera/trulensSkill3.7kyesterdayMITA104Claude Code, Codex