agentleFS
en-dash-consultingen-dash-consulting/n-seo/.claude/skills/ndx-reshape/SKILL.md

ndx-reshape

Skill1 starsChanged 3 months agoMITView on GitHub

Restructure the PRD hierarchy — regroup epics, change levels, merge overlaps, create new containers

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
  1. Distinctive:

    Use this when the PRD has grown organically and needs cleanup: too many top-level epics, features that should be tasks, overlapping areas …

    line 8
  2. Very specific:

    Call get_prd_status (rex MCP) to see the full epic/feature structure and item counts

    line 12
  3. Distinctive:

    After user approval, execute the restructuring:

    line 25
  4. Very specific:

    Create new parent epics/features with add_item (rex MCP)

    line 26
  5. Very specific:

    Run reorganize (rex MCP) with mode fast to verify no structural issues remain

    line 31
  6. Very specific:

    Keep the N-DX: and Co-Authored-By: trailer lines exactly as shown — they form the audit trail used by downstream tooling.

    line 45
  7. Distinctive:

    Preserve meaning: when changing levels or merging, keep the original intent clear in descriptions

    line 50
  8. Distinctive:

    Level cascade: when demoting an epic to a feature, its children may need to move down too (features->tasks, tasks->subtasks)

    line 53

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Call get_prd_status (rex MCP) to see the full epic/feature structure and item counts
  2. 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
  3. 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
  4. 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 the level field
    • Merge overlapping items with merge_items (rex MCP)
    • Rename items for consistency with edit_item (rex MCP)
  5. Run reorganize (rex MCP) with mode fast to verify no structural issues remain
  6. Show the updated structure via get_prd_status
  7. Commit: run git status --porcelain against the project root — this catches every MCP-driven write under .rex/prd_tree/ (move_item, merge_items, edit_item, add_item, and reorganize all mutate the folder tree). If the output is empty, print "Working tree clean — nothing to commit." and stop. Otherwise stage all changes with git add -A and 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: and Co-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 structure
  • add_item — create new parent containers
  • move_item — reparent items under new parents
  • edit_item — change level, rename, update descriptions
  • merge_items — consolidate overlapping items
  • reorganize — verify structural health after changes

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.