Logo van User Alignment

User Alignment

Organisatie
tryproduck
user-alignment

Use when turning a vague or messy user request into an aligned, agent-executable PRD. Converts raw requests into testable specs with scope, phases, acceptance criteria, and explicit do-not-do boundaries for coding agents. Triggers on planning a feature from a rough ask, writing a PRD/spec, or aligning on intent before code.

Overzicht

Uitgevertryproduck
Repositoryproduck-skills
Skillnaamuser-alignment
Sterren
511
Forks
10
Meegeleverde bestanden
2
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door tryproduck op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill User Alignment in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/tryproduck/produck-skills/tree/main/skills/user-alignment
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tryproduck/produck-skills.git /tmp/produck-skills
mkdir -p .claude/skills
cp -r /tmp/produck-skills/skills/user-alignment .claude/skills/user-alignment
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel User Alignment in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt User Alignment automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is User Alignment niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

User Alignment & Agent-Executable PRDs

Purpose: A practical guide for turning messy user requests into aligned, testable Product Requirements Documents (PRDs) that autonomous or semi-autonomous agents can execute without drifting.

Two supporting files ship with this skill:


1. Core thesis

A good agent PRD is not just a product document. It is a shared operating contract between the user, the product owner, and the implementation agent.

It must do three jobs at once:

  1. Align on user intent — what the user actually wants, why it matters, and what outcome would make them say “yes, that’s it.”
  2. Remove ambiguity before execution — especially around scope, constraints, priorities, edge cases, and trade-offs.
  3. Translate intent into executable work — sequenced phases, explicit files/systems, acceptance criteria, tests, and “do not do” boundaries.

For human teams, ambiguity can be resolved in meetings. Agents often resolve ambiguity by guessing. The PRD’s job is to make guessing unnecessary.


2. Research-backed principles

2.1 Start with the user problem, not the implementation

AI/product PRDs should begin with the user pain and the cost of the status quo, not with “we will use AI/model/tool X.” The model, framework, or agent is an implementation detail unless the user explicitly constrained it.

A strong problem statement should include:

  • Who is affected.
  • What they are trying to accomplish.
  • What blocks them today.
  • Why existing/manual/deterministic solutions are insufficient.
  • What measurable improvement would matter.

Bad: “Build an AI assistant for support.”
Better: “Support agents spend 8 minutes triaging each ticket, and 23% are misrouted. We need ticket classification under 2 seconds with at least 92% routing accuracy, while escalating low-confidence cases.”

2.2 Treat the PRD as an executable artifact

Spec-driven development treats the spec as a durable source of truth, not disposable planning scaffolding. The spec should be checked into the repo and referenced by agents across sessions.

The PRD should answer:

  • What should be built?
  • Why does it matter?
  • What is explicitly out of scope?
  • What order should work happen in?
  • How will each phase be verified?
  • What should the agent never touch?

2.3 Write for two audiences: humans first, agents second

The top of the PRD should explain the product and user context in human language. The lower sections should become increasingly operational and literal for the agent.

Recommended split:

Section typeAudienceStyle
Problem, users, goals, success metricsHumans + agentsClear prose, rationale, trade-offs
Scope, constraints, edge casesHumans + agentsStructured bullets/tables
Phases, tasks, tests, commandsAgentsExplicit, sequential, verifiable
“Do not do” instructionsAgentsDirect prohibitions, no nuance

2.4 Break work into bounded phases

Traditional PRDs often describe the whole product and leave sequencing to engineers. Agent PRDs should define implementation phases with dependencies and testable outputs.

Each phase needs:

  • Dependency: what must already exist.
  • Scope: what this phase covers.
  • Out of scope: adjacent work the agent must not do yet.
  • Tasks: concrete implementation actions.
  • Verification: commands, tests, screenshots, or manual checks that prove completion.

2.5 Define evaluation before implementation

For AI or agentic features, “works” is rarely binary. Define launch thresholds, target thresholds, and aspirational thresholds before building.

Include three metric classes:

  1. Outcome metrics — user/business result, e.g. completion rate, time saved, conversion lift.
  2. Quality metrics — correctness, relevance, tone, completeness, usefulness.
  3. Operational metrics — latency, cost, reliability, throughput, escalation rate.

For agent-executed software projects, also define:

  • Unit/integration/e2e tests required.
  • Manual QA checks.
  • Review criteria.
  • Regression risks.
  • Expected screenshots or artifacts.

2.6 Make constraints and prohibitions explicit

Agents overbuild when boundaries are unclear. Every PRD should include an explicit “do not do” section.

Examples:

  • Do not change authentication.
  • Do not modify database schema outside the listed migration.
  • Do not install new dependencies without approval.
  • Do not touch deployment files.
  • Do not redesign unrelated UI.
  • Do not commit secrets.
  • Do not treat P1/P2 items as required for MVP.

2.7 Use semi-formal requirement language when precision matters

For behavioral requirements and acceptance criteria, use a lightweight syntax such as EARS or Given/When/Then.

Useful EARS patterns:

  • WHEN [trigger] THEN [system] SHALL [response]
  • IF [condition] THEN [system] SHALL [response]
  • WHILE [state] [system] SHALL [continuous behavior]
  • WHERE [context] [system] SHALL [contextual behavior]

Useful BDD pattern:

gherkin
Given [context]
When [user action or system event]
Then [observable result]
And [additional observable result]

Avoid vague terms like “fast,” “simple,” “intuitive,” “robust,” or “user-friendly” unless they are backed by measurable thresholds.

2.8 Ingest User Session Replays & Droplet Context

When debugging or implementing fixes from user feedback, agents must not rely solely on text descriptions. They should actively parse available session recordings, screenshots, console error logs, and network payloads captured during the user session.

An agent-executable PRD must instruct the agent on how to:

  • Correlate screenshots to specific UI components and coordinates.
  • Parse stack traces and console errors to identify the exact files and lines of code responsible.
  • Use network request/response payloads to trace API mismatches or data corruptions.

2.9 Leverage Persistent Memory & Preferences

To prevent context drift and avoid re-teaching the agent style preferences (e.g. using arrow functions, specific hook patterns) or workspace constraints across different chat sessions, the project must maintain a persistent memory file (e.g. .agentguard/parcel-memory.json).

The PRD should define:

  • How the agent reads this file before every execution step.
  • How the agent updates the history/state log in the memory file after completing a phase.
  • An explicit rule requiring the agent to align all generated code with these persistent preferences.

3. User alignment workflow

Use this workflow before writing the PRD.

Step 1: Capture the raw request

Write the request down as-is. Do not immediately translate it into features.

markdown
## Raw Request
> [Paste the user’s exact words]

Step 2: Extract the intent

Summarize what you believe the user wants in one paragraph.

markdown
## Interpreted Intent
The user wants [outcome] for [user/persona] because [problem]. The desired result is [observable success state].

Step 3: Separate facts, assumptions, and unknowns

markdown
## Facts
- [Directly stated by user]

## Assumptions
- [Reasonable inference, but not confirmed]

## Unknowns
- [Information needed before implementation]

Risks

  • Technical risks that could affect implementation
  • Data privacy or security concerns
  • Timeline or resource constraints
  • External dependencies that may block progress

Identify high-risk items before implementation begins and surface them during alignment. A good agent should act on obvious defaults, but should not hallucinate material requirements. If an unknown changes architecture, cost, privacy, or scope, ask before execution.

Step 4: Ask only high-leverage clarification questions

Do not interrogate the user with twenty questions. Ask the few questions that materially change what gets built.

Use this priority order:

  1. Outcome: What does success look like?
  2. User: Who is this for?
  3. Scope: What is in/out for v1?
  4. Constraints: What systems, stack, data, deadline, or policy constraints apply?
  5. Failure tolerance: What happens if the agent/system is wrong?
  6. Approval: Who needs to sign off?

Step 5: Read back the aligned understanding

Before writing an executable PRD, produce a short alignment read-back:

markdown
My understanding:
- We are solving: [problem]
- For: [users]
- Success means: [metrics / user-visible outcome]
- MVP includes: [scope]
- MVP excludes: [non-goals]
- Key constraints: [constraints]
- Open questions: [remaining unknowns]

This catches mismatches early, before the agent turns them into code.


4. Agent-executable PRD template

The full copy-paste template lives in references/prd-template.md.

Copy it into docs/prds/[feature-name].md and fill it in. It covers: raw request, aligned understanding, goals/non-goals/success metrics, scope, user stories with acceptance criteria, UX requirements, technical context, agent instructions and prohibitions, implementation phases, testing/evaluation plan, rollout/monitoring/fallback, risks and open questions, and a readiness checklist.


5. PRD review rubric for agents

Before handing a PRD to an implementation agent, score it against this rubric.

AreaPass conditionRed flag
User alignmentA third party can explain who the user is and what success means“User-friendly,” “better,” or “AI-powered” without concrete outcome
ScopeIn-scope and out-of-scope are both explicitOnly lists features to build, not what to avoid
PriorityP0/P1/P2 or phase ordering existsEverything appears equally important
RequirementsEach requirement is atomic and testableMultiple behaviors packed into one sentence
Acceptance criteriaObservable Given/When/Then or EARS statementsSubjective criteria like “works well”
Technical contextStack, files, APIs, data, and constraints are listedAgent must infer architecture from scratch
EvaluationMetrics and thresholds exist“We’ll know it when we see it”
Failure modesEdge cases, fallback, rollback are definedHappy path only
Agent boundariesExplicit “do not do” list existsAgent can modify adjacent systems freely
ExecutionPhases have dependencies and verificationOne giant undifferentiated task

A PRD is not ready for agent execution if two reviewers can reasonably disagree about what should be built.


6. Common failure modes and fixes

Failure mode: The request is converted into features too early

Symptom: The PRD lists screens/buttons/models but does not explain the user outcome.

Fix: Add the raw request, interpreted intent, user/persona, problem statement, and desired outcome before feature requirements.

Failure mode: Scope creep through adjacent fixes

Symptom: The agent “helpfully” redesigns or refactors unrelated areas.

Fix: Add explicit non-goals and file/system boundaries.

Failure mode: Acceptance criteria are not testable

Symptom: Requirements use terms like fast, clean, intuitive, robust, seamless.

Fix: Replace adjectives with thresholds, observable behavior, screenshots, commands, or examples.

Failure mode: Agent implements before alignment

Symptom: Code appears before the user has confirmed the approach.

Fix: Require Phase 0 discovery and a plan-only step before production changes.

Failure mode: The PRD is too big for useful agent context

Symptom: The agent follows early sections but ignores later constraints.

Fix: Keep a canonical PRD, then feed only the relevant phase plus global constraints into each execution step.

Failure mode: AI quality is treated like deterministic QA

Symptom: “Output should be correct” with no eval set, thresholds, or fallback behavior.

Fix: Define evaluation scenarios, launch thresholds, target quality, confidence thresholds, and human escalation rules.


7. Useful prompts

7.1 Turn a rough request into an alignment read-back

text
Read the user request below. Do not write a PRD yet.

Return:
1. Raw request summary
2. Interpreted intent
3. User/persona
4. Desired outcome
5. In-scope assumptions
6. Out-of-scope assumptions
7. Top 3 clarification questions that materially affect implementation

Request:
[PASTE REQUEST]

7.2 Ask an agent to draft a PRD without coding

text
You are in planning mode. Do not modify files or write code.

Using the aligned understanding below, draft an agent-executable PRD.
The PRD must include:
- Problem statement
- Goals and non-goals
- P0/P1/P2 scope
- User stories with acceptance criteria
- Technical constraints
- Agent prohibitions
- Implementation phases
- Verification commands
- Open questions

Aligned understanding:
[PASTE]

7.3 Ask an agent to review a PRD

text
Review this PRD for agent execution readiness.

Score it against:
- User alignment
- Scope clarity
- Requirement testability
- Technical context
- Evaluation plan
- Agent boundaries
- Phase sequencing

Return:
1. Pass/fail summary
2. Top 10 ambiguities
3. Missing constraints
4. Requirements that are not testable
5. Suggested rewrites
6. Whether an implementation agent can safely start Phase 1

PRD:
[PASTE]

7.4 Ask an implementation agent to execute one phase

text
Read the PRD and execute only Phase [N].

Rules:
- Do not implement other phases.
- Do not modify files outside the phase scope unless you explain why.
- Run the listed verification commands.
- If a requirement is ambiguous, stop and ask.
- At the end, report files changed, tests run, and remaining risks.

PRD:
[LINK OR PASTE RELEVANT SECTIONS]

8. Autoresearch loop synthesis

This section distills the deeper research pass into a reusable operating loop.

8.1 The agent PRD pipeline

Use this pipeline when a request is vague, multi-step, or expensive to execute incorrectly.

text
Raw ask
  → alignment read-back
  → discovery research
  → problem / outcome framing
  → requirements quality pass
  → agent-executable PRD
  → implementation plan
  → phase-by-phase execution
  → verification and review

Rule: do not let the implementation agent skip directly from raw ask to code. The first agent loop should produce understanding and a plan, not implementation.

8.2 Layered artifact model

Keep durable repo rules separate from feature-specific PRDs.

ArtifactPurposeExamples
Repo instructionsAlways-on conventions and constraintsAGENTS.md, CLAUDE.md, .github/copilot-instructions.md, Cursor rules
PRD / agent specFeature-specific user intent, scope, constraints, acceptance criteriadocs/prds/export-flow.md
Implementation planExact technical approach and task breakdowndocs/plans/export-flow-plan.md
Task promptOne phase or task at a time“Execute Phase 1 only”
Verification evidenceProof that implementation matches spectests, screenshots, logs, diff summary

8.3 Vague ask → clear requirement loop

  1. Capture the ask verbatim — preserve the user’s words before interpreting.
  2. Extract the problem — what pain, cost, delay, risk, or missed opportunity is implied?
  3. Identify the user and stakeholder — who experiences the pain, who decides, who operates/supports it?
  4. Separate problem from proposed solution — is the requested feature the only way to solve it?
  5. Gather evidence — past behavior, metrics, support tickets, user quotes, logs, screenshots.
  6. Map assumptions — user need, feasibility, data availability, compliance, cost, performance, adoption.
  7. Define success — outcome metric + quality metric + guardrail metric.
  8. Slice MVP scope — P0 must ship, P1 should ship, P2 explicitly later.
  9. Write acceptance criteria — testable Given/When/Then or EARS statements.
  10. Read back alignment — confirm the interpretation before build.

8.4 Research frameworks to apply

FrameworkUse whenOutput
Impact MappingStakeholder asks for a feature but business outcome is unclearGoal → actors → behavior changes → deliverables
Opportunity Solution TreeThere are multiple possible solutions or unclear product betOutcome → opportunities → solutions → assumption tests
User Story MappingWorkflow is broad or overloadedBackbone activities → tasks → release slices
5 WhysRequest describes a symptomRoot cause and measurable desired outcome
The Mom TestNeed user evidencePast-behavior evidence, not speculative opinions
SMART criteriaGoal or NFR is vagueSpecific, measurable, achievable, relevant, time-bound target

8.5 Requirements quality checklist

Use this as a lightweight PRD linter before handing work to an agent.

markdown
## Requirements Quality Checklist

### Problem and evidence
- [ ] The problem is specific and user-centered.
- [ ] Claims are backed by evidence or marked `[VERIFY]`.
- [ ] Target users/personas are explicit.
- [ ] Business/user goal is measurable.

### Scope
- [ ] In-scope behavior is listed.
- [ ] Out-of-scope behavior is listed.
- [ ] Priority is clear: P0 / P1 / P2.
- [ ] Dependencies and owners are named.
- [ ] Assumptions are explicit.

### Requirement quality
- [ ] Each requirement is singular: one actor, one behavior.
- [ ] Each requirement is testable.
- [ ] Vague terms are replaced with thresholds or examples.
- [ ] Functional and non-functional requirements are separated.
- [ ] Non-functional requirements have measurable thresholds.

### Flows and edge cases
- [ ] Main happy path is step-by-step.
- [ ] Empty, loading, and error states are covered.
- [ ] Permissions/roles are covered.
- [ ] Invalid input and boundary cases are covered.
- [ ] Fallback/rollback behavior is covered.

### Agent execution
- [ ] Implementation phases are bounded.
- [ ] Each phase has exact verification steps.
- [ ] “Do not touch” areas are explicit.
- [ ] The agent must report files changed, tests run, and remaining risks.

8.6 Requirements smell checklist

Flag and rewrite requirements containing:

SmellExamplesRewrite move
Ambiguous adjectivesfast, easy, robust, scalable, intuitiveReplace with metric or observable behavior
Loopholeswhere possible, as needed, if feasibleState exact condition or remove
Open-ended verbssupport, handle, improve, optimizeSpecify actor, input, output, threshold
Vague pronounsit, this, theyName the system/entity
Baseless comparisonsbetter, faster, bestAdd baseline and target
Negative-only requirementshall not fail silentlyDefine required fallback behavior
Compound requirementA and B and CSplit into atomic requirements
Missing verificationno test, metric, exampleAdd acceptance criteria

8.7 EARS requirement patterns

Use one behavior per requirement.

text
Ubiquitous:
The <system> shall <required behavior>.

Event-driven:
When <trigger>, the <system> shall <response>.

State-driven:
While <state>, the <system> shall <behavior>.

Unwanted behavior:
If <error condition>, then the <system> shall <mitigation or fallback>.

Optional feature:
Where <feature/config exists>, the <system> shall <behavior>.

Complex:
While <state>, when <trigger>, the <system> shall <response>.

8.8 Agent execution gate

Before letting an agent implement, require this gate to pass:

markdown
## Agent Execution Gate

The agent may start implementation only if:

- [ ] The raw request and interpreted intent are documented.
- [ ] The MVP scope is explicit.
- [ ] Non-goals and do-not-touch areas are explicit.
- [ ] Each P0 requirement has acceptance criteria.
- [ ] Each phase has verification commands or manual checks.
- [ ] Open questions are either resolved or marked non-blocking.
- [ ] The first execution prompt asks for one phase only.

9. Further reading

The expanded reference map and full citation list are in references/reading-list.md — grouped by topic (agent-executable specs and coding-agent workflows, user alignment and requirements discovery, requirements quality and acceptance criteria).

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill User Alignment?

Use when turning a vague or messy user request into an aligned, agent-executable PRD. Converts raw requests into testable specs with scope, phases, acceptance criteria, and explicit do-not-do boundaries for coding agents. Triggers on planning a feature from a rough ask, writing a PRD/spec, or aligning on intent before code.

Waarom User Alignment gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. User Alignment bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik User Alignment in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/tryproduck/produck-skills/tree/main/skills/user-alignment. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen User Alignment gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met User Alignment gebruiken?

Zoveel als je wilt. Je kunt User Alignment gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill User Alignment gratis?

Ja. Deze skill is door tryproduck op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇