baldart 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/CHANGELOG.md +599 -0
  2. package/README.md +566 -0
  3. package/VERSION +1 -0
  4. package/bin/baldart.js +143 -0
  5. package/framework/.claude/agents/REGISTRY.md +169 -0
  6. package/framework/.claude/agents/api-perf-cost-auditor.md +291 -0
  7. package/framework/.claude/agents/code-reviewer.md +350 -0
  8. package/framework/.claude/agents/codebase-architect.md +391 -0
  9. package/framework/.claude/agents/coder.md +291 -0
  10. package/framework/.claude/agents/deep-human-insight.md +198 -0
  11. package/framework/.claude/agents/doc-reviewer.md +440 -0
  12. package/framework/.claude/agents/email-deliverability-architect.md +193 -0
  13. package/framework/.claude/agents/hybrid-ml-architect.md +285 -0
  14. package/framework/.claude/agents/hyper-gamification-designer.md +149 -0
  15. package/framework/.claude/agents/legal-counsel-gdpr.md +179 -0
  16. package/framework/.claude/agents/marketing-conversion-strategist.md +162 -0
  17. package/framework/.claude/agents/motion-expert.md +108 -0
  18. package/framework/.claude/agents/onboarding-architect-lead.md +230 -0
  19. package/framework/.claude/agents/plan-auditor.md +546 -0
  20. package/framework/.claude/agents/prd-card-writer.md +372 -0
  21. package/framework/.claude/agents/prd.md +744 -0
  22. package/framework/.claude/agents/qa-sentinel.md +305 -0
  23. package/framework/.claude/agents/remotion-animator-orchestrator.md +218 -0
  24. package/framework/.claude/agents/security-reviewer.md +276 -0
  25. package/framework/.claude/agents/senior-researcher.md +175 -0
  26. package/framework/.claude/agents/seo-analytics-strategist.md +156 -0
  27. package/framework/.claude/agents/skill-improver.md +61 -0
  28. package/framework/.claude/agents/ui-expert.md +191 -0
  29. package/framework/.claude/agents/visual-designer.md +190 -0
  30. package/framework/.claude/agents/website-orchestrator.md +118 -0
  31. package/framework/.claude/agents/wiki-curator.md +145 -0
  32. package/framework/.claude/commands/baldart-push.md +15 -0
  33. package/framework/.claude/commands/check.md +237 -0
  34. package/framework/.claude/commands/codexreview.md +203 -0
  35. package/framework/.claude/commands/design-review.md +11 -0
  36. package/framework/.claude/commands/issue-review.md +34 -0
  37. package/framework/.claude/commands/new.md +331 -0
  38. package/framework/.claude/commands/qa.md +257 -0
  39. package/framework/.claude/hooks/framework-edit-gate.js +208 -0
  40. package/framework/.claude/hooks/lint-before-commit.sh.template +66 -0
  41. package/framework/.claude/settings.local.json.example +32 -0
  42. package/framework/.claude/skills/api-design-principles/SKILL.md +567 -0
  43. package/framework/.claude/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  44. package/framework/.claude/skills/api-design-principles/assets/rest-api-template.py +182 -0
  45. package/framework/.claude/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  46. package/framework/.claude/skills/api-design-principles/references/rest-best-practices.md +408 -0
  47. package/framework/.claude/skills/baldart-push/SKILL.md +222 -0
  48. package/framework/.claude/skills/bug/SKILL.md +200 -0
  49. package/framework/.claude/skills/bug/references/logging-patterns.md +174 -0
  50. package/framework/.claude/skills/capture/SKILL.md +125 -0
  51. package/framework/.claude/skills/capture/references/synthesis-template.md +42 -0
  52. package/framework/.claude/skills/context-primer/SKILL.md +189 -0
  53. package/framework/.claude/skills/copywriting/SKILL.md +273 -0
  54. package/framework/.claude/skills/copywriting/references/copy-frameworks.md +338 -0
  55. package/framework/.claude/skills/copywriting/references/natural-transitions.md +252 -0
  56. package/framework/.claude/skills/doc-writing-for-rag/SKILL.md +119 -0
  57. package/framework/.claude/skills/doc-writing-for-rag/references/before-after-examples.md +291 -0
  58. package/framework/.claude/skills/doc-writing-for-rag/references/compact-templates.md +183 -0
  59. package/framework/.claude/skills/doc-writing-for-rag/references/frontmatter-minimal.md +112 -0
  60. package/framework/.claude/skills/doc-writing-for-rag/references/line-count-targets.md +110 -0
  61. package/framework/.claude/skills/doc-writing-for-rag/references/schemas-and-errors.md +129 -0
  62. package/framework/.claude/skills/find-skills/SKILL.md +133 -0
  63. package/framework/.claude/skills/frontend-design/LICENSE.txt +177 -0
  64. package/framework/.claude/skills/frontend-design/SKILL.md +84 -0
  65. package/framework/.claude/skills/gamification-design/SKILL.md +130 -0
  66. package/framework/.claude/skills/issue-review/SKILL.md +45 -0
  67. package/framework/.claude/skills/kie-ai/SKILL.md +262 -0
  68. package/framework/.claude/skills/kie-ai/references/models-catalog.md +272 -0
  69. package/framework/.claude/skills/kie-ai/scripts/kie_api.sh +209 -0
  70. package/framework/.claude/skills/kie-ai/scripts/remove_greenscreen.py +69 -0
  71. package/framework/.claude/skills/kie-ai/scripts/setup_api_key.sh +77 -0
  72. package/framework/.claude/skills/motion-design/LICENSE +21 -0
  73. package/framework/.claude/skills/motion-design/README.md +82 -0
  74. package/framework/.claude/skills/motion-design/SKILL.md +336 -0
  75. package/framework/.claude/skills/motion-design/director/choreography.md +93 -0
  76. package/framework/.claude/skills/motion-design/director/context-adaptation.md +83 -0
  77. package/framework/.claude/skills/motion-design/director/core-philosophy.md +53 -0
  78. package/framework/.claude/skills/motion-design/director/decision-framework.md +91 -0
  79. package/framework/.claude/skills/motion-design/director/disney-principles.md +102 -0
  80. package/framework/.claude/skills/motion-design/director/emotion-mapping.md +71 -0
  81. package/framework/.claude/skills/motion-design/director/motion-personality.md +89 -0
  82. package/framework/.claude/skills/motion-design/director/narrative-structure.md +62 -0
  83. package/framework/.claude/skills/motion-design/patterns/ambient-continuous.md +81 -0
  84. package/framework/.claude/skills/motion-design/patterns/entrance-exit.md +82 -0
  85. package/framework/.claude/skills/motion-design/patterns/multi-element.md +69 -0
  86. package/framework/.claude/skills/motion-design/patterns/state-feedback.md +96 -0
  87. package/framework/.claude/skills/motion-design/reference/property-selection.md +95 -0
  88. package/framework/.claude/skills/motion-design/reference/quality-checklist.md +67 -0
  89. package/framework/.claude/skills/motion-design/reference/timing-easing-tables.md +106 -0
  90. package/framework/.claude/skills/motion-design/reference/troubleshooting.md +73 -0
  91. package/framework/.claude/skills/new/SKILL.md +1687 -0
  92. package/framework/.claude/skills/playwright-skill/API_REFERENCE.md +652 -0
  93. package/framework/.claude/skills/playwright-skill/SKILL.md +157 -0
  94. package/framework/.claude/skills/playwright-skill/package.json +26 -0
  95. package/framework/.claude/skills/prd/SKILL.md +228 -0
  96. package/framework/.claude/skills/prd/assets/card-template.yml +232 -0
  97. package/framework/.claude/skills/prd/assets/epic-template.yml +190 -0
  98. package/framework/.claude/skills/prd/assets/prd-template.md +230 -0
  99. package/framework/.claude/skills/prd/assets/state-template.md +78 -0
  100. package/framework/.claude/skills/prd/references/api-perf-gate.md +152 -0
  101. package/framework/.claude/skills/prd/references/audit-phase.md +478 -0
  102. package/framework/.claude/skills/prd/references/backlog-phase.md +145 -0
  103. package/framework/.claude/skills/prd/references/discovery-phase.md +359 -0
  104. package/framework/.claude/skills/prd/references/impact-analysis.md +233 -0
  105. package/framework/.claude/skills/prd/references/prd-add-phase.md +214 -0
  106. package/framework/.claude/skills/prd/references/prd-writing-phase.md +145 -0
  107. package/framework/.claude/skills/prd/references/research-phase.md +216 -0
  108. package/framework/.claude/skills/prd/references/ui-design-phase.md +61 -0
  109. package/framework/.claude/skills/prd/references/validation-phase.md +72 -0
  110. package/framework/.claude/skills/prd-add/SKILL.md +222 -0
  111. package/framework/.claude/skills/prd-add/references/impact-analysis.md +233 -0
  112. package/framework/.claude/skills/remotion-best-practices/SKILL.md +48 -0
  113. package/framework/.claude/skills/remotion-best-practices/rules/3d.md +86 -0
  114. package/framework/.claude/skills/remotion-best-practices/rules/animations.md +29 -0
  115. package/framework/.claude/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
  116. package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
  117. package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
  118. package/framework/.claude/skills/remotion-best-practices/rules/assets.md +78 -0
  119. package/framework/.claude/skills/remotion-best-practices/rules/audio.md +169 -0
  120. package/framework/.claude/skills/remotion-best-practices/rules/calculate-metadata.md +104 -0
  121. package/framework/.claude/skills/remotion-best-practices/rules/can-decode.md +75 -0
  122. package/framework/.claude/skills/remotion-best-practices/rules/charts.md +58 -0
  123. package/framework/.claude/skills/remotion-best-practices/rules/compositions.md +141 -0
  124. package/framework/.claude/skills/remotion-best-practices/rules/display-captions.md +184 -0
  125. package/framework/.claude/skills/remotion-best-practices/rules/extract-frames.md +229 -0
  126. package/framework/.claude/skills/remotion-best-practices/rules/fonts.md +152 -0
  127. package/framework/.claude/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
  128. package/framework/.claude/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
  129. package/framework/.claude/skills/remotion-best-practices/rules/get-video-duration.md +58 -0
  130. package/framework/.claude/skills/remotion-best-practices/rules/gifs.md +141 -0
  131. package/framework/.claude/skills/remotion-best-practices/rules/images.md +130 -0
  132. package/framework/.claude/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
  133. package/framework/.claude/skills/remotion-best-practices/rules/light-leaks.md +73 -0
  134. package/framework/.claude/skills/remotion-best-practices/rules/lottie.md +67 -0
  135. package/framework/.claude/skills/remotion-best-practices/rules/maps.md +401 -0
  136. package/framework/.claude/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
  137. package/framework/.claude/skills/remotion-best-practices/rules/measuring-text.md +143 -0
  138. package/framework/.claude/skills/remotion-best-practices/rules/parameters.md +98 -0
  139. package/framework/.claude/skills/remotion-best-practices/rules/sequencing.md +118 -0
  140. package/framework/.claude/skills/remotion-best-practices/rules/subtitles.md +36 -0
  141. package/framework/.claude/skills/remotion-best-practices/rules/tailwind.md +11 -0
  142. package/framework/.claude/skills/remotion-best-practices/rules/text-animations.md +20 -0
  143. package/framework/.claude/skills/remotion-best-practices/rules/timing.md +179 -0
  144. package/framework/.claude/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
  145. package/framework/.claude/skills/remotion-best-practices/rules/transitions.md +197 -0
  146. package/framework/.claude/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
  147. package/framework/.claude/skills/remotion-best-practices/rules/trimming.md +52 -0
  148. package/framework/.claude/skills/remotion-best-practices/rules/videos.md +171 -0
  149. package/framework/.claude/skills/seo-audit/SKILL.md +394 -0
  150. package/framework/.claude/skills/seo-audit/references/aeo-geo-patterns.md +279 -0
  151. package/framework/.claude/skills/seo-audit/references/ai-writing-detection.md +190 -0
  152. package/framework/.claude/skills/simplify/SKILL.md +137 -0
  153. package/framework/.claude/skills/skill-creator/LICENSE.txt +202 -0
  154. package/framework/.claude/skills/skill-creator/SKILL.md +356 -0
  155. package/framework/.claude/skills/skill-creator/references/output-patterns.md +82 -0
  156. package/framework/.claude/skills/skill-creator/references/workflows.md +28 -0
  157. package/framework/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
  158. package/framework/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
  159. package/framework/.claude/skills/skill-creator/scripts/quick_validate.py +95 -0
  160. package/framework/.claude/skills/ui-design/SKILL.md +199 -0
  161. package/framework/.claude/skills/ui-design/references/component-discovery.md +54 -0
  162. package/framework/.claude/skills/ui-design/references/evaluation.md +171 -0
  163. package/framework/.claude/skills/ui-design/references/generation.md +109 -0
  164. package/framework/.claude/skills/ui-design/references/inventory.md +59 -0
  165. package/framework/.claude/skills/webapp-testing/LICENSE.txt +202 -0
  166. package/framework/.claude/skills/webapp-testing/SKILL.md +123 -0
  167. package/framework/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
  168. package/framework/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
  169. package/framework/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
  170. package/framework/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
  171. package/framework/.claude/skills/worktree-manager/SKILL.md +680 -0
  172. package/framework/AGENTS.md +240 -0
  173. package/framework/agents/api-contracts.md +137 -0
  174. package/framework/agents/architecture.md +145 -0
  175. package/framework/agents/coding-standards.md +148 -0
  176. package/framework/agents/data-model.md +110 -0
  177. package/framework/agents/deployment-protocol.md +232 -0
  178. package/framework/agents/design-review.md +172 -0
  179. package/framework/agents/env-reference.md +171 -0
  180. package/framework/agents/github-issue-subagent.md +252 -0
  181. package/framework/agents/index.md +261 -0
  182. package/framework/agents/llm-wiki-methodology.md +216 -0
  183. package/framework/agents/maintenance-protocol.md +305 -0
  184. package/framework/agents/observability.md +162 -0
  185. package/framework/agents/performance.md +155 -0
  186. package/framework/agents/project-context.md +145 -0
  187. package/framework/agents/runbook.md +208 -0
  188. package/framework/agents/security.md +168 -0
  189. package/framework/agents/skills-mapping.md +286 -0
  190. package/framework/agents/testing.md +111 -0
  191. package/framework/agents/workflows.md +215 -0
  192. package/framework/docs/PROJECT-CONFIGURATION.md +336 -0
  193. package/framework/docs/references/brand-guidelines.md +170 -0
  194. package/framework/docs/references/ui-guidelines.template.md +182 -0
  195. package/framework/routines/code-review.routine.yml +46 -0
  196. package/framework/routines/doc-review.routine.yml +45 -0
  197. package/framework/routines/ds-drift.routine.yml +52 -0
  198. package/framework/routines/full-sweep.routine.yml +51 -0
  199. package/framework/routines/index.yml +70 -0
  200. package/framework/routines/skill-improve.routine.yml +50 -0
  201. package/framework/routines/wiki-review.routine.yml +45 -0
  202. package/framework/templates/baldart.config.template.yml +113 -0
  203. package/framework/templates/breaking-change-checklist.md +484 -0
  204. package/framework/templates/feature-card.template.yml +125 -0
  205. package/framework/templates/overlays/README.md +44 -0
  206. package/framework/templates/overlays/copywriting.fidelity-example.md +62 -0
  207. package/framework/templates/overlays/ui-design.fidelity-example.md +75 -0
  208. package/framework/templates/skill-project-context.snippet.md +19 -0
  209. package/framework/templates/spec.template.md +208 -0
  210. package/package.json +51 -0
  211. package/src/commands/add.js +229 -0
  212. package/src/commands/configure.js +385 -0
  213. package/src/commands/doctor.js +486 -0
  214. package/src/commands/migrate.js +185 -0
  215. package/src/commands/push.js +0 -0
  216. package/src/commands/routines.js +269 -0
  217. package/src/commands/status.js +130 -0
  218. package/src/commands/update.js +419 -0
  219. package/src/commands/version.js +88 -0
  220. package/src/utils/contamination.js +400 -0
  221. package/src/utils/git.js +181 -0
  222. package/src/utils/hooks.js +152 -0
  223. package/src/utils/routine-adapters/claude-code-cloud.js +78 -0
  224. package/src/utils/routine-adapters/cron.js +138 -0
  225. package/src/utils/routine-adapters/github-actions.js +141 -0
  226. package/src/utils/routine-adapters/index.js +21 -0
  227. package/src/utils/routines.js +166 -0
  228. package/src/utils/state.js +143 -0
  229. package/src/utils/symlinks.js +425 -0
  230. package/src/utils/ui.js +133 -0
package/README.md ADDED
@@ -0,0 +1,566 @@
1
+ # BALDART - Claude Agent Framework
2
+
3
+ A comprehensive, reusable framework for coordinating AI agents and human developers in software projects. Install via npm/npx - no bash scripts needed.
4
+
5
+ ## What Is This?
6
+
7
+ BALDART provides a portable system for:
8
+
9
+ - **Agent Coordination**: Clear protocols (AGENTS.md) defining how AI agents and humans work together
10
+ - **AI Agents**: Pre-built specialized agents (coder, code-reviewer, doc-reviewer, etc.)
11
+ - **Commands**: Batch orchestration (/new), design reviews, issue analysis
12
+ - **Templates**: Backlog cards, PRDs, specs, breaking change checklists
13
+ - **Documentation Structure**: Standard layouts for API docs, data models, UI specs
14
+
15
+ ## Quick Start
16
+
17
+ ### Installation
18
+
19
+ ```bash
20
+ # In your project directory
21
+ npx baldart add
22
+ ```
23
+
24
+ > Available on npm as [`baldart`](https://www.npmjs.com/package/baldart). If you need to pin a specific version (or you're hitting an old cached npx tarball), use `npx baldart@3.6.1 <cmd>` (or any other version). The legacy form `npx -y github:antbald/BALDART <cmd>` still works for unreleased commits on `main`.
25
+
26
+ That's it! The `add` command handles everything automatically:
27
+ - Downloads the framework via Git subtree into `.framework/`
28
+ - Creates symlinks for auto-updateable files (AGENTS.md, agents/, .claude/agents/, .claude/commands/)
29
+ - Copies customizable templates (hooks, UI guidelines, backlog cards)
30
+ - Creates required directories (docs/, templates/, backlog/)
31
+
32
+ No additional activation steps needed — once installed, Claude Code will automatically pick up the agents, commands, and protocols.
33
+
34
+ ### Usage
35
+
36
+ ```bash
37
+ # Smart entry point: diagnose install state and propose next action.
38
+ # `npx baldart` with no arguments runs this; equivalent to `baldart doctor`.
39
+ npx baldart
40
+
41
+ # Show version + install date + drift from remote
42
+ npx baldart version
43
+
44
+ # Check status (symlinks, config, overlay drift)
45
+ npx baldart status
46
+
47
+ # (Re)generate baldart.config.yml — interactive prompts + autodetection
48
+ npx baldart configure
49
+
50
+ # Update framework
51
+ npx baldart update
52
+
53
+ # Contribute improvements upstream (auto bump + CHANGELOG + tag)
54
+ npx baldart push
55
+ ```
56
+
57
+ > **Tip**: During installation, BALDART offers to configure git aliases (`fw-version`, `fw-update`, `fw-push`) so you can skip the `npx baldart` prefix after the first install.
58
+
59
+ ## Features
60
+
61
+ ### Core Protocol
62
+
63
+ - **AGENTS.md**: Mandatory coordination rules (MUST/SHOULD/OPTIONAL)
64
+ - **agents/**: 17 domain modules (architecture, workflows, testing, security, etc.)
65
+ - **Routing**: If you touch X, read Y - minimize context loading
66
+
67
+ ### AI Agents (24 specialized agents)
68
+
69
+ **Core (required for every project)**
70
+ 1. **codebase-architect**: MANDATORY before planning/implementation - understands codebase structure
71
+ 2. **coder**: Writes production code with build/test/lint verification + Post-Approval Complexity Gate
72
+ 3. **code-reviewer**: Reviews for bugs, security, quality, maintainability — confidence-based filtering + Findings Schema
73
+ 4. **security-reviewer**: Dedicated AppSec auditor for auth/secrets/multi-tenant/infra
74
+ 5. **doc-reviewer**: Audits and writes documentation, SSOT sync, doc debt tracking, design-system drift detection
75
+ 6. **wiki-curator**: Maintains the derived LLM wiki overlay (`docs/wiki/`) with auto-learning loop
76
+ 7. **prd**: Creates PRDs, implementation plans, and backlog cards with autonomous tech decisions
77
+ 8. **prd-card-writer**: Generates atomic backlog cards with traceability + parallel groups from approved PRDs
78
+ 9. **plan-auditor**: MANDATORY after planning — 4-persona plan review + High-Risk Path triggers + Specialist Auto-Spawn
79
+ 10. **senior-researcher**: Evidence-based research with AI-readable retrieval-optimized reports
80
+ 11. **api-perf-cost-auditor**: API performance and cost analysis with Findings Schema emission
81
+ 12. **qa-sentinel**: SDET-grade gate runner (Quick/Full/Deep profiles) — lint, tsc, test, build, audit
82
+
83
+ **Design & UX**
84
+ 13. **ui-expert**: UI/UX design and review
85
+ 14. **visual-designer**: Visual asset generation via image APIs
86
+ 15. **motion-expert**: Animation specs, transitions, micro-interactions
87
+ 16. **hyper-gamification-designer**: Game mechanics, retention loops, economy balance
88
+ 17. **remotion-animator-orchestrator**: Video/motion graphics with Remotion
89
+
90
+ **Product & Marketing**
91
+ 18. **onboarding-architect-lead**: User onboarding flow design and experimentation
92
+ 19. **marketing-conversion-strategist**: High-converting copy and messaging
93
+ 20. **seo-analytics-strategist**: SEO strategy, metadata, GA4/GTM event planning
94
+ 21. **email-deliverability-architect**: Transactional/informational email design + SPF/DKIM/DMARC
95
+ 22. **website-orchestrator**: Multi-agent website development coordination
96
+
97
+ **Specialized**
98
+ 23. **hybrid-ml-architect**: ML/DL system design (recommenders, ranking, embeddings)
99
+ 24. **legal-counsel-gdpr**: GDPR compliance, privacy policies, data governance
100
+ 25. **deep-human-insight**: Psychological / sociological analysis for B2C UX and adoption
101
+ 26. **skill-improver**: Weekly auto-improvement of skills/agents based on review/QA findings
102
+
103
+ REGISTRY.md is the single source of truth for agent routing and capabilities.
104
+
105
+ ### Real-time edit gate (new in v3.3.0)
106
+
107
+ A Claude Code `PreToolUse` hook (`framework-edit-gate`) is auto-registered in
108
+ every BALDART consumer. It intercepts `Edit`/`Write`/`MultiEdit` whose target
109
+ resolves (via symlink) to a path inside `.framework/` and runs the
110
+ contamination scanner on the new content. If project-specific tokens are
111
+ detected (Neo-Brutalism, merchant, recharts, secrets, …), the call is blocked
112
+ with a structured reason that tells Claude exactly what to do: reformulate
113
+ generically with `${paths.X}`/`identity.X`, move to `.baldart/overlays/`, or
114
+ declare the file opt-out via the contamination-scan marker.
115
+
116
+ In practice: when Claude tries to write project-specific content into a
117
+ framework skill, the hook stops it before the file is touched and Claude
118
+ adapts in real time. No more "I forgot, sent merchant logic upstream by
119
+ mistake".
120
+
121
+ Registered automatically by `baldart add` and `baldart update`. Detected by
122
+ `baldart doctor` and re-installed on demand. Disable by removing the entry
123
+ from `.claude/settings.json` if you ever need to.
124
+
125
+ ### Centralized versioning (new in v3.1.0)
126
+
127
+ Every consumer repo gets a `.baldart/state.json` file that tracks: which
128
+ framework version is installed, when it was installed, when it was last
129
+ updated, when it was last pushed upstream, and a rolling history of the
130
+ last 20 events. You always know exactly which version you are working on.
131
+
132
+ Run `npx baldart version` to see installed version + install date, drift
133
+ from remote (n commits ahead/behind), local uncommitted-files count, and
134
+ last-push info. Use `--offline` to skip the upstream fetch.
135
+
136
+ State updates happen automatically — no manual bookkeeping required.
137
+
138
+ ### Project Configuration (new in v3.0.0)
139
+
140
+ BALDART skills are **portable across projects**. Instead of hard-coding paths
141
+ (`docs/design-system/INDEX.md`), brand identity (Neo-Brutalism), audience segments
142
+ (merchant/customer), or technology stacks (Recharts-only), skills now read these from
143
+ `baldart.config.yml` at your repo root.
144
+
145
+ Three layers:
146
+
147
+ 1. **`baldart.config.yml`** — structural facts (paths, identity, stack, feature flags). Populated by `npx baldart configure` with strong filesystem autodetection.
148
+ 2. **Skills** — generic, reference `${paths.X}` and `identity.Y` instead of literals.
149
+ 3. **`.baldart/overlays/<skill>.md`** — your project-specific opinions (brand voice pillars, mandatory libraries, custom workflows). Frontmatter-versioned for drift detection.
150
+
151
+ ```bash
152
+ # First-run (also invoked at the end of `baldart add`)
153
+ npx baldart configure
154
+
155
+ # Author overlays (optional; starter examples in .framework/templates/overlays/)
156
+ cp .framework/templates/overlays/ui-design.fidelity-example.md \
157
+ .baldart/overlays/ui-design.md
158
+ ```
159
+
160
+ Skills always-ask when required keys are missing — never silently default.
161
+ `npx baldart update` warns when new framework versions add config keys but
162
+ never overwrites your file. Full guide:
163
+ [`framework/docs/PROJECT-CONFIGURATION.md`](framework/docs/PROJECT-CONFIGURATION.md).
164
+
165
+ ### Skills (new in v2.0.0 — 22 portable skills)
166
+
167
+ Skills live under `.claude/skills/` and are auto-discovered by Claude Code.
168
+ Bundled skills:
169
+
170
+ - **Workflow**: `new`, `prd`, `prd-add`, `bug`, `simplify`, `worktree-manager`, `issue-review`, `context-primer`
171
+ - **Code quality**: `skill-creator`, `find-skills`, `webapp-testing`, `playwright-skill`
172
+ - **Design**: `frontend-design`, `ui-design`, `motion-design`, `gamification-design`
173
+ - **Product**: `seo-audit`, `copywriting`, `api-design-principles`
174
+ - **Knowledge**: `doc-writing-for-rag`, `capture` (LLM wiki overlay)
175
+ - **Integration**: `kie-ai`, `remotion-best-practices`
176
+
177
+ ### Commands
178
+
179
+ - **/new**: Batch orchestrator with QA validation, production readiness checklist, and context recovery (also available as a skill)
180
+ - **/codexreview**: Deep multi-agent code review with mandatory false-positive validation and finding pooling across reviewers
181
+ - **/check**: Pre-development parallel quality audits using agent teams
182
+ - **/design-review**: UI/UX design review workflow
183
+ - **/issue-review**: GitHub issue analysis and context capture
184
+
185
+ ### LLM Wiki Overlay (new in v2.0.0)
186
+
187
+ A derived, non-canonical knowledge layer (`docs/wiki/`) with an auto-learning
188
+ loop: RAG telemetry → synthesis candidates → `/capture` skill → new wiki
189
+ pages. See `framework/agents/llm-wiki-methodology.md` for the full
190
+ methodology and adoption checklist.
191
+
192
+ ### Migrating an Existing Install (v1.x / v2.x → v3.x)
193
+
194
+ If you already have BALDART installed in an existing project:
195
+
196
+ ```bash
197
+ # 1. Pull v3 framework
198
+ npx baldart update
199
+
200
+ # 2. (v2.0.x → v2.1.1 layout fix, if you skipped that train)
201
+ npx baldart migrate # idempotent: converts legacy skills layout
202
+
203
+ # 3. v3 step — populate baldart.config.yml (paths/identity/stack/features)
204
+ npx baldart configure # interactive prompts + filesystem autodetection
205
+
206
+ # 4. Confirm
207
+ npx baldart status # config + overlays + drift
208
+ npx baldart version # current version + last update / last push
209
+ ```
210
+
211
+ Full migration guide (including the v2 → v3 cheat sheet and overlay
212
+ authoring): [`framework/docs/PROJECT-CONFIGURATION.md`](framework/docs/PROJECT-CONFIGURATION.md) § 9.
213
+
214
+ `v3.0 → v3.1` requires no config changes — `state.json` is auto-seeded on
215
+ the next CLI invocation (`add` / `update` / `push`).
216
+
217
+ `baldart migrate` (still available) handles legacy v2.0.x cases:
218
+
219
+ - Converts the legacy `.claude/skills/` bulk symlink (v2.0.x) into a real directory.
220
+ - Re-merges framework skills as per-item symlinks alongside your personal skills.
221
+ - Restores `.claude/skills.backup/` content into `.claude/skills/`, leaving name collisions in `.backup/` for manual review.
222
+ - Logs unresolved collisions in `.baldart/skill-conflicts.json`.
223
+
224
+ Safe to re-run; if there's nothing to do, it reports so and exits.
225
+
226
+ ### Scheduled Routines (new in v2.1.0)
227
+
228
+ The framework now ships **scheduled routines** that make its auto-learning and
229
+ drift-detection loops actually run. Ship-bundled routines:
230
+
231
+ | Routine | Cadence | Agent | Purpose |
232
+ |---------|---------|-------|---------|
233
+ | `wiki-review` | nightly 02:00 UTC | wiki-curator | Drives the LLM-wiki auto-learning loop |
234
+ | `doc-review` | nightly 00:00 UTC | doc-reviewer | Audits doc changes, flags SSOT drift |
235
+ | `code-review` | nightly 01:00 UTC | code-reviewer | Reviews last-24h commits |
236
+ | `skill-improve` | weekly Sun 02:00 UTC | skill-improver | Refines skills/agents from review patterns |
237
+ | `ds-drift` | weekly Mon 03:00 UTC | doc-reviewer | Design-system drift check (optional) |
238
+ | `full-sweep` | weekly Sun 03:00 UTC | doc-reviewer | Full SSOT audit (optional) |
239
+
240
+ Three backend adapters are bundled:
241
+
242
+ - **`claude-code-cloud`** — `.claude/routines/<name>.json` for RemoteTrigger
243
+ - **`github-actions`** — `.github/workflows/baldart-<name>.yml`
244
+ - **`cron`** — `scripts/routines/<name>.sh` + a crontab line
245
+
246
+ During `npx baldart add` and `npx baldart update`, BALDART surfaces routines
247
+ the user has never reviewed and prompts to install them. Standalone command:
248
+
249
+ ```bash
250
+ npx baldart routines list # show status for every routine
251
+ npx baldart routines install wiki-review # interactive install
252
+ npx baldart routines doctor # verify installed routines are still healthy
253
+ npx baldart routines disable wiki-review # remove the schedule
254
+ ```
255
+
256
+ ### Templates
257
+
258
+ - `feature-card.template.yml`: Backlog card structure
259
+ - `spec.template.md`: Technical specifications
260
+ - `breaking-change-checklist.md`: API/schema migration checklist
261
+ - `ui-guidelines.template.md`: UI/UX guidelines template
262
+ - `brand-guidelines.md`: Brand identity template
263
+
264
+ ## What Gets Installed
265
+
266
+ ```
267
+ your-project/
268
+ ├── .framework/ # Framework source (via Git subtree)
269
+ ├── AGENTS.md # Symlink → .framework/AGENTS.md
270
+ ├── agents/ # Symlink → .framework/agents/
271
+ ├── .claude/
272
+ │ ├── agents/ # Symlink → .framework/.claude/agents/
273
+ │ ├── commands/ # Symlink → .framework/.claude/commands/
274
+ │ ├── skills/ # Per-item merge dir (v2.1.1+): framework symlinks alongside your own skills
275
+ │ └── hooks/ # Customizable copies
276
+ ├── baldart.config.yml # Project context: paths/identity/stack/features (v3.0.0+)
277
+ ├── .baldart/
278
+ │ ├── state.json # Centralized versioning ledger (v3.1.0+, managed by CLI)
279
+ │ └── overlays/ # Your per-skill project-specific overrides (v3.0.0+)
280
+ ├── docs/references/
281
+ │ ├── ui-guidelines.template.md # Customize for your project
282
+ │ └── brand-guidelines.md # Customize for your project
283
+ └── templates/ # Customizable backlog/spec templates
284
+ ```
285
+
286
+ ## Daily Workflow
287
+
288
+ ### 1. Create Backlog Card
289
+
290
+ ```bash
291
+ # Copy template
292
+ cp templates/feature-card.template.yml backlog/FEAT-001.yml
293
+
294
+ # Edit card with your requirements
295
+ ```
296
+
297
+ ### 2. Implement with Framework
298
+
299
+ ```bash
300
+ # Framework guides agent coordination automatically
301
+ # Use /new command for batch implementation
302
+ /new FEAT-001
303
+ ```
304
+
305
+ ### 3. Update Framework
306
+
307
+ ```bash
308
+ # Check for updates
309
+ npx baldart status
310
+
311
+ # Update to latest
312
+ npx baldart update
313
+ ```
314
+
315
+ ### 4. Contribute Back
316
+
317
+ ```bash
318
+ # Made improvements? Share them!
319
+ npx baldart push
320
+ ```
321
+
322
+ ## Customization
323
+
324
+ ### Files You SHOULD Customize
325
+
326
+ 1. **`.claude/hooks/lint-before-commit.sh.template`**
327
+ - Replace commands with your project's tools
328
+ - Rename to `lint-before-commit.sh`
329
+ - Make executable: `chmod +x .claude/hooks/lint-before-commit.sh`
330
+
331
+ 2. **`docs/references/ui-guidelines.template.md`**
332
+ - Define brand colors, typography, spacing
333
+ - Document component patterns
334
+ - Rename to `ui-guidelines.md`
335
+
336
+ 3. **`docs/references/brand-guidelines.md`**
337
+ - Add logo specifications
338
+ - Define brand voice and tone
339
+ - Document imagery guidelines
340
+
341
+ 4. **`templates/*.yml`**
342
+ - Adapt backlog card template
343
+ - Add project-specific fields
344
+
345
+ 5. **`baldart.config.yml`** (v3.0.0+)
346
+ - Paths, identity, stack, feature flags for your project
347
+ - Generated by `npx baldart configure` — re-run any time to refresh
348
+ - Never overwritten by `baldart update`
349
+
350
+ 6. **`.baldart/overlays/<skill>.md`** (v3.0.0+)
351
+ - Per-skill project-specific extensions (brand voice, mandated stack, custom workflows)
352
+ - Examples in `.framework/templates/overlays/`
353
+ - Never overwritten by `baldart update`
354
+
355
+ ### Files You SHOULD NOT Modify
356
+
357
+ Files with symlinks auto-update when framework updates:
358
+
359
+ - `AGENTS.md`
360
+ - `agents/`
361
+ - `.claude/agents/`
362
+ - `.claude/commands/`
363
+
364
+ Files managed by the CLI:
365
+
366
+ - `.baldart/state.json` (v3.1.0+) — versioning ledger maintained by `add`/`update`/`push`. Editing by hand can confuse the drift report.
367
+
368
+ ## Commands Reference
369
+
370
+ ### `npx baldart add [repo]`
371
+
372
+ Install framework in your project.
373
+
374
+ - `repo`: Optional. Default: `antbald/BALDART`
375
+ - `--branch`: Branch to use. Default: `main`
376
+
377
+ **Example:**
378
+ ```bash
379
+ npx baldart add # Install from default repo
380
+ npx baldart add owner/repo # Install from custom fork
381
+ ```
382
+
383
+ ### `npx baldart update`
384
+
385
+ Update framework to latest version.
386
+
387
+ - Shows changelog
388
+ - Creates backup tag
389
+ - Updates via Git subtree
390
+ - Verifies symlinks
391
+
392
+ ### `npx baldart` (no args) / `doctor` (v3.2.0+)
393
+
394
+ Smart diagnostic that detects the install state and proposes the next sensible
395
+ action (install, migrate legacy layout, configure, refresh config schema,
396
+ update, push, or "nothing to do"). Prints a status table then runs the
397
+ proposed actions with confirmation per step.
398
+
399
+ ```bash
400
+ npx baldart # diagnostic + interactive prompts
401
+ npx baldart --auto # CI-friendly: skip y/n; error out on ambiguity
402
+ npx baldart --offline # skip the upstream fetch
403
+ npx baldart doctor # explicit alias (same behaviour)
404
+ ```
405
+
406
+ ### `npx baldart version`
407
+
408
+ Show installed framework version, install date, drift from remote (commits
409
+ ahead/behind), uncommitted-files count in `.framework/`, and last-push info.
410
+ Use `--offline` to skip the upstream fetch when offline.
411
+
412
+ ### `npx baldart push` / `/baldart-push` (v3.1.0+)
413
+
414
+ Contribute local framework improvements upstream. Replaces the v1-v3.0 manual
415
+ "next steps required" workflow with an automated, contamination-aware flow:
416
+
417
+ - **Auto-pull**: if remote is ahead, runs `update` first.
418
+ - **Triage**: separates pushable files from blocklisted (hooks, overlays) and surfaces new consumer-authored skills as contribution candidates.
419
+ - **Contamination autofix**: rewrites hardcoded paths automatically (`docs/design-system/` → `${paths.design_system}/`, etc.). For identity / stack tokens that cannot be safely auto-rewritten (Neo-Brutalism, merchant, recharts), asks per file: keep & force push, skip the file (drop from push), or abort. Hard-blocks on secrets (API keys, bearer/Slack/PAT/JWT tokens, PEM private keys).
420
+ - **Auto version bump**: suggests MAJOR/MINOR/PATCH from the diff shape.
421
+ - **Auto CHANGELOG**: writes the entry under the new version section, grouped Added/Changed/Removed from the file list.
422
+ - **Auto-tag** + subtree push.
423
+ - **State update**: writes `last_pushed_version` + history entry into `.baldart/state.json`.
424
+
425
+ Either invoke via the slash command (conversational orchestration in Claude
426
+ Code) or directly via CLI:
427
+
428
+ ```bash
429
+ npx baldart push
430
+ ```
431
+
432
+ ### `npx baldart configure`
433
+
434
+ Generate / update `baldart.config.yml` (project paths, identity, stack, feature flags).
435
+ Interactive prompts with filesystem autodetection. Idempotent — re-running merges into
436
+ the existing file without clobbering user values.
437
+
438
+ - `--non-interactive`: write autodetected values without prompts (for CI).
439
+
440
+ Full guide: [`framework/docs/PROJECT-CONFIGURATION.md`](framework/docs/PROJECT-CONFIGURATION.md).
441
+
442
+ ### `npx baldart status`
443
+
444
+ Check installation status:
445
+ - Framework version
446
+ - Symlink validity
447
+ - Customizable files presence
448
+ - Update availability
449
+
450
+ ## Architecture
451
+
452
+ ### Git Subtree Strategy
453
+
454
+ BALDART uses Git subtree for bidirectional sync:
455
+
456
+ - **Pull updates**: `npx baldart update` pulls new versions
457
+ - **Push improvements**: `npx baldart push` contributes back
458
+ - **Local copy**: Framework lives in `.framework/` directory
459
+ - **Symlinks**: Auto-updated files link to `.framework/`
460
+ - **Copies**: Customizable files copied from `.framework/`
461
+
462
+ ### Why NPX?
463
+
464
+ - **No global install**: Use latest version every time
465
+ - **Cross-platform**: Works on Windows/Mac/Linux
466
+ - **Standard**: Familiar to all Node.js developers
467
+ - **Simple**: One command to rule them all
468
+
469
+ ## Versioning
470
+
471
+ BALDART follows [Semantic Versioning](https://semver.org/):
472
+
473
+ - **MAJOR** (X.0.0): Breaking changes (incompatible updates)
474
+ - **MINOR** (0.X.0): New features (backwards compatible)
475
+ - **PATCH** (0.0.X): Bug fixes (backwards compatible)
476
+
477
+ Check version:
478
+ ```bash
479
+ npx baldart version
480
+ ```
481
+
482
+ ## Troubleshooting
483
+
484
+ ### "Framework not installed" error
485
+
486
+ ```bash
487
+ # Install framework first
488
+ npx baldart add
489
+ ```
490
+
491
+ ### Symlinks broken after update
492
+
493
+ ```bash
494
+ # Reinstall to recreate symlinks
495
+ npx baldart add
496
+ ```
497
+
498
+ ### Conflicts during update
499
+
500
+ ```bash
501
+ # Check conflicting files
502
+ git status
503
+
504
+ # Choose resolution
505
+ git checkout --ours <file> # Keep your version
506
+ git checkout --theirs <file> # Use framework version
507
+
508
+ # Complete merge
509
+ git add <resolved-files>
510
+ git commit -m "Resolved framework update conflicts"
511
+ ```
512
+
513
+ ### Rollback after bad update
514
+
515
+ ```bash
516
+ # Find backup tag (created by update)
517
+ git tag | grep backup/
518
+
519
+ # Rollback
520
+ git checkout backup/YYYY-MM-DD-HH-MM-SS
521
+ git checkout -b recovery-branch
522
+ ```
523
+
524
+ ## Requirements
525
+
526
+ - **Node.js**: >= 18.0.0
527
+ - **Git**: >= 2.0.0
528
+ - **npm**: >= 8.0.0
529
+
530
+ ## License
531
+
532
+ MIT
533
+
534
+ ## Contributing
535
+
536
+ Contributions welcome! See **[MAINTAINING.md](MAINTAINING.md)** for the complete protocol.
537
+
538
+ **Quick process:**
539
+
540
+ 1. Make improvements in your project
541
+ 2. Test thoroughly
542
+ 3. Run `npx baldart push`
543
+ 4. Classify change type (MAJOR/MINOR/PATCH)
544
+ 5. Update `VERSION` and `CHANGELOG.md`
545
+ 6. Create git tag and push
546
+
547
+ **For agents:** Follow the complete checklist in [MAINTAINING.md](MAINTAINING.md) to ensure proper versioning, documentation, and release process.
548
+
549
+ ## Repository
550
+
551
+ - **GitHub**: https://github.com/antbald/BALDART
552
+ - **Install**: `npx baldart add`
553
+ - **Issues**: https://github.com/antbald/BALDART/issues
554
+
555
+ ## Credits
556
+
557
+ Created for coordinating AI agents and humans in software development.
558
+
559
+ ## Support
560
+
561
+ - **Current Version**: `cat VERSION`
562
+ - **Changelog**: See [CHANGELOG.md](CHANGELOG.md)
563
+ - **Maintenance Protocol**: See [MAINTAINING.md](MAINTAINING.md)
564
+ - **Check Status**: `npx baldart status`
565
+ - **Check Version**: `npx baldart version`
566
+ - **Issues**: https://github.com/antbald/BALDART/issues
package/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.6.2