Blocks
Blocks
The building blocks for creating structured prompts
Blocks
Blocks are the fundamental building units in vibecode.sh. Each block type serves a specific purpose in your prompt, making it easier to organize, maintain, and improve your AI instructions.
Core Blocks
These are the essential blocks for most prompts:
| Block | Purpose | Color |
|---|---|---|
| Role | Define who the AI should be | Blue |
| Context | Provide background information | Purple |
| Goal | State the desired outcome | Green |
| Instructions | List steps to follow | Orange |
| Constraint | Set rules and limits | Red |
| Variable | Create reusable placeholders | Teal |
| Example | Show input/output patterns | Indigo |
How Blocks Work
Structure
Each block has:
- Type - What kind of content it holds
- Title - Optional custom label
- Content - The actual text or configuration
- Color - Visual indicator of block type
Order Matters
The order of blocks affects your prompt. A common pattern:
- Role - Set the persona first
- Context - Provide relevant background
- Goal - State what you want
- Instructions - Break down the process
- Constraints - Set the boundaries
- Examples - Show expected behavior
Best Practices
- Keep blocks focused - Each block should have one purpose
- Be specific - Vague instructions lead to vague outputs
- Use examples - They're worth a thousand words of explanation
- Review constraints - Make sure rules don't conflict
Quick Reference
/role → Define AI persona
/context → Background info
/goal → Desired outcome
/instructions → Step-by-step process
/constraint → Rules and limits
/variable → Dynamic placeholder
/example → Input/output demoExplore each block type in detail using the sidebar navigation.