structure

structure is a skill for Claude Code from mystilleef/spae-framework. It costs 15 tokens per session (898 once invoked), scanned C, a copy of purity, MIT.

A workflow that sends structural refactoring work to a refactor subagent one pass at a time. It repeats only after a pass reports completion and stops on no changes, failure, or a process error.

In plain words
What is it for?
Use it to refactor specified files or folders through the permitted refactor subagent and receive an execution summary.
Why use it?
It provides a defined stopping and error-handling process for fixing structural problems instead of making uncontrolled repeated changes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Good fit Use it to refactor specified files or folders through the permitted refactor subagent and receive an execution summary.

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

Made for: Claude Code.

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 structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/mystilleef/spae-framework/structure/github.svg)](https://agentmods.dev/skills/mystilleef/spae-framework/structure)
Your own site
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/structure"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/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 structure

Your own site · 80×15
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/structure"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 898 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.00015 $0.00898
Opus 5.5 $0.00006 $0.00359
Sonnet 5.5 $0.00003 $0.00180
Haiku 4.5 $0.00002 $0.00090

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

Security

Grade C, and why

structure scanned grade C with 1 finding 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 5d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- prettier-ignore-start -->
Origin

This is a copy

89% identical to purity — 21 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/structure/SKILL.md · 113 lines

How it starts

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

Structure

When to use

  • The user wants to fix structural violations autonomously using the refactor agent.

Goal

  • Run refactoring subagents sequentially to fix structural violations in target code.

Input

  • Accept optional arguments (file or folder paths).

Workflow

Halt on any Halt conditions entry after every spawn.

  1. Refactoring Loop:
    • Spawn a refactor subagent with the optional argument, then await its result.
    • Complete: repeat step 1.
    • No Changes: proceed to step 2.
  2. Report: emit the result per Result directives:
    • Result: Completed when the workflow reaches Report without a halt, Halted when a subagent reports Failed, Failed on any other Halt conditions entry.

Directives

  • Spawn first: open with the subagent tool and skip all preflight—context gathering, environment discovery, path checks, guide or knowledge-base reads, and plan reviews.
  • Prompt each subagent with the argument verbatim, or No arguments without one:
    • Never read, list, or expand file-path arguments.
    • Add no context, summaries, or instructions, since each subagent gathers its own.
  • Route only from each subagent's Result value.
  • Re-spawn the same subagent once, with the same argument, on a result missing or outside the workflow's literals, then route from the replacement's result and list the retry under Findings.
  • Spawn only the subagents the workflow names.
  • IMPORTANT: Return the result to the caller.

Constraints

  • Limit tool calls to the subagent tool, running nothing else—no file reads, writes, listings, searches, shell or git commands, skill activation, or user prompts.
  • Never run subagents in parallel or concurrently.
  • Halt conditions: halt immediately and report per Report, listing the diagnostic under Findings:
    • A subagent Failed result.
    • A replacement subagent result missing or outside the workflow's literals.
    • A process failure (crash, timeout, AgentError).

Read the full file on GitHub · 113 lines

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. 9d ago Changed · -3 lines b7165875381f
  2. 13d ago Changed · +1 lines 5f0f41734f5b
  3. 21d ago Changed · +15 lines ca7ad30592cf
  4. 23d ago Changed · -8 lines 34e69864985d
  5. 1mo ago First seen · 105 lines · 15 tokens per session scan C 2d5a7e91e9c5

Subscribe to this mod's changes

structure is a skill published in the GitHub repository mystilleef/spae-framework (2 stars, last pushed 4d ago), licensed MIT. It adds 15 tokens to every session and 898 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). It is 89% identical to purity, differing in 21 lines, and is treated as a copy.

Related

structure compared with skills from other repositories

structure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
structuremystilleef/spae-frameworkSkill24d agoMITC15Claude Code
anywhere-uianywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A46Claude Code, Codex
ahk-reviewenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A35Claude Code
ahk-testenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A36Claude Code
ahk-triageenmanuelmag/agent-harness-kitSkill1831mo agoApache-2.0A29Claude Code
model-routingverivus-oss/llm-cli-gatewaySkill19todayMITA59Claude Code
agent-codex-gateverivus-oss/llm-cli-gatewaySkill19todayMITA50Claude Code