agent-manifesto-kit 0.0.0-development → 1.1.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/LICENSE +21 -21
- package/README.md +159 -95
- package/collection/NOTICE.md +36 -36
- package/collection/agents/code-reviewer.md +103 -103
- package/collection/agents/docs-manager.md +127 -127
- package/collection/bundles/kit-adopt/README.md +36 -36
- package/collection/bundles/kit-adopt/conventions/recommended-companions.md +43 -43
- package/collection/bundles/kit-adopt/pipelines/kit-adopt.md +52 -52
- package/collection/bundles/kit-adopt/skills/kit-adopt/SKILL.md +72 -72
- package/collection/bundles/qa-automation/README.md +48 -0
- package/collection/bundles/qa-automation/RECOMMENDS.md +19 -0
- package/collection/bundles/qa-automation/agents/qa-explorer.md +55 -0
- package/collection/bundles/qa-automation/agents/qa-test-reviewer.md +71 -0
- package/collection/bundles/qa-automation/conventions/qa-verification.md +50 -0
- package/collection/bundles/qa-automation/pipelines/qa-test-debug.md +66 -0
- package/collection/bundles/qa-automation/pipelines/qa-test-from-spec.md +65 -0
- package/collection/bundles/qa-automation/skills/qa-playwright-cli/SKILL.md +83 -0
- package/collection/bundles/qa-automation/skills/qa-test-debugger/SKILL.md +60 -0
- package/collection/bundles/qa-automation/skills/qa-test-writer/SKILL.md +60 -0
- package/collection/bundles/sdd/README.md +50 -50
- package/collection/bundles/sdd/RECOMMENDS.md +21 -21
- package/collection/bundles/sdd/agents/sdd-gap-analyzer.md +79 -79
- package/collection/bundles/sdd/agents/sdd-spec-reviewer.md +75 -75
- package/collection/bundles/sdd/conventions/sdd-doc-set.md +136 -136
- package/collection/bundles/sdd/pipelines/sdd-adopt.md +60 -60
- package/collection/bundles/sdd/pipelines/sdd-bootstrap.md +60 -60
- package/collection/bundles/sdd/skills/sdd-doc-author/SKILL.md +69 -69
- package/collection/bundles/sdd/skills/sdd-feature-author/SKILL.md +71 -71
- package/collection/bundles/sdd/skills/sdd-index-sync/SKILL.md +61 -61
- package/collection/bundles/sdd/templates/docs/INDEX.md +35 -35
- package/collection/bundles/sdd/templates/docs/api.md +23 -23
- package/collection/bundles/sdd/templates/docs/architecture.md +42 -42
- package/collection/bundles/sdd/templates/docs/db.md +22 -22
- package/collection/bundles/sdd/templates/docs/decisions/ADR-template.md +24 -24
- package/collection/bundles/sdd/templates/docs/design.md +43 -43
- package/collection/bundles/sdd/templates/docs/idea.md +46 -46
- package/collection/bundles/sdd/templates/docs/operations.md +28 -28
- package/collection/bundles/sdd/templates/docs/roadmap.md +26 -26
- package/collection/bundles/sdd/templates/docs/security.md +24 -24
- package/collection/bundles/sdd/templates/docs/testing.md +34 -34
- package/collection/bundles/sdd/templates/features/F000_template/requirements.md +38 -38
- package/collection/bundles/sdd/templates/features/F000_template/scenarios.md +26 -26
- package/collection/bundles/sdd/templates/features/F000_template/tasks.md +11 -11
- package/collection/skills/brainstorm/SKILL.md +46 -46
- package/collection/skills/business-analyst/SKILL.md +58 -58
- package/collection/skills/documentation-maintenance/SKILL.md +60 -60
- package/collection/skills/explain-code/SKILL.md +81 -81
- package/collection/skills/frontend-audit/SKILL.md +135 -135
- package/collection/skills/frontend-impeccable-design/SKILL.md +135 -135
- package/collection/skills/frontend-impeccable-polish/SKILL.md +118 -118
- package/collection/skills/implement-feature/SKILL.md +99 -99
- package/collection/skills/memory-management/SKILL.md +75 -75
- package/collection/skills/meta-tags-optimizer/SKILL.md +73 -73
- package/collection/skills/pencil-design/SKILL.md +83 -83
- package/collection/skills/playwright-cli/SKILL.md +104 -104
- package/collection/skills/prepare-release-notes/SKILL.md +109 -109
- package/collection/skills/refactor-code/SKILL.md +104 -104
- package/collection/skills/review-code/SKILL.md +98 -98
- package/collection/skills/schema-markup-generator/SKILL.md +80 -80
- package/collection/skills/task-complete/SKILL.md +79 -79
- package/collection/skills/task-discovery/SKILL.md +69 -69
- package/collection/skills/task-validation/SKILL.md +71 -71
- package/collection/skills/test-review/SKILL.md +72 -72
- package/collection/skills/test-writer/SKILL.md +78 -78
- package/collection/skills/work-with-git/SKILL.md +154 -154
- package/dist/cli.js +31 -22
- package/dist/commands/adopt.js +240 -40
- package/dist/providers.js +3 -6
- package/package.json +48 -49
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: frontend-audit
|
|
3
|
-
description: Diagnostic review of an existing frontend UI for accessibility, responsive behavior, semantic structure, color contrast, and obvious performance hazards. Reports findings with severity; does not edit code unless the user explicitly asks for fixes. Use when the user asks to audit, review for a11y, check responsive, review semantics, or assess UI quality. Do not use for visual polish or initial design.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
|
|
8
|
-
- Diagnose an existing UI surface (route, component, directory, or rendered screenshot) and report issues with severity.
|
|
9
|
-
- Cover accessibility per WCAG 2.2 AA success criteria by default, plus keyboard navigation, ARIA correctness, semantic HTML, color contrast, responsive behavior across common breakpoints, image and asset handling, and obvious performance hazards. If the project documents a different target (e.g., 2.1 AA, 2.2 AAA, or named exceptions), follow that instead and state the standard used in the report.
|
|
10
|
-
|
|
11
|
-
## Prerequisites
|
|
12
|
-
|
|
13
|
-
- A target identified by the user: a route, file, directory, or screenshot.
|
|
14
|
-
- Ability to read source files in the target.
|
|
15
|
-
- This skill is guide-only — it does not invoke axe-core, Lighthouse, or external tooling. If the user wants tool-based output, they should run those tools separately and feed results in.
|
|
16
|
-
- Default standard is WCAG 2.2 AA. If the project documents a different conformance target or design-system accessibility contract, read it before judging and use it in place of the default. State the standard used in the Scope Audited table.
|
|
17
|
-
|
|
18
|
-
## Safety Constraints
|
|
19
|
-
|
|
20
|
-
- Do not edit code as part of the audit. The output is a report. The user may request fixes in a follow-up; fixes belong to a visual-polish pass (for visual issues) or a code-edit pass (for behavioral issues), not to this skill.
|
|
21
|
-
- Do not claim WCAG conformance levels (A / AA / AAA) without checking each criterion under that level. State only the criteria actually checked.
|
|
22
|
-
- Do not infer behavior from class names alone. For runtime-only findings, apply the label-only Stop Trigger (see Stop Triggers).
|
|
23
|
-
|
|
24
|
-
## Procedure
|
|
25
|
-
|
|
26
|
-
Attempt each section in order. If a halt-class Stop Trigger fires (see Stop Triggers below), stop the audit immediately and return a halted report naming the trigger — do not continue with remaining sections. Otherwise, for sections that do not apply to the located target, skip and record the reason in the Coverage section. Per-finding ambiguity (e.g., runtime-only behavior) attaches to the affected finding via the severity enum and does not halt the audit.
|
|
27
|
-
|
|
28
|
-
### 1. Semantic structure
|
|
29
|
-
|
|
30
|
-
- Confirm a single `<h1>` per page; heading levels do not skip downward (no `<h1>` → `<h3>`).
|
|
31
|
-
- Landmarks present and used correctly: `<header>`, `<nav>`, `<main>`, `<footer>`, `<aside>`. No duplicated landmarks without `aria-label`.
|
|
32
|
-
- Lists use `<ul>` / `<ol>` / `<li>`. Buttons are `<button>`, links are `<a href>`. Do not accept `<div onClick>` for interactive elements.
|
|
33
|
-
- Form fields have associated `<label>` (explicit `for=` or wrapping). Error messages associated via `aria-describedby`.
|
|
34
|
-
|
|
35
|
-
### 2. Keyboard and focus
|
|
36
|
-
|
|
37
|
-
- Every interactive element is reachable by `Tab` in a logical order.
|
|
38
|
-
- Visible focus indicator exists and is not removed by `outline: none` without a replacement.
|
|
39
|
-
- No keyboard trap inside dialogs, popovers, or menus. Dialogs return focus to the trigger on close.
|
|
40
|
-
- Custom widgets implement the expected key bindings (Esc closes a dialog, arrow keys navigate a menu, Space/Enter activate a button).
|
|
41
|
-
|
|
42
|
-
### 3. ARIA correctness
|
|
43
|
-
|
|
44
|
-
- ARIA attributes are used only where native semantics are insufficient. No `role="button"` on a `<button>`.
|
|
45
|
-
- `aria-label`, `aria-labelledby`, and `aria-describedby` reference existing ids and convey real information, not redundant text.
|
|
46
|
-
- Live regions (`aria-live`) are present for asynchronous status updates and not used to announce every render.
|
|
47
|
-
- `aria-hidden="true"` is never applied to an element that contains focusable descendants.
|
|
48
|
-
|
|
49
|
-
### 4. Color and contrast
|
|
50
|
-
|
|
51
|
-
- Body text against its background meets WCAG 1.4.3 (4.5:1 for normal text, 3:1 for large text).
|
|
52
|
-
- Non-text UI affordances (focus rings, input borders, icon-only buttons) meet WCAG 1.4.11 (3:1 against adjacent colors).
|
|
53
|
-
- Information is not conveyed by color alone (errors are not only red; status is not only green).
|
|
54
|
-
|
|
55
|
-
### 5. Responsive behavior
|
|
56
|
-
|
|
57
|
-
- Layout works at 320px, 768px, 1024px, and 1440px without horizontal scroll on the body.
|
|
58
|
-
- Touch targets are at least 24x24 CSS px (WCAG 2.5.8); 44x44 for primary actions where reasonable.
|
|
59
|
-
- Text reflows; no fixed pixel widths on text containers that would clip at common widths.
|
|
60
|
-
- Sticky and fixed elements do not cover essential content on small viewports.
|
|
61
|
-
|
|
62
|
-
### 6. Images and media
|
|
63
|
-
|
|
64
|
-
- Every `<img>` has an `alt` attribute. Decorative images use `alt=""`. Informative images have meaningful alt text, not the filename.
|
|
65
|
-
- `<img>` declares `width` and `height` (or aspect-ratio) to prevent layout shift.
|
|
66
|
-
- Video and audio have captions or transcripts when content is non-decorative.
|
|
67
|
-
|
|
68
|
-
### 7. Performance hazards (source-visible only)
|
|
69
|
-
|
|
70
|
-
- No render-blocking inline scripts in `<head>` for non-critical work.
|
|
71
|
-
- Images use modern formats (AVIF/WebP) or have a documented reason not to.
|
|
72
|
-
- No obvious oversize bundles imported for one-off uses (e.g., importing all of lodash for one function).
|
|
73
|
-
- No layout-thrashing animations (animating width/height/top/left); flag these as also failing the polish rule.
|
|
74
|
-
|
|
75
|
-
## Stop Triggers
|
|
76
|
-
|
|
77
|
-
Triggers below have different effects. Apply each per its category.
|
|
78
|
-
|
|
79
|
-
**Halt the audit and return a halted report naming the trigger:**
|
|
80
|
-
|
|
81
|
-
- The target cannot be located or read.
|
|
82
|
-
|
|
83
|
-
**Continue the audit, but downgrade or withhold severity claims:**
|
|
84
|
-
|
|
85
|
-
- The applicable WCAG conformance target or design-system contract is unclear and would change the severity of multiple findings. Do not assign Blocker or Major to affected findings; record them at Minor or Info with the reason, and recommend re-audit after the contract is clarified. (Operationalizes the conformance-claim restriction in Safety Constraints for the unclear-target case.)
|
|
86
|
-
|
|
87
|
-
**Continue the audit; label only the affected finding:**
|
|
88
|
-
|
|
89
|
-
- A finding requires runtime behavior that source-only inspection cannot confirm. Mark it `Requires runtime verification` per the severity enum.
|
|
90
|
-
|
|
91
|
-
## Verification
|
|
92
|
-
|
|
93
|
-
This skill produces a report, not edits. Verification:
|
|
94
|
-
|
|
95
|
-
- Confirm every finding cites a concrete file and line, attribute, selector, or screenshot region.
|
|
96
|
-
- Confirm severity is assigned per the scale below, not by intuition.
|
|
97
|
-
- Confirm the section coverage table records each procedure section as covered, skipped (not applicable), or skipped (no occurrences).
|
|
98
|
-
|
|
99
|
-
## Output Contract
|
|
100
|
-
|
|
101
|
-
Emit:
|
|
102
|
-
|
|
103
|
-
`Skill: frontend-audit - output below`
|
|
104
|
-
|
|
105
|
-
Then include:
|
|
106
|
-
|
|
107
|
-
### Scope Audited
|
|
108
|
-
|
|
109
|
-
| Target | Sections Covered | Sections Skipped |
|
|
110
|
-
| --- | --- | --- |
|
|
111
|
-
|
|
112
|
-
### Findings
|
|
113
|
-
|
|
114
|
-
| ID | Section | Severity | Location | Issue | Suggested fix |
|
|
115
|
-
| --- | --- | --- | --- | --- | --- |
|
|
116
|
-
|
|
117
|
-
Severity values:
|
|
118
|
-
|
|
119
|
-
- **Blocker**: violates a documented WCAG criterion at the level the project claims to meet, or breaks keyboard access entirely.
|
|
120
|
-
- **Major**: significant a11y, responsive, or semantic issue likely to affect real users.
|
|
121
|
-
- **Minor**: smaller issue, low user impact, worth fixing on the next pass.
|
|
122
|
-
- **Info**: observation that is not a violation but worth recording.
|
|
123
|
-
- **Requires runtime verification**: finding suspected from source but unconfirmable without running the surface.
|
|
124
|
-
|
|
125
|
-
### Coverage
|
|
126
|
-
|
|
127
|
-
State which procedure sections ran and which were skipped, with the reason for each skip.
|
|
128
|
-
|
|
129
|
-
### Recommended Next Step
|
|
130
|
-
|
|
131
|
-
A single concrete next step: a fix pass, a runtime verification pass, or a re-audit after specific changes.
|
|
132
|
-
|
|
133
|
-
## Attribution
|
|
134
|
-
|
|
135
|
-
See `collection/NOTICE.md` for attribution.
|
|
1
|
+
---
|
|
2
|
+
name: frontend-audit
|
|
3
|
+
description: Diagnostic review of an existing frontend UI for accessibility, responsive behavior, semantic structure, color contrast, and obvious performance hazards. Reports findings with severity; does not edit code unless the user explicitly asks for fixes. Use when the user asks to audit, review for a11y, check responsive, review semantics, or assess UI quality. Do not use for visual polish or initial design.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
- Diagnose an existing UI surface (route, component, directory, or rendered screenshot) and report issues with severity.
|
|
9
|
+
- Cover accessibility per WCAG 2.2 AA success criteria by default, plus keyboard navigation, ARIA correctness, semantic HTML, color contrast, responsive behavior across common breakpoints, image and asset handling, and obvious performance hazards. If the project documents a different target (e.g., 2.1 AA, 2.2 AAA, or named exceptions), follow that instead and state the standard used in the report.
|
|
10
|
+
|
|
11
|
+
## Prerequisites
|
|
12
|
+
|
|
13
|
+
- A target identified by the user: a route, file, directory, or screenshot.
|
|
14
|
+
- Ability to read source files in the target.
|
|
15
|
+
- This skill is guide-only — it does not invoke axe-core, Lighthouse, or external tooling. If the user wants tool-based output, they should run those tools separately and feed results in.
|
|
16
|
+
- Default standard is WCAG 2.2 AA. If the project documents a different conformance target or design-system accessibility contract, read it before judging and use it in place of the default. State the standard used in the Scope Audited table.
|
|
17
|
+
|
|
18
|
+
## Safety Constraints
|
|
19
|
+
|
|
20
|
+
- Do not edit code as part of the audit. The output is a report. The user may request fixes in a follow-up; fixes belong to a visual-polish pass (for visual issues) or a code-edit pass (for behavioral issues), not to this skill.
|
|
21
|
+
- Do not claim WCAG conformance levels (A / AA / AAA) without checking each criterion under that level. State only the criteria actually checked.
|
|
22
|
+
- Do not infer behavior from class names alone. For runtime-only findings, apply the label-only Stop Trigger (see Stop Triggers).
|
|
23
|
+
|
|
24
|
+
## Procedure
|
|
25
|
+
|
|
26
|
+
Attempt each section in order. If a halt-class Stop Trigger fires (see Stop Triggers below), stop the audit immediately and return a halted report naming the trigger — do not continue with remaining sections. Otherwise, for sections that do not apply to the located target, skip and record the reason in the Coverage section. Per-finding ambiguity (e.g., runtime-only behavior) attaches to the affected finding via the severity enum and does not halt the audit.
|
|
27
|
+
|
|
28
|
+
### 1. Semantic structure
|
|
29
|
+
|
|
30
|
+
- Confirm a single `<h1>` per page; heading levels do not skip downward (no `<h1>` → `<h3>`).
|
|
31
|
+
- Landmarks present and used correctly: `<header>`, `<nav>`, `<main>`, `<footer>`, `<aside>`. No duplicated landmarks without `aria-label`.
|
|
32
|
+
- Lists use `<ul>` / `<ol>` / `<li>`. Buttons are `<button>`, links are `<a href>`. Do not accept `<div onClick>` for interactive elements.
|
|
33
|
+
- Form fields have associated `<label>` (explicit `for=` or wrapping). Error messages associated via `aria-describedby`.
|
|
34
|
+
|
|
35
|
+
### 2. Keyboard and focus
|
|
36
|
+
|
|
37
|
+
- Every interactive element is reachable by `Tab` in a logical order.
|
|
38
|
+
- Visible focus indicator exists and is not removed by `outline: none` without a replacement.
|
|
39
|
+
- No keyboard trap inside dialogs, popovers, or menus. Dialogs return focus to the trigger on close.
|
|
40
|
+
- Custom widgets implement the expected key bindings (Esc closes a dialog, arrow keys navigate a menu, Space/Enter activate a button).
|
|
41
|
+
|
|
42
|
+
### 3. ARIA correctness
|
|
43
|
+
|
|
44
|
+
- ARIA attributes are used only where native semantics are insufficient. No `role="button"` on a `<button>`.
|
|
45
|
+
- `aria-label`, `aria-labelledby`, and `aria-describedby` reference existing ids and convey real information, not redundant text.
|
|
46
|
+
- Live regions (`aria-live`) are present for asynchronous status updates and not used to announce every render.
|
|
47
|
+
- `aria-hidden="true"` is never applied to an element that contains focusable descendants.
|
|
48
|
+
|
|
49
|
+
### 4. Color and contrast
|
|
50
|
+
|
|
51
|
+
- Body text against its background meets WCAG 1.4.3 (4.5:1 for normal text, 3:1 for large text).
|
|
52
|
+
- Non-text UI affordances (focus rings, input borders, icon-only buttons) meet WCAG 1.4.11 (3:1 against adjacent colors).
|
|
53
|
+
- Information is not conveyed by color alone (errors are not only red; status is not only green).
|
|
54
|
+
|
|
55
|
+
### 5. Responsive behavior
|
|
56
|
+
|
|
57
|
+
- Layout works at 320px, 768px, 1024px, and 1440px without horizontal scroll on the body.
|
|
58
|
+
- Touch targets are at least 24x24 CSS px (WCAG 2.5.8); 44x44 for primary actions where reasonable.
|
|
59
|
+
- Text reflows; no fixed pixel widths on text containers that would clip at common widths.
|
|
60
|
+
- Sticky and fixed elements do not cover essential content on small viewports.
|
|
61
|
+
|
|
62
|
+
### 6. Images and media
|
|
63
|
+
|
|
64
|
+
- Every `<img>` has an `alt` attribute. Decorative images use `alt=""`. Informative images have meaningful alt text, not the filename.
|
|
65
|
+
- `<img>` declares `width` and `height` (or aspect-ratio) to prevent layout shift.
|
|
66
|
+
- Video and audio have captions or transcripts when content is non-decorative.
|
|
67
|
+
|
|
68
|
+
### 7. Performance hazards (source-visible only)
|
|
69
|
+
|
|
70
|
+
- No render-blocking inline scripts in `<head>` for non-critical work.
|
|
71
|
+
- Images use modern formats (AVIF/WebP) or have a documented reason not to.
|
|
72
|
+
- No obvious oversize bundles imported for one-off uses (e.g., importing all of lodash for one function).
|
|
73
|
+
- No layout-thrashing animations (animating width/height/top/left); flag these as also failing the polish rule.
|
|
74
|
+
|
|
75
|
+
## Stop Triggers
|
|
76
|
+
|
|
77
|
+
Triggers below have different effects. Apply each per its category.
|
|
78
|
+
|
|
79
|
+
**Halt the audit and return a halted report naming the trigger:**
|
|
80
|
+
|
|
81
|
+
- The target cannot be located or read.
|
|
82
|
+
|
|
83
|
+
**Continue the audit, but downgrade or withhold severity claims:**
|
|
84
|
+
|
|
85
|
+
- The applicable WCAG conformance target or design-system contract is unclear and would change the severity of multiple findings. Do not assign Blocker or Major to affected findings; record them at Minor or Info with the reason, and recommend re-audit after the contract is clarified. (Operationalizes the conformance-claim restriction in Safety Constraints for the unclear-target case.)
|
|
86
|
+
|
|
87
|
+
**Continue the audit; label only the affected finding:**
|
|
88
|
+
|
|
89
|
+
- A finding requires runtime behavior that source-only inspection cannot confirm. Mark it `Requires runtime verification` per the severity enum.
|
|
90
|
+
|
|
91
|
+
## Verification
|
|
92
|
+
|
|
93
|
+
This skill produces a report, not edits. Verification:
|
|
94
|
+
|
|
95
|
+
- Confirm every finding cites a concrete file and line, attribute, selector, or screenshot region.
|
|
96
|
+
- Confirm severity is assigned per the scale below, not by intuition.
|
|
97
|
+
- Confirm the section coverage table records each procedure section as covered, skipped (not applicable), or skipped (no occurrences).
|
|
98
|
+
|
|
99
|
+
## Output Contract
|
|
100
|
+
|
|
101
|
+
Emit:
|
|
102
|
+
|
|
103
|
+
`Skill: frontend-audit - output below`
|
|
104
|
+
|
|
105
|
+
Then include:
|
|
106
|
+
|
|
107
|
+
### Scope Audited
|
|
108
|
+
|
|
109
|
+
| Target | Sections Covered | Sections Skipped |
|
|
110
|
+
| --- | --- | --- |
|
|
111
|
+
|
|
112
|
+
### Findings
|
|
113
|
+
|
|
114
|
+
| ID | Section | Severity | Location | Issue | Suggested fix |
|
|
115
|
+
| --- | --- | --- | --- | --- | --- |
|
|
116
|
+
|
|
117
|
+
Severity values:
|
|
118
|
+
|
|
119
|
+
- **Blocker**: violates a documented WCAG criterion at the level the project claims to meet, or breaks keyboard access entirely.
|
|
120
|
+
- **Major**: significant a11y, responsive, or semantic issue likely to affect real users.
|
|
121
|
+
- **Minor**: smaller issue, low user impact, worth fixing on the next pass.
|
|
122
|
+
- **Info**: observation that is not a violation but worth recording.
|
|
123
|
+
- **Requires runtime verification**: finding suspected from source but unconfirmable without running the surface.
|
|
124
|
+
|
|
125
|
+
### Coverage
|
|
126
|
+
|
|
127
|
+
State which procedure sections ran and which were skipped, with the reason for each skip.
|
|
128
|
+
|
|
129
|
+
### Recommended Next Step
|
|
130
|
+
|
|
131
|
+
A single concrete next step: a fix pass, a runtime verification pass, or a re-audit after specific changes.
|
|
132
|
+
|
|
133
|
+
## Attribution
|
|
134
|
+
|
|
135
|
+
See `collection/NOTICE.md` for attribution.
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: frontend-impeccable-design
|
|
3
|
-
description: Generate a new frontend UI from a brief with a deliberate, distinctive aesthetic — components, pages, landing surfaces, dashboards, or app shells. Use when the user asks to design, build, create, scaffold, or generate UI code from scratch or from a description. Do not use for polishing already-built UI, accessibility or technical audits, or design-tool work in encrypted design files (e.g., `.pen`).
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Scope
|
|
7
|
-
|
|
8
|
-
- Generate new UI as real code (HTML/CSS/JS, React, Vue, Svelte, or the project's existing framework).
|
|
9
|
-
- Commit to a single distinctive aesthetic direction per surface.
|
|
10
|
-
- Avoid generic "AI made this" defaults in font, color, layout, and motion choices.
|
|
11
|
-
|
|
12
|
-
## Prerequisites
|
|
13
|
-
|
|
14
|
-
- A brief from the user: purpose, audience, surface (component / page / app shell), and any technical constraints (framework, dark/light, target devices).
|
|
15
|
-
- Ability to write source files into the target project.
|
|
16
|
-
- If the project has brand context files (e.g., `PRODUCT.md`, `DESIGN.md`, brand guidelines), read them before designing. If none exist, infer the register (brand surface vs product UI) from the brief and state the inference in the report.
|
|
17
|
-
- If the project has an existing component library, design system, or shared tokens, read them before generating new components; reuse rather than duplicate where the existing primitive fits.
|
|
18
|
-
|
|
19
|
-
## Safety Constraints
|
|
20
|
-
|
|
21
|
-
- Do not modify backend, data, or auth code. UI code only.
|
|
22
|
-
- Do not invent product copy that asserts facts about real entities, prices, dates, claims, or legal text. Use clearly placeholder copy or ask the user for real strings.
|
|
23
|
-
- Do not introduce new heavyweight dependencies (animation libraries, design systems, icon kits) without first checking what the project already uses; prefer the existing stack.
|
|
24
|
-
- When generating a surface that resembles an existing one, do not silently overwrite the existing file. Stop and confirm intent.
|
|
25
|
-
|
|
26
|
-
## Procedure
|
|
27
|
-
|
|
28
|
-
### 1. Read the brief and the project
|
|
29
|
-
|
|
30
|
-
- Restate the brief in one sentence to confirm understanding: who uses this surface, where, under what conditions.
|
|
31
|
-
- Identify the register: brand (marketing, landing, campaign — design IS the product) or product (app UI, dashboard, tool — design SERVES the product).
|
|
32
|
-
- Locate the project's framework, existing components, token system, fonts in use, and any global styles. Use what is there.
|
|
33
|
-
|
|
34
|
-
### 2. Commit to a direction before generating
|
|
35
|
-
|
|
36
|
-
State, in the report, a single aesthetic direction in plain words. Examples: brutally minimal, editorial-typographic, terminal-native, soft pastel, industrial-utilitarian, art deco geometric, retro-futuristic. Do not generate two directions in parallel as alternatives unless the user asked for variants.
|
|
37
|
-
|
|
38
|
-
### 3. Apply the design laws
|
|
39
|
-
|
|
40
|
-
These laws apply to every generated surface, both registers. Match implementation complexity to the chosen direction — maximalist needs elaborate code, minimalist needs precision.
|
|
41
|
-
|
|
42
|
-
**Color**
|
|
43
|
-
- Use OKLCH for new color values. Reduce chroma as lightness approaches 0 or 100.
|
|
44
|
-
- Never use literal `#000` or `#fff`. Tint neutrals toward the brand hue (chroma ~0.005–0.01).
|
|
45
|
-
- Pick a color strategy before picking colors: restrained (one accent ≤10%), committed (one color carries 30–60%), full palette (3–4 named roles), or drenched (the surface IS the color). State the choice.
|
|
46
|
-
|
|
47
|
-
**Theme**
|
|
48
|
-
- Dark vs light is never a default. Write one sentence describing the physical scene (who, where, ambient light, mood). If that sentence does not force the answer, add detail until it does.
|
|
49
|
-
|
|
50
|
-
**Typography**
|
|
51
|
-
- Pair a distinctive display font with a refined body font. Avoid Inter, Roboto, Arial, and system-default-only stacks unless the chosen direction explicitly calls for them.
|
|
52
|
-
- Cap body line length at 65–75ch. Enforce ≥1.25 ratio between hierarchy steps.
|
|
53
|
-
|
|
54
|
-
**Layout**
|
|
55
|
-
- Use the layout that fits the content, not the layout reflex of the category. Asymmetry, overlap, generous negative space, and controlled density are all permitted; pick one.
|
|
56
|
-
- Cards are the lazy answer. Use them only when they are the best affordance for the content. Nested cards are always wrong.
|
|
57
|
-
|
|
58
|
-
**Motion**
|
|
59
|
-
- Animate transform and opacity. Do not animate CSS layout properties (width, height, top, left, margin).
|
|
60
|
-
- Ease-out with exponential curves. No bounce or elastic easing by default.
|
|
61
|
-
|
|
62
|
-
**Copy**
|
|
63
|
-
- Every word earns its place. No restated headings. No em dashes (or `--`); use commas, colons, semicolons, periods, or parentheses.
|
|
64
|
-
|
|
65
|
-
### 4. Avoid AI-slop defaults
|
|
66
|
-
|
|
67
|
-
Do not generate these as defaults. If the chosen direction genuinely calls for one, justify it in the report.
|
|
68
|
-
|
|
69
|
-
- Side-stripe borders: `border-left`/`border-right` >1px as a colored accent on cards or alerts.
|
|
70
|
-
- Gradient text: `background-clip: text` combined with a gradient fill.
|
|
71
|
-
- Decorative glassmorphism as a default surface treatment.
|
|
72
|
-
- Hero-metric template: big number + small label + supporting stats + gradient accent.
|
|
73
|
-
- Identical card grids: same-sized icon + heading + text repeated as the page's primary layout.
|
|
74
|
-
- Modal-first interaction reflex.
|
|
75
|
-
- Purple-gradient-on-white, navy-and-gold-fintech, dark-blue-observability, neon-on-black-crypto, and other category-reflex palettes.
|
|
76
|
-
|
|
77
|
-
### 5. Category-reflex check before generating
|
|
78
|
-
|
|
79
|
-
Ask: could someone guess the theme and palette from the product category alone? If yes, rework the scene sentence and color strategy until the answer is not obvious. Run this check before writing code, not after.
|
|
80
|
-
|
|
81
|
-
## Stop Triggers
|
|
82
|
-
|
|
83
|
-
Stop and ask the user instead of generating when any of the following apply:
|
|
84
|
-
|
|
85
|
-
- The brief is missing purpose, audience, or surface and cannot be inferred from project context.
|
|
86
|
-
- A surface with the same path or name already exists and would be overwritten.
|
|
87
|
-
- The required framework or token system is unclear and the project has multiple candidates.
|
|
88
|
-
- More than one materially distinct aesthetic direction is viable for the same brief and the choice matters. Present options with one-line trade-offs and let the user choose.
|
|
89
|
-
|
|
90
|
-
## Verification
|
|
91
|
-
|
|
92
|
-
After generating:
|
|
93
|
-
|
|
94
|
-
- Confirm each new file compiles or type-checks if the project has those gates available.
|
|
95
|
-
- Render the surface in a dev server or preview if one is reasonably available; confirm it loads without obvious regression. If not available, state that visual verification was skipped.
|
|
96
|
-
- Re-read each new file against the design laws and AI-slop list to confirm nothing was reintroduced by reflex.
|
|
97
|
-
|
|
98
|
-
## Output Contract
|
|
99
|
-
|
|
100
|
-
Emit:
|
|
101
|
-
|
|
102
|
-
`Skill: frontend-impeccable-design - output below`
|
|
103
|
-
|
|
104
|
-
Then include:
|
|
105
|
-
|
|
106
|
-
### Brief Restated
|
|
107
|
-
|
|
108
|
-
One sentence: who, where, under what conditions.
|
|
109
|
-
|
|
110
|
-
### Direction
|
|
111
|
-
|
|
112
|
-
| Field | Value |
|
|
113
|
-
| --- | --- |
|
|
114
|
-
| Register | brand / product |
|
|
115
|
-
| Aesthetic direction | one short phrase |
|
|
116
|
-
| Color strategy | restrained / committed / full palette / drenched |
|
|
117
|
-
| Theme | light / dark, with the scene sentence that forced it |
|
|
118
|
-
| Display font | name + rationale |
|
|
119
|
-
| Body font | name + rationale |
|
|
120
|
-
|
|
121
|
-
### Files Generated
|
|
122
|
-
|
|
123
|
-
List each new file with a one-line description of what it contains.
|
|
124
|
-
|
|
125
|
-
### Verification
|
|
126
|
-
|
|
127
|
-
State which verification steps ran and their result, including any that were skipped and why.
|
|
128
|
-
|
|
129
|
-
### Open Choices
|
|
130
|
-
|
|
131
|
-
For each choice deliberately left to the user: option, recommendation, trade-off. Empty list if none.
|
|
132
|
-
|
|
133
|
-
## Attribution
|
|
134
|
-
|
|
135
|
-
See `collection/NOTICE.md` for attribution.
|
|
1
|
+
---
|
|
2
|
+
name: frontend-impeccable-design
|
|
3
|
+
description: Generate a new frontend UI from a brief with a deliberate, distinctive aesthetic — components, pages, landing surfaces, dashboards, or app shells. Use when the user asks to design, build, create, scaffold, or generate UI code from scratch or from a description. Do not use for polishing already-built UI, accessibility or technical audits, or design-tool work in encrypted design files (e.g., `.pen`).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Scope
|
|
7
|
+
|
|
8
|
+
- Generate new UI as real code (HTML/CSS/JS, React, Vue, Svelte, or the project's existing framework).
|
|
9
|
+
- Commit to a single distinctive aesthetic direction per surface.
|
|
10
|
+
- Avoid generic "AI made this" defaults in font, color, layout, and motion choices.
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
- A brief from the user: purpose, audience, surface (component / page / app shell), and any technical constraints (framework, dark/light, target devices).
|
|
15
|
+
- Ability to write source files into the target project.
|
|
16
|
+
- If the project has brand context files (e.g., `PRODUCT.md`, `DESIGN.md`, brand guidelines), read them before designing. If none exist, infer the register (brand surface vs product UI) from the brief and state the inference in the report.
|
|
17
|
+
- If the project has an existing component library, design system, or shared tokens, read them before generating new components; reuse rather than duplicate where the existing primitive fits.
|
|
18
|
+
|
|
19
|
+
## Safety Constraints
|
|
20
|
+
|
|
21
|
+
- Do not modify backend, data, or auth code. UI code only.
|
|
22
|
+
- Do not invent product copy that asserts facts about real entities, prices, dates, claims, or legal text. Use clearly placeholder copy or ask the user for real strings.
|
|
23
|
+
- Do not introduce new heavyweight dependencies (animation libraries, design systems, icon kits) without first checking what the project already uses; prefer the existing stack.
|
|
24
|
+
- When generating a surface that resembles an existing one, do not silently overwrite the existing file. Stop and confirm intent.
|
|
25
|
+
|
|
26
|
+
## Procedure
|
|
27
|
+
|
|
28
|
+
### 1. Read the brief and the project
|
|
29
|
+
|
|
30
|
+
- Restate the brief in one sentence to confirm understanding: who uses this surface, where, under what conditions.
|
|
31
|
+
- Identify the register: brand (marketing, landing, campaign — design IS the product) or product (app UI, dashboard, tool — design SERVES the product).
|
|
32
|
+
- Locate the project's framework, existing components, token system, fonts in use, and any global styles. Use what is there.
|
|
33
|
+
|
|
34
|
+
### 2. Commit to a direction before generating
|
|
35
|
+
|
|
36
|
+
State, in the report, a single aesthetic direction in plain words. Examples: brutally minimal, editorial-typographic, terminal-native, soft pastel, industrial-utilitarian, art deco geometric, retro-futuristic. Do not generate two directions in parallel as alternatives unless the user asked for variants.
|
|
37
|
+
|
|
38
|
+
### 3. Apply the design laws
|
|
39
|
+
|
|
40
|
+
These laws apply to every generated surface, both registers. Match implementation complexity to the chosen direction — maximalist needs elaborate code, minimalist needs precision.
|
|
41
|
+
|
|
42
|
+
**Color**
|
|
43
|
+
- Use OKLCH for new color values. Reduce chroma as lightness approaches 0 or 100.
|
|
44
|
+
- Never use literal `#000` or `#fff`. Tint neutrals toward the brand hue (chroma ~0.005–0.01).
|
|
45
|
+
- Pick a color strategy before picking colors: restrained (one accent ≤10%), committed (one color carries 30–60%), full palette (3–4 named roles), or drenched (the surface IS the color). State the choice.
|
|
46
|
+
|
|
47
|
+
**Theme**
|
|
48
|
+
- Dark vs light is never a default. Write one sentence describing the physical scene (who, where, ambient light, mood). If that sentence does not force the answer, add detail until it does.
|
|
49
|
+
|
|
50
|
+
**Typography**
|
|
51
|
+
- Pair a distinctive display font with a refined body font. Avoid Inter, Roboto, Arial, and system-default-only stacks unless the chosen direction explicitly calls for them.
|
|
52
|
+
- Cap body line length at 65–75ch. Enforce ≥1.25 ratio between hierarchy steps.
|
|
53
|
+
|
|
54
|
+
**Layout**
|
|
55
|
+
- Use the layout that fits the content, not the layout reflex of the category. Asymmetry, overlap, generous negative space, and controlled density are all permitted; pick one.
|
|
56
|
+
- Cards are the lazy answer. Use them only when they are the best affordance for the content. Nested cards are always wrong.
|
|
57
|
+
|
|
58
|
+
**Motion**
|
|
59
|
+
- Animate transform and opacity. Do not animate CSS layout properties (width, height, top, left, margin).
|
|
60
|
+
- Ease-out with exponential curves. No bounce or elastic easing by default.
|
|
61
|
+
|
|
62
|
+
**Copy**
|
|
63
|
+
- Every word earns its place. No restated headings. No em dashes (or `--`); use commas, colons, semicolons, periods, or parentheses.
|
|
64
|
+
|
|
65
|
+
### 4. Avoid AI-slop defaults
|
|
66
|
+
|
|
67
|
+
Do not generate these as defaults. If the chosen direction genuinely calls for one, justify it in the report.
|
|
68
|
+
|
|
69
|
+
- Side-stripe borders: `border-left`/`border-right` >1px as a colored accent on cards or alerts.
|
|
70
|
+
- Gradient text: `background-clip: text` combined with a gradient fill.
|
|
71
|
+
- Decorative glassmorphism as a default surface treatment.
|
|
72
|
+
- Hero-metric template: big number + small label + supporting stats + gradient accent.
|
|
73
|
+
- Identical card grids: same-sized icon + heading + text repeated as the page's primary layout.
|
|
74
|
+
- Modal-first interaction reflex.
|
|
75
|
+
- Purple-gradient-on-white, navy-and-gold-fintech, dark-blue-observability, neon-on-black-crypto, and other category-reflex palettes.
|
|
76
|
+
|
|
77
|
+
### 5. Category-reflex check before generating
|
|
78
|
+
|
|
79
|
+
Ask: could someone guess the theme and palette from the product category alone? If yes, rework the scene sentence and color strategy until the answer is not obvious. Run this check before writing code, not after.
|
|
80
|
+
|
|
81
|
+
## Stop Triggers
|
|
82
|
+
|
|
83
|
+
Stop and ask the user instead of generating when any of the following apply:
|
|
84
|
+
|
|
85
|
+
- The brief is missing purpose, audience, or surface and cannot be inferred from project context.
|
|
86
|
+
- A surface with the same path or name already exists and would be overwritten.
|
|
87
|
+
- The required framework or token system is unclear and the project has multiple candidates.
|
|
88
|
+
- More than one materially distinct aesthetic direction is viable for the same brief and the choice matters. Present options with one-line trade-offs and let the user choose.
|
|
89
|
+
|
|
90
|
+
## Verification
|
|
91
|
+
|
|
92
|
+
After generating:
|
|
93
|
+
|
|
94
|
+
- Confirm each new file compiles or type-checks if the project has those gates available.
|
|
95
|
+
- Render the surface in a dev server or preview if one is reasonably available; confirm it loads without obvious regression. If not available, state that visual verification was skipped.
|
|
96
|
+
- Re-read each new file against the design laws and AI-slop list to confirm nothing was reintroduced by reflex.
|
|
97
|
+
|
|
98
|
+
## Output Contract
|
|
99
|
+
|
|
100
|
+
Emit:
|
|
101
|
+
|
|
102
|
+
`Skill: frontend-impeccable-design - output below`
|
|
103
|
+
|
|
104
|
+
Then include:
|
|
105
|
+
|
|
106
|
+
### Brief Restated
|
|
107
|
+
|
|
108
|
+
One sentence: who, where, under what conditions.
|
|
109
|
+
|
|
110
|
+
### Direction
|
|
111
|
+
|
|
112
|
+
| Field | Value |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| Register | brand / product |
|
|
115
|
+
| Aesthetic direction | one short phrase |
|
|
116
|
+
| Color strategy | restrained / committed / full palette / drenched |
|
|
117
|
+
| Theme | light / dark, with the scene sentence that forced it |
|
|
118
|
+
| Display font | name + rationale |
|
|
119
|
+
| Body font | name + rationale |
|
|
120
|
+
|
|
121
|
+
### Files Generated
|
|
122
|
+
|
|
123
|
+
List each new file with a one-line description of what it contains.
|
|
124
|
+
|
|
125
|
+
### Verification
|
|
126
|
+
|
|
127
|
+
State which verification steps ran and their result, including any that were skipped and why.
|
|
128
|
+
|
|
129
|
+
### Open Choices
|
|
130
|
+
|
|
131
|
+
For each choice deliberately left to the user: option, recommendation, trade-off. Empty list if none.
|
|
132
|
+
|
|
133
|
+
## Attribution
|
|
134
|
+
|
|
135
|
+
See `collection/NOTICE.md` for attribution.
|