.png)
AI-assisted development is transforming how developers write code, and now Clarity smart contract development is part of that story. Today we're open sourcing the Clarity Plugin for Claude Code, giving developers a seamless way to build, test, and iterate on Stacks smart contracts with AI right from their terminal.
The Clarity Plugin connects Claude Code (Anthropic's agentic coding tool) directly to the Clarity development toolchain. Once installed, Claude Code gains awareness of the Clarinet CLI and access to the Clarity Language Server Protocol (LSP), meaning it can write, check, and reason about Clarity contracts with the same context a human developer would have.
Getting started takes two commands:
/plugin marketplace add stx-labs/claude-marketplace
/plugin install clarity-plugin@stx-labs
That's it. Claude Code is now ready to help you scaffold projects, write contracts, run checks, and work through the entire Clarity development workflow.
There's a temptation to pack AI plugins with exhaustive documentation, tutorials, and hand holding. We took a different approach. The Clarity Plugin is intentionally lightweight: it gives Claude Code just enough context to discover and use the Clarinet CLI effectively, rather than trying to replace our documentation.
The philosophy here is simple: our developer tools should be easy to use and self documenting. A well designed CLI with clear help output (clarinet --help) should be all a capable AI agent needs. The plugin points Claude Code in the right direction; the tools themselves do the heavy lifting.
This matters because it keeps the focus where it belongs: on making Clarinet and Clarity better for everyone, not just for AI agents.
We're already working on measuring how effectively Claude Code can build real Clarity projects end to end, from contract scaffolding to a working protocol. Early experiments are promising, and we plan to share those results as we refine the plugin and our toolchain based on what we learn.
We also see the STX Labs Claude Marketplace as a home for more plugins over time as the ecosystem grows.
Both repositories are open source under the MIT license:
Install the plugin, point Claude Code at a Clarity project, and see what happens. We'd love to hear what you build.
A note on security: Smart contracts deployed to the blockchain operate in an adversarial environment. Any code, whether written by a human or with AI assistance, should be thoroughly reviewed and audited before deployment. Stacks Labs takes no responsibility for code produced using these plugins.
Get important updates about Stacks technology, projects, events, and more to your inbox.