contract

Deploy, call, and read Clarity smart contracts on Stacks via CLI.

9|43|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/aibtcdev/skills --skill contract-aibtcdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract
Source: https://github.com/aibtcdev/skills/tree/main/contract
Command: npx skills add https://github.com/aibtcdev/skills --skill contract-aibtcdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines deployment and interaction of Clarity smart contracts on the Stacks blockchain, reducing boilerplate and manual steps.

Core Features & Use Cases

  • Deploy new Clarity contracts from .clar source files.
  • Call public contract functions with optional post-conditions to guard token transfers.
  • Perform read-only queries to inspect on-chain state with optional sender context.

Quick Start

Run the contract CLI with the deploy, call, or read subcommands to deploy, call, or read from contracts on Stacks.

Frequently Asked Questions about contract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Clarity smart contract on the Stacks blockchain?

To deploy a Clarity smart contract on the Stacks blockchain, you run the contract CLI with the deploy subcommand, providing your .clar source file. This automates the deployment process, reducing manual boilerplate and handling wallet requirements.

Can I call public Clarity contract functions with post-conditions on Stacks?

Yes, you can call public Clarity contract functions with optional post-conditions on Stacks. The Skill applies post-conditions to guard token transfers during write operations, ensuring that the contract execution meets your specified constraints before finalizing.

How do I perform a read-only query to inspect Stacks contract state?

You perform a read-only query to inspect Stacks contract state by using the read subcommand. This integrates with the Hiro API to execute read-only operations, allowing you to query on-chain state with an optional sender context.

What is the best way to automate Clarity contract testing and interaction?

Automating Clarity contract testing and interaction is best handled by using a CLI that parses commands and validates inputs for deploy, call, and read operations. This approach streamlines workflows by handling error management and integrating with the Hiro API for write and read-only operations.

Do I need a specific wallet setup to deploy and interact with Clarity contracts?

Yes, deploying and interacting with Clarity contracts requires wallet setup to authorize write operations. The Skill manages wallet requirements for deployment and public function calls, while read-only queries via the Hiro API can often be performed without a wallet.