hatch3r 1.0.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 -0
- package/README.md +437 -0
- package/agents/hatch3r-a11y-auditor.md +126 -0
- package/agents/hatch3r-architect.md +160 -0
- package/agents/hatch3r-ci-watcher.md +123 -0
- package/agents/hatch3r-context-rules.md +97 -0
- package/agents/hatch3r-dependency-auditor.md +164 -0
- package/agents/hatch3r-devops.md +138 -0
- package/agents/hatch3r-docs-writer.md +97 -0
- package/agents/hatch3r-implementer.md +162 -0
- package/agents/hatch3r-learnings-loader.md +108 -0
- package/agents/hatch3r-lint-fixer.md +104 -0
- package/agents/hatch3r-perf-profiler.md +123 -0
- package/agents/hatch3r-researcher.md +642 -0
- package/agents/hatch3r-reviewer.md +81 -0
- package/agents/hatch3r-security-auditor.md +119 -0
- package/agents/hatch3r-test-writer.md +134 -0
- package/commands/hatch3r-agent-customize.md +146 -0
- package/commands/hatch3r-api-spec.md +49 -0
- package/commands/hatch3r-benchmark.md +50 -0
- package/commands/hatch3r-board-fill.md +504 -0
- package/commands/hatch3r-board-init.md +315 -0
- package/commands/hatch3r-board-pickup.md +672 -0
- package/commands/hatch3r-board-refresh.md +198 -0
- package/commands/hatch3r-board-shared.md +369 -0
- package/commands/hatch3r-bug-plan.md +410 -0
- package/commands/hatch3r-codebase-map.md +1182 -0
- package/commands/hatch3r-command-customize.md +94 -0
- package/commands/hatch3r-context-health.md +112 -0
- package/commands/hatch3r-cost-tracking.md +139 -0
- package/commands/hatch3r-dep-audit.md +171 -0
- package/commands/hatch3r-feature-plan.md +379 -0
- package/commands/hatch3r-healthcheck.md +307 -0
- package/commands/hatch3r-hooks.md +282 -0
- package/commands/hatch3r-learn.md +217 -0
- package/commands/hatch3r-migration-plan.md +51 -0
- package/commands/hatch3r-onboard.md +56 -0
- package/commands/hatch3r-project-spec.md +1153 -0
- package/commands/hatch3r-recipe.md +179 -0
- package/commands/hatch3r-refactor-plan.md +426 -0
- package/commands/hatch3r-release.md +328 -0
- package/commands/hatch3r-roadmap.md +556 -0
- package/commands/hatch3r-rule-customize.md +114 -0
- package/commands/hatch3r-security-audit.md +370 -0
- package/commands/hatch3r-skill-customize.md +93 -0
- package/commands/hatch3r-workflow.md +377 -0
- package/dist/cli/hooks-ZOTFDEA3.js +59 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +3584 -0
- package/github-agents/hatch3r-docs-agent.md +46 -0
- package/github-agents/hatch3r-lint-agent.md +41 -0
- package/github-agents/hatch3r-security-agent.md +54 -0
- package/github-agents/hatch3r-test-agent.md +66 -0
- package/hooks/hatch3r-ci-failure.md +10 -0
- package/hooks/hatch3r-file-save.md +11 -0
- package/hooks/hatch3r-post-merge.md +10 -0
- package/hooks/hatch3r-pre-commit.md +11 -0
- package/hooks/hatch3r-pre-push.md +10 -0
- package/hooks/hatch3r-session-start.md +10 -0
- package/mcp/mcp.json +62 -0
- package/package.json +84 -0
- package/prompts/hatch3r-bug-triage.md +155 -0
- package/prompts/hatch3r-code-review.md +131 -0
- package/prompts/hatch3r-pr-description.md +173 -0
- package/rules/hatch3r-accessibility-standards.md +77 -0
- package/rules/hatch3r-accessibility-standards.mdc +75 -0
- package/rules/hatch3r-agent-orchestration.md +160 -0
- package/rules/hatch3r-api-design.md +176 -0
- package/rules/hatch3r-api-design.mdc +176 -0
- package/rules/hatch3r-browser-verification.md +73 -0
- package/rules/hatch3r-browser-verification.mdc +73 -0
- package/rules/hatch3r-ci-cd.md +70 -0
- package/rules/hatch3r-ci-cd.mdc +68 -0
- package/rules/hatch3r-code-standards.md +102 -0
- package/rules/hatch3r-code-standards.mdc +100 -0
- package/rules/hatch3r-component-conventions.md +102 -0
- package/rules/hatch3r-component-conventions.mdc +102 -0
- package/rules/hatch3r-data-classification.md +85 -0
- package/rules/hatch3r-data-classification.mdc +83 -0
- package/rules/hatch3r-dependency-management.md +17 -0
- package/rules/hatch3r-dependency-management.mdc +15 -0
- package/rules/hatch3r-error-handling.md +17 -0
- package/rules/hatch3r-error-handling.mdc +15 -0
- package/rules/hatch3r-feature-flags.md +112 -0
- package/rules/hatch3r-feature-flags.mdc +112 -0
- package/rules/hatch3r-git-conventions.md +47 -0
- package/rules/hatch3r-git-conventions.mdc +45 -0
- package/rules/hatch3r-i18n.md +90 -0
- package/rules/hatch3r-i18n.mdc +90 -0
- package/rules/hatch3r-learning-consult.md +29 -0
- package/rules/hatch3r-learning-consult.mdc +27 -0
- package/rules/hatch3r-migrations.md +17 -0
- package/rules/hatch3r-migrations.mdc +15 -0
- package/rules/hatch3r-observability.md +165 -0
- package/rules/hatch3r-observability.mdc +165 -0
- package/rules/hatch3r-performance-budgets.md +109 -0
- package/rules/hatch3r-performance-budgets.mdc +109 -0
- package/rules/hatch3r-secrets-management.md +76 -0
- package/rules/hatch3r-secrets-management.mdc +74 -0
- package/rules/hatch3r-security-patterns.md +211 -0
- package/rules/hatch3r-security-patterns.mdc +211 -0
- package/rules/hatch3r-testing.md +89 -0
- package/rules/hatch3r-testing.mdc +87 -0
- package/rules/hatch3r-theming.md +51 -0
- package/rules/hatch3r-theming.mdc +51 -0
- package/rules/hatch3r-tooling-hierarchy.md +92 -0
- package/rules/hatch3r-tooling-hierarchy.mdc +79 -0
- package/skills/hatch3r-a11y-audit/SKILL.md +131 -0
- package/skills/hatch3r-agent-customize/SKILL.md +75 -0
- package/skills/hatch3r-api-spec/SKILL.md +66 -0
- package/skills/hatch3r-architecture-review/SKILL.md +96 -0
- package/skills/hatch3r-bug-fix/SKILL.md +129 -0
- package/skills/hatch3r-ci-pipeline/SKILL.md +76 -0
- package/skills/hatch3r-command-customize/SKILL.md +67 -0
- package/skills/hatch3r-context-health/SKILL.md +76 -0
- package/skills/hatch3r-cost-tracking/SKILL.md +65 -0
- package/skills/hatch3r-dep-audit/SKILL.md +82 -0
- package/skills/hatch3r-feature/SKILL.md +129 -0
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +150 -0
- package/skills/hatch3r-incident-response/SKILL.md +86 -0
- package/skills/hatch3r-issue-workflow/SKILL.md +139 -0
- package/skills/hatch3r-logical-refactor/SKILL.md +73 -0
- package/skills/hatch3r-migration/SKILL.md +76 -0
- package/skills/hatch3r-perf-audit/SKILL.md +114 -0
- package/skills/hatch3r-pr-creation/SKILL.md +85 -0
- package/skills/hatch3r-qa-validation/SKILL.md +86 -0
- package/skills/hatch3r-recipe/SKILL.md +67 -0
- package/skills/hatch3r-refactor/SKILL.md +86 -0
- package/skills/hatch3r-release/SKILL.md +93 -0
- package/skills/hatch3r-rule-customize/SKILL.md +70 -0
- package/skills/hatch3r-skill-customize/SKILL.md +67 -0
- package/skills/hatch3r-visual-refactor/SKILL.md +89 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-visual-refactor
|
|
3
|
+
description: UI/UX change workflow matching design, accessibility, and responsiveness requirements. Use when making visual changes, updating components, working on UI issues, or implementing design mockups.
|
|
4
|
+
---
|
|
5
|
+
> **Note:** Commands below use `npm` as an example. Substitute with your project's package manager (`yarn`, `pnpm`, `bun`) or build tool as appropriate.
|
|
6
|
+
|
|
7
|
+
# Visual Refactor Workflow
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Task Progress:
|
|
13
|
+
- [ ] Step 1: Read the issue, mockups, and design system
|
|
14
|
+
- [ ] Step 2: Produce a visual change plan
|
|
15
|
+
- [ ] Step 3: Implement matching the mockup
|
|
16
|
+
- [ ] Step 4: Verify accessibility and responsiveness
|
|
17
|
+
- [ ] Step 5: Open PR with before/after screenshots
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Step 1: Read Inputs
|
|
21
|
+
|
|
22
|
+
- Parse the issue body: proposed changes, before/after mockups, affected surfaces, accessibility checklist, responsiveness requirements.
|
|
23
|
+
- Read project quality documentation (accessibility, animation budgets).
|
|
24
|
+
- Review the existing design system tokens and component hierarchy.
|
|
25
|
+
- For external library docs and current best practices, follow the project's tooling hierarchy.
|
|
26
|
+
|
|
27
|
+
## Step 2: Visual Change Plan
|
|
28
|
+
|
|
29
|
+
Before modifying code, output:
|
|
30
|
+
|
|
31
|
+
- **Surfaces affected:** list with stable IDs
|
|
32
|
+
- **Components to modify/create:** list (prefer modifying existing)
|
|
33
|
+
- **Design tokens used:** colors, spacing, typography
|
|
34
|
+
- **Accessibility approach:** how WCAG AA compliance is achieved
|
|
35
|
+
- **Responsiveness:** how it adapts across widget/panel sizes
|
|
36
|
+
- **Animation changes:** new/modified animations, frame budget
|
|
37
|
+
|
|
38
|
+
## Step 3: Implement
|
|
39
|
+
|
|
40
|
+
- Match the mockup/screenshot exactly. Do not improvise design.
|
|
41
|
+
- Use existing design system tokens and components.
|
|
42
|
+
- Ensure animations respect `prefers-reduced-motion`.
|
|
43
|
+
- Ensure color contrast meets WCAG AA (4.5:1 for text).
|
|
44
|
+
- Ensure interactive elements are keyboard accessible with focus indicators.
|
|
45
|
+
- Add ARIA attributes for screen reader support.
|
|
46
|
+
|
|
47
|
+
## Step 4: Verify
|
|
48
|
+
|
|
49
|
+
### 4a. Automated Checks
|
|
50
|
+
|
|
51
|
+
- Snapshot tests updated for all modified components.
|
|
52
|
+
- Animations at 60fps (if applicable).
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm run lint && npm run typecheck && npm run test
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 4b. Browser Verification
|
|
59
|
+
|
|
60
|
+
- Ensure the dev server is running. If not, start it in the background.
|
|
61
|
+
- Navigate to every surface affected by the visual change.
|
|
62
|
+
- Compare the rendered result against the mockup or design from the issue.
|
|
63
|
+
- Test at multiple viewport sizes if the change affects responsive behavior.
|
|
64
|
+
- Tab through interactive elements to verify keyboard accessibility and visible focus indicators.
|
|
65
|
+
- Check color contrast on new or changed text and backgrounds.
|
|
66
|
+
- If animations were changed, verify they play at 60fps and respect `prefers-reduced-motion`.
|
|
67
|
+
- Check the browser console for errors or warnings.
|
|
68
|
+
- Capture before/after screenshots for the PR. If a "before" screenshot was not taken prior to implementation, note this in the PR.
|
|
69
|
+
- Verify no visual regressions on unaffected surfaces adjacent to the change.
|
|
70
|
+
|
|
71
|
+
## Step 5: Open PR
|
|
72
|
+
|
|
73
|
+
Use the project's PR template. Include:
|
|
74
|
+
|
|
75
|
+
- Before/after screenshots (required)
|
|
76
|
+
- Accessibility verification evidence
|
|
77
|
+
- Responsive behavior across sizes
|
|
78
|
+
|
|
79
|
+
## Definition of Done
|
|
80
|
+
|
|
81
|
+
- [ ] UI matches mockup/design in the issue
|
|
82
|
+
- [ ] Color contrast >= 4.5:1 (WCAG AA)
|
|
83
|
+
- [ ] Animations respect `prefers-reduced-motion`
|
|
84
|
+
- [ ] Interactive elements keyboard accessible
|
|
85
|
+
- [ ] ARIA attributes for screen readers
|
|
86
|
+
- [ ] Responsive across applicable host sizes
|
|
87
|
+
- [ ] Snapshot tests updated
|
|
88
|
+
- [ ] No visual regressions
|
|
89
|
+
- [ ] Design system tokens used (no ad-hoc styling)
|