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.

Last updated