From nuclear-grade
Organizes project directories by mapping folders to work breakdowns or disposition rules, grouping files that change together. Use for repo layout, deciding file placement, or cleaning up messy folders.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nuclear-grade:organizing-project-foldersThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Folders are a real engineering decision, not an afterthought. Each folder is a choice about what to group. A good folder maps to one piece of the work breakdown or one disposition rule (what eventually happens to its contents: kept, temporary, archived, or generated). It holds things that change together. In other words, it has high cohesion (its contents share one reason to change) and low cou...
Folders are a real engineering decision, not an afterthought. Each folder is a choice about what to group. A good folder maps to one piece of the work breakdown or one disposition rule (what eventually happens to its contents: kept, temporary, archived, or generated). It holds things that change together. In other words, it has high cohesion (its contents share one reason to change) and low coupling (it does not depend tightly on other folders). Its name is safe on any platform, sorts cleanly, and is easy for tools to read.
This skill puts a folder-decision checklist in front of the agent, so folders get reasoned about instead of created by default. When the structure is a step-by-step agent workflow, it also applies the Model Workspace Protocol: numbered stage folders, a context file per stage, layered context, and review gates between stages. That workflow shape is a named path of its own — see docs/02-operating-system/agentic-workflow-architecture.md for when folders are enough (and when a durable runtime is not), and templates/standard/stage-contract.md for the full per-stage contract a release-bearing or delegated stage uses.
choosing-what-to-control, checking-release-readiness, and vetting-outside-code-and-models.templates/standard/wbs.md or a wbs.md) when there is one. Otherwise the scope, which you will break down in reverse.breaking-down-the-work.01_..., 02_...). Each stage has a context file with Inputs, Process, and Outputs. Keep lasting reference material separate from each run's working output. Scripts do the mechanical work. Every output is something you can open and edit, with a human review gate at each boundary.NN_ (a zero-padded number then an underscore, as in 01_research), where the underscore marks the sequence boundary. Files that are normally capitalized by convention (README.md, LICENSE, and Model Workspace Protocol context files such as CONTEXT.md and CLAUDE.md) are an accepted exception to the lowercase rule. Ban junk-drawer names (misc, stuff, tmp, new, old, backup, final, bare utils).README.md and CONTEXT.md), uses the chosen word separator (with the Model Workspace Protocol NN_ stage prefix excepted), uses ISO-8601 dates, has one dot, and has no spaces or special characters.recording-a-known-good-version).breaking-down-the-work when there is no breakdown to build from.misc, utils, temp, or stuff folders, or folders holding one unrelated file each.README.md, CONTEXT.md).Build and check a folder/file layout.
Inputs:
- WBS or scope: <wbs.md path, or the deliverable to break down>
- paradigm: <production-codebase | agent-workflow-workspace>
- existing tree to respect: <paths or none>
- naming convention: lowercase, hyphen or underscore (pick one), ISO-8601 dates,
one dot for the extension, no spaces or special characters
Do this in order:
1. Choose the paradigm. Production codebase: one root per deliverable, plus a
small approved set of shared parts; the folder tree is the work breakdown
laid out on disk. Agent workflow workspace: numbered stage folders (01_,
02_), each with a context file that states its Inputs, Process, and Outputs;
keep lasting reference material separate from per-run output; let scripts do
the mechanical work; put a human review gate at each stage boundary.
2. Set the source of truth: derive folders from the work breakdown's outline
numbers, or, if there is none, reverse-engineer the implied breakdown first.
3. For each proposed folder, answer the checklist: has it earned a folder? Does
it hold together (one reason to change)? Does little leak out of it? Does it
map to one part of the breakdown or one over-time rule? Does it have a single
home? Is it named safely? Is it shallow enough? Is it documented?
4. Name and bound it: enforce the naming convention; ban misc/stuff/tmp/new/old/
backup/final and a bare utils; cap depth near 8 levels and the path near 255
characters.
5. Give each non-trivial folder a README or dictionary note, plus a note on what
happens to it over time.
6. Reconcile with the existing tree; propose the smallest new structure; flag
conflicts instead of overwriting.
Return: the folder map (work-breakdown outline number -> path, with an over-time
column), the per-folder notes, and a check of the naming, the depth, and the
single source of truth. Do not overwrite a baselined tree; propose it for review.
This skill is an original software workflow influenced by public folder-as-architecture and records-management practice: the Model Workspace Protocol (Van Clief and McDermott, "Interpretable Context Methodology", arXiv:2603.16021; numbered stage folders, layered context, stage contracts, review gates), NARA Bulletin 2015-04 and NIST file-naming guidance (platform-safe naming, ISO-8601 dates, depth and path limits, folder-to-disposition mapping), the DOE Work Breakdown Structure Handbook (common element structures), and Unix-pipeline and modular-decomposition principles encoded as original workflow, all mapped in docs/00-standards-foundation/source-map.md. It does not create compliance, formal assurance, certification, or regulatory adequacy.
npx claudepluginhub flyfission/nuclear-grade-context-engineering --plugin nuclear-gradeDetects repository directory conventions, audits file placement, and moves files with import-path updates. Never changes code inside files.
Sets up project directories and organizes artifacts (specs/, scripts/, notebooks/) when starting or resuming work, and associates PLAN.md with a project folder.
Creates a date-organized workspace folder with static project docs and an assets directory for code, enabling other skills to operate with project context and daily work tracking.