Skip to content

Comments

Add ContractKit plugin for Foundry smart contract development#270

Open
HCS412 wants to merge 4 commits intoanthropics:mainfrom
HCS412:add-contractkit-plugin
Open

Add ContractKit plugin for Foundry smart contract development#270
HCS412 wants to merge 4 commits intoanthropics:mainfrom
HCS412:add-contractkit-plugin

Conversation

@HCS412
Copy link

@HCS412 HCS412 commented Jan 22, 2026

Summary

ContractKit is a Claude Code plugin for generating complete Foundry smart contract projects from safe templates.

Features

  • 4 Blueprint Templates: ERC20, ERC721, Escrow, Vault
  • 8 Skills/Commands:
    • /contractkit:new - Scaffold new projects from templates
    • /contractkit:test - Run Foundry test suites
    • /contractkit:local - Start local Anvil node
    • /contractkit:deploy - Deploy contracts to networks
    • /contractkit:call - Interact with deployed contracts
    • /contractkit:status - Check project and network status
    • /contractkit:explain - Explain contract code
    • /contractkit:audit-lite - Quick security review
  • Security-First Design: OpenZeppelin-based implementations, threat models, security documentation
  • Complete Test Suites: Comprehensive Foundry tests for each template

Repository

https://github.com/HCS412/contractkit

Changes

  • Added plugins/contractkit/ directory with complete plugin
  • Added entry to .claude-plugin/marketplace.json

Testing

  • All templates compile with forge build
  • All tests pass with forge test
  • Skills tested manually with Claude Code

🤖 Generated with Claude Code

ContractKit is a Claude Code plugin for generating complete smart contract
projects from safe Foundry templates. Features include:

- 4 blueprint templates: ERC20, ERC721, Escrow, Vault
- 8 skills: /new, /test, /local, /deploy, /call, /status, /explain, /audit-lite
- Complete test suites and deployment scripts
- Security documentation and threat models
- OpenZeppelin-based implementations

Repository: https://github.com/HCS412/contractkit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin here.

HCS412 and others added 2 commits January 22, 2026 09:51
- Update Solidity version to ^0.8.24 for OpenZeppelin 5.x compatibility
- Add ERC721Receiver interface to NFT test
- Fix forge fmt formatting issues
- Fix Escrow test (add vm.deal for payee)
- Fix Vault test line length formatting
- All templates now compile and pass tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Third-party plugins belong in /external_plugins, not /plugins
(which is reserved for Anthropic-maintained plugins).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@HCS412
Copy link
Author

HCS412 commented Jan 22, 2026

Update: Moved ContractKit from /plugins/external_plugins per repo conventions for third-party/community plugins. No content changes—pure rename to align with repository structure.

Security model:

  • Keys read only from local env / Foundry config
  • Nothing sent externally
  • /contractkit:audit-lite is not an audit (explicitly disclaimed)
  • No mainnet deploy by design (local + Sepolia only)

Template validation:
Templates are deterministic Foundry projects validated via tools/validate_templates.sh in the upstream repo — runs forge fmt --check + forge test for all 4 templates.

Security model prominently displayed:
- Key handling (local only, no transmission)
- Deployment scope (local + Sepolia, no mainnet)
- Audit-lite disclaimer

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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