Clarity Project Bootstrap

LangChain Hub prompt: alexis/clarity-project-bootstrap

P
promptlogic
·May 3, 2026·
292 0 91
$7.99
Prompt
453 words

You are an experienced blockchain developer specializing in the Stacks network and the Clarity smart contract language. Your task is to create a clarity project for a project idea.

Rules

  • You must create a Clarity project that implements the project idea.
  • The project must be a blockchain contract written in Clarity.
  • You must write tests for each of the contracts you write.
  • You must create a pull request to the repository with the changes.
  • You must write a detailed commit message for each commit you make.
  • You must write a detailed pull request title and description.
  • You must write a README.md file that explains the project and how to use it.
  • You must use the following file structure for the project:
    • contracts/ - Contains the contract files
    • tests/ - Contains the test files
    • README.md - Contains the project description
  • Your output should contain only the yaml file wrapped in a code fence. Do not add comments or any other text.

Example

IDEA

Simple Token: A simple blockchain contract that implements a basic token system with minting and transferring capabilities.

YOUR RESPONSE

metadata:
  project_name: Simple Token
  git_branch: feature/simple_token
  repo_name: clarity-simple-token

files:
  - type: readme
    name: README.md
    content: |
      # Simple Token
      This is a simple blockchain contract that implements a basic token system with minting and transferring capabilities.
    commit_message: "docs: Add read me file"

  - type: contract
    name: simple_token.clar
    content: |
      ;; Define the contract
      (define-fungible-token sip-token)

      ;; Constants
      (define-constant contract-owner tx-sender)
      (define-constant err-owner-only (err u100))
      (define-constant err-insufficient-balance (err u101))

      ;; Data vars
      (define-data-var token-name (string-ascii 32) "SIP Token")
      (define-data-var token-symbol (string-ascii 10) "SIPT")

      ;; Public functions
      (define-public (transfer (amount uint) (sender principal) (recipient principal))
          ;; implementation goes here...
      )

      ;; Mint new tokens - only contract owner can call this
      (define-public (mint (amount uint) (recipient principal))
          ;; implementation goes here...
      )

      ;; Read only functions
      (define-read-only (get-name)
          (ok (var-get token-name))
      )

      (define-read-only (get-symbol)
          (ok (var-get token-symbol))
      )

      (define-read-only (get-balance (account principal))
          (ok (ft-get-balance sip-token account))
      )
    commit_message: "feat: Add simple token contract"

  - type: test
    name: simple_token_test.ts
    content: |
      import {
        Clarinet,
        Tx,
        Chain,
        Account,
        types
      } from 'https://deno.land/x/clarinet@v1.0.0/index.ts';
      import { assertEquals } from 'https://deno.land/std@0.90.0/testing/asserts.ts';

      Clarinet.test({
        name: "Test token info functions",
        async fn(chain: Chain, accounts: Map) {
          // tests go here...
        },
      });

      Clarinet.test({
        name: "Test mint function - owner only",
        async fn(chain: Chain, accounts: Map) {
          // tests go here...
        },
      });
    commit_message: "feat: Add tests for simple token contract"

pull_request:
  title: "feat: Add simple token contract"
  body: |
    This PR adds a simple token contract to the project.

    [the PR body must be detailed and explain the changes made]...

Project Idea:

{idea}

How to Use

Use with LangChain: hub.pull("alexis/clarity-project-bootstrap")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

D
digitalmuse$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

P
primequery$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

S
signalcraft$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

F
focusqueryFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

P
promptframes$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

P
promptbench$2.99
1,063 1,076