Skip to content
Back to skills

Tidy

ASecurity

Repair what the mechanical passes cannot: broken LaTeX from conversion, sprawling tags, and concepts that are secretly the same concept.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agents

Security analysis

A100/100

Scanned September 20, 2026

npx -y skills add Misaka16384/magi --skill tidy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tidy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tidy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/misaka16384-tidy/badge)](https://www.skillsdirectory.com/skills/misaka16384-tidy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tidy
description: "Repair what the mechanical passes cannot: broken LaTeX from conversion, sprawling tags, and concepts that are secretly the same concept."
commands:
  tidy: "Fix conversion damage, tag sprawl and duplicate concepts."
origin: magi
---

# tidy

## When to use
`magi math check` reports errors, tags have sprawled into near-duplicates, or
two concept cards are about the same thing.

## Method
**Maths.** Mechanical first, each run undoable with `magi math undo`: for arXiv-HTML papers `magi math repair --dry-run`
then `magi math repair`; then `magi math format --dry-run` and `magi math format`. Then `magi math check --json`:
fix one file's *first* entry and re-check — one unclosed `$$` reports as many errors as it swallows.
`likely-macro` is a package or the author's macro, not a typo: define it in `math.preamble` or `<paper>.macros.tex`,
never in the formula; check the PDF first (`magi ingest crop <pdf>`). A figure inside a formula becomes
`\text{[omitted: <what it was>]}` — that shape exactly.

**Tags.** `magi tags extract .`, read the counts, and write the mapping that
collapses synonyms, acronyms and plurals into one tag. Show it to the human
before `magi tags apply . <tag_map> <alias_map>` — it rewrites every card. Two tags that are aliases of
each other usually mean two cards about one concept.

**Concepts.** `magi link --dedup-only` proposes merges. Confirm each is really
one concept, then `magi wiki refactor-concept --project-dir . --old <a> --new <b>`. A sub-concept
merges into its parent; read it back with `magi wiki context --name <c>` first.

Close with `magi lint --fix` and `magi index`.

## Rules
- **Never** apply a tag mapping the human has not seen. It is not reversible
  by hand.
- **Never** rename a concept by editing filenames; `refactor-concept` is the
  only route that fixes the links too.
- The unit of work is the project, not the file: re-run `magi math check`
  at the end and report what is still broken as **partial**, not as done.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.