ndx-reshape
Skill1 starsChanged 3 months agoMITView on GitHub
Restructure the PRD hierarchy — regroup epics, change levels, merge overlaps, create new containers
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- www/llms.txtllms.txt
- ndx-captureSkill
- ndx-configSkill
- ndx-feedbackSkill
- ndx-planSkill
- ndx-statusSkill
- ndx-workSkill
- ndx-zoneSkill
- no-plan-modeSkill
- n-seo-add-siteSkill
- n-seo-deploySkill
- n-seo-reviewSkill
- n-seo-setupSkill
- n-seo-shipSkill
- n-seo-triageSkill
- orientSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this when the PRD has grown organically and needs cleanup: too many top-level epics, features that should be tasks, overlapping areas …
- Very specific: line 12
Call get_prd_status (rex MCP) to see the full epic/feature structure and item counts
- Distinctive: line 25
After user approval, execute the restructuring:
- Very specific: line 26
Create new parent epics/features with add_item (rex MCP)
- Very specific: line 31
Run reorganize (rex MCP) with mode fast to verify no structural issues remain
- Very specific: line 45
Keep the N-DX: and Co-Authored-By: trailer lines exactly as shown — they form the audit trail used by downstream tooling.
- Distinctive: line 50
Preserve meaning: when changing levels or merging, keep the original intent clear in descriptions
- Distinctive: line 53
Level cascade: when demoting an epic to a feature, its children may need to move down too (features->tasks, tasks->subtasks)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Restructure the PRD hierarchy to keep it organized as a coherent product spec.
Use this when the PRD has grown organically and needs cleanup: too many top-level epics, features that should be tasks, overlapping areas that should be merged, or items that belong under different parents.
Process
- Call
get_prd_status(rex MCP) to see the full epic/feature structure and item counts - Analyze the current structure for problems:
- Too many epics — related epics that should be features under a broader epic
- Wrong levels — epics with no children that are really tasks, features that are really subtasks
- Overlapping areas — multiple epics/features covering the same domain
- Orphaned items — tasks at root level that belong under an existing epic
- Naming inconsistency — similar items with different naming conventions
- Propose a target structure to the user:
- Group related epics into ~7-12 top-level epics max (one per product area)
- Each epic should have 3-15 features; each feature should have 2-10 tasks
- Suggest new parent epics if needed to group scattered items
- Suggest level changes (epic->feature, feature->task, etc.)
- Suggest merges for overlapping items
- After user approval, execute the restructuring:
- Create new parent epics/features with
add_item(rex MCP) - Reparent items with
move_item(rex MCP) - Change levels with
edit_item(rex MCP) using thelevelfield - Merge overlapping items with
merge_items(rex MCP) - Rename items for consistency with
edit_item(rex MCP)
- Create new parent epics/features with
- Run
reorganize(rex MCP) with modefastto verify no structural issues remain - Show the updated structure via
get_prd_status Commit: run
git status --porcelainagainst the project root — this catches every MCP-driven write under.rex/prd_tree/(move_item,merge_items,edit_item,add_item, andreorganizeall mutate the folder tree). If the output is empty, print "Working tree clean — nothing to commit." and stop. Otherwise stage all changes withgit add -Aand commit with the n-dx authorship + model audit trailer block via a HEREDOC:git commit -m "$(cat <<'EOF' ndx-reshape: restructure PRD hierarchy N-DX: skill/ndx-reshape Co-Authored-By: En Dash's n-dx <n-dx@endash.us> EOF )"Keep the
N-DX:andCo-Authored-By:trailer lines exactly as shown — they form the audit trail used by downstream tooling.
Guidelines
- Batch by area: restructure one domain at a time, confirm with the user, then move on
- Preserve meaning: when changing levels or merging, keep the original intent clear in descriptions
- Natural groupings: organize by product area (e.g., SourceVision, Rex, Hench, Web, CLI, Infrastructure) rather than by work type (bugfixes, features, refactors)
- Living spec: the PRD should read as a product spec, not a task backlog. Epic titles should describe product capabilities, not work items
- Level cascade: when demoting an epic to a feature, its children may need to move down too (features->tasks, tasks->subtasks)
MCP Tools Used
get_prd_status— read current structureadd_item— create new parent containersmove_item— reparent items under new parentsedit_item— change level, rename, update descriptionsmerge_items— consolidate overlapping itemsreorganize— verify structural health after changes
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.

