Development
Use LLMs to write Chalk code with specialized prompts.
Chalk provides specialized prompts to help Large Language Models (LLMs) write effective Chalk code. These prompts are designed to guide AI assistants in understanding Chalk’s patterns, best practices, and API conventions.
The Chalk team maintains a public repository of prompts specifically designed for LLM-assisted Chalk development:
Repository: chalk-ai/agent-prompts
This repository contains carefully crafted prompts that help LLMs understand:
When working with an LLM to write Chalk code, you can reference the base prompt from the repository to ensure the AI assistant understands Chalk’s conventions. The prompts include guidance on:
To reference the base prompt, you can copy and paste it into your LLM prompt config (ex. CLAUDE.md or .cursor/rules) or you can use the chalk init agent-prompt command to add the prompt to your local repository.
By using these specialized prompts, you can leverage AI assistance to write more consistent, idiomatic Chalk code while reducing development time and improving code quality.