ai-design-context 0.4.0
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/AGENTS.md +156 -0
- package/CHANGELOG.md +71 -0
- package/CODE_OF_CONDUCT.md +29 -0
- package/CONTRIBUTING.md +128 -0
- package/LICENSE +21 -0
- package/README.md +283 -0
- package/RELEASE_NOTES_v0.1.0.md +45 -0
- package/RELEASE_NOTES_v0.3.0.md +47 -0
- package/RELEASE_NOTES_v0.4.0.md +29 -0
- package/RELEASE_READINESS.md +107 -0
- package/ROADMAP.md +60 -0
- package/SECURITY.md +40 -0
- package/assets/logo.svg +9 -0
- package/benchmarks/README.md +19 -0
- package/benchmarks/chat.md +37 -0
- package/benchmarks/mobile-home-screen.md +38 -0
- package/benchmarks/notes-app.md +37 -0
- package/benchmarks/settings.md +37 -0
- package/benchmarks/shopping-list.md +37 -0
- package/benchmarks/todo-app.md +144 -0
- package/checklists/DESIGN_QA.md +102 -0
- package/checklists/GENERATED_INDEX.md +7 -0
- package/docs/AGENT_CONTEXT.md +111 -0
- package/docs/BENCHMARK.md +170 -0
- package/docs/DESIGNLINT_READINESS.md +110 -0
- package/docs/DESIGN_SYSTEM.md +23 -0
- package/docs/EVALUATION_RUBRIC.md +154 -0
- package/docs/GITHUB_SETUP.md +28 -0
- package/docs/GLOSSARY.md +45 -0
- package/docs/INDEX.md +109 -0
- package/docs/KNOWLEDGE_ENGINE.md +594 -0
- package/docs/MOBILE_FIRST.md +18 -0
- package/docs/NPM_RELEASE.md +43 -0
- package/docs/PATTERN_SPEC.md +113 -0
- package/docs/PHILOSOPHY.md +25 -0
- package/docs/PRODUCT_THINKING.md +26 -0
- package/docs/STYLE_GUIDE.md +49 -0
- package/docs/TRACEABILITY.md +45 -0
- package/evidence/README.md +64 -0
- package/evidence/TEMPLATE.md +46 -0
- package/evidence/chat/.gitkeep +1 -0
- package/evidence/mobile-home/.gitkeep +1 -0
- package/evidence/notes/.gitkeep +1 -0
- package/evidence/settings/.gitkeep +1 -0
- package/evidence/shopping/.gitkeep +1 -0
- package/evidence/todo/.gitkeep +1 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/EVALUATION.md +66 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/README.md +40 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/ai-design-rules/generated-output.md +163 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/ai-design-rules/metadata.json +38 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/ai-design-rules/notes.md +20 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/ai-design-rules/prompt.md +16 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/ai-design-rules/scores.md +18 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/baseline/generated-output.md +98 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/baseline/metadata.json +19 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/baseline/notes.md +19 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/baseline/prompt.md +9 -0
- package/evidence/todo/2026-06-25-codex-gpt-5/baseline/scores.md +18 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/EVALUATION.md +70 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/README.md +52 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/GENERATION_NOTES.md +133 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/app.js +289 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/context/context-preserving-preview.json +443 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/context/daily-home-surface.json +373 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/context/quick-capture.json +301 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/context/sources-read.txt +36 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/generated-output.md +11 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/index.html +64 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/launch-prompt.md +1 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/metadata.json +55 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/notes.md +15 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/parent-status-message.md +1 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/prompt.md +49 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/runtime-checks.json +776 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/scores.md +20 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-completed.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-default.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-detail-reduced-motion.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-detail.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-empty.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-keyboard-focus.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-save-error.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-saved.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-saving.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/desktop-validation.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-completed.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-default.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-detail-reduced-motion.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-detail.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-empty.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-keyboard-focus.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-save-error.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-saved.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-saving.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/screenshots/mobile-validation.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/source-hashes.json +5 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/ai-design-rules/styles.css +122 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/GENERATION_NOTES.md +86 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/app.js +303 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/generated-output.md +11 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/index.html +71 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/launch-prompt.md +1 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/metadata.json +55 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/notes.md +15 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/parent-status-message.md +1 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/prompt.md +49 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/runtime-checks.json +772 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/scores.md +20 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-completed.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-default.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-detail-reduced-motion.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-detail.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-empty.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-keyboard-focus.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-save-error.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-saved.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-saving.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/desktop-validation.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-completed.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-default.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-detail-reduced-motion.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-detail.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-empty.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-keyboard-focus.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-save-error.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-saved.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-saving.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/screenshots/mobile-validation.png +0 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/source-hashes.json +5 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/baseline/styles.css +9 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/capture-ai-design-rules.js +60 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/capture-baseline.js +60 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/brief.md +35 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/knowledge-files.json +127 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/knowledge.patch +890 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/review-context.json +550 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/seed.json +86 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/setup.json +47 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/common/technical-envelope.md +11 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/layout-metrics.json +133 -0
- package/evidence/todo/2026-09-28-codex-paired-todo/layout-probe.js +15 -0
- package/examples/GENERATED_INDEX.md +8 -0
- package/examples/INDEX.md +16 -0
- package/examples/README.md +15 -0
- package/examples/consequential-action-confirmation-reference.md +83 -0
- package/examples/todo-app-benchmark.md +117 -0
- package/examples/todo-reference/README.md +29 -0
- package/examples/todo-reference/app.js +154 -0
- package/examples/todo-reference/favicon.svg +4 -0
- package/examples/todo-reference/index.html +67 -0
- package/examples/todo-reference/review-evidence/2026-07-15/desktop-default.png +0 -0
- package/examples/todo-reference/review-evidence/2026-07-15/desktop-detail.png +0 -0
- package/examples/todo-reference/review-evidence/2026-07-15/mobile-detail.png +0 -0
- package/examples/todo-reference/review-evidence/2026-07-15/mobile-error.png +0 -0
- package/examples/todo-reference/styles.css +241 -0
- package/graph/GENERATED_GRAPH.md +71 -0
- package/observations/README.md +23 -0
- package/observations/accessibility/reduced-interaction-motion.md +49 -0
- package/observations/accessibility/textual-error-recovery.md +50 -0
- package/observations/accessibility/visible-keyboard-focus.md +49 -0
- package/observations/ai/agent-consequential-action-controls.md +56 -0
- package/observations/ai/agent-work-visibility-and-intervention.md +51 -0
- package/observations/ai/figma-agent-context-and-skills.md +52 -0
- package/observations/finance/high-risk-wallet-recovery-flows.md +55 -0
- package/observations/finance/market-interface-adaptive-trading-surfaces.md +55 -0
- package/observations/interaction/chrome-scoped-view-transitions.md +52 -0
- package/observations/interaction/figma-motion-as-system-capability.md +53 -0
- package/observations/mobile/mobile-bottom-sheet-choice-contracts.md +55 -0
- package/observations/performance/reserved-loading-space.md +51 -0
- package/observations/product-repos/pinned-ai-design-rules-integration.md +49 -0
- package/observations/visual/apple-liquid-glass-functional-layer.md +52 -0
- package/observations/visual/chrome-content-first-adaptive-ui.md +51 -0
- package/observations/visual/material-3-expressive-system.md +52 -0
- package/package.json +65 -0
- package/patterns/GENERATED_INDEX.md +13 -0
- package/patterns/INDEX.md +41 -0
- package/patterns/README.md +5 -0
- package/patterns/consequential-action-confirmation.md +127 -0
- package/patterns/context-preserving-preview.md +145 -0
- package/patterns/daily-home-surface.md +134 -0
- package/patterns/mobile-primary-action.md +110 -0
- package/patterns/object-status-list.md +114 -0
- package/patterns/progressive-detail.md +113 -0
- package/patterns/quick-capture.md +132 -0
- package/prompts/CONSEQUENTIAL_ACTION_REVIEW.md +100 -0
- package/prompts/DESIGN_EVIDENCE_REVIEW.md +49 -0
- package/prompts/GENERATED_INDEX.md +11 -0
- package/prompts/INDEX.md +24 -0
- package/prompts/PROTOTYPE_REVIEW.md +189 -0
- package/prompts/QUICK_CAPTURE_STATE_REVIEW.md +74 -0
- package/prompts/TODO_APP_BENCHMARK.md +88 -0
- package/registry/objects.json +568 -0
- package/registry/relationships.json +972 -0
- package/research/GENERATED_INDEX.md +18 -0
- package/research/INDEX.md +40 -0
- package/research/accessibility/keyboard-focus-and-interaction-motion.md +62 -0
- package/research/accessibility/textual-error-recovery.md +57 -0
- package/research/performance/reserved-loading-space.md +56 -0
- package/research/products/apple-reminders.md +59 -0
- package/research/products/arc.md +61 -0
- package/research/products/linear.md +62 -0
- package/research/products/telegram.md +61 -0
- package/research/products/things-3.md +60 -0
- package/research/ux/contextual-agentic-interface.md +68 -0
- package/research/ux/high-risk-operational-flows.md +89 -0
- package/research/ux/motion-as-state-continuity.md +71 -0
- package/research/visual/expressive-system-ui-2026.md +75 -0
- package/reviews/GENERATED_INDEX.md +9 -0
- package/reviews/README.md +25 -0
- package/reviews/consequential-action-confirmation-review.md +92 -0
- package/reviews/todo-app-benchmark-reference-review.md +86 -0
- package/reviews/todo-reference-fixture-review.md +77 -0
- package/rules/GENERATED_INDEX.md +23 -0
- package/rules/INDEX.md +37 -0
- package/rules/accessibility/A11Y-001.md +58 -0
- package/rules/accessibility/A11Y-002.md +55 -0
- package/rules/accessibility/A11Y-003.md +54 -0
- package/rules/accessibility/A11Y-004.md +54 -0
- package/rules/ia/IA-001.md +60 -0
- package/rules/ia/IA-002.md +61 -0
- package/rules/performance/PERF-001.md +55 -0
- package/rules/product/PRD-001.md +61 -0
- package/rules/product/PRD-002.md +61 -0
- package/rules/ux/UX-001.md +58 -0
- package/rules/ux/UX-002.md +61 -0
- package/rules/ux/UX-003.md +60 -0
- package/rules/ux/UX-004.md +61 -0
- package/rules/ux/UX-005.md +62 -0
- package/rules/ux/UX-006.md +69 -0
- package/rules/visual/VIS-001.md +59 -0
- package/rules/visual/VIS-002.md +59 -0
- package/schema/checklist.schema.json +21 -0
- package/schema/common.schema.json +178 -0
- package/schema/observation.schema.json +21 -0
- package/schema/pattern.schema.json +21 -0
- package/schema/prompt.schema.json +21 -0
- package/schema/reference-project.schema.json +21 -0
- package/schema/research.schema.json +21 -0
- package/schema/review.schema.json +21 -0
- package/schema/rule.schema.json +21 -0
- package/skills/README.md +48 -0
- package/skills/accessibility-reviewer/SKILL.md +101 -0
- package/skills/agent-context/SKILL.md +34 -0
- package/skills/agent-context/agents/openai.yaml +4 -0
- package/skills/design-evidence-researcher/SKILL.md +47 -0
- package/skills/design-evidence-researcher/agents/openai.yaml +4 -0
- package/skills/design-reviewer/SKILL.md +113 -0
- package/skills/design-system-architect/SKILL.md +101 -0
- package/skills/information-architect/SKILL.md +97 -0
- package/skills/interaction-designer/SKILL.md +104 -0
- package/skills/knowledge-graph-architect/SKILL.md +96 -0
- package/skills/mobile-ux-expert/SKILL.md +105 -0
- package/skills/motion-designer/SKILL.md +100 -0
- package/skills/performance-reviewer/SKILL.md +97 -0
- package/skills/product-designer/SKILL.md +104 -0
- package/skills/prompt-architect/SKILL.md +105 -0
- package/skills/reference-driven-design/SKILL.md +119 -0
- package/skills/ux-reviewer/SKILL.md +99 -0
- package/skills/visual-designer/SKILL.md +107 -0
- package/starter-kit/AGENTS.md +37 -0
- package/starter-kit/BOOTSTRAP.md +13 -0
- package/starter-kit/INSTALL_WITH_AGENT.md +133 -0
- package/starter-kit/PROJECT_INTEGRATION.md +60 -0
- package/starter-kit/README.md +41 -0
- package/starter-kit/benchmarks/BENCHMARK_CHECKLIST.md +10 -0
- package/starter-kit/docs/DESIGN_DECISIONS.md +22 -0
- package/starter-kit/docs/INFORMATION_ARCHITECTURE.md +25 -0
- package/starter-kit/docs/PERSONAS.md +14 -0
- package/starter-kit/docs/PRD.md +32 -0
- package/starter-kit/docs/USER_FLOWS.md +19 -0
- package/starter-kit/reviews/DESIGN_REVIEW.md +49 -0
- package/starter-kit/templates/FEATURE_TEMPLATE.md +36 -0
- package/starter-kit/templates/TASK_TEMPLATE.md +22 -0
- package/templates/CHECKLIST_TEMPLATE.md +43 -0
- package/templates/OBSERVATION_TEMPLATE.md +41 -0
- package/templates/PATTERN_TEMPLATE.md +100 -0
- package/templates/PROMPT_TEMPLATE.md +46 -0
- package/templates/PROTOTYPE_REVIEW.md +50 -0
- package/templates/REFERENCE_PROJECT_TEMPLATE.md +49 -0
- package/templates/REVIEW_TEMPLATE.md +55 -0
- package/templates/RULE_TEMPLATE.md +57 -0
- package/tools/cli.mjs +46 -0
- package/tools/context.mjs +342 -0
- package/tools/designlint.mjs +77 -0
- package/tools/generate-indexes.mjs +621 -0
- package/tools/init.mjs +99 -0
- package/tools/validate-benchmark-evidence.mjs +248 -0
- package/tools/validate-knowledge.mjs +481 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Product Requirements Document
|
|
2
|
+
|
|
3
|
+
## Vision
|
|
4
|
+
|
|
5
|
+
What product outcome should this create?
|
|
6
|
+
|
|
7
|
+
## Goals
|
|
8
|
+
|
|
9
|
+
- Goal 1.
|
|
10
|
+
- Goal 2.
|
|
11
|
+
|
|
12
|
+
## Scope
|
|
13
|
+
|
|
14
|
+
### In Scope
|
|
15
|
+
|
|
16
|
+
- Item.
|
|
17
|
+
|
|
18
|
+
### Out Of Scope
|
|
19
|
+
|
|
20
|
+
- Item.
|
|
21
|
+
|
|
22
|
+
## Primary User
|
|
23
|
+
|
|
24
|
+
Who is this for?
|
|
25
|
+
|
|
26
|
+
## Core Action
|
|
27
|
+
|
|
28
|
+
What action should be easiest to complete?
|
|
29
|
+
|
|
30
|
+
## Success Criteria
|
|
31
|
+
|
|
32
|
+
- Criterion.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# User Flows
|
|
2
|
+
|
|
3
|
+
Describe primary user journeys.
|
|
4
|
+
|
|
5
|
+
## Primary Flow
|
|
6
|
+
|
|
7
|
+
1. Entry point.
|
|
8
|
+
2. Main action.
|
|
9
|
+
3. Feedback.
|
|
10
|
+
4. Completion.
|
|
11
|
+
|
|
12
|
+
## Empty Flow
|
|
13
|
+
|
|
14
|
+
- What happens before the user has data?
|
|
15
|
+
|
|
16
|
+
## Error Flow
|
|
17
|
+
|
|
18
|
+
- What can fail?
|
|
19
|
+
- How does the user recover?
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Design Review
|
|
2
|
+
|
|
3
|
+
## Product Goal
|
|
4
|
+
|
|
5
|
+
- Clear / unclear:
|
|
6
|
+
|
|
7
|
+
## User Goal
|
|
8
|
+
|
|
9
|
+
- Clear / unclear:
|
|
10
|
+
|
|
11
|
+
## Rules Applied
|
|
12
|
+
|
|
13
|
+
- Rule:
|
|
14
|
+
- Evidence:
|
|
15
|
+
|
|
16
|
+
## Patterns Applied
|
|
17
|
+
|
|
18
|
+
- Pattern:
|
|
19
|
+
- Evidence:
|
|
20
|
+
|
|
21
|
+
## Mobile
|
|
22
|
+
|
|
23
|
+
- Primary action reachable:
|
|
24
|
+
- Layout works at 390px:
|
|
25
|
+
|
|
26
|
+
## Accessibility
|
|
27
|
+
|
|
28
|
+
- Labels:
|
|
29
|
+
- Focus:
|
|
30
|
+
- Contrast:
|
|
31
|
+
- Touch targets:
|
|
32
|
+
|
|
33
|
+
## States
|
|
34
|
+
|
|
35
|
+
- Empty:
|
|
36
|
+
- Loading:
|
|
37
|
+
- Error:
|
|
38
|
+
- Success:
|
|
39
|
+
- Disabled:
|
|
40
|
+
|
|
41
|
+
## Consistency
|
|
42
|
+
|
|
43
|
+
- Uses existing components/tokens:
|
|
44
|
+
- Avoids one-off UI:
|
|
45
|
+
|
|
46
|
+
## Result
|
|
47
|
+
|
|
48
|
+
- PASS / NEEDS WORK:
|
|
49
|
+
- Required fixes:
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Feature
|
|
2
|
+
|
|
3
|
+
## User Goal
|
|
4
|
+
|
|
5
|
+
What should the user be able to do?
|
|
6
|
+
|
|
7
|
+
## Product Goal
|
|
8
|
+
|
|
9
|
+
What product outcome does this support?
|
|
10
|
+
|
|
11
|
+
## Applicable Rules
|
|
12
|
+
|
|
13
|
+
- Rule:
|
|
14
|
+
- Why it applies:
|
|
15
|
+
|
|
16
|
+
## Applicable Patterns
|
|
17
|
+
|
|
18
|
+
- Pattern:
|
|
19
|
+
- Why it applies:
|
|
20
|
+
|
|
21
|
+
## Edge Cases
|
|
22
|
+
|
|
23
|
+
- Case:
|
|
24
|
+
- Expected behavior:
|
|
25
|
+
|
|
26
|
+
## States
|
|
27
|
+
|
|
28
|
+
- Empty:
|
|
29
|
+
- Loading:
|
|
30
|
+
- Error:
|
|
31
|
+
- Success:
|
|
32
|
+
- Disabled:
|
|
33
|
+
|
|
34
|
+
## Acceptance Criteria
|
|
35
|
+
|
|
36
|
+
- Criteria.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Task
|
|
2
|
+
|
|
3
|
+
## Context
|
|
4
|
+
|
|
5
|
+
What is changing and why?
|
|
6
|
+
|
|
7
|
+
## Design Reasoning
|
|
8
|
+
|
|
9
|
+
- User goal:
|
|
10
|
+
- Rules:
|
|
11
|
+
- Patterns:
|
|
12
|
+
|
|
13
|
+
## Implementation Notes
|
|
14
|
+
|
|
15
|
+
- Files:
|
|
16
|
+
- Constraints:
|
|
17
|
+
|
|
18
|
+
## Validation
|
|
19
|
+
|
|
20
|
+
- Review:
|
|
21
|
+
- Benchmark:
|
|
22
|
+
- Evidence:
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: CHECK-00000
|
|
3
|
+
alias: CHECK-ALIAS-000
|
|
4
|
+
slug: checklist-slug
|
|
5
|
+
title: Checklist title
|
|
6
|
+
object_type: checklist
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: design-qa
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: medium
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships:
|
|
23
|
+
- type: related_to
|
|
24
|
+
target: RULE-00000
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Checklist Title
|
|
28
|
+
|
|
29
|
+
## Scope
|
|
30
|
+
|
|
31
|
+
Describe the artifact or flow this checklist evaluates.
|
|
32
|
+
|
|
33
|
+
## Coverage
|
|
34
|
+
|
|
35
|
+
- `RULE-00000` - Review question.
|
|
36
|
+
|
|
37
|
+
## Evidence Boundary
|
|
38
|
+
|
|
39
|
+
- State what must be directly observed or measured before it can pass.
|
|
40
|
+
|
|
41
|
+
## Handoff
|
|
42
|
+
|
|
43
|
+
- Name the review prompt, review object, or specialist skill that should consume the checklist.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: OBS-00000
|
|
3
|
+
alias: OBS-ALIAS-000
|
|
4
|
+
slug: observation-slug
|
|
5
|
+
title: Observation title
|
|
6
|
+
object_type: observation
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: product
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: low
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships: []
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Observation Title
|
|
26
|
+
|
|
27
|
+
## Source
|
|
28
|
+
|
|
29
|
+
Where did this observation come from?
|
|
30
|
+
|
|
31
|
+
## Observed Behavior
|
|
32
|
+
|
|
33
|
+
What happened?
|
|
34
|
+
|
|
35
|
+
## Why It May Matter
|
|
36
|
+
|
|
37
|
+
Why might this matter for AI-assisted product design?
|
|
38
|
+
|
|
39
|
+
## Evidence
|
|
40
|
+
|
|
41
|
+
- Link, screenshot, review note, or implementation note.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: PAT-00000
|
|
3
|
+
alias: PATTERN-000
|
|
4
|
+
slug: pattern-slug
|
|
5
|
+
title: Pattern title
|
|
6
|
+
object_type: pattern
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: ux
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: medium
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships:
|
|
23
|
+
- type: requires
|
|
24
|
+
target: RULE-00000
|
|
25
|
+
- type: derived_from
|
|
26
|
+
target: RESEARCH-00000
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Pattern Name
|
|
30
|
+
|
|
31
|
+
## Purpose
|
|
32
|
+
|
|
33
|
+
Describe the single design problem this pattern solves.
|
|
34
|
+
|
|
35
|
+
## User Goal
|
|
36
|
+
|
|
37
|
+
State the user's goal in one sentence.
|
|
38
|
+
|
|
39
|
+
## Product Context
|
|
40
|
+
|
|
41
|
+
Describe the product, screen, or workflow context where this pattern fits.
|
|
42
|
+
|
|
43
|
+
## Use When
|
|
44
|
+
|
|
45
|
+
- Use when...
|
|
46
|
+
|
|
47
|
+
## Do Not Use When
|
|
48
|
+
|
|
49
|
+
- Do not use when...
|
|
50
|
+
|
|
51
|
+
## UX Rules
|
|
52
|
+
|
|
53
|
+
- `RULE-00000` Rule name
|
|
54
|
+
|
|
55
|
+
## Accessibility Rules
|
|
56
|
+
|
|
57
|
+
- `RULE-00000` Rule name
|
|
58
|
+
|
|
59
|
+
## Mobile Behavior
|
|
60
|
+
|
|
61
|
+
Describe the touch-first behavior, including 390px assumptions when relevant.
|
|
62
|
+
|
|
63
|
+
## Desktop Behavior
|
|
64
|
+
|
|
65
|
+
Describe the desktop behavior, including keyboard, density, or multi-pane assumptions when relevant.
|
|
66
|
+
|
|
67
|
+
## Empty State
|
|
68
|
+
|
|
69
|
+
Describe the empty state.
|
|
70
|
+
|
|
71
|
+
## Loading State
|
|
72
|
+
|
|
73
|
+
Describe the loading state.
|
|
74
|
+
|
|
75
|
+
## Error State
|
|
76
|
+
|
|
77
|
+
Describe the error state and recovery path.
|
|
78
|
+
|
|
79
|
+
## Required Rules
|
|
80
|
+
|
|
81
|
+
- `RULE-00000` Rule name
|
|
82
|
+
|
|
83
|
+
## Related Research
|
|
84
|
+
|
|
85
|
+
- `RESEARCH-00000`
|
|
86
|
+
|
|
87
|
+
## Related Patterns
|
|
88
|
+
|
|
89
|
+
- Parent: none
|
|
90
|
+
- Child: none
|
|
91
|
+
- Alternative: none
|
|
92
|
+
- Depends on: none
|
|
93
|
+
|
|
94
|
+
## Examples
|
|
95
|
+
|
|
96
|
+
- Example product situation.
|
|
97
|
+
|
|
98
|
+
## Agent Checklist
|
|
99
|
+
|
|
100
|
+
- Check...
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: PROMPT-00000
|
|
3
|
+
alias: PROMPT-ALIAS-000
|
|
4
|
+
slug: prompt-slug
|
|
5
|
+
title: Prompt title
|
|
6
|
+
object_type: prompt
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: generation
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: medium
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships:
|
|
23
|
+
- type: requires
|
|
24
|
+
target: PAT-00000
|
|
25
|
+
- type: requires
|
|
26
|
+
target: RULE-00000
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Prompt Title
|
|
30
|
+
|
|
31
|
+
## Required Patterns
|
|
32
|
+
|
|
33
|
+
- `PAT-00000`
|
|
34
|
+
|
|
35
|
+
## Required Rules
|
|
36
|
+
|
|
37
|
+
- `RULE-00000`
|
|
38
|
+
|
|
39
|
+
## Validation
|
|
40
|
+
|
|
41
|
+
- Benchmark scenario:
|
|
42
|
+
- Evidence folder:
|
|
43
|
+
|
|
44
|
+
## Instruction
|
|
45
|
+
|
|
46
|
+
Write the agent instruction here.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Prototype Review Template
|
|
2
|
+
|
|
3
|
+
Use this template to review generated product output against AI Design Context.
|
|
4
|
+
|
|
5
|
+
## Metadata
|
|
6
|
+
|
|
7
|
+
- Scenario:
|
|
8
|
+
- Model/tool:
|
|
9
|
+
- Date:
|
|
10
|
+
- Reviewer:
|
|
11
|
+
- Compared against:
|
|
12
|
+
|
|
13
|
+
## Inputs Reviewed
|
|
14
|
+
|
|
15
|
+
- Product brief:
|
|
16
|
+
- Prompt:
|
|
17
|
+
- Generated output:
|
|
18
|
+
- Relevant rules:
|
|
19
|
+
- Relevant patterns:
|
|
20
|
+
|
|
21
|
+
## Rubric Scores
|
|
22
|
+
|
|
23
|
+
Use `docs/EVALUATION_RUBRIC.md`.
|
|
24
|
+
|
|
25
|
+
| Category | Score | Evidence |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| Product Thinking | | |
|
|
28
|
+
| UX | | |
|
|
29
|
+
| Information Architecture | | |
|
|
30
|
+
| Navigation | | |
|
|
31
|
+
| Accessibility | | |
|
|
32
|
+
| Mobile-first | | |
|
|
33
|
+
| Visual Hierarchy | | |
|
|
34
|
+
| State Design | | |
|
|
35
|
+
| Consistency | | |
|
|
36
|
+
| Performance Awareness | | |
|
|
37
|
+
| Simplicity | | |
|
|
38
|
+
| Overall Product Quality | | |
|
|
39
|
+
|
|
40
|
+
## Findings
|
|
41
|
+
|
|
42
|
+
- Strongest result:
|
|
43
|
+
- Weakest result:
|
|
44
|
+
- Missing states:
|
|
45
|
+
- Missing evidence:
|
|
46
|
+
|
|
47
|
+
## Recommendation
|
|
48
|
+
|
|
49
|
+
- PASS / NEEDS WORK:
|
|
50
|
+
- Next change:
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: REF-00000
|
|
3
|
+
alias: REF-ALIAS-000
|
|
4
|
+
slug: reference-project-slug
|
|
5
|
+
title: Reference project title
|
|
6
|
+
object_type: reference_project
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: consumer
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: medium
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships:
|
|
23
|
+
- type: implements
|
|
24
|
+
target: PROMPT-00000
|
|
25
|
+
- type: validates
|
|
26
|
+
target: PAT-00000
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Reference Project Title
|
|
30
|
+
|
|
31
|
+
## Product Context
|
|
32
|
+
|
|
33
|
+
Describe the product context.
|
|
34
|
+
|
|
35
|
+
## Patterns Used
|
|
36
|
+
|
|
37
|
+
- `PAT-00000`
|
|
38
|
+
|
|
39
|
+
## Rules Applied
|
|
40
|
+
|
|
41
|
+
- `RULE-00000`
|
|
42
|
+
|
|
43
|
+
## Research Influence
|
|
44
|
+
|
|
45
|
+
- `RESEARCH-00000`
|
|
46
|
+
|
|
47
|
+
## Validation Questions
|
|
48
|
+
|
|
49
|
+
- Question.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: REVIEW-00000
|
|
3
|
+
alias: REVIEW-ALIAS-000
|
|
4
|
+
slug: review-slug
|
|
5
|
+
title: Review title
|
|
6
|
+
object_type: review
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: quality-gate
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: medium
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships:
|
|
23
|
+
- type: validates
|
|
24
|
+
target: REF-00000
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Review Title
|
|
28
|
+
|
|
29
|
+
## Verdict
|
|
30
|
+
|
|
31
|
+
PASS or NEEDS WORK.
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
What object or product surface is being reviewed?
|
|
36
|
+
|
|
37
|
+
## Evidence Reviewed
|
|
38
|
+
|
|
39
|
+
- Artifact, benchmark output, screenshot, implementation, or evaluation note.
|
|
40
|
+
|
|
41
|
+
## Findings
|
|
42
|
+
|
|
43
|
+
- Finding.
|
|
44
|
+
|
|
45
|
+
## Missing Layers
|
|
46
|
+
|
|
47
|
+
- Observation, research, rule, pattern, prompt, reference project, or checklist gap.
|
|
48
|
+
|
|
49
|
+
## Recommendations
|
|
50
|
+
|
|
51
|
+
- Recommendation.
|
|
52
|
+
|
|
53
|
+
## Handoff
|
|
54
|
+
|
|
55
|
+
- Exact follow-up evidence, owner, or knowledge update required.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: RULE-00000
|
|
3
|
+
alias: UX-000
|
|
4
|
+
slug: rule-slug
|
|
5
|
+
title: Rule title
|
|
6
|
+
object_type: rule
|
|
7
|
+
status: draft
|
|
8
|
+
version: 0.1.0
|
|
9
|
+
category: ux
|
|
10
|
+
tags: []
|
|
11
|
+
created_at: 2026-06-25
|
|
12
|
+
updated_at: 2026-06-25
|
|
13
|
+
last_reviewed_at: 2026-06-25
|
|
14
|
+
owner: ai-design-context
|
|
15
|
+
maturity: seed
|
|
16
|
+
risk_level: medium
|
|
17
|
+
platform: []
|
|
18
|
+
product_type: []
|
|
19
|
+
surface: []
|
|
20
|
+
applies_to: []
|
|
21
|
+
does_not_apply_to: []
|
|
22
|
+
relationships:
|
|
23
|
+
- type: derived_from
|
|
24
|
+
target: RESEARCH-00000
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# RULE-00000 Rule Title
|
|
28
|
+
|
|
29
|
+
Status: Draft
|
|
30
|
+
Category: UX
|
|
31
|
+
Severity: Medium
|
|
32
|
+
|
|
33
|
+
## Source Research
|
|
34
|
+
|
|
35
|
+
- `research/products/example.md`
|
|
36
|
+
|
|
37
|
+
## Why
|
|
38
|
+
|
|
39
|
+
Explain the product problem this rule prevents.
|
|
40
|
+
|
|
41
|
+
## Rule
|
|
42
|
+
|
|
43
|
+
State the rule as a direct instruction an AI coding agent can follow.
|
|
44
|
+
|
|
45
|
+
## Good Example
|
|
46
|
+
|
|
47
|
+
- Describe observable good output.
|
|
48
|
+
|
|
49
|
+
## Bad Example
|
|
50
|
+
|
|
51
|
+
- Describe common agent failures.
|
|
52
|
+
|
|
53
|
+
## Agent Checklist
|
|
54
|
+
|
|
55
|
+
- Check whether the rule was applied.
|
|
56
|
+
- Check whether the result still fits the product context.
|
|
57
|
+
- Check whether the rule created any accessibility, performance, or implementation risk.
|
package/tools/cli.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { runContext } from './context.mjs';
|
|
6
|
+
import { initProject } from './init.mjs';
|
|
7
|
+
|
|
8
|
+
const packageRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
9
|
+
const usage = `AI Design Context
|
|
10
|
+
|
|
11
|
+
Usage:
|
|
12
|
+
ai-design-context init
|
|
13
|
+
ai-design-context context --task <query> [--platform mobile] [--intent implement] [--format json]
|
|
14
|
+
ai-design-context context --review <object-id-or-phrase> [--intent qa]
|
|
15
|
+
ai-design-context context --object <object-id-or-slug>
|
|
16
|
+
ai-design-context --version
|
|
17
|
+
|
|
18
|
+
init appends agent instructions and creates only missing starter-kit templates.
|
|
19
|
+
context reads the knowledge graph shipped with this installed package.
|
|
20
|
+
Requires Node.js 20 or later. See context --help for all retrieval options.`;
|
|
21
|
+
|
|
22
|
+
const [command, ...args] = process.argv.slice(2);
|
|
23
|
+
try {
|
|
24
|
+
if (!command || (['--help', '-h'].includes(command) && args.length === 0)) {
|
|
25
|
+
console.log(usage);
|
|
26
|
+
} else if (command === '--version' && args.length === 0) {
|
|
27
|
+
const { version } = JSON.parse(fs.readFileSync(path.join(packageRoot, 'package.json'), 'utf8'));
|
|
28
|
+
console.log(version);
|
|
29
|
+
} else if (command === 'context') {
|
|
30
|
+
runContext(args, { root: packageRoot, readingPaths: true, command: 'ai-design-context context' });
|
|
31
|
+
} else if (command === 'init') {
|
|
32
|
+
if (args.length === 1 && ['--help', '-h'].includes(args[0])) {
|
|
33
|
+
console.log('Usage: ai-design-context init\nAppend agent instructions and create only missing product templates in the current directory.');
|
|
34
|
+
} else {
|
|
35
|
+
if (args.length > 0) throw new Error(`Unknown init argument: ${args[0]}`);
|
|
36
|
+
const result = initProject(process.cwd(), packageRoot);
|
|
37
|
+
console.log(result.instructionsAdded ? 'Added AI Design Context instructions to AGENTS.md.' : 'AI Design Context instructions already present; preserved the existing block.');
|
|
38
|
+
console.log(result.created.length ? `Created: ${result.created.join(', ')}` : 'No missing templates; existing files preserved.');
|
|
39
|
+
}
|
|
40
|
+
} else {
|
|
41
|
+
throw new Error(`Unknown command or argument: ${command}\n${usage}`);
|
|
42
|
+
}
|
|
43
|
+
} catch (error) {
|
|
44
|
+
console.error(`AI Design Context: ${error.message}`);
|
|
45
|
+
process.exitCode = 1;
|
|
46
|
+
}
|