/paper-protocol:validate-publicationfrom paper-protocol
Validates publication repos and staging trees for compliance with the Agentic Publication Protocol, checking structure, reproducibility, privacy, consistency, and reader-agent usability.
Ships in paper-protocol. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Automated APP compliance checks for publication repos or publication-staging/ candidate release trees. The goal is to make sure the paper-as-agent can help a reader understand and reproduce the paper smoothly, and that the publication contains the information APP requires.
This skill is not a referee report. Do not judge novelty, writing style, scientific importance, or whether the paper is "good." Restrict factual checks to clear APP-relevant inconsistencies: conflicting stated numbers, commands that do not run, missing files, unreproducible figures/tables, broken links, privacy issues, or documentation that would mislead a reader agent.
When called by /publish-paper or its modular step skills, treat publication-staging/ as the effective repository root. Do not validate paths against the private parent working repo. A staged candidate passes only if a reader agent could use the staging tree on its own.
/publish-paper as a sub-skill at validation checkpointspublication-staging/ tree before publicationInvoke with --stage <name> to validate specific artifacts. Omit for a full validation.
| Stage | When | What's checked |
|---|---|---|
structure | After organizing files (phase 3) | Folder structure, file paths, sensitive files, data links, .gitignore |
agents-md | After creating AGENTS.md (phase 4) | APP metadata, ground-truth hierarchy, canonical pointers, reader-help behavior, clear factual consistency |
full | Step 4 of /publish-paper, pre-release review, or standalone | All of the above + README consistency, confidentiality sweep, validation report consistency, local reader-agent usability, and release manifest verification when validating a public tagged release |
Read the publication repo or staging tree to understand what's being validated:
AGENTS.md — the agent's instructions (if it exists yet)README.mdsupplementary/ — know-how, authors-note, sessions, materialsskills/ — any author-published skillsdata/README.md — dataset provenance, access, and download instructions when the publication uses any dataset, local or externalsupplementary/validation-report.md — prior validation report, if this is a final/revalidation passsupplementary/paper-agent-test.md — fresh staging-root paper-agent smoke test, required during final /publish-paper validationAPP_PUBLICATION.json release asset — only when auditing a public tagged release, not when validating publication-staging/When running --stage full as Step 4 of the modular /publish-paper workflow, perform or ensure the fresh staging-root paper-agent smoke test before declaring full validation passed. Save it as supplementary/paper-agent-test.md. The smoke test must include at least one primary-benchmark/result-check question when the paper has a headline numerical or benchmark claim. If staged cached plotted data, notebooks, tables, logs, or generated summaries exist for that claim, the tested agent should report an observed value, ratio, count, ordering, or explicit ambiguity from those staged artifacts; a generic reproduction plan is not enough. If the environment cannot launch a fresh agent session, write or require a paper-agent-test: not performed note and classify it as a release-outcome blocker rather than treating a documentation review as a smoke test.
You may use parallel agents internally when useful, but the user-facing output is a validation report, not inline review comments. Do not edit files to insert validation markers.
Check 1: APP factual consistency
Compare APP-facing claims in AGENTS.md, README.md, supplementary materials, and skills against the paper and runnable artifacts.
Flag only clear inconsistencies or unsupported operational claims, such as:
AGENTS.md, README, or figures/tables;Do not flag generic language merely because it is stylistically weak. Do not evaluate novelty, significance, or paper quality.
Only run at stages: agents-md, full.
Check 2: Path, structure, and command validity
AGENTS.md exists in the repo.code/figure-reproduction/README.md exists, is referenced from AGENTS.md, and is compatible with README.code/figure-reproduction/README.md; every listed script exists; every reproduced item has run evidence or a generated output path; every blocked/manual item has a concrete reason.validation-criteria.md. Flag not-yet-run, todo, unknown, blank, or other temporary statuses as final-validation errors.data/README.md exists whenever the publication uses any dataset; verify every dataset documented there resolves, with local files present or external links reachable via curl -sIL.publication-staging/, verify commands and paths work with staging as the current working directory, and flag references to private parent-repo files.curl -sIL <url> when appropriate; flag non-2xx responses or mark authentication-limited links as needing manual verification.supplementary/ references point to real files.validation-criteria.md for the detailed checklist of what to flag..ipynb_checkpoints/, notebook execution caches, hidden generated folders, stale results/, stale figures/, and build outputs not intentionally documented as paper artifacts or reproduction outputs.Run at all stages.
Check 3: Privacy and confidentiality
Scan all files in the repo — not just supplementary materials, but also the paper source, code files, code comments, notebook outputs, config files, and README. Flag:
sk-..., ghp_..., Bearer ..., key=...)/Users/name/...)See validation-criteria.md for the full pattern list and ../extract-chat-context/confidentiality-checklist.md for the extended reference.
Run at all stages.
Check 4: APP completeness and reader-agent usability
Cross-check information across files:
AGENTS.md paper summary vs README description — should be compatible.code/figure-reproduction/README.md — the code README is authoritative. AGENTS.md should point to that README rather than duplicate its detailed status table.code/figure-reproduction/README.md, and the validation report should agree. If AGENTS.md includes validation or reproduction status despite the concise-template guidance, it must also agree. Flag stale phrases such as "not yet validated" when validation evidence says commands were run, and overly strong statements such as "fully validated" when blockers remain.AGENTS.md vs README — should be identical when both exist.AGENTS.md identity section.data/README.md exists whenever the publication uses any dataset, local or external./publish-paper validation, read the selected publication
target from workflow context or working/reproduction/reproduction-report.md
when available. From the recorded owner/repo and release tag, derive
https://github.com/<owner>/<repo>/releases/tag/<tag>. Scan the canonical
paper source for URLs that appear to be the APP publication or public repo URL.
If the paper includes a publication URL for the selected repo, it must match the
derived release URL; if the paper has no such URL, treat this as neutral rather
than an error. Do not flag unrelated GitHub URLs such as protocol repos,
development repos, dependency repos, or citations unless surrounding text
identifies them as the publication repo URL./publish-paper validation, supplementary/paper-agent-test.md exists and records a fresh agent session launched with the staged repo as its working directory. It should include representative Q&A showing the agent can identify ground truth, summarize the paper, point to real reproduction commands, and accurately report blockers. If this is missing or only a documentation review, classify it as a release-outcome blocker.This is a completeness/usability check, not a prose-quality review. Do not flag wording only because it sounds generic; flag missing information only when it blocks APP use.
Only run at stages: agents-md, full.
Check 5: Verified release manifest
Only run this check when validating a public tagged release or an already-published repo. Do not require APP_PUBLICATION.json during /publish-paper staging validation; the manifest is created in the real publication final-outcome step after the public commit exists.
For a public tagged release:
APP_PUBLICATION.json from the GitHub Release asset for the current tag.repo_url, tag, commit, and tree.app_publication_id from the manifest payload excluding app_publication_id; it must equal the manifest ID.validation.stage == "full" and validation.result == "passed".validation.validation_report_sha256 matches supplementary/validation-report.md if that report is committed, or the validation report release asset if the report is distributed as an asset.human_approval.approved == true and approving authors are listed.If any manifest check fails, report the repo as not fully verified APP-compliant. It may still be an APP-structured candidate.
Classify findings with:
LICENSE; these must not be described as full APP compliance.For each issue include:
error (must fix before release), warning (should fix), note (consider)Before reporting an error, independently confirm it by rereading the relevant files or rerunning the lightweight check. Filter out anything that does not validate.
This reduces false blocking errors. Warnings and notes can be reported with lower confidence if clearly labeled.
Do not write inline comments or modify files. Produce a validation report in the terminal/chat output.
The report should include both what passed and what needs work:
## Publication validation (stage: agents-md)
### Passed
- Required APP files for this stage are present.
- Paths listed in AGENTS.md resolve from the staging root.
- README and AGENTS.md cite the same paper title and authors.
### Issues needing changes
Errors (2)
1. AGENTS.md:45 — Path `code/scripts/fig3.py` does not exist.
Suggested fix: update the path or copy the missing script into staging.
2. README.md:34 — Figure 4 command differs from AGENTS.md.
Suggested fix: make both tables use the same command.
Warnings (1)
1. supplementary/know-how.md:12 — Contains an email address for a non-author.
Suggested fix: remove or anonymize before release.
### Manual verification needed
- External data link requires authentication; researcher should confirm it is accessible to intended readers.
### Public-release blockers
- None.
### Sandbox-only deferrals
- None.
### Brief summary for chat
Validation found two release-blocking APP issues: a missing figure script and inconsistent Figure 4 commands. The rest of the checked structure, paths, and metadata passed.
If no issues are found, say clearly:
No APP compliance issues found. Checked structure, paths, privacy, clear factual consistency, README/AGENTS.md consistency, and reader-agent usability for the requested stage.
When used outside /publish-paper (e.g., auditing an existing publication repo or local staging tree):
/validate-publication
This runs --stage full by default. The agent reads the entire repo, runs the APP validation checks, and reports passed checks, issues needing changes, and manual verification items.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lionsr/agenticpublicationprotocol --plugin paper-protocol10 skills in this plugin
/create-paper-pageCreate a GitHub Pages project page for a paper — a public landing page with title, authors, abstract, highlights, figures, links to code/data, and optionally an embedded agent chat. Use when a researcher wants a web presence for their paper beyond just a GitHub repo./define-paper-agentDraft and iterate the APP paper-agent documentation in publication-staging, including AGENTS.md, CLAUDE.md, and README.md, using the author-approved staging tree and reproduction report./extract-chat-contextExtract publication-safe research context from Claude Code or Codex chat/session history and prepare it as supplementary material. Use when a researcher wants to capture the reasoning behind their work — key decisions, methodology choices, debugging insights — from their actual sessions. Can be used standalone or as part of /publish-paper./load-paperLoad a published paper repository, local publication-staging tree, non-APP paper repository, or arXiv paper into your current project. Use when a user wants to consult, build on, test, import, or discuss a paper. For arXiv IDs or URLs, fetch metadata/source, search for associated public code, and create a protocol-shaped local import before continuing with paper classification./prepare-stagingBuild or revise an APP publication-staging tree from a pre-staging reproduction report, organizing paper, code, data, environment, supplementary materials, licenses, and figure/table reproduction scripts under the protocol layout./publish-paperOrchestrate the full Agentic Publication Protocol workflow by calling modular step skills: reproduce-results, prepare-staging, define-paper-agent, validate-publication, and release-outcome.Other plugins' skills for the same job