Skip to content

docs: minimal gotchas-only CLAUDE.md (new, 23 lines) - #201

Merged
unforced merged 1 commit into
mainfrom
ag-claudemd-slim
Jul 24, 2026
Merged

docs: minimal gotchas-only CLAUDE.md (new, 23 lines)#201
unforced merged 1 commit into
mainfrom
ag-claudemd-slim

Conversation

@unforced

Copy link
Copy Markdown
Contributor

Context-refit slice: a shipped, keep-compatible L2 module had no CLAUDE.md. This adds a minimal one per the workspace context conventions (docs/process/context.md: purpose + gotchas only, nothing derivable, no fast-changing facts).

Purpose block (3 lines): UI host on :1946 behind the hub, bundled Notes, surface SDK, git-push build-and-serve — with the keep-compatible flag on surface-client/surface-render (real npm users).

Three gotchas, each verified against the code:

  1. notes-ui base-path shape — default build emits relative asset URLs (base: "") so one dist/ serves at any mount via runtime detectMountBase(); root-origin standalone deploys must build VITE_BASE_PATH=/ or deep routes (/oauth/callback) 404 their assets. Verified in packages/notes-ui/vite.config.ts (the 2026-05-23/05-27 comment blocks); the same convention is what cloud's build-spa.sh invokes with VITE_BASE_PATH="/" for its root-hosted SPA.
  2. Tag-prefix publish flow + the concrete-semver rule — one npm package per tag prefix, and sibling deps must never be workspace:*/link: (leaked manifests broke installs twice on 2026-05-22); surface-client publishes before dependents. Home stays RELEASING.md — CLAUDE.md links it and carries only the trap.
  3. Runner split — notes-ui + surface-render are vitest ("test": "vitest run" in both package.jsons), the rest bun test; the root bun run test/typecheck scripts are the gate, bare bun test is not.

Candidates I checked and left out: nothing about the git-transport surface beyond the purpose line (README covers it; no verified trap), and no restated admin-SPA/bundling detail (RELEASING.md owns it).

Docs-only; no version bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XLZtmuSs1RirWGMGyCB1QB

A shipped keep-compatible module had no CLAUDE.md. Per the workspace
context conventions (docs/process/context.md): purpose + three verified
traps only — the notes-ui VITE_BASE_PATH / relative-URL mount shape
(vite.config.ts), the tag-prefix publish flow with the concrete-semver
sibling-dep rule (RELEASING.md), and the vitest/bun-test runner split.
Nothing derivable from the repo is restated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XLZtmuSs1RirWGMGyCB1QB
@unforced
unforced merged commit d4bed87 into main Jul 24, 2026
1 check passed
@unforced
unforced deleted the ag-claudemd-slim branch July 24, 2026 19:13
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.

1 participant