agentleFS
zeroasteriskzeroasterisk/skills/intent-refinement/SKILL.md

intent-refinement

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Identify, draft, validate, and refine product intent and plan specifications using Narrative-Driven Development (NDD) taxonomy. Use when designing new features, refining requirements, or preparing specs for AI agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When asked to design or refine a feature, guide the user to structure their intent into the NDD hierarchy:

    line 26
  2. Distinctive:

    Ensure the specification is cohesive:

    line 45
  3. Very specific:

    Data Completeness: Every piece of data shown in a Query must have a source (created/modified in a Command or React).

    line 46
  4. Very specific:

    Read/Write Balance: If a narrative has Commands, it should usually have Queries to view the result.

    line 47
  5. Distinctive:

    If the user requests a change to an existing system or a draft:

    line 51
  6. Distinctive:

    Update the NDD specification file *first*.

    line 52
  7. Distinctive:

    Only proceed to generating code or plans once the specification is aligned and valid.

    line 54

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

Skill: Intent Refinement (NDD)

Identify, draft, validate, and refine product intent and plan specifications using Narrative-Driven Development (NDD) taxonomy.

Description

This skill enables the agent to collaborate with humans to define robust, regression-resistant specifications. By modeling software as a structured "product story" (Domain -> Narrative -> Scene -> Moment) with explicit rules and examples, we ensure the AI agent builds the right thing and doesn't lose intent during iteration.

Prompt Triggers & Slash Commands

  • /refine-intent (Slash command)
  • "Help me design a new feature..."
  • "Refine the requirements for..."
  • "Draft a spec for..."
  • "Let's align on the behavior of..."

Instructions

1. Structure the Intent (Taxonomy)

When asked to design or refine a feature, guide the user to structure their intent into the NDD hierarchy:

  • Domain: Define the broad capability area.
  • Narrative: Define the specific user goal.
  • Scene: Define the outcomes (what becomes true, not the screens).
  • Moment: Define the interaction slices. Classify each as:
    • Command: Writes/changes state.
    • Query: Reads/inspects state.
    • React: System reacts automatically.
    • Experience: User navigation/UI flow.

2. Define Rules and Examples

For every Command and React moment, you MUST define:

  • Business Rules: What must always hold true.
  • Examples: Concrete scenarios proving the rule using Given/When/Then.

3. Validate Cohesion

Ensure the specification is cohesive:

  • Data Completeness: Every piece of data shown in a Query must have a source (created/modified in a Command or React).
  • Read/Write Balance: If a narrative has Commands, it should usually have Queries to view the result.

4. Refine First, Code Second

If the user requests a change to an existing system or a draft:

  1. Update the NDD specification file first.
  2. Validate the updated specification using validate.py.
  3. Only proceed to generating code or plans once the specification is aligned and valid.

Specification Format (YAML or JSON)

Recommend the user to keep specifications in this format:

domain: <Domain Name>
description: <Description>
narratives:
  - name: <Narrative Name>
    goal: <Goal>
    scenes:
      - name: <Scene Name (Outcome)>
        outcome: <Outcome Description>
        moments:
          - name: <Moment Name>
            type: <Command|Query|React|Experience>
            description: <Description>
            rules:
              - text: <Rule Description>
                examples:
                  - name: <Example Name>
                    given: <Context>
                    when: <Action>
                    then: <Expected Result>

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.