restructure
Restructure: refactoring pass against the structure catalog (campground, names, size, cohesion, seams, named smells, CRAP).
Skill by marcuskrogh
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/marcuskrogh-restructure
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/restructure
What's inside
- Skill name
restructure- Description
- Restructure: refactoring pass against the structure catalog (campground, names, size, cohesion, seams, named smells, CRAP). No behaviour change. Use standalone on a named area, or when a workflow's restructure step is current. Alias: /harden.
- License
- MIT
- Instructions
- 61 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Restructure Applies [CONCEPT_STRUCTURE](../concepts/CONCEPT_STRUCTURE.md) and [CONCEPT_SKILL](../concepts/CONCEPT_SKILL.md) as a dedicated **refactoring** pass on the delivery diff. Distinct from `/refine` (a work **class**) and `/adopt` (brownfield whole-tree): restructure is a closeout phase of the current Task. `/harden` is the invoke alias; `harden.mode` is the binding key. **On invoke:** read CONCEPT_STRUCTURE, [CONCEPT_SKILL](../concepts/CONCEPT_SKILL.md), [../concepts/STRUCTURE-CATALOG.md](../concepts/STRUCTURE-CATALOG.md), [../implement/structure.md](../implement/structure.md), [../implement/testing.md](../implement/testing.md), [CONCEPT_IMPLEMENTATION](../concepts/CONCEPT_IMPLEMENTATION.md), and [../workflow/SKILL.md](../workflow/SKILL.md). When spawning workers, also read [CONCEPT_DELEGATION](../concepts/CONCEPT_DELEGATION.md) and its platform catalog as directed there. ## Extensions | Slot | This skill | |------|------------| | **Spec source** | Task + PLAN / BUG / TWEAK / REFINE / REWORK / ITERATE / ADOPT + current PR diff | | **Catalog** | [STRUCTURE-CATALOG.md](../concepts/STRUCTURE-CATALOG.md) | | **Scope** | Touched units always; surrounding module when a hunk made a neighbour worse; architecture neighbourhood only when a major benefit is already in ARCHITECTURE.md or the scan | | **Workflow binding** | Honor `harden.mode`. `harden.mode=skip` only when the user explicitly asked — then Task **In Review**, outcome `skipped`, no structure pass. Default is **dedicated**, including small diffs. | | **Branch naming** | Reuse Task delivery branch | | **Delivery** | Push structural edits to the same PR; leave merge to ship | | **Verification** | Suite + lint stay green; executable behaviour unchanged; on `ADOPT.md`, re-run lock-suite **and** working-surface commands | | **Structure checklist** | [structure.md](../implement/structure.md) | | **Work package types** | Refactoring (extract, rename, move, split, invert, asserting test); no behaviour change | ## Steps 1. **Resolve inputs** — Resolve the Task, spec, Workflow binding, and delivery diff (or the named area). If `harden.mode=skip` **and** the user explicitly asked to skip, transition **In Review**, record outcome `skipped`, apply the workflow transition, and end this invocation. A missing skip on the binding → run the pass. Done when the diff is checked out, or the skip transition has ended the invocation. 2. **Scan** — Apply the structure catalog to **touched units** (and neighbours the change worsened). Hunt leftovers implement missed. Each breach is a concrete extract / rename / move / split / invert / asserting test. Small diffs use the same catalog. Done when every catalog breach is a package or a documented exception. 3. **Apply** — Run Restructure packages; include [structure.md](../implement/structure.md) in briefs. Behaviour stays the same. Re-run the touched-area suite + lint. When spec is `ADOPT.md`, also re-run the recorded lock suite and working-surface commands. Done when remaining breaches are documented exceptions and checks pass. 4. **Track** — Task → **In Review**, comment the restructure outcome, record outcome `ready`. Apply the workflow transition. Done when Task, PR, mirror, and user report agree. ## Scope In: structure, naming, layering, comments, and seams that the catalog requires on opened units. Out: new behaviour, test-only work (`/test`), and the larger analysis (`/review`). ## Inputs | Input | When present | When absent | |-------|----------------|-------------| | Delivery diff or named area | Apply the catalog to touched units | Ask once which area to restructure | | Definition spec | Apply its preserve-behaviour bar or pass criteria | Keep executable behaviour unchanged (CONCEPT_STRUCTURE) and record that bar | | `ARCHITECTURE.md` | Apply neighbourhood notes | Continue with the catalog alone | ## Output structural edits on the delivery diff — catalog breaches fixed or documented. Outcome: `ready`, or `skipped` when the user explicitly skipped this step. This skill does not name a successor. Apply the workflow transition before the turn ends.
From marcuskrogh/skills, MIT.
More from marcuskrogh/skills
- 0.587score
iterate
marcuskrogh
Iteration on already merged work.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
adopt
marcuskrogh
Adopt the structure catalog across an existing codebase that was not built to it.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
define
marcuskrogh
Definition front door for concrete work.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
explore
marcuskrogh
Exploration through foggy or oversized work.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
help
marcuskrogh
Help choosing skills and workflows.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
model
marcuskrogh
Mathematical alignment through LaTeX-only questions.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
architect
marcuskrogh
Architecture for one Task: record where the work sits (modules, layers, seams, dependency direction) in ARCHITECTURE.md.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
review
marcuskrogh
Review of a change as sequential or bundled lasers across Spec, Correctness, Integration, Architecture, and Standards: find, fix, then publish a code review.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
refine
marcuskrogh
Refine alignment and lightweight definition for a limited area that needs refactoring or descriptive improvement without changing behaviour.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
rework
marcuskrogh
Rework alignment and lightweight definition for an intentional implementation change that must not degrade measured outcomes.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
bug
marcuskrogh
Bug alignment and lightweight definition for a clear defect.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
implement
marcuskrogh
Implementation through managed, value-routed work packages.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Sep 27, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/marcuskrogh/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from marcuskrogh
- 0.587score
help
marcuskrogh
Help choosing skills and workflows.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
iterate
marcuskrogh
Iteration on already merged work.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
adopt
marcuskrogh
Adopt the structure catalog across an existing codebase that was not built to it.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
define
marcuskrogh
Definition front door for concrete work.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
explore
marcuskrogh
Exploration through foggy or oversized work.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
rework
marcuskrogh
Rework alignment and lightweight definition for an intentional implementation change that must not degrade measured outcomes.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
restructure skill. Agent Mart. https://agentmart.dev/skills/marcuskrogh-restructure (last updated 2026-10-24)