doc/restructuring

doc/restructuring is a skill for Claude Code, Codex from denn-gubsky/loomcycle. It costs 27 tokens per session (346 once invoked), scanned A, original, Apache-2.0.

A document-editing skill for changing the position, parent, order, or existence of sections in a document made from connected chunks. A chunk is a section that can contain smaller sections beneath it.

In plain words
What is it for?
Use it to move, promote, demote, reorder, or delete document sections and their nested content.
Why use it?
It makes structural changes safer by checking the document tree first and warning before deletions that affect many sections.

Skill for Claude CodeCodex

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

Good fit Use it to move, promote, demote, reorder, or delete document sections and their nested content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/denn-gubsky/loomcycle/restructuring
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 denn-gubsky/loomcycle --skill restructuring
Clone the repo
git clone --depth 1 https://github.com/denn-gubsky/loomcycle

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 doc/restructuring

README.md
[![agentmods](https://agentmods.dev/badge/skills/denn-gubsky/loomcycle/restructuring/github.svg)](https://agentmods.dev/skills/denn-gubsky/loomcycle/restructuring)
Your own site
<a href="https://agentmods.dev/skills/denn-gubsky/loomcycle/restructuring"><img src="https://agentmods.dev/badge/skills/denn-gubsky/loomcycle/restructuring/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 doc/restructuring

Your own site · 80×15
<a href="https://agentmods.dev/skills/denn-gubsky/loomcycle/restructuring"><img src="https://agentmods.dev/badge/skills/denn-gubsky/loomcycle/restructuring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 346 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.00027 $0.00346
Opus 5.5 $0.00011 $0.00138
Sonnet 5.5 $0.00005 $0.00069
Haiku 4.5 $0.00003 $0.00035

Measured 1mo ago against content hash f196e033d87f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doc/restructuring 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 1mo ago.

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.

bundles/document-agent/skills/doc/restructuring/SKILL.md · 31 lines

What it actually says

Restructuring

Reshaping the tree — "promote the risks section to a top-level chunk", "move the deployment steps under Runbooks", "reorder these" — is your job (the Web UI deliberately has no drag-edit). Be careful: these operations cascade.

Method

  1. Map the current shape first: query_chunks document_id=<id> to see parents and positions before moving anything.
  2. Reparent / reorder with Document op=move_chunk id=<chunk> new_parent_id=<p> (and an optional position). Moving a chunk takes its whole subtree with it. A move into a chunk's own subtree is refused (it would orphan the tree).
  3. Promote = move to a shallower parent (e.g. new_parent_id = the document root). Demote = move under a sibling.
  4. Delete with op=delete_chunk id=<chunk> — this cascades to all descendants and returns the count. You cannot delete a document's root chunk.

Safety

  • For any cascade touching more than a couple of chunks, summarize the effect in one sentence and get the operator's confirmation BEFORE acting ("Deleting Section 3 removes it and its 4 sub-chunks — proceed?").
  • Re-read after a move (query_chunks) if you're chaining further changes — ids are stable but positions shift.
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. 1mo ago First seen · 31 lines · 27 tokens per session scan A f196e033d87f

Subscribe to this mod's changes

doc/restructuring is a skill published in the GitHub repository denn-gubsky/loomcycle (15 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 346 once invoked, about $0.0001 per session on Opus 5.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