clarity-patterns

List and retrieve reusable Clarity patterns and templates for Stacks contracts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This library provides a centralized repository of reusable Clarity patterns and templates to accelerate on-chain contract development on Stacks.

Core Features & Use Cases

  • Pattern catalog: a curated set of reusable Clarity code patterns for common contract design tasks.
  • Templates and references: ready-to-use contract templates and design references to jump-start projects.
  • Documentation-driven: frontmatter-driven entry points and colocated references to guide development and audits.

Quick Start

List available patterns with list, then fetch a specific pattern with get or pull a complete template with template.

Frequently Asked Questions about clarity-patterns

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

FAQPage Schema
How do I find reusable Clarity patterns for Stacks smart contracts?

Clarity patterns provide reusable code templates for common contract design tasks on Stacks. They package frontmatter-driven entries with colocated references to guide software engineers and auditors through building and evaluating smart contracts.

Can I pull a complete contract template for Stacks development?

You can pull a complete contract template for Stacks development using the template command. This retrieves ready-to-use contract structures from the centralized library to jump-start on-chain project creation.

What is the best way to reference Clarity contract templates during a security audit?

The best way to reference Clarity contract templates during an audit is to use the get command to fetch specific patterns. This provides standardized reference materials to evaluate contract implementations against established design practices.

Does this Clarity patterns library work for both building and evaluating contracts?

Yes, this Clarity patterns library works for both building and evaluating contracts. It is specifically designed for software engineers and auditors to quickly reference patterns, access templates, and review reference materials during development or security evaluations.

How do I discover specific code patterns for Stacks contract design tasks?

To discover specific code patterns for Stacks contract design tasks, execute the list subcommand to view all available entries. Each entry uses a frontmatter-driven structure containing names and descriptions for easy identification.

When do I need a centralized library of Clarity code patterns?

You need a centralized library of Clarity code patterns when you want to accelerate on-chain contract development on Stacks through code reuse. It provides standardized templates and references to ensure consistency across multiple contract projects.