vibecode.sh
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:

BlockPurposeColor
RoleDefine who the AI should beBlue
ContextProvide background informationPurple
GoalState the desired outcomeGreen
InstructionsList steps to followOrange
ConstraintSet rules and limitsRed
VariableCreate reusable placeholdersTeal
ExampleShow input/output patternsIndigo

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:

  1. Role - Set the persona first
  2. Context - Provide relevant background
  3. Goal - State what you want
  4. Instructions - Break down the process
  5. Constraints - Set the boundaries
  6. 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 demo

Explore each block type in detail using the sidebar navigation.

On this page