> For the complete documentation index, see [llms.txt](https://in-progress.gitbook.io/clariform2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://in-progress.gitbook.io/clariform2/clariform-2.md).

# Clariform 2

<https://github.com/PromptECO/clariform>

Grant: US$27K.\
\
Target audience: Clarity smart contract developers; Clarity tool developers;  sBTC project.

* Clariform automatically fixes common errors in Clarity contracts. The update will also correct many syntax errors typical in Clarity generated by AI assistants like ChatGPT.
* There are several issues reported by the community for the initial version of Clariform. They will be reviewed and considered for inclusion in Clariform2.\
  <https://github.com/PromptECO/clariform/issues>
* Clariform is used as an essential library dependency in several Clarity development tools, particularly ClarityGPT and ClarityTools. The update will revise the programmer interface for key packages and implement new capabilities for Clarity processing and generation in such development tools.&#x20;
* √ A key addition is new formatting modes to improve test coverage for Clarity code in Stacks 2.2, including the Pox2 contract. Coverage is misreported for Clarity by test tooling as they're typically line-oriented while expressions and branches in Clarity can span multiple lines. I will coordinate with the sBTC project Test Infra owner to address their needs for such formatting accommodating testing tools.\
  <https://github.com/PromptECO/clariform/issues/23#issuecomment-1528848275>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://in-progress.gitbook.io/clariform2/clariform-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
