Skip to content

Add CLAUDE.md and a SessionStart hook for Claude Code on the web - #3

Merged
Leo-Y-Zhang merged 1 commit into
mainfrom
claude/claude-code-setup
Sep 14, 2026
Merged

Leo-Y-Zhang merged 1 commit into
mainfrom
claude/claude-code-setup

Conversation

@Leo-Y-Zhang

Copy link
Copy Markdown
Owner

Replaces #2 (same branch and commit; reopened as ready-for-review because the draft-to-ready call was rate-limited).

What

  • CLAUDE.md: repo purpose, layout, the exact install, lint and test commands proven to work in a fresh Linux container during the 2026-09-13 portfolio audit, and the unit versus end-to-end split (the e2e suite needs a Playwright browser revision the audit container did not have).
  • .claude/hooks/session-start.sh: in web sessions only, runs npm install and exports the Playwright browser path variables, idempotently.
  • .claude/settings.json: registers the hook.

Validation

In a scratch copy: hook ran clean, eslint src/core/scoring.ts clean, vitest run tests/unit/scoring.test.ts 8 passed. CI is green on this head. Details: audit/proposals/Understudy/VALIDATION.md in Leo-Y-Zhang/Blank#1.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DjMRWhXjCZMVopSJLNAt5x


Generated by Claude Code

CLAUDE.md records the repo layout and the exact install, lint and test
commands that were proven to work in a fresh Linux container during the
2026-09-13 portfolio audit. The SessionStart hook installs dependencies
only in web sessions (CLAUDE_CODE_REMOTE=true), synchronously and
idempotently, so every future web session starts ready to run tests.
Validated in a scratch copy: hook, one lint command and one test
(see the audit's VALIDATION.md for this repo).
@Leo-Y-Zhang
Leo-Y-Zhang merged commit 9540bb0 into main Sep 14, 2026
11 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.

1 participant