Salesforce From Scratch

AI-Assisted Salesforce Development Made Simple

Custom Instructions for Claude Projects: A Comprehensive Guide

What Are Custom Instructions?

Custom instructions are specific guidelines for AI language models like Claude to tailor their behaviour, output, and capabilities for particular tasks or projects. These instructions serve as a way to “program” the AI, ensuring it responds in a manner that aligns with the user’s goals and project requirements.

Best Practices for Format and Syntax

When crafting custom instructions for Claude projects, consider the following best practices:

  1. Use Clear and Concise Language: Write instructions that are easy to understand and leave no room for ambiguity.
  2. Organize with Headers: Use markdown headers to structure your instructions logically.
  3. Utilize Lists: Employ numbered or bulleted lists for step-by-step processes or multiple related points.
  4. Specify Desired Output Format: Clearly state how you want the information presented (e.g., as a table, list, or paragraph).
  5. Include Examples: Provide sample inputs and outputs to illustrate your expectations.
  6. Use Code Blocks: Use markdown code blocks for any code-related instructions for clarity.
  7. Define Scope and Limitations: Clearly state what the AI should and should not do.
  8. Encourage Flexibility: Allow the AI to use its judgment when appropriate.

Example: Custom Instructions for a Project Management Web App

Here’s an example of custom instructions for Claude when tasked with helping create a project management web app:

# Custom Instructions for Project Management Web App

## Role and Purpose
You are assisting in the development of a project management web application. Your primary function is to provide guidance, code snippets, and explanations related to this project.

## General Behavior
- Prioritize clarity and efficiency in your responses.
- When providing code, use appropriate syntax highlighting.
- If unsure about a specific requirement, ask for clarification before proceeding.

## Technical Specifications
- Frontend: React.js with TypeScript
- Backend: Node.js with Express
- Database: MongoDB
- State Management: Redux
- UI Framework: Material-UI

## Key Features to Implement
1. User Authentication
2. Project Creation and Management
3. Task Assignment and Tracking
4. Team Collaboration Tools
5. Gantt Chart for Project Timeline
6. Dashboard with Project Analytics

## Code Style and Best Practices
- Follow React Hooks paradigm for functional components.
- Implement proper error handling and input validation.
- Write clean, modular, and well-commented code.
- Adhere to TypeScript best practices for type safety.

## Output Preferences
- When providing code snippets, include brief explanations of the code's functionality.
- For complex features, break down the implementation into step-by-step instructions.
- Suggest testing strategies for critical components.

## Limitations
- Do not provide complete application code; focus on specific components or functions as requested.
- Avoid discussing deployment strategies or DevOps practices unless explicitly asked.

## Additional Notes
- Be prepared to explain concepts related to state management, API integration, and database schema design.
- Offer suggestions for performance optimization and scalability when relevant.

This example provides a structured set of instructions that guide Claude in assisting with developing a project management web app. It covers the project’s technical stack, key features, coding standards, and output preferences, giving Claude a clear framework for providing relevant and helpful assistance.


Posted

in

by

Tags: