easypaper-metadata-build

easypaper-metadata-build is a command for Claude Code from PinkGranite/EasyPaper. It costs 0 tokens per session (574 once invoked), scanned A, original, Apache-2.0.

An interactive command for turning a folder of research materials into structured EasyPaper metadata. Metadata is descriptive information about a paper, such as its title, authors, figures, and tables.

In plain words
What is it for?
Use it to prepare metadata for a research paper, check an existing metadata JSON file, and identify figures or tables for the next EasyPaper step.
Why use it?
It lets you review and correct the paper information with the assistant instead of accepting an automatic result without checking it. It supports starting from the folder, generating an initial draft, or refining existing metadata.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions Claude Code.

Part of the easypaper plugin — 5 skills, 5 commands shipped together

Good fit Use it to prepare metadata for a research paper, check an existing metadata JSON file, and identify figures or tables for the next EasyPaper step.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/pinkgranite/easypaper/easypaper-metadata-build
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.

Clone the repo
git clone --depth 1 https://github.com/PinkGranite/EasyPaper

Made for: Claude Code.

Or install easypaper, the plugin that ships this one along with the rest of its 5 skills, 5 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 easypaper-metadata-build

README.md
[![agentmods](https://agentmods.dev/badge/commands/pinkgranite/easypaper/easypaper-metadata-build.svg)](https://agentmods.dev/commands/pinkgranite/easypaper/easypaper-metadata-build)
Your own site
<a href="https://agentmods.dev/commands/pinkgranite/easypaper/easypaper-metadata-build"><img src="https://agentmods.dev/badge/commands/pinkgranite/easypaper/easypaper-metadata-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 574 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.
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.00000 $0.00574
Opus 5 $0.00000 $0.00287
Sonnet 5 $0.00000 $0.00115
Haiku 4.5 $0.00000 $0.00057

Measured 8d ago against content hash 5fabdc81783c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

easypaper-metadata-build 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 8d 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.

plugins/easypaper/commands/easypaper-metadata-build.md · 40 lines

How it starts

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

Interactively build EasyPaper metadata from a research-materials folder using Claude Code's file-investigation tools. Output is JSON consumable by /easypaper-paper-from-metadata.

Use this command when the user wants Claude to co-author metadata instead of running the SDK one-shot ep.generate_metadata_from_folder(...) pipeline silently.

Execution Contract

  1. Present the three modes and wait for an explicit choice:
    • [1] cold — Claude walks the folder alone, no Python SDK call.
    • [2] warm-start (recommended) — call ep.generate_metadata_from_folder(materials_root, max_figures=12, max_tables=12, vision_enrich_figures=False) once, then review/edit every field with the user.
    • [3] refine — load an existing metadata JSON, validate it with the inline checks below, then walk the user through fixes and warnings.
  2. Ask for the corresponding input:
    • cold / warm-start: materials_root; resolve it and verify it is an existing directory.
    • refine: existing metadata JSON path; verify it exists.
  3. Ask for optional style/template settings:
    • style_guide: target venue or style guide.
    • template_path: path to the LaTeX template zip if known. If relative, interpret it relative to the saved metadata file location during generation.
  4. Hand off to the easypaper-interactive-metadata-build skill for the detailed 6-phase workflow.
  5. Save to <materials_root>/easypaper_metadata.json by default and tell the user to run /easypaper-paper-from-metadata next.

Inline Validation Rules

Before saving, validate the in-memory metadata with public SDK/Pydantic plus explicit checks:

  • PaperGenerationRequest.model_validate(metadata_dict) succeeds.
  • title, idea_hypothesis, method, data, and experiments are non-empty strings.
  • materials_root is set to a resolved directory for folder-derived metadata.
  • figures[].file_path and tables[].file_path are relative POSIX paths under materials_root.
  • Figure ids use the fig: prefix; table ids use the tab: prefix.
  • Figure and table counts are within the selected caps.
  • Empty references is a warning, not a hard failure.

Read the full file on GitHub · 40 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. 8d ago First seen · 40 lines · 0 tokens per session scan A 5fabdc81783c

Subscribe to this mod's changes

easypaper-metadata-build is a command published in the GitHub repository PinkGranite/EasyPaper (5 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 574 tokens. 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.