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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://purecodedocs.gitbook.io/docs/features/global-and-project-custom-instructions/project-chat-instructions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
