Skip to content

chore: add setup:claude command to bootstrap Claude Code config#131

Open
Phanco wants to merge 1 commit intomainfrom
feature/pro-251-chore-add-claude-command-to-generate-skills-in-the-repo
Open

chore: add setup:claude command to bootstrap Claude Code config#131
Phanco wants to merge 1 commit intomainfrom
feature/pro-251-chore-add-claude-command-to-generate-skills-in-the-repo

Conversation

@Phanco
Copy link
Copy Markdown
Contributor

@Phanco Phanco commented Apr 30, 2026

Summary

  • Adds opt-in npm run setup:claude that syncs a tracked claude-setup/ template into a local (gitignored) .claude/, deep-merging settings.json on re-runs.
  • Seeds claude-setup/settings.json with marketplace + plugin config (zama-developer@zama-marketplace, typescript-lsp@claude-plugins-official, building-secure-contracts@trailofbits) plus repo-tuned npm/Hardhat permission allowlist.
  • Empty claude-setup/skills/ and claude-setup/commands/ ready for shared skills/commands without enforcing them on developers.

Closes PRO-251.

Test plan

  • Run npm run setup:claude on a fresh checkout — .claude/ is created with the synced settings and plugins.
  • Run again with an existing .claude/settings.json — verify deep merge (template wins on conflicts, arrays unioned).
  • Confirm Claude Code picks up building-secure-contracts skills.

🤖 Generated with Claude Code

Adds an opt-in `npm run setup:claude` script that syncs a tracked
`claude-setup/` template into a local `.claude/` directory, then registers
the `zama-marketplace` and `trailofbits` plugin marketplaces and installs
`zama-developer` and `building-secure-contracts`. Lets developers pick up
shared skills and commands without enforcing them across the team.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Phanco Phanco requested review from a team and mortendahl as code owners April 30, 2026 11:03
@cla-bot cla-bot Bot added the cla-signed label Apr 30, 2026
@gasp
Copy link
Copy Markdown
Contributor

gasp commented Apr 30, 2026

why specifically "claude" and not pnpm setup:agents to be agent-agnostic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants