Skip to content

docs: add-block skill, extend add-component, root CLAUDE.md - #10

Merged
codewizdave merged 1 commit into
mainfrom
chore/process-docs
Jul 30, 2026
Merged

docs: add-block skill, extend add-component, root CLAUDE.md#10
codewizdave merged 1 commit into
mainfrom
chore/process-docs

Conversation

@martyy-code

Copy link
Copy Markdown
Contributor

Summary

Three process docs from lessons paid in this session's catalog expansion (3→8 components + 1 block).

What's new

1. .claude/skills/add-block/SKILL.md — parallel to add-component for ds-block-* items. Five-surface pattern (showcase tree, consumer tree, registry.json, audit drift, aggregator) instead of four. Captures:

  • type: registry:block (not registry:ui)
  • registryDependencies[] for cross-item refs
  • target uses @/components/ prefix, not @ui/
  • BlockEntry requires Demo export (otherwise preview tab shows the no-props default rendering)
  • rootDir requirement in packages/registry/tsconfig.json when a block does self-references via @workspace/registry/components/*
  • The two block pages that render blocks directly must use <item.Demo /> / <block.Demo />, not the direct Block

2. .claude/skills/add-component/SKILL.md (extended) — two new Common pitfalls:

  • New npm peer dep in registry.json dependencies[] requires updating the hardcoded install list in apps/web/scripts/contract-test.mjs. Cross-references feedback_registry_deps_coupling.md.
  • For compositions of multiple ds-* items, use add-block skill instead of add-component.

3. CLAUDE.md (repo root) — concise reference for conventions that don't fit in AGENTS.md (which is auto-generated by Next.js):

  • Branch workflow: main is protected, always work on a feature branch + PR
  • Commit messages: use heredoc /tmp/commit-msg.txt because bash interprets backticks as command substitution
  • Don't push without explicit confirmation
  • Build pipeline order (registry package → build-sources → build-registry → next build)
  • Validation commands (drift, contract-test, tsc, build)
  • Index of skills and memories
  • Index of plan docs

🤖 Generated with Claude Code

Process docs formalized from lessons paid during the 3->8 components
expansion and the first block (ds-block-empty-state).

1. .claude/skills/add-block/SKILL.md (new)
   Parallel to add-component, for ds-block-* items. Five-surface
   pattern (showcase tree, consumer tree, registry.json, audit drift,
   aggregator) instead of four. Captures:
   - type: registry:block (not registry:ui)
   - registryDependencies[] for cross-item refs
   - target uses @/components/ prefix, not @ui/
   - BlockEntry requires Demo export (otherwise preview tab shows
     the no-props default rendering)
   - rootDir requirement in packages/registry/tsconfig.json when a
     block does self-references via @workspace/registry/components/*
   - The two block pages that render blocks directly ([category_id]
     and [category_id]/[block_id]) must use <item.Demo /> /
     <block.Demo />, not the direct Block

2. .claude/skills/add-component/SKILL.md (extended)
   Two new Common pitfalls:
   - New npm peer dep in registry.json dependencies[] requires
     updating the hardcoded install list in
     apps/web/scripts/contract-test.mjs. Cross-references
     feedback_registry_deps_coupling.md.
   - For compositions of multiple ds-* items, use add-block skill
     instead of add-component. The two have different aggregator
     entry shapes (ComponentEntry vs BlockEntry).

3. CLAUDE.md (new, repo root)
   Concise reference for the project conventions that don't fit in
   AGENTS.md (which is auto-generated by Next.js with just the
   version warning):
   - Branch workflow: main is protected, always work on a feature
     branch + PR
   - Commit messages: use heredoc /tmp/commit-msg.txt because bash
     interprets backticks as command substitution (paths like @ui/,
     @components/ get silently broken)
   - Don't push without explicit confirmation
   - Build pipeline order (registry package -> build-sources ->
     build-registry -> next build)
   - Validation commands (drift, contract-test, tsc, build)
   - Index of skills and memories
   - Index of plan docs

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ui-web Ready Ready Preview Jul 30, 2026 8:15am

@codewizdave
codewizdave merged commit 6fbc85c into main Jul 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants