PureCode AI
  • PureCode AI Extension
  • Getting Started
    • Getting Started
  • Features
    • Chat
      • @Features
        • @Docs
        • @Files
        • @Folder
        • @Code
        • @Git
        • @Terminal
        • @UI
    • Dual Operation Modes
      • Normal Mode [ Chat ]
      • Agent Mode
      • Switching Between Modes
    • Context Awareness
      • Normal Indexing
      • Advance Indexing
    • Human-like Code Understanding with @codebase
    • Interactive Planning Mode
    • Adaptive Learning Preferences
    • Global and Project Custom Instructions
      • Global Instructions
      • Project Chat Instructions:
    • Docs Indexes and UI Docs Indexes
      • Docs Indexes
      • UI Docs Indexes
    • "Reject" and "Accept"
    • Image-to-Code
    • Video Tutorial's
    • Prompting Techniques
    • Chat Vs Codebase Chat
    • Solving Errors
  • Frequently Asked Questions
  • Changelog
Powered by GitBook
On this page
  • How to Use :
  • Examples:
  1. Features
  2. Global and Project Custom Instructions

Project Chat Instructions:

  • Purpose: Provide project-specific guidance to the AI, aligning its assistance with the project's unique requirements.

  • Functionality: Customize AI interactions based on the project's context, ensuring relevant and accurate support.

  • Usage: Useful for managing project-specific coding styles, libraries, or frameworks.


How to Use :

1

Identify Project-Specific Needs:

Determine if your project has particular coding styles, frameworks, or libraries that require special attention.

2

Set Project Instructions:

In the PureCode AI settings, add instructions that guide the AI to provide assistance tailored to these specific needs.


Examples:

  1. Framework-Specific Guidelines:

    • Instruction: Use React functional components with hooks for state management.

    • Benefit: Aligns AI assistance with project-specific architectural decisions.

  2. Styling Approach:

    • Instruction: Utilize Tailwind CSS classes for styling instead of traditional CSS files.

    • Benefit: Ensures consistency in styling methodology within the project.

  3. State Management Library:

    • Instruction: Implement Redux Toolkit for state management in the application.

    • Benefit: Guides AI to provide suggestions compatible with the chosen state management approach.

  4. Testing Framework:

    • Instruction: Write unit tests using Jest and React Testing Library.

    • Benefit: Directs AI to assist in generating tests that align with the project's testing strategy.

  5. Follow Database Interaction Protocols:

    • Instruction: Utilize Sequelize ORM for database interactions, ensuring all queries are parameterized to prevent SQL injection attacks.

    • Benefit: Aligns database operations with project standards, enhancing security and maintainability.

  6. Adopt Project-Specific State Management Patterns:

    • Instruction: Use Redux Toolkit for state management in the frontend, following the project's established patterns for actions and reducers.

    • Benefit: Maintains consistency in state management approaches, facilitating easier collaboration and code integration.

  7. Implement Consistent Authentication Strategies:

    • Instruction: Employ JWT tokens for user authentication, ensuring that all endpoints requiring authentication validate the token appropriately.

    • Benefit: Standardizes authentication mechanisms, improving security and user session management.

PreviousGlobal InstructionsNextDocs Indexes and UI Docs Indexes

Last updated 1 month ago