docs(examples): worked TS + Solidity/Foundry adapter example (#6) - #28
Merged
Conversation
Adds examples/ with a reference gates.json + CLAUDE.md + walkthrough for a pnpm-workspace + Foundry monorepo — the mixed-stack case the template shipped no concrete example for. Covers the four decisions a JS-only example doesn't surface: - gates that span two toolchains (pnpm && (cd contracts && forge ...)), with the subshell + && rationale; - a module map mixing packages/* (TS) and contracts/ (Foundry), and the generated-ABI boundary rule (artifact, not a cross-module edit); - mixed-stack test_affected (pnpm --filter ...[origin/main] + full forge test, no native since-base) with the worktree fetch caveat; - artifacts to gitignore vs track (out/cache/dist ignored; ABI/foundry.toml/lockfiles). examples-module slice of #6; single new dir, no overlap with other modules. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011HosUeuSvhetARboEfDW6K
robercano
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an
examples/directory with a worked, sanitized adapter example for a mixed TypeScript (pnpm workspace) + Solidity (Foundry) monorepo — the non-JS / multi-toolchain case the template shipped no concrete reference for.Files (all new, under
examples/):examples/README.md— index of worked examples.examples/ts-solidity-foundry/gates.json— the reference adapter.examples/ts-solidity-foundry/CLAUDE.md— worked project context.examples/ts-solidity-foundry/README.md— walkthrough of the four mixed-stack decisions.The decisions it captures (from the issue)
pnpm -r build && (cd contracts && forge build); the&&short-circuit + subshell(cd contracts && …)rationale.packages/*(TS) andcontracts/(Foundry) — each a non-overlapping worker boundary, plus the generated-ABI rule (build artifact, not a cross-module edit; cross-cutting features get re-scoped, not reached across).test_affected—pnpm --filter "...[origin/main]"+ fullforge test(Foundry has no native since-base filter), with the worktreegit fetch origin maincaveat.out//cache//dist/ignored; ABI/foundry.toml/lockfiles tracked; never.env.Scope
Examples-module slice of #6 (adapter
.claude/self/gates.json, moduleexamples). Single new dir, zero overlap with other modules.Gates
GATES_FILE=.claude/self/gates.jsonbuild + lint + test all green; the examplegates.jsonis valid JSON and matches the shipped.claude/gates.jsonadapter shape.Review
Reviewer lenses per self-adapter (correctness, tests), consensus=all: both approved (high confidence). No blocking findings. Non-blocking follow-up noted for the harness/CI backlog (overlaps #25): extend
.claude/self/checks.shto lintexamples/**/gates.jsonso example adapters are gate-covered.Closes #6.
🤖 Generated with Claude Code