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.
- package/CHANGELOG.md +599 -0
- package/README.md +566 -0
- package/VERSION +1 -0
- package/bin/baldart.js +143 -0
- package/framework/.claude/agents/REGISTRY.md +169 -0
- package/framework/.claude/agents/api-perf-cost-auditor.md +291 -0
- package/framework/.claude/agents/code-reviewer.md +350 -0
- package/framework/.claude/agents/codebase-architect.md +391 -0
- package/framework/.claude/agents/coder.md +291 -0
- package/framework/.claude/agents/deep-human-insight.md +198 -0
- package/framework/.claude/agents/doc-reviewer.md +440 -0
- package/framework/.claude/agents/email-deliverability-architect.md +193 -0
- package/framework/.claude/agents/hybrid-ml-architect.md +285 -0
- package/framework/.claude/agents/hyper-gamification-designer.md +149 -0
- package/framework/.claude/agents/legal-counsel-gdpr.md +179 -0
- package/framework/.claude/agents/marketing-conversion-strategist.md +162 -0
- package/framework/.claude/agents/motion-expert.md +108 -0
- package/framework/.claude/agents/onboarding-architect-lead.md +230 -0
- package/framework/.claude/agents/plan-auditor.md +546 -0
- package/framework/.claude/agents/prd-card-writer.md +372 -0
- package/framework/.claude/agents/prd.md +744 -0
- package/framework/.claude/agents/qa-sentinel.md +305 -0
- package/framework/.claude/agents/remotion-animator-orchestrator.md +218 -0
- package/framework/.claude/agents/security-reviewer.md +276 -0
- package/framework/.claude/agents/senior-researcher.md +175 -0
- package/framework/.claude/agents/seo-analytics-strategist.md +156 -0
- package/framework/.claude/agents/skill-improver.md +61 -0
- package/framework/.claude/agents/ui-expert.md +191 -0
- package/framework/.claude/agents/visual-designer.md +190 -0
- package/framework/.claude/agents/website-orchestrator.md +118 -0
- package/framework/.claude/agents/wiki-curator.md +145 -0
- package/framework/.claude/commands/baldart-push.md +15 -0
- package/framework/.claude/commands/check.md +237 -0
- package/framework/.claude/commands/codexreview.md +203 -0
- package/framework/.claude/commands/design-review.md +11 -0
- package/framework/.claude/commands/issue-review.md +34 -0
- package/framework/.claude/commands/new.md +331 -0
- package/framework/.claude/commands/qa.md +257 -0
- package/framework/.claude/hooks/framework-edit-gate.js +208 -0
- package/framework/.claude/hooks/lint-before-commit.sh.template +66 -0
- package/framework/.claude/settings.local.json.example +32 -0
- package/framework/.claude/skills/api-design-principles/SKILL.md +567 -0
- package/framework/.claude/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.claude/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.claude/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.claude/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.claude/skills/baldart-push/SKILL.md +222 -0
- package/framework/.claude/skills/bug/SKILL.md +200 -0
- package/framework/.claude/skills/bug/references/logging-patterns.md +174 -0
- package/framework/.claude/skills/capture/SKILL.md +125 -0
- package/framework/.claude/skills/capture/references/synthesis-template.md +42 -0
- package/framework/.claude/skills/context-primer/SKILL.md +189 -0
- package/framework/.claude/skills/copywriting/SKILL.md +273 -0
- package/framework/.claude/skills/copywriting/references/copy-frameworks.md +338 -0
- package/framework/.claude/skills/copywriting/references/natural-transitions.md +252 -0
- package/framework/.claude/skills/doc-writing-for-rag/SKILL.md +119 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/before-after-examples.md +291 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/compact-templates.md +183 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/frontmatter-minimal.md +112 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/line-count-targets.md +110 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/schemas-and-errors.md +129 -0
- package/framework/.claude/skills/find-skills/SKILL.md +133 -0
- package/framework/.claude/skills/frontend-design/LICENSE.txt +177 -0
- package/framework/.claude/skills/frontend-design/SKILL.md +84 -0
- package/framework/.claude/skills/gamification-design/SKILL.md +130 -0
- package/framework/.claude/skills/issue-review/SKILL.md +45 -0
- package/framework/.claude/skills/kie-ai/SKILL.md +262 -0
- package/framework/.claude/skills/kie-ai/references/models-catalog.md +272 -0
- package/framework/.claude/skills/kie-ai/scripts/kie_api.sh +209 -0
- package/framework/.claude/skills/kie-ai/scripts/remove_greenscreen.py +69 -0
- package/framework/.claude/skills/kie-ai/scripts/setup_api_key.sh +77 -0
- package/framework/.claude/skills/motion-design/LICENSE +21 -0
- package/framework/.claude/skills/motion-design/README.md +82 -0
- package/framework/.claude/skills/motion-design/SKILL.md +336 -0
- package/framework/.claude/skills/motion-design/director/choreography.md +93 -0
- package/framework/.claude/skills/motion-design/director/context-adaptation.md +83 -0
- package/framework/.claude/skills/motion-design/director/core-philosophy.md +53 -0
- package/framework/.claude/skills/motion-design/director/decision-framework.md +91 -0
- package/framework/.claude/skills/motion-design/director/disney-principles.md +102 -0
- package/framework/.claude/skills/motion-design/director/emotion-mapping.md +71 -0
- package/framework/.claude/skills/motion-design/director/motion-personality.md +89 -0
- package/framework/.claude/skills/motion-design/director/narrative-structure.md +62 -0
- package/framework/.claude/skills/motion-design/patterns/ambient-continuous.md +81 -0
- package/framework/.claude/skills/motion-design/patterns/entrance-exit.md +82 -0
- package/framework/.claude/skills/motion-design/patterns/multi-element.md +69 -0
- package/framework/.claude/skills/motion-design/patterns/state-feedback.md +96 -0
- package/framework/.claude/skills/motion-design/reference/property-selection.md +95 -0
- package/framework/.claude/skills/motion-design/reference/quality-checklist.md +67 -0
- package/framework/.claude/skills/motion-design/reference/timing-easing-tables.md +106 -0
- package/framework/.claude/skills/motion-design/reference/troubleshooting.md +73 -0
- package/framework/.claude/skills/new/SKILL.md +1687 -0
- package/framework/.claude/skills/playwright-skill/API_REFERENCE.md +652 -0
- package/framework/.claude/skills/playwright-skill/SKILL.md +157 -0
- package/framework/.claude/skills/playwright-skill/package.json +26 -0
- package/framework/.claude/skills/prd/SKILL.md +228 -0
- package/framework/.claude/skills/prd/assets/card-template.yml +232 -0
- package/framework/.claude/skills/prd/assets/epic-template.yml +190 -0
- package/framework/.claude/skills/prd/assets/prd-template.md +230 -0
- package/framework/.claude/skills/prd/assets/state-template.md +78 -0
- package/framework/.claude/skills/prd/references/api-perf-gate.md +152 -0
- package/framework/.claude/skills/prd/references/audit-phase.md +478 -0
- package/framework/.claude/skills/prd/references/backlog-phase.md +145 -0
- package/framework/.claude/skills/prd/references/discovery-phase.md +359 -0
- package/framework/.claude/skills/prd/references/impact-analysis.md +233 -0
- package/framework/.claude/skills/prd/references/prd-add-phase.md +214 -0
- package/framework/.claude/skills/prd/references/prd-writing-phase.md +145 -0
- package/framework/.claude/skills/prd/references/research-phase.md +216 -0
- package/framework/.claude/skills/prd/references/ui-design-phase.md +61 -0
- package/framework/.claude/skills/prd/references/validation-phase.md +72 -0
- package/framework/.claude/skills/prd-add/SKILL.md +222 -0
- package/framework/.claude/skills/prd-add/references/impact-analysis.md +233 -0
- package/framework/.claude/skills/remotion-best-practices/SKILL.md +48 -0
- package/framework/.claude/skills/remotion-best-practices/rules/3d.md +86 -0
- package/framework/.claude/skills/remotion-best-practices/rules/animations.md +29 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets.md +78 -0
- package/framework/.claude/skills/remotion-best-practices/rules/audio.md +169 -0
- package/framework/.claude/skills/remotion-best-practices/rules/calculate-metadata.md +104 -0
- package/framework/.claude/skills/remotion-best-practices/rules/can-decode.md +75 -0
- package/framework/.claude/skills/remotion-best-practices/rules/charts.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/compositions.md +141 -0
- package/framework/.claude/skills/remotion-best-practices/rules/display-captions.md +184 -0
- package/framework/.claude/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/framework/.claude/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-video-duration.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/gifs.md +141 -0
- package/framework/.claude/skills/remotion-best-practices/rules/images.md +130 -0
- package/framework/.claude/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
- package/framework/.claude/skills/remotion-best-practices/rules/light-leaks.md +73 -0
- package/framework/.claude/skills/remotion-best-practices/rules/lottie.md +67 -0
- package/framework/.claude/skills/remotion-best-practices/rules/maps.md +401 -0
- package/framework/.claude/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
- package/framework/.claude/skills/remotion-best-practices/rules/measuring-text.md +143 -0
- package/framework/.claude/skills/remotion-best-practices/rules/parameters.md +98 -0
- package/framework/.claude/skills/remotion-best-practices/rules/sequencing.md +118 -0
- package/framework/.claude/skills/remotion-best-practices/rules/subtitles.md +36 -0
- package/framework/.claude/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/framework/.claude/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/framework/.claude/skills/remotion-best-practices/rules/timing.md +179 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transitions.md +197 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
- package/framework/.claude/skills/remotion-best-practices/rules/trimming.md +52 -0
- package/framework/.claude/skills/remotion-best-practices/rules/videos.md +171 -0
- package/framework/.claude/skills/seo-audit/SKILL.md +394 -0
- package/framework/.claude/skills/seo-audit/references/aeo-geo-patterns.md +279 -0
- package/framework/.claude/skills/seo-audit/references/ai-writing-detection.md +190 -0
- package/framework/.claude/skills/simplify/SKILL.md +137 -0
- package/framework/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/framework/.claude/skills/skill-creator/SKILL.md +356 -0
- package/framework/.claude/skills/skill-creator/references/output-patterns.md +82 -0
- package/framework/.claude/skills/skill-creator/references/workflows.md +28 -0
- package/framework/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/framework/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/framework/.claude/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/framework/.claude/skills/ui-design/SKILL.md +199 -0
- package/framework/.claude/skills/ui-design/references/component-discovery.md +54 -0
- package/framework/.claude/skills/ui-design/references/evaluation.md +171 -0
- package/framework/.claude/skills/ui-design/references/generation.md +109 -0
- package/framework/.claude/skills/ui-design/references/inventory.md +59 -0
- package/framework/.claude/skills/webapp-testing/LICENSE.txt +202 -0
- package/framework/.claude/skills/webapp-testing/SKILL.md +123 -0
- package/framework/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
- package/framework/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/framework/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/framework/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
- package/framework/.claude/skills/worktree-manager/SKILL.md +680 -0
- package/framework/AGENTS.md +240 -0
- package/framework/agents/api-contracts.md +137 -0
- package/framework/agents/architecture.md +145 -0
- package/framework/agents/coding-standards.md +148 -0
- package/framework/agents/data-model.md +110 -0
- package/framework/agents/deployment-protocol.md +232 -0
- package/framework/agents/design-review.md +172 -0
- package/framework/agents/env-reference.md +171 -0
- package/framework/agents/github-issue-subagent.md +252 -0
- package/framework/agents/index.md +261 -0
- package/framework/agents/llm-wiki-methodology.md +216 -0
- package/framework/agents/maintenance-protocol.md +305 -0
- package/framework/agents/observability.md +162 -0
- package/framework/agents/performance.md +155 -0
- package/framework/agents/project-context.md +145 -0
- package/framework/agents/runbook.md +208 -0
- package/framework/agents/security.md +168 -0
- package/framework/agents/skills-mapping.md +286 -0
- package/framework/agents/testing.md +111 -0
- package/framework/agents/workflows.md +215 -0
- package/framework/docs/PROJECT-CONFIGURATION.md +336 -0
- package/framework/docs/references/brand-guidelines.md +170 -0
- package/framework/docs/references/ui-guidelines.template.md +182 -0
- package/framework/routines/code-review.routine.yml +46 -0
- package/framework/routines/doc-review.routine.yml +45 -0
- package/framework/routines/ds-drift.routine.yml +52 -0
- package/framework/routines/full-sweep.routine.yml +51 -0
- package/framework/routines/index.yml +70 -0
- package/framework/routines/skill-improve.routine.yml +50 -0
- package/framework/routines/wiki-review.routine.yml +45 -0
- package/framework/templates/baldart.config.template.yml +113 -0
- package/framework/templates/breaking-change-checklist.md +484 -0
- package/framework/templates/feature-card.template.yml +125 -0
- package/framework/templates/overlays/README.md +44 -0
- package/framework/templates/overlays/copywriting.fidelity-example.md +62 -0
- package/framework/templates/overlays/ui-design.fidelity-example.md +75 -0
- package/framework/templates/skill-project-context.snippet.md +19 -0
- package/framework/templates/spec.template.md +208 -0
- package/package.json +51 -0
- package/src/commands/add.js +229 -0
- package/src/commands/configure.js +385 -0
- package/src/commands/doctor.js +486 -0
- package/src/commands/migrate.js +185 -0
- package/src/commands/push.js +0 -0
- package/src/commands/routines.js +269 -0
- package/src/commands/status.js +130 -0
- package/src/commands/update.js +419 -0
- package/src/commands/version.js +88 -0
- package/src/utils/contamination.js +400 -0
- package/src/utils/git.js +181 -0
- package/src/utils/hooks.js +152 -0
- package/src/utils/routine-adapters/claude-code-cloud.js +78 -0
- package/src/utils/routine-adapters/cron.js +138 -0
- package/src/utils/routine-adapters/github-actions.js +141 -0
- package/src/utils/routine-adapters/index.js +21 -0
- package/src/utils/routines.js +166 -0
- package/src/utils/state.js +143 -0
- package/src/utils/symlinks.js +425 -0
- package/src/utils/ui.js +133 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: code-review
|
|
2
|
+
description: Nightly code review on commits from the last 24h — catches regressions and quality drift.
|
|
3
|
+
since_version: 2.1.0
|
|
4
|
+
|
|
5
|
+
schedule:
|
|
6
|
+
cron: "0 1 * * *" # 01:00 UTC daily
|
|
7
|
+
timezone: UTC
|
|
8
|
+
jitter_minutes: 0
|
|
9
|
+
cadence_label: nightly
|
|
10
|
+
|
|
11
|
+
agent: code-reviewer
|
|
12
|
+
|
|
13
|
+
prompt: |
|
|
14
|
+
Run the nightly code review:
|
|
15
|
+
|
|
16
|
+
1. Compute the diff for commits from the last 24h on the main / develop
|
|
17
|
+
branch.
|
|
18
|
+
2. Apply the agent's confidence-based filtering (HIGH/MED/LOW) and
|
|
19
|
+
"Never demote" anti-pattern cluster.
|
|
20
|
+
3. Spawn specialist auditors in parallel when the diff matches their
|
|
21
|
+
domain (security-reviewer for auth/secrets, api-perf-cost-auditor for
|
|
22
|
+
route handlers / DB queries / cron / heavy loops).
|
|
23
|
+
4. Pool findings using the shared Findings Schema and emit a consolidated
|
|
24
|
+
report under `docs/reports/{{YYYYMMDD}}-code-review.md`.
|
|
25
|
+
5. Apply trivial, verified fixes inline (small typos, formatting, missing
|
|
26
|
+
`.limit()` on bounded queries) and commit with prefix `[CODE-REVIEW]`.
|
|
27
|
+
Anything HIGH that requires design judgement is left as a finding for
|
|
28
|
+
the maintainer.
|
|
29
|
+
|
|
30
|
+
Scope is changed files only. Pre-existing code is not in scope unless
|
|
31
|
+
a change introduces a regression there.
|
|
32
|
+
|
|
33
|
+
output:
|
|
34
|
+
path: docs/reports/{{YYYYMMDD}}-code-review.md
|
|
35
|
+
commit:
|
|
36
|
+
enabled: true
|
|
37
|
+
prefix: "[CODE-REVIEW]"
|
|
38
|
+
branch: main
|
|
39
|
+
|
|
40
|
+
required_artifacts:
|
|
41
|
+
- .claude/agents/code-reviewer.md
|
|
42
|
+
|
|
43
|
+
backend_hints:
|
|
44
|
+
- claude-code-cloud
|
|
45
|
+
- github-actions
|
|
46
|
+
- cron
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: doc-review
|
|
2
|
+
description: Nightly documentation review — audits recent doc changes, flags SSOT drift, proposes fixes.
|
|
3
|
+
since_version: 2.1.0
|
|
4
|
+
|
|
5
|
+
schedule:
|
|
6
|
+
cron: "0 0 * * *" # 00:00 UTC daily
|
|
7
|
+
timezone: UTC
|
|
8
|
+
jitter_minutes: 0
|
|
9
|
+
cadence_label: nightly
|
|
10
|
+
|
|
11
|
+
agent: doc-reviewer
|
|
12
|
+
|
|
13
|
+
prompt: |
|
|
14
|
+
Run the nightly documentation review:
|
|
15
|
+
|
|
16
|
+
1. Diff the last 24h of commits and identify doc changes (`docs/**`,
|
|
17
|
+
`AGENTS.md`, `agents/**`, design-system files if present).
|
|
18
|
+
2. For each changed doc, verify it stays in sync with the code it
|
|
19
|
+
references. Flag drift as `DOC_DRIFT`.
|
|
20
|
+
3. For each source file change that landed without a corresponding doc
|
|
21
|
+
update, flag `DOC_GAP`.
|
|
22
|
+
4. If the project ships a design-system SSOT, run the standard DS drift
|
|
23
|
+
checks (INDEX coverage, per-component accuracy, animations
|
|
24
|
+
reconciliation, tokens reconciliation).
|
|
25
|
+
5. Emit a consolidated report under `docs/reports/{{YYYYMMDD}}-doc-review.md`
|
|
26
|
+
with a punch list of needed fixes. Apply trivial fixes inline and
|
|
27
|
+
commit with prefix `[DOC-REVIEW]`.
|
|
28
|
+
|
|
29
|
+
Stay strictly inside `docs/**`. Application code is out of scope.
|
|
30
|
+
|
|
31
|
+
output:
|
|
32
|
+
path: docs/reports/{{YYYYMMDD}}-doc-review.md
|
|
33
|
+
commit:
|
|
34
|
+
enabled: true
|
|
35
|
+
prefix: "[DOC-REVIEW]"
|
|
36
|
+
branch: main
|
|
37
|
+
|
|
38
|
+
required_artifacts:
|
|
39
|
+
- docs/
|
|
40
|
+
- .claude/agents/doc-reviewer.md
|
|
41
|
+
|
|
42
|
+
backend_hints:
|
|
43
|
+
- claude-code-cloud
|
|
44
|
+
- github-actions
|
|
45
|
+
- cron
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: ds-drift
|
|
2
|
+
description: Weekly design-system drift check — verifies INDEX, per-component docs, animations, tokens.
|
|
3
|
+
since_version: 2.1.0
|
|
4
|
+
|
|
5
|
+
schedule:
|
|
6
|
+
cron: "0 3 * * 1" # Monday 03:00 UTC
|
|
7
|
+
timezone: UTC
|
|
8
|
+
jitter_minutes: 0
|
|
9
|
+
cadence_label: weekly
|
|
10
|
+
|
|
11
|
+
agent: doc-reviewer
|
|
12
|
+
|
|
13
|
+
prompt: |
|
|
14
|
+
Run the weekly design-system drift check (only if `docs/design-system/`
|
|
15
|
+
exists in the project — exit cleanly if absent):
|
|
16
|
+
|
|
17
|
+
1. **INDEX coverage**: compare `docs/design-system/INDEX.md` component
|
|
18
|
+
index against the actual shared-component inventory. Flag
|
|
19
|
+
`DS_INDEX_DRIFT` for any mismatch.
|
|
20
|
+
2. **Per-component accuracy**: for each `docs/design-system/components/<Name>.md`,
|
|
21
|
+
verify it lines up with the source file (variants, props, exported
|
|
22
|
+
constants). Flag `DS_COMPONENT_STALE` for docs not re-verified in >7
|
|
23
|
+
days where the source has changed in git.
|
|
24
|
+
3. **Animations reconciliation**: `docs/design-system/patterns/animations.md`
|
|
25
|
+
must match keyframes in the project's global styles. Flag
|
|
26
|
+
`DS_ANIMATIONS_DRIFT`.
|
|
27
|
+
4. **Tokens reconciliation**: when tokens source files changed, verify
|
|
28
|
+
`docs/design-system/tokens-reference.md` is in sync and the relevant
|
|
29
|
+
CSS custom properties still exist. Flag `DS_TOKENS_DRIFT`.
|
|
30
|
+
5. Emit a consolidated report under
|
|
31
|
+
`docs/reports/{{YYYYMMDD}}-ds-drift.md`.
|
|
32
|
+
|
|
33
|
+
Apply trivial fixes inline (e.g. update an INDEX row to match the current
|
|
34
|
+
source). Anything that requires design judgement is left as a finding.
|
|
35
|
+
|
|
36
|
+
output:
|
|
37
|
+
path: docs/reports/{{YYYYMMDD}}-ds-drift.md
|
|
38
|
+
commit:
|
|
39
|
+
enabled: true
|
|
40
|
+
prefix: "[DS-DRIFT]"
|
|
41
|
+
branch: main
|
|
42
|
+
|
|
43
|
+
required_artifacts:
|
|
44
|
+
- docs/design-system/
|
|
45
|
+
- .claude/agents/doc-reviewer.md
|
|
46
|
+
|
|
47
|
+
optional: true # routine is silently skipped when artifacts missing
|
|
48
|
+
|
|
49
|
+
backend_hints:
|
|
50
|
+
- claude-code-cloud
|
|
51
|
+
- github-actions
|
|
52
|
+
- cron
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: full-sweep
|
|
2
|
+
description: Weekly full SSOT sweep — runs the project's audit suite and writes a consolidated drift report.
|
|
3
|
+
since_version: 2.1.0
|
|
4
|
+
|
|
5
|
+
schedule:
|
|
6
|
+
cron: "0 3 * * 0" # Sunday 03:00 UTC
|
|
7
|
+
timezone: UTC
|
|
8
|
+
jitter_minutes: 0
|
|
9
|
+
cadence_label: weekly
|
|
10
|
+
|
|
11
|
+
agent: doc-reviewer
|
|
12
|
+
|
|
13
|
+
prompt: |
|
|
14
|
+
Run the weekly full SSOT sweep:
|
|
15
|
+
|
|
16
|
+
1. Run the project's audit suite if it exists (typically
|
|
17
|
+
`npm run audit:full-sweep`, `npm run validate:frontmatter`,
|
|
18
|
+
`npm run validate:errors`, `npm run validate:perms`,
|
|
19
|
+
`npm run validate:env`, `npm run validate:imports`). Capture stdout/stderr
|
|
20
|
+
and exit codes for each.
|
|
21
|
+
2. Parse the validator outputs and group findings by category
|
|
22
|
+
(FRONTMATTER_DRIFT, ERRORS_DRIFT, PERMS_DRIFT, ENV_DRIFT, IMPORTS_DRIFT,
|
|
23
|
+
etc.).
|
|
24
|
+
3. For each finding, propose a fix and apply trivial ones inline. Anything
|
|
25
|
+
requiring design judgement is left as an item in the report's
|
|
26
|
+
"Manual review needed" section.
|
|
27
|
+
4. Emit a consolidated report under
|
|
28
|
+
`docs/reports/{{YYYYMMDD}}-full-sweep.md` with one section per
|
|
29
|
+
validator and a top-line PASS/FAIL summary.
|
|
30
|
+
5. Commit applied fixes with prefix `[FULL-SWEEP]`.
|
|
31
|
+
|
|
32
|
+
If no audit scripts are configured in the project's `package.json`, log
|
|
33
|
+
the missing scripts as informational notes and exit cleanly.
|
|
34
|
+
|
|
35
|
+
output:
|
|
36
|
+
path: docs/reports/{{YYYYMMDD}}-full-sweep.md
|
|
37
|
+
commit:
|
|
38
|
+
enabled: true
|
|
39
|
+
prefix: "[FULL-SWEEP]"
|
|
40
|
+
branch: main
|
|
41
|
+
|
|
42
|
+
required_artifacts:
|
|
43
|
+
- package.json
|
|
44
|
+
- .claude/agents/doc-reviewer.md
|
|
45
|
+
|
|
46
|
+
optional: true # only runs when audit scripts are present
|
|
47
|
+
|
|
48
|
+
backend_hints:
|
|
49
|
+
- claude-code-cloud
|
|
50
|
+
- github-actions
|
|
51
|
+
- cron
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# BALDART Routines Catalog
|
|
2
|
+
#
|
|
3
|
+
# Each routine is a declarative spec for a scheduled run of one of the
|
|
4
|
+
# framework's agents. The actual scheduling backend (Claude Code Cloud
|
|
5
|
+
# RemoteTrigger, GitHub Actions, cron, …) is chosen at install time via
|
|
6
|
+
# `npx baldart routines install <name>`.
|
|
7
|
+
#
|
|
8
|
+
# Routines are designed to make the framework's auto-learning and drift-
|
|
9
|
+
# detection loops actually run. Without these schedules, agents like
|
|
10
|
+
# wiki-curator or skill-improver are dormant.
|
|
11
|
+
#
|
|
12
|
+
# Add a new routine by dropping `<name>.routine.yml` in this directory and
|
|
13
|
+
# listing it under `routines:` below. The CLI reads this catalog as the
|
|
14
|
+
# source of truth.
|
|
15
|
+
|
|
16
|
+
version: 1
|
|
17
|
+
routines:
|
|
18
|
+
# Nightly cadence ---------------------------------------------------------
|
|
19
|
+
- name: doc-review
|
|
20
|
+
file: doc-review.routine.yml
|
|
21
|
+
cadence: nightly
|
|
22
|
+
since_version: 2.1.0
|
|
23
|
+
summary: |
|
|
24
|
+
Nightly documentation review — runs doc-reviewer to audit recent
|
|
25
|
+
doc changes, flag SSOT drift, and propose fixes.
|
|
26
|
+
|
|
27
|
+
- name: code-review
|
|
28
|
+
file: code-review.routine.yml
|
|
29
|
+
cadence: nightly
|
|
30
|
+
since_version: 2.1.0
|
|
31
|
+
summary: |
|
|
32
|
+
Nightly code review — runs code-reviewer on commits from the last
|
|
33
|
+
24h to catch regressions early.
|
|
34
|
+
|
|
35
|
+
- name: wiki-review
|
|
36
|
+
file: wiki-review.routine.yml
|
|
37
|
+
cadence: nightly
|
|
38
|
+
since_version: 2.1.0
|
|
39
|
+
summary: |
|
|
40
|
+
Nightly wiki review — drives the LLM-wiki auto-learning loop.
|
|
41
|
+
Surfaces synthesis candidates and validates anchors. Required for
|
|
42
|
+
the LLM Wiki Overlay methodology to actually run.
|
|
43
|
+
|
|
44
|
+
# Weekly cadence ----------------------------------------------------------
|
|
45
|
+
- name: skill-improve
|
|
46
|
+
file: skill-improve.routine.yml
|
|
47
|
+
cadence: weekly
|
|
48
|
+
since_version: 2.1.0
|
|
49
|
+
summary: |
|
|
50
|
+
Weekly skill / agent improvement — analyses accumulated review
|
|
51
|
+
findings and proposes refinements to .claude/skills/, .claude/agents/,
|
|
52
|
+
and AGENTS.md.
|
|
53
|
+
|
|
54
|
+
- name: ds-drift
|
|
55
|
+
file: ds-drift.routine.yml
|
|
56
|
+
cadence: weekly
|
|
57
|
+
since_version: 2.1.0
|
|
58
|
+
summary: |
|
|
59
|
+
Weekly design-system drift check — verifies INDEX, per-component
|
|
60
|
+
docs, animations, and tokens against the source. Optional (only
|
|
61
|
+
useful if the project ships a design-system SSOT).
|
|
62
|
+
|
|
63
|
+
- name: full-sweep
|
|
64
|
+
file: full-sweep.routine.yml
|
|
65
|
+
cadence: weekly
|
|
66
|
+
since_version: 2.1.0
|
|
67
|
+
summary: |
|
|
68
|
+
Weekly full SSOT sweep — runs the project's full audit suite
|
|
69
|
+
(frontmatter, errors, perms, env, imports, etc.) and writes a
|
|
70
|
+
consolidated drift report.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: skill-improve
|
|
2
|
+
description: Weekly skill / agent improvement — analyses accumulated review findings and proposes refinements.
|
|
3
|
+
since_version: 2.1.0
|
|
4
|
+
|
|
5
|
+
schedule:
|
|
6
|
+
cron: "0 2 * * 0" # Sunday 02:00 UTC
|
|
7
|
+
timezone: UTC
|
|
8
|
+
jitter_minutes: 0
|
|
9
|
+
cadence_label: weekly
|
|
10
|
+
|
|
11
|
+
agent: skill-improver
|
|
12
|
+
|
|
13
|
+
prompt: |
|
|
14
|
+
Run the weekly skill / agent improvement pass:
|
|
15
|
+
|
|
16
|
+
1. Read the last 7 days of `docs/reports/*-code-review.md` and
|
|
17
|
+
`docs/reports/*-doc-review.md` (plus any `docs/reports/*-qa.md` if
|
|
18
|
+
present). Identify recurring patterns in findings.
|
|
19
|
+
2. For each recurring pattern, propose a targeted improvement to:
|
|
20
|
+
- the relevant `.claude/skills/<name>/SKILL.md` (rule clarification,
|
|
21
|
+
new MUST/SHOULD, anti-pattern entry)
|
|
22
|
+
- the relevant `.claude/agents/<name>.md` (prompt tightening,
|
|
23
|
+
checklist update)
|
|
24
|
+
- `AGENTS.md` (new project-wide rule) or
|
|
25
|
+
`agents/coding-standards.md` (terminology, naming)
|
|
26
|
+
3. Apply changes inline and commit with prefix `[SKILL-IMPROVE]`. NEVER
|
|
27
|
+
modify application code in this routine — only `.claude/`, `agents/`,
|
|
28
|
+
`AGENTS.md`, `docs/`.
|
|
29
|
+
4. Emit a consolidated report under
|
|
30
|
+
`docs/reports/{{YYYYMMDD}}-skill-improve.md` listing every change with
|
|
31
|
+
evidence (which findings drove it) and a confidence score.
|
|
32
|
+
|
|
33
|
+
If no recurring pattern is found, write a short "no changes needed" report
|
|
34
|
+
and exit cleanly.
|
|
35
|
+
|
|
36
|
+
output:
|
|
37
|
+
path: docs/reports/{{YYYYMMDD}}-skill-improve.md
|
|
38
|
+
commit:
|
|
39
|
+
enabled: true
|
|
40
|
+
prefix: "[SKILL-IMPROVE]"
|
|
41
|
+
branch: main
|
|
42
|
+
|
|
43
|
+
required_artifacts:
|
|
44
|
+
- docs/reports/
|
|
45
|
+
- .claude/agents/skill-improver.md
|
|
46
|
+
|
|
47
|
+
backend_hints:
|
|
48
|
+
- claude-code-cloud
|
|
49
|
+
- github-actions
|
|
50
|
+
- cron
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: wiki-review
|
|
2
|
+
description: Nightly review of the derived LLM wiki overlay (docs/wiki/) — synthesis candidates, anchor validation, drift detection.
|
|
3
|
+
since_version: 2.1.0
|
|
4
|
+
|
|
5
|
+
schedule:
|
|
6
|
+
cron: "0 2 * * *" # 02:00 UTC daily
|
|
7
|
+
timezone: UTC
|
|
8
|
+
jitter_minutes: 0
|
|
9
|
+
cadence_label: nightly
|
|
10
|
+
|
|
11
|
+
agent: wiki-curator
|
|
12
|
+
|
|
13
|
+
prompt: |
|
|
14
|
+
Run the nightly wiki-review pass:
|
|
15
|
+
|
|
16
|
+
1. Scan ADRs and PRDs from the last 14 days. For each architectural pivot
|
|
17
|
+
(provider swap, schema change, auth change, API contract, multi-card
|
|
18
|
+
epic) propose a synthesis page candidate and append it to
|
|
19
|
+
`docs/wiki/log.md` with `entry_type: synthesis_candidate`.
|
|
20
|
+
2. Read `docs/wiki/log.md` for RAG queries with verdict=weak|empty
|
|
21
|
+
repeated ≥3 times. These are documentation gaps — propose a synthesis.
|
|
22
|
+
3. Validate anchor slugs across all wiki pages (internal and cross-file).
|
|
23
|
+
Flag `WIKI_ANCHOR_BROKEN` and fix in-place when possible.
|
|
24
|
+
4. Verify frontmatter discipline on every wiki page. Run the project's
|
|
25
|
+
frontmatter validator if it exists.
|
|
26
|
+
5. Emit a consolidated report under `docs/reports/{{YYYYMMDD}}-wiki-review.md`.
|
|
27
|
+
|
|
28
|
+
Do NOT create canonical truth in the wiki layer. SSOT always wins.
|
|
29
|
+
|
|
30
|
+
output:
|
|
31
|
+
path: docs/reports/{{YYYYMMDD}}-wiki-review.md
|
|
32
|
+
commit:
|
|
33
|
+
enabled: true
|
|
34
|
+
prefix: "[WIKI-REVIEW]"
|
|
35
|
+
branch: main
|
|
36
|
+
|
|
37
|
+
required_artifacts:
|
|
38
|
+
# Routine is silently skipped if these are missing.
|
|
39
|
+
- docs/wiki/
|
|
40
|
+
- .claude/agents/wiki-curator.md
|
|
41
|
+
|
|
42
|
+
backend_hints:
|
|
43
|
+
- claude-code-cloud # primary — uses Claude Code Cloud RemoteTrigger
|
|
44
|
+
- github-actions # alternative — workflow_dispatch + schedule
|
|
45
|
+
- cron # local — shell wrapper around `claude` CLI
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# BALDART Project Configuration
|
|
2
|
+
# ------------------------------
|
|
3
|
+
# This file is consumed by BALDART skills/agents instead of hard-coded paths.
|
|
4
|
+
# It is a CUSTOMIZABLE COPY: BALDART never overwrites it on `npx baldart update`.
|
|
5
|
+
#
|
|
6
|
+
# To (re)generate / merge: `npx baldart configure`
|
|
7
|
+
# Schema reference: framework/docs/PROJECT-CONFIGURATION.md
|
|
8
|
+
# Always commit this file. Skills will ask the user when keys are missing.
|
|
9
|
+
|
|
10
|
+
# Schema version. Do not edit manually. `baldart configure` migrates this.
|
|
11
|
+
version: 1
|
|
12
|
+
|
|
13
|
+
# ─── PATHS ───────────────────────────────────────────────────────────────
|
|
14
|
+
# Absolute repo paths to the project's canonical documents and source roots.
|
|
15
|
+
# Leave a key empty ("") or omit it if the concept does not exist in your
|
|
16
|
+
# project — skills gated by the corresponding `features.*` flag will skip
|
|
17
|
+
# the related BLOCKING read.
|
|
18
|
+
paths:
|
|
19
|
+
# Design-system entry point (e.g. docs/design-system/INDEX.md).
|
|
20
|
+
# Set features.has_design_system: true if this exists.
|
|
21
|
+
design_system: ""
|
|
22
|
+
|
|
23
|
+
# Canonical brand / UI guidelines doc (typography, colors, voice principles).
|
|
24
|
+
ui_guidelines: ""
|
|
25
|
+
|
|
26
|
+
# API reference index (set features.has_api_docs: true to enable).
|
|
27
|
+
api_index: ""
|
|
28
|
+
|
|
29
|
+
# Canonical schema and error-code references (used by doc-writing-for-rag).
|
|
30
|
+
api_schemas: ""
|
|
31
|
+
api_errors: ""
|
|
32
|
+
|
|
33
|
+
# Source roots — skills use these to discover/place components.
|
|
34
|
+
components_primitives: "" # e.g. src/components/ui
|
|
35
|
+
components_root: "" # e.g. src/components
|
|
36
|
+
global_styles: "" # e.g. src/app/globals.css
|
|
37
|
+
|
|
38
|
+
# Workflow infrastructure (set the matching `features.*` flag).
|
|
39
|
+
backlog_dir: "" # e.g. backlog
|
|
40
|
+
adrs_dir: "" # e.g. docs/decisions
|
|
41
|
+
prd_dir: "" # e.g. docs/prd
|
|
42
|
+
references_dir: "" # e.g. docs/references
|
|
43
|
+
wiki_dir: "" # e.g. docs/wiki (LLM-wiki overlay)
|
|
44
|
+
|
|
45
|
+
# Test infrastructure.
|
|
46
|
+
e2e_tests_dir: "" # e.g. tests/e2e
|
|
47
|
+
|
|
48
|
+
# ─── IDENTITY ────────────────────────────────────────────────────────────
|
|
49
|
+
# Brand and audience facts skills use when generating UI, copy, or motion.
|
|
50
|
+
identity:
|
|
51
|
+
# Public-facing product name.
|
|
52
|
+
brand_name: ""
|
|
53
|
+
|
|
54
|
+
# Visual/conceptual design direction (free-form, single line).
|
|
55
|
+
# Examples: "Neo-Brutalism", "Glassmorphism", "Minimalist", "Skeuomorphic",
|
|
56
|
+
# "Material 3", "" (no opinion — skills default to neutral choices).
|
|
57
|
+
design_philosophy: ""
|
|
58
|
+
|
|
59
|
+
# Primary UI language (BCP-47 tag). Drives copywriting register.
|
|
60
|
+
language: en
|
|
61
|
+
|
|
62
|
+
# Domain segments your product addresses (free-form labels).
|
|
63
|
+
# Examples: ["merchant","customer"], ["b2b","b2c"], ["internal","external"], [].
|
|
64
|
+
# Empty list = no segmentation; copy/design skills won't split tone by audience.
|
|
65
|
+
audience_segments: []
|
|
66
|
+
|
|
67
|
+
# ─── STACK ───────────────────────────────────────────────────────────────
|
|
68
|
+
# Technology choices that skills must respect when generating code.
|
|
69
|
+
stack:
|
|
70
|
+
charting:
|
|
71
|
+
# Libraries to use by default (in order of preference).
|
|
72
|
+
canonical: [] # e.g. ["recharts", "@nivo/heatmap"]
|
|
73
|
+
# Libraries skills must refuse to propose.
|
|
74
|
+
forbidden: [] # e.g. ["chart.js", "echarts", "victory"]
|
|
75
|
+
# Optional: path to project-specific chart wrappers
|
|
76
|
+
# (skills will propose these over raw library usage).
|
|
77
|
+
wrappers_root: "" # e.g. src/components/charts
|
|
78
|
+
|
|
79
|
+
animation:
|
|
80
|
+
# Libraries to use for motion (in order of preference).
|
|
81
|
+
canonical: [] # e.g. ["framer-motion", "lottie-react"]
|
|
82
|
+
forbidden: []
|
|
83
|
+
|
|
84
|
+
testing:
|
|
85
|
+
# E2E framework — drives playwright-skill behaviour.
|
|
86
|
+
e2e: "" # e.g. "playwright" | "cypress" | ""
|
|
87
|
+
|
|
88
|
+
# ─── FEATURES ────────────────────────────────────────────────────────────
|
|
89
|
+
# Explicit booleans. ALL keys must be present (true | false) once `baldart
|
|
90
|
+
# configure` has run. An absent flag means the user hasn't been asked yet —
|
|
91
|
+
# skills will prompt and persist the answer. Never assume `false` from absence.
|
|
92
|
+
features:
|
|
93
|
+
# The project has a documented design system rooted at paths.design_system.
|
|
94
|
+
# Skills like ui-design treat its INDEX/tokens as BLOCKING when true.
|
|
95
|
+
has_design_system: false
|
|
96
|
+
|
|
97
|
+
# Multi-tenant theming (e.g. per-merchant accent overrides).
|
|
98
|
+
multi_tenant_theming: false
|
|
99
|
+
|
|
100
|
+
# Canonical API docs at paths.api_index — gates doc-writing-for-rag flows.
|
|
101
|
+
has_api_docs: false
|
|
102
|
+
|
|
103
|
+
# Backlog-card driven workflow (paths.backlog_dir + AGENTS.md card protocol).
|
|
104
|
+
has_backlog: false
|
|
105
|
+
|
|
106
|
+
# ADR workflow (paths.adrs_dir + ADR-YYYYMMDD-* convention).
|
|
107
|
+
has_adrs: false
|
|
108
|
+
|
|
109
|
+
# PRD workflow (paths.prd_dir + /prd skill produces specs here).
|
|
110
|
+
has_prd_workflow: false
|
|
111
|
+
|
|
112
|
+
# LLM-wiki overlay (paths.wiki_dir + capture/wiki-curator loop).
|
|
113
|
+
has_wiki_overlay: false
|