Skip to content

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

Closed
Leo-Y-Zhang wants to merge 1 commit into
mainfrom
claude/claude-code-setup
Closed

Leo-Y-Zhang wants to merge 1 commit into
mainfrom
claude/claude-code-setup

Conversation

@Leo-Y-Zhang

Copy link
Copy Markdown
Owner

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. 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).

Copy link
Copy Markdown
Owner Author

Closed in favour of #3, the same branch and commit reopened as ready-for-review (the draft-to-ready call was rate-limited); #3 is merged.


Generated by Claude Code

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