/mathbox:research-initfrom mathbox
Sets up, retrofits, or migrates the agent architecture (AGENTS.md, CLAUDE.md, workflows) for an AI-assisted mathematical research repository. Runs only on explicit request.
Ships in mathbox. 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; scripts run unread.
Configure a durable project layer; use installed Mathbox workflows rather than regenerating them locally. Keep stable rules in instructions, recurring procedures in skills, mutable facts in records and deterministic enforcement in code.
Identify the requested project directory and compare it with the enclosing Git
top level, if any. The installed inspect_repo.py
resolves its scan root to that top level. For a whole-repository setup or a
standalone directory outside Git, pass every request-designated cache as a
repeatable project-relative --cache-dir before scanning (omit it if none):
python3 <skill-directory>/scripts/inspect_repo.py --root PROJECT --cache-dir CACHE_PATH
Resolve this skill's actual location rather than guessing a project path.
For a nested project without authorization to scan the enclosing repository,
or if the helper cannot express all exclusions, inventory the requested subtree
directly. Prune caches before opening files and respect symlink boundaries,
including when reading applicable ancestor instructions and declared paths.
Record the initial in-scope Git status or, if unavailable, the initial file
inventory. Both --full and --format json expand the output at the selected
scan depth (default five). Inspect declared paths and instructions governing
proposed edits even beyond that depth. Before proposing a new live dashboard,
search eligible filenames throughout the authorized tree with the same
exclusions. Keep authority unresolved if necessary coverage is unavailable.
Resolve omitted current-path findings
before authority/edit decisions; historical link overflow alone need not be
loaded. Keep caches outside Git content comparisons as well as file reads.
Use the inspector's reported Git status exclusions for later comparisons. When
a cache is in a submodule, parent Git status excludes the whole submodule.
Coverage and tracked-entry counts stay unverified for caches inside a nested
repository or another excluded cache. Report a declared map that points outside
the project with its declaration and the reason inspection was skipped.
The inspector finds instructions, role aliases, declared paths, cache conventions, manifest/log classifications, skills, broken references and dashboard/handoff candidates. Supply judgments it cannot make:
CLAUDE.md imports @AGENTS.md when both exist.Sizes, filenames and dated-marker counts are review prompts, not verdicts about mathematical status or permission to remove history. Produce a fact sheet of observations, tentative inferences, conflicts and missing information.
Inventory source policies only. If substantive checks are also requested, use
the available literature-check skill in a subsequent work package, or check
the exact source directly if the skill is unavailable.
Read interview.md, including manuscript constraints when applicable. Resolve material goal/deliverable, evidence thresholds, authority, conventions, edit boundaries, checks, confidentiality, Git and definition of done. Distinguish theorem goal from near-term output, proof from finite evidence, chain-level from derived claims, and personal preferences from shared policy. Never infer submission constraints or page budgets from filenames or venue norms.
Present facts/conflicts and exact files to create, modify, move, archive or retain; source-of-truth hierarchy; rules retained/moved/automated; protected paths and approval boundaries; verified fast/targeted/full/manuscript checks; migration risks; and the skill-layer decision.
Include cache retention/ignore policy, retaining a safely identified alternate cache rather than creating a duplicate. Identify unverified source-derived inventories and the verification package required before promotion. For a manuscript deliverable give confirmed constraints and a complete page budget with unknowns explicit. Existing live-file migrations need a source/destination crosswalk, pin baseline and unresolved authority conflicts before replacement.
Follow existing-repo-migration.md for all
baseline, crosswalk, pin-aware editing and history migration mechanics. Route by
inspector class: long-form-legacy/mixed needs reviewed extraction;
compact-linked-index may need reviewed sharding if the flat index is too large;
unstructured needs manual inventory before classification. Detection alone
never authorizes rewriting. A plan-only request ends at the reviewable plan.
A plugin upgrade alone does not authorize a project migration or hash refresh.
Use available research-state for optional ledger adoption or evidence revisions.
If unavailable, preserve prose records and report the limitation.
Never import confident prose as proof.
Before saving a durable record, proof, report or authored JSON, follow attribution.md.
Read output-contract.md before writing. Before editing, capture the initial contents or hashes of affected and explicitly preserved files, including untracked files. In Git, also record their index modes and blob IDs. Retain enough original content to distinguish existing work from the intended edits. Record absent paths and compare preserved files and index entries with this baseline after writing. Use assets selectively, delete unused sections and replace scaffolding values:
| Asset | Default destination |
|---|---|
| AGENTS.template.md | AGENTS.md |
| CLAUDE.template.md | optional CLAUDE.md |
| PROJECT_CHARTER.template.md | PROJECT_CHARTER.md |
| RESEARCH_STATUS.template.md | one of RESEARCH_STATUS.md / HANDOFF.md |
| PROOF_OBLIGATIONS.template.md | PROOF_OBLIGATIONS.md / CLAIMS.md |
| CONVENTIONS.template.md | CONVENTION_REGISTRY.md / CONVENTIONS.md |
| LITERATURE.template.md | LITERATURE_LEDGER.md / LITERATURE.md |
| RESEARCH_LOG.template.md | RESEARCH_LOG.md |
| VERIFICATION.template.md | VERIFICATION.md |
Explicit project-designated paths override these defaults. Exactly one designated
live dashboard states current evidence, blocker and next action. Record mission,
deliverable, success, fallback and exclusions in the charter, or an AGENTS.md
Mission section when there is no charter. Other root instructions contain
stable local rules, authority/edit boundaries, checks and pointers rather than
mutable facts. CLAUDE.md is optional when sessions load AGENTS.md directly;
otherwise it imports that file and holds only genuine host additions.
Use optional claims, conventions and literature records as needed. Define history entry point, route index and route record as navigation, compact outcome links and immutable standalone route detail respectively. A small project can combine entry point/index; sustained programs link through program/phase indexes. Keep exactly one live view and search growing history instead of imposing full loads. Preserve checkpoint material and active pins before replacing live narratives; migration reference gives these rules.
Authorized retention needs a documented cache convention and tracked ignore rule. Nested instructions serve only genuinely local invariants. Verification commands and mathematical benchmarks must be concrete and discovered/supplied.
For frequently changing dependencies consider optional ledger adoption, with
one generated live view and only checked artifacts. It does not certify proofs.
For sustained work make research-program discoverable without copying its
workflow into root instructions.
Default to no project skills. Never synthesize local copies of canonical
Mathbox skills or write skills under root skills/. The inspector's CANONICAL
set defines the catalog; consult the skill-layer reference for approved project
skills and authorized exact versioned vendoring.
Remove placeholders outside intentional fenced format examples; verify paths exist or are explicitly planned and commands were discovered/supplied. Check authority, evidence/review/freshness, Git/network and edit boundaries for conflicts. Review all live-view candidates and broken paths without silently choosing an authority. Keep instructions limited to stable rules and pointers; detailed procedures and repeated mutable facts signal excess load.
Flag misplaced root skills, same-name wrappers and unapproved or altered canonical copies. Verify authorized vendored copies against their recorded version and checksum. Verify directory-wide coverage of the designated cache by a tracked project ignore file. Report missing or unverified coverage until an authorized fix is rechecked.
Run the cheapest verified project check when authorized. Reconcile the plan
and baseline with the final in-scope paths. In Git, inspect staged and unstaged
diffs and run git diff --cached --check and git diff --check within scope.
Restrict these commands to the affected paths or apply literal cache exclusions
to each comparison, including status refreshes.
List untracked files individually and inspect newly created deliverables directly,
without staging them. Without Git, compare file inventories, review the actual
new and edited files, and report the unavailable Git checks.
For migrations compare the complete crosswalk, pins, issues, claims, protected
rules and links with baseline; distinguish old issues from introduced ones.
Report files/hierarchy, moved rules and destinations, checks and skipped reasons, remaining conflicts/commands, plugin availability and archived skills. Give one recommended invocation and how to verify instruction/skill loading in a fresh session. Migration reports also identify preserved history and freshness issues.
agents/openai.yaml (opens in a new tab)assets/AGENTS.template.md (opens in a new tab)assets/CLAUDE.template.md (opens in a new tab)assets/CONVENTIONS.template.md (opens in a new tab)assets/LITERATURE.template.md (opens in a new tab)assets/PROJECT_CHARTER.template.md (opens in a new tab)assets/PROOF_OBLIGATIONS.template.md (opens in a new tab)assets/RESEARCH_LOG.template.md (opens in a new tab)assets/RESEARCH_STATUS.template.md (opens in a new tab)assets/VERIFICATION.template.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger-evals.json (opens in a new tab)references/attribution.md (opens in a new tab)references/existing-repo-migration.md (opens in a new tab)references/interview.md (opens in a new tab)references/output-contract.md (opens in a new tab)references/skill-layer.md (opens in a new tab)scripts/inspect_repo.py (opens in a new tab)scripts/test_inspect_repo.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nidrissi/mathbox --plugin mathbox11 skills in this plugin
/computation-auditDesign, run, or audit a mathematical computation supporting a research claim when correctness, provenance, tested range, reproducibility, or interpretation matters. Includes symbolic, exact, finite-field, representation-theoretic, homological and numerical experiments. Do not use to verify a cited theorem, audit a proof with no load-bearing computation, pursue a whole research route, or for general programming./literature-checkVerify what an external mathematical source proves: exact theorem, hypotheses and version, citation, notation translation, source-dependent implication, attribution, or a bounded novelty claim; cache authenticated sources for reuse. Use when a proof relies on a named result, the user asks whether a claim is known, or to cache a source. Do not use to audit internal proof logic, attack an implication, format bibliographies, or insert citations into a manuscript./manuscript-integrateOther plugins' skills for the same job