start-vibing 4.0.2 → 4.1.1

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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/template/.claude/CLAUDE.md +86 -20
  3. package/template/.claude/agents/sd-audit.md +197 -0
  4. package/template/.claude/agents/sd-fix-verify-semantic.md +112 -0
  5. package/template/.claude/agents/sd-fix-verify-technical.md +36 -0
  6. package/template/.claude/agents/sd-fix.md +194 -0
  7. package/template/.claude/agents/sd-research.md +61 -0
  8. package/template/.claude/agents/sd-synthesis.md +74 -0
  9. package/template/.claude/commands/super-design.md +15 -0
  10. package/template/.claude/hooks/super-design-session-start.sh +4 -0
  11. package/template/.claude/settings.json +14 -0
  12. package/template/.claude/skills/codebase-knowledge/SKILL.md +145 -0
  13. package/template/.claude/skills/codebase-knowledge/TEMPLATE.md +35 -0
  14. package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +93 -0
  15. package/template/.claude/skills/composition-patterns/SKILL.md +89 -0
  16. package/template/.claude/skills/docs-tracker/SKILL.md +239 -0
  17. package/template/.claude/skills/mcp-builder/SKILL.md +236 -0
  18. package/template/.claude/skills/quality-gate/scripts/check-all.sh +83 -0
  19. package/template/.claude/skills/react-best-practices/SKILL.md +146 -0
  20. package/template/.claude/skills/security-scan/reference/owasp-top-10.md +257 -0
  21. package/template/.claude/skills/security-scan/scripts/scan.py +190 -0
  22. package/template/.claude/skills/super-design/README.md +37 -0
  23. package/template/.claude/skills/super-design/SKILL.md +105 -0
  24. package/template/.claude/skills/super-design/hooks/guard-paths.py +35 -0
  25. package/template/.claude/skills/super-design/hooks/post-edit-lint.py +57 -0
  26. package/template/.claude/skills/super-design/references/audit-methodology.md +513 -0
  27. package/template/.claude/skills/super-design/references/change-detection-playbook.md +1432 -0
  28. package/template/.claude/skills/super-design/references/design-theory.md +706 -0
  29. package/template/.claude/skills/super-design/references/fix-agent-playbook.md +118 -0
  30. package/template/.claude/skills/super-design/references/market-research-playbook.md +773 -0
  31. package/template/.claude/skills/super-design/references/playwright-mcp-reference.md +1057 -0
  32. package/template/.claude/skills/super-design/references/skills-subagents-reference.md +784 -0
  33. package/template/.claude/skills/super-design/references/superpowers-and-distribution.md +136 -0
  34. package/template/.claude/skills/super-design/scripts/detect-changes.sh +61 -0
  35. package/template/.claude/skills/super-design/scripts/diff-tokens.sh +13 -0
  36. package/template/.claude/skills/super-design/scripts/discover-routes.sh +45 -0
  37. package/template/.claude/skills/super-design/scripts/extract-tokens.mjs +41 -0
  38. package/template/.claude/skills/super-design/scripts/hash-pages.sh +42 -0
  39. package/template/.claude/skills/super-design/scripts/validate-state.sh +15 -0
  40. package/template/.claude/skills/super-design/scripts/verify-audit.sh +19 -0
  41. package/template/.claude/skills/super-design/templates/audit-state.schema.json +57 -0
  42. package/template/.claude/skills/super-design/templates/findings.schema.json +57 -0
  43. package/template/.claude/skills/super-design/templates/fix-history.md.tpl +26 -0
  44. package/template/.claude/skills/super-design/templates/overview.md.tpl +52 -0
  45. package/template/.claude/skills/test-coverage/reference/playwright-patterns.md +260 -0
  46. package/template/.claude/skills/test-coverage/scripts/coverage-check.sh +52 -0
  47. package/template/.claude/skills/typeui-ant/SKILL.md +133 -0
  48. package/template/.claude/skills/typeui-application/SKILL.md +128 -0
  49. package/template/.claude/skills/typeui-artistic/SKILL.md +133 -0
  50. package/template/.claude/skills/typeui-bento/SKILL.md +127 -0
  51. package/template/.claude/skills/typeui-bold/SKILL.md +127 -0
  52. package/template/.claude/skills/typeui-clean/SKILL.md +128 -0
  53. package/template/.claude/skills/typeui-dashboard/SKILL.md +133 -0
  54. package/template/.claude/skills/typeui-doodle/SKILL.md +142 -0
  55. package/template/.claude/skills/typeui-dramatic/SKILL.md +127 -0
  56. package/template/.claude/skills/typeui-enterprise/SKILL.md +132 -0
  57. package/template/.claude/skills/typeui-neobrutalism/SKILL.md +127 -0
  58. package/template/.claude/skills/typeui-paper/SKILL.md +127 -0
  59. package/template/.claude/skills/ui-ux-audit/QUICK-START.md +450 -0
  60. package/template/.claude/skills/ui-ux-audit/README.md +470 -0
  61. package/template/.claude/skills/ui-ux-audit/templates/audit-report.md +591 -0
  62. package/template/.claude/skills/ui-ux-audit/templates/competitor-analysis.md +363 -0
  63. package/template/.claude/skills/ui-ux-audit/templates/component-spec.md +491 -0
  64. package/template/.claude/skills/ui-ux-audit/templates/improvement-recommendation.md +450 -0
  65. package/template/.claude/skills/web-design-guidelines/SKILL.md +39 -0
  66. package/template/.claude/skills/webapp-testing/SKILL.md +96 -0
  67. package/template/.claude/skills/workflow-state/workflow-state.json +77 -0
@@ -0,0 +1,118 @@
1
+ # Fix agent playbook — PLACEHOLDER
2
+
3
+ > **This file is a placeholder.** The complete content was delivered as a
4
+ > message in the conversation ("fix-agent playbook for super-design"),
5
+ > approximately 80KB of markdown. Paste it here.
6
+
7
+ ## What the content covers
8
+
9
+ ### §1 Safe edit patterns in Claude Code
10
+ - Edit vs MultiEdit vs Write vs NotebookEdit decision tree
11
+ - Patch-style edits vs full-file rewrites
12
+ - Minimizing blast radius (smallest possible scope)
13
+ - Preservation rules (indent, quotes, semicolons, comments, import order)
14
+ - Never delete code without justification
15
+
16
+ ### §2 Propose-before-apply vs apply-directly strategies
17
+ - PROPOSE mode: generate diff, wait for approval
18
+ - APPLY mode: apply directly, trust but verify
19
+ - HYBRID (recommended): propose for risky, apply for trivial
20
+ - permissionMode mapping: default / acceptEdits / plan / dontAsk / bypassPermissions
21
+
22
+ ### §3 Diff preview patterns
23
+ - Unified diffs via `git diff --unified=3`
24
+ - Rendering in chat with fenced diff block
25
+ - Before/after screenshots via Playwright
26
+ - Granularity: per-finding / per-file / per-PR
27
+ - /rewind + Esc Esc checkpoint integration
28
+
29
+ ### §4 Rollback and recovery
30
+ - git stash before every fix session
31
+ - Session branch: `fix/sd-<timestamp>`
32
+ - Commit-per-fix with structured message (Aider pattern)
33
+ - Automatic rollback on test failure
34
+ - Claude Code native undo integration
35
+
36
+ ### §5 Confirmation scoping
37
+ - Adaptive algorithm: per-finding / per-file / per-category / per-session
38
+ - Smart defaults by permissionMode × risk level
39
+ - Selective filtering ("Apply all fixes in /components/ui/ only")
40
+
41
+ ### §6 Minimizing blast radius rules (8)
42
+ 1. Single-file edits preferred
43
+ 2. Scope style changes to smallest surface
44
+ 3. Additive > subtractive
45
+ 4. Never change component's public API
46
+ 5. Don't mix formatting with substantive fixes
47
+ 6. Don't touch files outside finding.files_affected
48
+ 7. Document every touched file in commit body
49
+ 8. Refuse to edit protected paths
50
+
51
+ ### §7 Fix categories and templates
52
+ - A1-A15 accessibility templates
53
+ - V1-V8 design templates
54
+ - U1-U10 UX templates
55
+ - P1-P10 performance templates
56
+
57
+ Per template: HOW (exact code), RISK (trivial/low/medium/high), VERIFICATION
58
+ (how to confirm), PRECONDITIONS (what must be true).
59
+
60
+ ### §8 Framework-aware fixes
61
+ Framework detection cascade. Per-framework attribute translation table
62
+ (React/Vue/Svelte 5/Svelte 4/Astro/HTML).
63
+
64
+ Tailwind-aware class merging via cn()/clsx/tailwind-merge/cva.
65
+
66
+ ### §9 Fix agent architecture
67
+ One orchestrator + specialists vs unified agent trade-offs.
68
+ Findings input contract (JSON schema).
69
+ Output contract (fix-results.json statuses: applied / proposed / skipped / failed / needs_human).
70
+ Resume-from-failure patterns.
71
+
72
+ ### §10 Interaction with user
73
+ Session opening summary format.
74
+ Batch-by-risk proposal language.
75
+ Append-only audit log at docs/super-design/fix-history.md.
76
+ CI mode flags (--dry-run, --ci, --only, --max-risk, --resume).
77
+
78
+ ### §11 Verification after fix (the two-stage pattern)
79
+ Four-gate technical verification:
80
+ 1. Detector replay (category-specific)
81
+ 2. Type check (tsc --noEmit / vue-tsc / svelte-check)
82
+ 3. Lint (eslint --max-warnings 0)
83
+ 4. Tests (npm test --findRelatedTests)
84
+
85
+ PLUS semantic verification (sd-fix-verify-semantic):
86
+ - Does the fix ACTUALLY resolve the finding, not just pass gates?
87
+ - Template-specific 5-question checklist
88
+
89
+ ### §12 Risk classification rubric
90
+ - TRIVIAL: single-attribute additions (alt, aria-label, lang)
91
+ - LOW: single CSS prop change, 1-3 lines JSX
92
+ - MEDIUM: component-structure changes, cross-file coordinated changes, token changes
93
+ - HIGH: dependency changes, config changes (tailwind.config, tsconfig), architectural changes
94
+
95
+ Default behavior map by level (auto-apply / propose / require approval / gh issue).
96
+
97
+ ### §13 GitHub issues/PRs for complex fixes
98
+ gh issue create template with finding + WCAG refs + suggested approach + files.
99
+ gh pr create template with before/after + test plan + reviewer checklist.
100
+
101
+ ### §14 Concrete agent markdown (ready-to-paste)
102
+ Full sd-fix.md content.
103
+
104
+ ### §15 Testing fix agents
105
+ Seed repo with known issues.
106
+ Run audit → produce findings.
107
+ Run fix agent.
108
+ Verify issues resolved + no regressions.
109
+ Golden-file tests.
110
+
111
+ ## Where super-design uses this
112
+
113
+ - **sd-fix** applies templates from §7 inline
114
+ - **sd-fix-verify-technical** implements §11 four-gate verification
115
+ - **sd-fix-verify-semantic** implements the semantic-verification layer of §11
116
+ - **Risk classification** everywhere uses §12 rubric
117
+ - **scripts/guard-paths.py** enforces §6 rule 8
118
+ - **scripts/post-edit-lint.py** enforces §11 gate 3