Documentation
v1.0.0
Core AI Block
📋

Instructions Block

Step-by-step process guidance and task procedures

Preview

📋
Instructions
Core
1. Analyze the user's request and identify key requirements
2. Break down complex tasks into smaller, manageable steps
3. Provide clear, actionable guidance with specific examples
4. Include error handling and edge case considerations
5. Validate the solution and provide testing recommendations

Usage

When to use Instructions blocks

  • Define step-by-step processes the AI should follow
  • Establish consistent workflows and procedures
  • Break down complex tasks into manageable steps
  • Provide methodical approaches to problem-solving
  • Ensure systematic and thorough responses

Best practices

  • Use numbered lists for sequential processes
  • Make each step clear and actionable
  • Include decision points and conditionals where needed
  • Consider error handling and edge cases
  • Keep steps focused on a single action or decision

Examples

Code Review Instructions
1. Read through the entire code change first to understand the context
2. Check for code style consistency and adherence to project conventions
3. Verify that all functions and classes have appropriate documentation
4. Look for potential performance issues and security vulnerabilities
5. Ensure proper error handling and edge case coverage
6. Verify that tests are included and cover the new functionality
7. Provide constructive feedback with specific examples and suggestions
Problem-Solving Instructions
1. Clearly define the problem and understand the requirements
2. Gather all relevant information and constraints
3. Brainstorm multiple potential solutions
4. Evaluate each solution based on feasibility, performance, and maintainability
5. Choose the best approach and explain the reasoning
6. Implement the solution with clear, well-commented code
7. Test the solution thoroughly and document any limitations
API Design Instructions
1. Define clear resource endpoints following RESTful conventions
2. Specify request/response schemas with proper validation
3. Include appropriate HTTP status codes for different scenarios
4. Implement consistent error handling with descriptive messages
5. Add proper authentication and authorization mechanisms
6. Include rate limiting and security headers
7. Document all endpoints with examples and test cases

API Reference

Block Properties
typestring

Fixed value: "instructions"

contentstring | InstructionContent

The step-by-step instructions or structured steps object

InstructionContentinterface

Optional structured format:

{ steps: string[] }

Related Components