create-agdf 0.10.3 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/generated/.agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +12 -0
- package/generated/.agdf/control/templates/artefacts/PRD.md +40 -8
- package/generated/.agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +51 -0
- package/generated/.github/skills/README.md +1 -0
- package/generated/.github/skills/agdf-brownfield-analysis/SKILL.md +9 -0
- package/generated/.github/skills/agdf-clean-implementation-review/SKILL.md +18 -0
- package/generated/.github/skills/agdf-code-review/SKILL.md +17 -0
- package/generated/.github/skills/agdf-gate-check/SKILL.md +6 -0
- package/generated/.github/skills/agdf-qa-gate/SKILL.md +15 -5
- package/generated/.github/skills/agdf-task-plan-review/SKILL.md +33 -0
- package/generated/.github/skills/agdf-ux-intent-definition/SKILL.md +94 -0
- package/generated/.github/skills/contracts/control-scaffold.md +4 -0
- package/generated/.github/skills/contracts/gate-transition.md +25 -0
- package/generated/.github/skills/contracts/quality.md +58 -1
- package/generated/.opencode/AGDF.md +6 -0
- package/generated/.opencode/README.md +1 -0
- package/generated/.opencode/contracts/control-scaffold.md +4 -0
- package/generated/.opencode/contracts/gate-transition.md +25 -0
- package/generated/.opencode/contracts/quality.md +58 -1
- package/generated/.opencode/skills/agdf-brownfield-analysis/SKILL.md +9 -0
- package/generated/.opencode/skills/agdf-clean-implementation-review/SKILL.md +18 -0
- package/generated/.opencode/skills/agdf-code-review/SKILL.md +17 -0
- package/generated/.opencode/skills/agdf-gate-check/SKILL.md +6 -0
- package/generated/.opencode/skills/agdf-qa-gate/SKILL.md +15 -5
- package/generated/.opencode/skills/agdf-task-plan-review/SKILL.md +33 -0
- package/generated/.opencode/skills/agdf-ux-intent-definition/SKILL.md +94 -0
- package/generated/AGENTS.md +6 -0
- package/generated/plugins/agdf/.claude-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +12 -0
- package/generated/plugins/agdf/control/templates/artefacts/PRD.md +40 -8
- package/generated/plugins/agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +51 -0
- package/generated/plugins/agdf/meta/agdf-agent-router.md +6 -0
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +7 -1
- package/generated/plugins/agdf/meta/contracts/control-scaffold.md +4 -0
- package/generated/plugins/agdf/meta/contracts/gate-transition.md +25 -0
- package/generated/plugins/agdf/meta/contracts/quality.md +58 -1
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +7 -1
- package/generated/plugins/agdf/runtime/create-agdf/package.json +1 -1
- package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
- package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +138 -1
- package/generated/plugins/agdf/skills/brownfield-analysis/SKILL.md +9 -0
- package/generated/plugins/agdf/skills/clean-implementation-review/SKILL.md +18 -0
- package/generated/plugins/agdf/skills/code-review/SKILL.md +17 -0
- package/generated/plugins/agdf/skills/gate-check/SKILL.md +6 -0
- package/generated/plugins/agdf/skills/qa-gate/SKILL.md +15 -5
- package/generated/plugins/agdf/skills/task-plan-review/SKILL.md +33 -0
- package/generated/plugins/agdf/skills/ux-intent-definition/SKILL.md +94 -0
- package/generated/plugins/agdf/skills/ux-intent-definition/help.md +17 -0
- package/lib/scaffold/plan.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ux-intent-definition
|
|
3
|
+
description: Use this skill after approved UR and post-UR routing when UI/UX impact is medium or high, or low with ambiguous product semantics, to define user intent, success, working modes, effective state, visible state ownership, activation, blockers, recovery and transitions as structured PRD input; fail closed when evidence or product decisions are unresolved. This internal analysis never grants gate permission or replaces the approved PRD.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ux-intent-definition
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Create structured, testable UX intent input before PRD approval so implementation reviews verify an
|
|
11
|
+
approved product promise instead of inventing requirements after code exists.
|
|
12
|
+
|
|
13
|
+
## Runtime Contract
|
|
14
|
+
|
|
15
|
+
Use:
|
|
16
|
+
|
|
17
|
+
- `../../meta/contracts/gate-transition.md` for impact routing, authority and revision behavior;
|
|
18
|
+
- `../../meta/contracts/quality.md` for evidence and fail-closed output discipline.
|
|
19
|
+
|
|
20
|
+
## Authority
|
|
21
|
+
|
|
22
|
+
This is an internal analytical skill, not a user gate. It cannot approve artefacts, grant
|
|
23
|
+
implementation permission, change approved UR/PRD intent, prescribe technical design or become a
|
|
24
|
+
parallel product source of truth. Proposed criteria become authoritative only when incorporated into
|
|
25
|
+
and approved as PRD content. Technical storage, derivation and component ownership remain SD concerns.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
|
|
29
|
+
- approved UR and its intent, success signal, primary action and persona/context;
|
|
30
|
+
- post-UR `delivery_context`, `ui_ux_impact`, reason and required flag;
|
|
31
|
+
- existing behavior/ownership evidence for Brownfield work;
|
|
32
|
+
- known working modes, state semantics, activation, blockers, recovery and transitions.
|
|
33
|
+
|
|
34
|
+
## Workflow
|
|
35
|
+
|
|
36
|
+
1. Confirm the approved UR and routing evidence. If required evidence is absent or conflicts, block.
|
|
37
|
+
2. Identify the primary user intent, observable success and primary decision/action.
|
|
38
|
+
3. For every relevant working mode, define effective state and visible state types.
|
|
39
|
+
4. Separate `effective_state_authority_by_mode` from
|
|
40
|
+
`primary_state_presentation_owner_by_mode`; do not turn either into technical ownership.
|
|
41
|
+
5. Define activation/deactivation, blockers with visible next actions, actionable recovery (including
|
|
42
|
+
visible retry for recoverable transient failure) and relevant state transitions.
|
|
43
|
+
6. Propose observable PRD acceptance criteria and identify open product questions.
|
|
44
|
+
7. Return exactly one decision: `ready | blocked | not_applicable`.
|
|
45
|
+
|
|
46
|
+
## Decision Rules
|
|
47
|
+
|
|
48
|
+
- `ready`: every required output is reliable enough for PRD drafting.
|
|
49
|
+
- `blocked`: user intent, modes, effective state, authority, activation, blockers, recovery, transitions
|
|
50
|
+
or Brownfield evidence is missing, contradictory or materially ambiguous.
|
|
51
|
+
- `not_applicable`: routing proves that no relevant user-facing intent, state or recovery behavior changes.
|
|
52
|
+
|
|
53
|
+
A conflict with approved UR routes to UR revision. A material product change discovered after PRD
|
|
54
|
+
approval routes to PRD revision, or UR revision when intent/scope changes. Never resolve the conflict
|
|
55
|
+
silently. A required blocked result prevents PRD readiness.
|
|
56
|
+
|
|
57
|
+
## Output
|
|
58
|
+
|
|
59
|
+
Populate each field or use an explicit, justified `not_applicable`:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
- decision: ready | blocked | not_applicable
|
|
63
|
+
- blocking_reason:
|
|
64
|
+
- primary_user_intent:
|
|
65
|
+
- success_signal:
|
|
66
|
+
- primary_decision_or_action:
|
|
67
|
+
- working_modes:
|
|
68
|
+
- effective_state_by_mode:
|
|
69
|
+
- visible_state_types:
|
|
70
|
+
- effective_state_authority_by_mode:
|
|
71
|
+
- primary_state_presentation_owner_by_mode:
|
|
72
|
+
- activation_paths:
|
|
73
|
+
- blockers:
|
|
74
|
+
- recovery_paths:
|
|
75
|
+
- relevant_state_transitions:
|
|
76
|
+
- proposed_prd_acceptance_criteria:
|
|
77
|
+
- open_product_questions:
|
|
78
|
+
- affected_outputs:
|
|
79
|
+
- evidence:
|
|
80
|
+
- missing_evidence:
|
|
81
|
+
- required_next_step:
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
For `blocked`, `blocking_reason`, `open_product_questions`, `affected_outputs`, `evidence`,
|
|
85
|
+
`missing_evidence` and `required_next_step` are mandatory. When durable control state exists, write
|
|
86
|
+
the result to `.agdf/control/artefacts/<key>/UX_INTENT_DEFINITION.md` without a Gate or approval field.
|
|
87
|
+
|
|
88
|
+
## Forbidden
|
|
89
|
+
|
|
90
|
+
- invent product intent or silently choose between conflicting modes/state authorities;
|
|
91
|
+
- bypass UR/PRD revision or claim PRD readiness from a blocked result;
|
|
92
|
+
- add a gate, approval value or implementation permission;
|
|
93
|
+
- prescribe components, persistence, endpoints, styles or other technical design;
|
|
94
|
+
- treat supporting analysis as authoritative beside the approved PRD.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## NAME
|
|
2
|
+
|
|
3
|
+
`ux-intent-definition` - define testable UX intent before PRD approval
|
|
4
|
+
|
|
5
|
+
## SYNOPSIS
|
|
6
|
+
|
|
7
|
+
`/ux-intent-definition` [`--help`|`-h`]
|
|
8
|
+
|
|
9
|
+
## DESCRIPTION
|
|
10
|
+
|
|
11
|
+
Produces structured `ready | blocked | not_applicable` PRD input for user intent, success, working
|
|
12
|
+
modes, effective state, visible ownership, activation, blockers, recovery and transitions. It is an
|
|
13
|
+
internal non-authorizing analysis and fails closed when product semantics or evidence are unresolved.
|
|
14
|
+
|
|
15
|
+
## SEE ALSO
|
|
16
|
+
|
|
17
|
+
See SKILL.md for triggers, authority, required fields and decision rules.
|
package/lib/scaffold/plan.js
CHANGED
|
@@ -30,6 +30,7 @@ const codexPluginFiles = [
|
|
|
30
30
|
join("plugins", "agdf", "control", "templates", "artefacts", "BROWNFIELD_REVIEW.md"),
|
|
31
31
|
join("plugins", "agdf", "control", "templates", "artefacts", "VERIFIED_CHANGE.md"),
|
|
32
32
|
join("plugins", "agdf", "control", "templates", "artefacts", "PRD.md"),
|
|
33
|
+
join("plugins", "agdf", "control", "templates", "artefacts", "UX_INTENT_DEFINITION.md"),
|
|
33
34
|
join("plugins", "agdf", "control", "templates", "artefacts", "SD.md"),
|
|
34
35
|
join("plugins", "agdf", "control", "templates", "artefacts", "TP.md"),
|
|
35
36
|
join("plugins", "agdf", "control", "templates", "artefacts", "QA_REPORT.md"),
|
|
@@ -56,6 +57,7 @@ const controlFiles = [
|
|
|
56
57
|
join(".agdf", "control", "templates", "artefacts", "BROWNFIELD_REVIEW.md"),
|
|
57
58
|
join(".agdf", "control", "templates", "artefacts", "VERIFIED_CHANGE.md"),
|
|
58
59
|
join(".agdf", "control", "templates", "artefacts", "PRD.md"),
|
|
60
|
+
join(".agdf", "control", "templates", "artefacts", "UX_INTENT_DEFINITION.md"),
|
|
59
61
|
join(".agdf", "control", "templates", "artefacts", "SD.md"),
|
|
60
62
|
join(".agdf", "control", "templates", "artefacts", "TP.md"),
|
|
61
63
|
join(".agdf", "control", "templates", "artefacts", "QA_REPORT.md"),
|
|
@@ -88,6 +90,7 @@ const artefactTemplateFiles = [
|
|
|
88
90
|
join(".agdf", "control", "templates", "artefacts", "BROWNFIELD_REVIEW.md"),
|
|
89
91
|
join(".agdf", "control", "templates", "artefacts", "VERIFIED_CHANGE.md"),
|
|
90
92
|
join(".agdf", "control", "templates", "artefacts", "PRD.md"),
|
|
93
|
+
join(".agdf", "control", "templates", "artefacts", "UX_INTENT_DEFINITION.md"),
|
|
91
94
|
join(".agdf", "control", "templates", "artefacts", "SD.md"),
|
|
92
95
|
join(".agdf", "control", "templates", "artefacts", "TP.md"),
|
|
93
96
|
join(".agdf", "control", "templates", "artefacts", "QA_REPORT.md"),
|
package/package.json
CHANGED