refactor-structure

refactor-structure is a skill for Claude Code, Codex from ShaishavMaisuria/research-paper-lifecycle-skills. It costs 214 tokens per session (2,526 once invoked), scanned A, original, Apache-2.0.

A paper-structure review that checks whether an academic paper's sections form a clear argument from contribution to evidence to conclusion.

In plain words
What is it for?
Use it to diagnose a paper that feels disorganized and create a justified plan to move, merge, split, or cut sections.
Why use it?
It finds ordering, missing links, over-promises, and redundant sections before rewriting begins, so the paper is easier to follow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to diagnose a paper that feels disorganized and create a justified plan to move, merge, split, or cut sections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure
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.

Any agent
npx skills add ShaishavMaisuria/research-paper-lifecycle-skills --skill refactor-structure
Clone the repo
git clone --depth 1 https://github.com/ShaishavMaisuria/research-paper-lifecycle-skills

Made for: Claude Code, Codex.

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 refactor-structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure/github.svg)](https://agentmods.dev/skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure)
Your own site
<a href="https://agentmods.dev/skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure"><img src="https://agentmods.dev/badge/skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refactor-structure

Your own site · 80×15
<a href="https://agentmods.dev/skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure"><img src="https://agentmods.dev/badge/skills/shaishavmaisuria/research-paper-lifecycle-skills/refactor-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 214 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,526 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.00214 $0.02526
Opus 5 $0.00107 $0.01263
Sonnet 5 $0.00043 $0.00505
Haiku 4.5 $0.00021 $0.00253

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

Security

Grade A, and why

refactor-structure 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/outline_extract.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/refactor-structure/SKILL.md · 193 lines

How it starts

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

Refactor Structure

Fix the architecture of the argument, not its words. A paper can be grammatical, on-template, and within the page limit and still fail because the story is assembled in the wrong order, a section doesn't do its job, the introduction promises things the body never delivers, or the conclusion outruns the evidence. This skill diagnoses those problems and produces a restructuring plan — move / merge / split / cut, with the reasoning for each — that the author approves before a single section is rewritten.

It plans and (on approval) executes the moves. It does not reword sentences (that is polish-prose) and it does not fit the paper to a venue's rules (that is tailor-to-venue).

When to use

  • "The structure feels off" / "it doesn't flow" / "reorganize my paper".
  • Reviewers said: hard to follow, disorganized, the story is unclear, the contribution is buried, related work is in the wrong place, a section doesn't belong.
  • The intro over-promises (claims a proof / user study / ablation the body doesn't contain), or the conclusion claims something never evidenced.
  • Redundant sections (two Background sections), or one section doing two jobs (Results carrying Threats-to-Validity).

Not for: sentence wording / de-AI-ifying (polish-prose), page limits / templates / track fit (tailor-to-venue), the Related Work section's content (draft-related-work), or whether the citations are real (verify-citations).

Inputs

  • The draft: main .tex file (the script follows \input/\include).
  • Optional: the paper's intended contribution list and target paper type, from .paper-memory/profile.yml if present (a theory paper and an empirical paper have different expected arcs). If absent, ask the author for the one-sentence claim and the contribution bullets.

Process

1. Read the structure, don't re-read the paper

Run the bundled extractor to get the skeleton on one screen:

python3 skills/refactor-structure/scripts/outline_extract.py <main.tex>

Read the full file on GitHub · 193 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 193 lines · 214 tokens per session scan A adffacddcf4c

Subscribe to this mod's changes

refactor-structure is a skill published in the GitHub repository ShaishavMaisuria/research-paper-lifecycle-skills (42 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 214 tokens to every session and 2,526 once invoked, about $0.0011 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-30.

Related

Other skills, from other repositories

aaai-reproducibility

Use when strengthening an AAAI paper's reproducibility checklist (placed after references), experimental traceability, seed and hyperparameter reporting, compute and cost disclosure, dataset access and licensing, code/data ZIP readiness, and the claim-to-evidence map that Phase-1 reviewers use to judge rigor across…

brycewang-stanford/Awesome-Journal-Skills · 72 tokens

aaai-submission

Use when auditing an AAAI main technical track submission for OpenReview readiness, double-blind anonymity, page limits, reproducibility checklist, supplementary material, author limits, multiple-submission policy, and AAAI AI-use policy compliance.

brycewang-stanford/Awesome-Journal-Skills · 51 tokens

acl-author-response

Use when drafting an ACL author response inside an ACL Rolling Review cycle on OpenReview, covering the response window before meta-review, reviewer discussion dynamics, score-change strategy, flagging review issues to the area chair, anonymity rules, and deciding between responding now versus revising for a later ARR…

brycewang-stanford/Awesome-Journal-Skills · 63 tokens

acl-camera-ready

Use when preparing an accepted ACL main-conference or Findings paper for camera-ready, covering the extra content page, de-anonymization and acknowledgements, AI-assistance disclosure, keeping the Limitations section, ACL Anthology metadata and CC BY 4.0 publication, meta-review-driven edits, and presentation-mode…

brycewang-stanford/Awesome-Journal-Skills · 68 tokens

acl-related-work

Use when positioning an ACL submission against the NLP literature, covering ACL Anthology citation practice, arXiv-versus-published version citation, concurrent LLM-era preprints, prior-cycle ARR resubmission overlap, anonymity-preserving self-citation, and the fast-moving baseline problem in computational linguistics.

brycewang-stanford/Awesome-Journal-Skills · 65 tokens

acl-reproducibility

Use when strengthening reproducibility evidence for an ACL paper reviewed through ACL Rolling Review, covering the Responsible NLP checklist end to end, hyperparameter and compute reporting, prompt and decoding disclosure for LLM experiments, data contamination auditing, variance across runs, and checklist-to-paper…

brycewang-stanford/Awesome-Journal-Skills · 60 tokens