clarity-check

Validates Clarity smart contracts for syntax, deprecated keywords, and sender issues.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pre-deployment validation for Clarity smart contracts to catch syntax errors, deprecated patterns, and incorrect sender checks before deployment.

Core Features & Use Cases

  • Automated syntax validation: ensures code compiles with clarity-check tooling.
  • Deprecation detection: flags deprecated keywords like block-height and suggests modern equivalents.
  • Sender & error handling review: analyzes token and contract interactions to prevent insecure patterns.
  • Pre-deployment checklist generation: provides a structured set of automated and manual items for deployment gates.
  • Use Case: A team validates a new Clarity contract before pushing to testnet to catch issues early.

Quick Start

Run the clarity-check skill with the validate subcommand against your contract file.

Frequently Asked Questions about clarity-check

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

FAQPage Schema
How do I validate Clarity smart contracts before deployment?

To validate Clarity smart contracts before deployment, run automated syntax checks, deprecated keyword detection, and sender analysis on your contract files. This process catches errors and insecure patterns early across development, testnet, and mainnet workflows.

What does a pre-deployment Clarity check cover for testnet and mainnet workflows?

A pre-deployment Clarity check covers static analysis including syntax validation, deprecation detection, and sender analysis. It generates structured deployment checklists with automated and manual items to ensure reliable, auditable deployment gates for testnet and mainnet environments.

Can I detect deprecated keywords like block-height in Clarity contracts?

Yes, you can detect deprecated keywords like block-height in Clarity contracts using automated deprecation detection. The validation process flags deprecated patterns and suggests modern equivalents to ensure your smart contract code remains current and secure before deployment.

How does sender analysis prevent insecure patterns in Clarity contracts?

Sender analysis prevents insecure patterns in Clarity contracts by analyzing token and contract interactions to identify incorrect sender checks. This static analysis catches vulnerabilities in contract logic before deployment, ensuring secure interactions across development, testnet, and mainnet environments.

What is the best way to generate a pre-deployment checklist for Clarity smart contracts?

The best way to generate a pre-deployment checklist for Clarity smart contracts is running an automated validation skill. It produces a structured set of automated and manual items based on syntax checks, deprecation detection, and sender analysis to support reliable deployment gates.