tablepack AGENTS.md

Repository instructions for TablePack, a tool that turns tables in PDF files into Excel packages using MinerU, a document-processing tool. They define setup options, required checks, file locations, and when visual review is needed.

In plain words
What is it for?
Use them when converting PDF tables to Excel, installing or locating MinerU, repairing sheets, or checking the visual accuracy of the generated package.
Why use it?
They prevent operators from skipping MinerU setup or claiming a visual quality check that was not actually performed. They also clarify how to find input files, outputs, caches, and the MinerU executable.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/kujiangmudao/tablepack/agents-md
Clone the repo
git clone --depth 1 https://github.com/kujiangmudao/tablepack

Made for: Codex, OpenCode.

Per session 1,026 This file is loaded in full into every session.
When invoked 1,026 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01026 $0.01026
Opus 5 $0.00513 $0.00513
Sonnet 5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

Measured 2d ago against content hash 30fd9a1311a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tablepack AGENTS.md 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 2d 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.

AGENTS.md · 84 lines

How it starts

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

TablePack (pdf-excel) — Agent / operator rules (must follow)

Product name: TablePack. Turns PDF tables → Excel packages using MinerU.
When the user asks to convert PDFs, always follow this file + skills/pdf-table-to-excel/SKILL.md.

Two user paths

User What to do
Already has MinerU Use this repo + skill; ensure mineru on PATH or config.yamlmineru_bin
No MinerU yet Run scripts/install_mineru.ps1 (Windows) or scripts/install_mineru.sh (Unix), activate .venv-mineru, then same skill/CLI. See docs/INSTALL.md

Multimodal requirement

  • Auto pipeline (python -m pdf_excel): text/CLI is enough.
  • Quality control / sheet repair: requires a vision-capable model that can open 原始表格/ screenshots (or PDF pages).
  • Text-only models: may run packaging, but must not claim visual QC was done.

Environment

Resolve paths via (in order): CLI flags → env vars → config.yaml → defaults.

Item Default / note
Source PDFs pdf/
Output packages output/
MinerU cache work/mineru_raw/
MinerU CLI MINERU_BIN or config.yamlmineru_bin (auto-discover if on PATH)
Backend pipeline by default; tables on (-t true); language ch unless configured
Code entry python -m pdf_excel or convert_pipeline.py

Local machine tip: Path B writes config.yaml; or copy config.example.yaml (gitignored).

Hard requirements (never skip)

  1. MinerU is the primary parser (helpers OK for repair only).
  2. One PDF → one Excel, same basename.
  3. All tables of one PDF in one workbook as different sheets.
  4. Package structure:
output/<PDF_STEM>/
  ├── <PDF_STEM>.xlsx
  ├── 原始表格/          # table screenshots (required)
  ├── 图片/              # non-table figures
  └── 转换说明.md        # success
      or 问题说明.md     # fail / partial fail
  1. Strict visual QC after auto convert: compare each sheet vs 原始表格/ (or PDF). Fix misaligned columns, bad headers, merges, suspicious numbers immediately.
  2. Unrecoverable tables: write markdown explaining why — never fabricate data.
  3. PDFs with no tables: still emit folder + placeholder xlsx + 问题说明.md + keep figures when possible.

Read the full file on GitHub · 84 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. 2d ago First seen · 84 lines · 1,026 tokens per session scan A 30fd9a1311a3

Subscribe to this mod's changes

tablepack AGENTS.md is an instructions file published in the GitHub repository kujiangmudao/tablepack (5 stars, last pushed 19d ago), licensed MIT. It adds 1,026 tokens to every session, about $0.0051 per session on Opus 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

Other instructions, from other repositories

mcp-server-excel readme-management.instructions.md

Instructions for sbroenne/mcp-server-excel, covering readme management - quick reference, core entry documents, feature documentation, critical rules and tool & action counts must match.

sbroenne/mcp-server-excel · 2,648 tokens

mcp-server-excel extension-development.instructions.md

Instructions for sbroenne/mcp-server-excel, covering vs code extension development instructions, extension overview, changelog and changesets (critical), version management and automatic version management (unified release workflow).

sbroenne/mcp-server-excel · 1,427 tokens

mcp-server-excel copilot-instructions.md

Instructions for sbroenne/mcp-server-excel, covering github copilot instructions - excelmcp, repository map, environment, working rules and build and validation.

sbroenne/mcp-server-excel · 1,206 tokens

mcp-server-excel excel-connection-types-guide.instructions.md

Instructions for sbroenne/mcp-server-excel, covering excel connection types - llm quick reference, critical: loadto operation limitations, connection action compatibility, decision tree: connection vs power query and recommended workflows.

sbroenne/mcp-server-excel · 1,113 tokens

mcp-server-excel excel-com-interop.instructions.md

Instructions for sbroenne/mcp-server-excel, covering excel com interop, api selection, batch execution and exceptions, com lifetime and excel application state.

sbroenne/mcp-server-excel · 696 tokens

mcp-server-excel mcp-server-guide.instructions.md

Instructions for sbroenne/mcp-server-excel, covering mcp server development, tool pattern, errors and json, schema and descriptions and cross-surface verification.

sbroenne/mcp-server-excel · 538 tokens