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.
In this repository13 other files it gives its agents.
- humanizer/AGENTS.mdAGENTS.md
- aaif-notebooklm-syncSkill
- asciinema-explainer-walkthroughsSkill
- cuj-screenshotsSkill
- developer-trends-intelSkill
- diagram-designSkill
- elixir-best-practicesSkill
- engineering-disciplineSkill
- humanizerSkill
- manim-video-qualitySkill
- opm-trackingSkill
- storybookSkill
- ui-developerSkill
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
- Distinctive: line 26
When asked to design or refine a feature, guide the user to structure their intent into the NDD hierarchy:
- Distinctive: line 45
Ensure the specification is cohesive:
- Very specific: line 46
Data Completeness: Every piece of data shown in a Query must have a source (created/modified in a Command or React).
- Very specific: line 47
Read/Write Balance: If a narrative has Commands, it should usually have Queries to view the result.
- Distinctive: line 51
If the user requests a change to an existing system or a draft:
- Distinctive: line 52
Update the NDD specification file *first*.
- Distinctive: line 54
Only proceed to generating code or plans once the specification is aligned and valid.
≈ “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
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
Querymust have a source (created/modified in aCommandorReact). - Read/Write Balance: If a narrative has
Commands, it should usually haveQueriesto view the result.
4. Refine First, Code Second
If the user requests a change to an existing system or a draft:
- Update the NDD specification file first.
- Validate the updated specification using
validate.py. - 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>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.

