structure-auto
Skill0 starsChanged 4 months agoMITView on GitHub
Autonomous (non-interactive) structure for the autopilot. Produces docs/{task}/structure.md like /structure, but resolves decisions itself (ground-in-code + light panel) instead of a human conversation. Invoked by /autopilot; never run interactively.
In this repository21 other files it gives its agents.
- add-to-claudeSkill
- add-to-rulesSkill
- audit-claudeSkill
- audit-rulesSkill
- autopilotSkill
- better-planSkill
- design-autoSkill
- designSkill
- execute-autoSkill
- executeSkill
- facts-extSkill
- factsSkill
- questionsSkill
- research-autoSkill
- researchSkill
- review-autoSkill
- structureSkill
- wiki-captureSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Before declaring the structure complete, verify and fix: (internal) every referenced type/interface is defined, Change Ordering matches the …
- Distinctive: line 34
Before proposing structure or a design, CONSULT the captured, enforced system model:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are running structure in autonomous mode for the autopilot — no human to talk to. Produce the same artifact as /structure (docs/{task}/structure.md), in the same format, with every signature grounded in the actual code so a second agent can verify it.
Inputs (read first)
docs/{task}/prior artifacts (design.mdrequired;facts.md,research.mdif present).docs/objective.md(the human-owned frame) + the wiki (wiki/decisions/= ratified authority;wiki/concepts/)..claude/skills/structure/SKILL.mddefines the artifact format — match it exactly.
Autonomous decision procedure — ground-in-code + light panel
- Ground every section in the ACTUAL code — Glob/Grep the real files, types, and patterns referenced by
design.md. Never assume; verify against the tree. (Greenfield → ground in the conventionsdesign.mdsets.) - Populate structure.md (Code Shape / Data & Types / Interfaces / Change Ordering / Testing) with concrete signatures from reality.
- Light panel — before finalizing the central contract (key types/interfaces), generate 2 alternative framings and pick the one that best fits existing patterns; record why in Technical Decisions.
- Resolve Open Questions to recorded defaults where possible.
Consistency check (before the artifact is done)
Before declaring the structure complete, verify and fix: (internal) every referenced type/interface
is defined, Change Ordering matches the dependency graph, each step is independently testable, no
conflict with design.md; (against the codebase) Glob/Grep that every cited path/type/signature is
real (no invented conventions). An inconsistency you can't resolve → docs/{task}/ESCALATE.md.
Guardrails (every mode)
- Ground in reality, never invent — every signature/type traces to actual code or a design decision; no invented conventions.
- Defaults, recorded — where
/structurewould ask the human, pick the best-supported default and record what/why/alternative in Technical Decisions. - Escalate instead of guessing when it matters — if a choice would contradict a human-ratified
wiki/decisions/entry or change the objective frame → STOP and writedocs/{task}/ESCALATE.md. Don't write a half-artifact. - Self-contained, code-grounded output at
docs/{task}/structure.md, matching the base skill's sections.
Architecture & design constraints (stewardship — read before deciding)
Before proposing structure or a design, CONSULT the captured, enforced system model:
wiki/architecture/system-map.md— the module catalog, dependency graph, the 5 enforced invariants, and the key seams (the core domain entry point, the adapter Protocol, the data feed, the shared record seam). The[tool.importlinter]contracts inpyproject.tomlENFORCE this —uv run lint-importsfails the build on a boundary cross. Extend the existing seams; do NOT re-architect an enforced boundary. If a task genuinely needs a boundary to move, that is an ADR + a contract change (say so), never a silent cross.wiki/design-system/design-language.md(for any UI work) — the design tokens (theme.css), the component inventory, and the conventions (honest-n/a, the card/badge patterns, one-SPA tabs). Build UI in this language; do not invent ad-hoc styles or hardcode values that duplicate a token.
A design/structure that would violate a contract or the design language is wrong by construction.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

