> For the complete documentation index, see [llms.txt](https://purecodedocs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://purecodedocs.gitbook.io/docs/features/global-and-project-custom-instructions/project-chat-instructions.md).

# 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 :

{% stepper %}
{% step %}

### Identify Project-Specific Needs:

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

{% step %}

### Set Project Instructions:

In the PureCode AI settings, add instructions that guide the AI to provide assistance tailored to these specific needs.
{% endstep %}
{% endstepper %}

***

## Examples:

1. Framework-Specific Guidelines:

   * Instructio&#x6E;*:* Use React functional components with hooks for state management.
   * Benefi&#x74;*:* Aligns AI assistance with project-specific architectural decisions.

2. Styling Approach:

   * Instructio&#x6E;*:* Utilize Tailwind CSS classes for styling instead of traditional CSS files.
   * Benefi&#x74;*:* Ensures consistency in styling methodology within the project.

3. State Management Library:

   * Instructio&#x6E;*:* Implement Redux Toolkit for state management in the application.
   * Benefi&#x74;*:* Guides AI to provide suggestions compatible with the chosen state management approach.

4. Testing Framework:

   * Instructio&#x6E;*:* Write unit tests using Jest and React Testing Library.
   * Benefi&#x74;*:* Directs AI to assist in generating tests that align with the project's testing strategy.

5. Follow Database Interaction Protocols:

   * Instructio&#x6E;*:* Utilize Sequelize ORM for database interactions, ensuring all queries are parameterized to prevent SQL injection attacks.
   * Benefi&#x74;*:* Aligns database operations with project standards, enhancing security and maintainability.

6. Adopt Project-Specific State Management Patterns:

   * Instructio&#x6E;*:* Use Redux Toolkit for state management in the frontend, following the project's established patterns for actions and reducers.
   * Benefi&#x74;*:* Maintains consistency in state management approaches, facilitating easier collaboration and code integration.

7. Implement Consistent Authentication Strategies:
   * Instructio&#x6E;*:* Employ JWT tokens for user authentication, ensuring that all endpoints requiring authentication validate the token appropriately.
   * Benefi&#x74;*:* Standardizes authentication mechanisms, improving security and user session management.
