contract

Deploy and interact with Clarity smart contracts on the Stacks blockchain via CLI.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Jay0xx/forge0btc-news-agent --skill contract-jay0xx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract
Source: https://github.com/Jay0xx/forge0btc-news-agent/tree/main/aibtcdev-skills/contract
Command: npx skills add https://github.com/Jay0xx/forge0btc-news-agent --skill contract-jay0xx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploy and manage Clarity smart contracts with a CLI, reducing manual steps and errors when deploying, calling, and reading on the Stacks blockchain.

Core Features & Use Cases

  • Deploy from a .clar source file to a live contract.
  • Call public functions with post-conditions to guard token transfers.
  • Read-only function calls without requiring a wallet; view results locally.

Quick Start

Provide the path to your .clar source file and a contract name, then run bun run contract/contract.ts deploy to deploy the contract.

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 to the Stacks blockchain?

Deploy a Clarity smart contract by providing the path to your .clar source file and a contract name, then running the deployment command to publish it as a live contract on the Stacks blockchain.

Can I read Clarity contract state without connecting a wallet?

You can read Clarity contract state without a wallet by making read-only function calls locally. This allows you to view contract results directly without requiring wallet authentication or broadcasting transactions.

How do I add post-conditions to a Clarity contract call?

Add post-conditions to a Clarity contract call by configuring them before executing the public function interaction. Post-conditions guard token transfers by enforcing specific constraints on the transaction outcome.

What information do I get back after deploying a Clarity contract?

After deploying a Clarity contract, you receive structured outputs including the transaction ID, contract ID, and an explorer URL. These outputs allow you to track the deployment and verify the contract on the Stacks explorer.

Do I need a Stacks wallet to call public functions on a Clarity contract?

Yes, you need a Stacks wallet to call public functions on a Clarity contract. The deployment and interaction process enforces wallet requirements and runs pre-checks before allowing you to modify contract state.