agentleFS
EnigmaWUEnigmaWU/MyCodeAgentSkills/build-feature-tree/SKILL.md

build-feature-tree

Skill4 starsChanged 3 months agoMITView on GitHub

WHEN/WHERE/WHO: [Scheduling: Analysts or agents reviewing flat product backlogs or lengthy PRDs.] HOW: [Structural: Use this SKILL to group unstructured requirements into a hierarchical Feature Tree (L1, L2, L3) rendered as a mindmap.] WHY: [Scheduling: Flat lists hide missing features. A visual hierarchy exposes gaps.]

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

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

    When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter …

    line 13
  2. Distinctive:

    Transfer Check: Verify the workflow still works for PRDs, backlogs, and story collections with or without Mermaid rendering available.

    line 51
  3. Distinctive:

    Stop Rule: If the input is primarily technical implementation work rather than business functionality, stop and redirect before drawing the …

    line 52
  4. Distinctive:

    Keep one primary message per rendered mindmap (scope structure), and avoid decorative styling that does not improve interpretation.

    line 57
  5. Distinctive:

    If node coloring is used, limit category colors to a small, distinguishable set and do not rely on color alone to convey hierarchy.

    line 58
  6. Distinctive:

    Prefer explicit node labels and structural grouping over legend-heavy color coding.

    line 59
  7. Distinctive:

    Keep execution guidance text-first.

    line 60
  8. Distinctive:

    Do not require Mermaid rendering to complete analysis or validation.

    line 61
  9. Distinctive:

    If the input text is not a list of features but rather a list of technical tasks (e.g., "Setup database," "Configure DNS"), stop and inform …

    line 64
  10. Distinctive:

    Read the input and extract all functional requirements.

    line 68
  11. Distinctive:

    Check visual density and simplify if crowded (split into multiple trees if needed).

    line 81
  12. Distinctive:

    Ensure labels remain concise and readable without requiring color interpretation.

    line 82
  13. Distinctive:

    Add "Visualization Quality Notes" summarizing any compromises (for example: split by domain, grouped sparse branches).

    line 83
  14. Very specific:

    Verify that the Mermaid syntax is valid (mindmap format).

    line 99
  15. Distinctive:

    Ensure no feature from the original list was dropped.

    line 100
  16. Distinctive:

    Verify the tree remains readable at the expected viewing size and does not depend on color-only interpretation.

    line 101

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

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

Build Feature Tree

Common Contract (Load First)

When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter rules, anti-pattern guidance, and the Review In Mind loop in review-in-mind. This skill adds only domain-specific rules below.

Who

Business Analysts, Product Managers, and AI Agents. The agent uses this skill to restructure and visualize scope.

What

This skill implements the Feature Tree from the Requirements Modeling Language (RML). It takes a flat list of features or user stories and categorizes them into a strict hierarchy:

  • L1 (Level 1): Major functional areas (e.g., "Account Management").
  • L2 (Level 2): Feature groups (e.g., "User Profile").
  • L3 (Level 3): Specific features (e.g., "Update Avatar").

It outputs this structure as a Mermaid.js Mindmap.

When

Invoke this skill during scope definition or when analyzing a lengthy PRD. Trigger phrases include: "build a feature tree," "organize this backlog," "create a mindmap of features," or "check for missing features."

Where

Applies to Product Requirements Documents (PRDs), JIRA backlogs, and feature lists.

Why

A backlog with 150 items is impossible to review for completeness. By organizing features hierarchically on a single page, the human brain can instantly spot missing siblings (e.g., if L2 "Reporting" only has L3 "Export to CSV", someone will ask "What about Export to PDF?").

Inputs

  • A flat list of features, requirements, or user stories.
  • The overarching Product Concept (the root node).

Output (Logical Evidence)

  • A hierarchical list of features.
  • A Mermaid.js Mindmap rendering the tree.
  • A list of "Potential Missing Features" discovered by analyzing the visual gaps.
  • A short "Visualization Quality Notes" section documenting readability and labeling decisions.

Optimization Readiness

  • Failure Signals: Technical tasks are mistaken for business features, hierarchy depth becomes unreadable, labels stay verbose, or missing-feature suggestions are arbitrary rather than driven by structural gaps.
  • Evidence To Collect: Normalized feature lists, generated trees, visualization notes, and examples of sparse or asymmetric branches that led to meaningful gap discovery.
  • Safe Mutation Boundaries: Refine normalization rules, grouping heuristics, Mermaid guidance, and readability checks without changing the core business-feature hierarchy workflow.
  • Acceptance Criteria: Accept revisions only if the output stays feature-focused, readable in text form, structurally coherent, and useful for spotting missing siblings or scope gaps.
  • Rejected Revision Handling: Record poor grouping patterns, over-deep trees, and misleading visualization choices so they are not repeated.
  • Transfer Check: Verify the workflow still works for PRDs, backlogs, and story collections with or without Mermaid rendering available.
  • Stop Rule: If the input is primarily technical implementation work rather than business functionality, stop and redirect before drawing the tree.

Constraints (Logical Boundaries)

  • Features should be brief noun phrases (e.g., "Shopping Cart," not "The system shall allow the user to add items to a cart").
  • Limit the depth to 3 or 4 levels to maintain readability.
  • Keep one primary message per rendered mindmap (scope structure), and avoid decorative styling that does not improve interpretation.
  • If node coloring is used, limit category colors to a small, distinguishable set and do not rely on color alone to convey hierarchy.
  • Prefer explicit node labels and structural grouping over legend-heavy color coding.
  • Keep execution guidance text-first; the feature tree can be represented in plain structured lists when diagrams are unavailable.
  • Do not require Mermaid rendering to complete analysis or validation.

One More Thing

If the input text is not a list of features but rather a list of technical tasks (e.g., "Setup database," "Configure DNS"), stop and inform the user that a Feature Tree models business functionality, not technical implementation.

How (Structural Workflow)

Phase 1: Extraction and Normalization

  1. Read the input and extract all functional requirements.
  2. Convert long sentences into concise 1-3 word noun phrases.

Phase 2: Hierarchical Grouping

  1. Identify the L1 Features (Major functional areas, usually 3-7 max).
  2. Group the remaining features under the appropriate L1 buckets to form L2 Features.
  3. Break down complex L2 features into L3 Features if necessary.

Phase 3: Visualization and Analysis

  1. Output the structure using Mermaid.js Mindmap syntax.
  2. Review the tree for symmetry and completeness. If an L2 category feels sparse compared to its siblings, suggest missing L3 features.

Phase 4: Visualization Quality Pass

  1. Check visual density and simplify if crowded (split into multiple trees if needed).
  2. Ensure labels remain concise and readable without requiring color interpretation.
  3. Add "Visualization Quality Notes" summarizing any compromises (for example: split by domain, grouped sparse branches).

Resources

  • Feature Tree Examples
  • Visualization Quality Checklist

Review In Mind (ReviewInMindGenie)

Execute the common review loop in review-in-mind before delivering.

Review lens for this skill:

  • Is every input feature placed in exactly one L1/L2/L3 node?
  • Does the hierarchy reveal gaps or orphans instead of hiding them?
  • Is the Mermaid mindmap syntactically valid and readable?

Validation

  1. Verify that the Mermaid syntax is valid (mindmap format).
  2. Ensure no feature from the original list was dropped; every item must have a home in the tree.
  3. Verify the tree remains readable at the expected viewing size and does not depend on color-only interpretation.

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.