da1712/dineshs-react-assistant icon
public
Published on 3/5/2025
Dinesh's React Assistant

Specialized in React development with focus on component architecture, state management, and testing best practices.

Rules
Prompts
Models
Context
gemini Gemini 2.0 Flash model icon

Gemini 2.0 Flash

gemini

1048kinput·8.192koutput
- Follow React patterns
- Avoid prop drilling
Reacthttps://react.dev/reference/
Vue docshttps://vuejs.org/v2/guide/
Next.jshttps://nextjs.org/docs/app
PyTorchhttps://pytorch.org/docs/stable/index.html
Angular Docshttps://angular.io/docs

Prompts

Learn more
Write Cargo test
Write unit test with Cargo
Use Cargo to write a comprehensive suite of unit tests for this function
New Module
Create a new PyTorch module
Please create a new PyTorch module following these guidelines:
- Include docstrings for the model class and methods
- Add type hints for all parameters
- Add basic validation in __init__
Page
Creates a new Next.js page based on the description provided.
Create a new Next.js page based on the following description.
Write Unit Test
Write Laravel Unit Tests for attached code
Use Laravel to write a comprehensive suite of unit tests for the attached code.
Ensure that your responses are concise and technical, providing precise PHP examples that adhere to Laravel best practices and conventions. Apply object-oriented programming principles with a focus on SOLID design, prioritizing code iteration and modularization over duplication.
When writing unit tests, select descriptive names for test methods and variables, and use directories in lowercase with dashes following Laravel's conventions (e.g., app/Http/Controllers). Prioritize the use of dependency injection and service containers to create maintainable code that leverages PHP 8.1+ features.
Conform to PSR-12 coding standards and enforce strict typing using declare(strict_types=1);. Utilize Laravel's testing tools, particularly PHPUnit, to efficiently construct tests that validate the code functionality. Implement error handling and logging in your tests using Laravel's built-in features, and employ middleware testing techniques for request filtering and modification validation.
Ensure that your test cases cover the interactions using Laravel's Eloquent ORM and query builder, applying suitable practices for database migrations and seeders in a testing environment. Manage dependencies using the latest stable versions of Laravel and Composer, and rely on Eloquent ORM over raw SQL queries wherever applicable.
Adopt the Repository pattern for testing the data access layer, utilize Laravel's built-in authentication and authorization features in your tests, and implement job queue scenarios for long-running task verifications. Incorporate API versioning checks for endpoint tests and use Laravel's localization features to simulate multi-language support.
Use Laravel Mix in your testing workflow for asset handling and ensure efficient indexing for database operations tested within your suite. Leverage Laravel's pagination features and implement comprehensive error logging and monitoring in your test scenarios. Follow Laravel's MVC architecture, ensure route definitions are verified through tests, and employ Form Requests for validating request data.
Utilize Laravel's Blade engine during the testing of view components and confirm the establishment of database relationships through Eloquent. Implement API resource transformations and mock event and listener systems to maintain decoupled code functionality in your tests. Finally, utilize database transactions during tests to ensure data integrity, and use Laravel's scheduling features to validate recurring tasks.
Review
Review changes
Please review the current code changes looking for:

- Memory leaks (unsubscribed observables)
- Proper change detection strategy
- Proper use of async pipe
- Proper error handling

Format the review as:
```
## <FILENAME>
- <ISSUE>
...
- <ISSUE>
```
Prisma schema
Create a Prisma schema.
Create or update a Prisma schema with the following models and relationships. Include necessary fields, relationships, and any relevant enums.

Context

Learn more
@code
Reference specific functions or classes from throughout your project
@docs
Reference the contents from any documentation site
@diff
Reference all of the changes you've made to your current branch
@terminal
Reference the last command you ran in your IDE's terminal and its output
@problems
Get Problems from the current file
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@codebase
Reference the most relevant snippets from your codebase
@file
Reference any file in your current workspace
@currentFile
Reference the currently open file
@greptile
Query a Greptile index of the current repo/branch
@open
Reference the contents of all of your open files
@commit
@jira
Reference the conversation in a Jira issue
@repo-map
Reference the outline of your codebase
@os
Reference the architecture and platform of your current operating system

No Data configured

MCP Servers

Learn more

Playwright

npx -y @executeautomation/playwright-mcp-server

Postgres

npx -y @modelcontextprotocol/server-postgres ${{ secrets.da1712/dineshs-react-assistant/anthropic/postgres-mcp/CONNECTION_STRING }}

GitHub

npx -y @modelcontextprotocol/server-github

Filesystem

npx -y @modelcontextprotocol/server-filesystem ${{ secrets.da1712/dineshs-react-assistant/anthropic/filesystem-mcp/PATH }}

Docker MCP Github

docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN mcp/github

Docker MCP Gitlab

docker run -e GITLAB_PERSONAL_ACCESS_TOKEN -e GITLAB_API_URL mcp/gitlab

Brave Search

npx -y @modelcontextprotocol/server-brave-search

Docker MCP Git

docker run --rm -i --mount type=bind,src=${{ secrets.da1712/dineshs-react-assistant/docker/mcp-git/GIT_DIR }},dst=${{ secrets.da1712/dineshs-react-assistant/docker/mcp-git/GIT_DIR }} mcp/git

Docker MCP Sequential Thinking

docker run --rm -i mcp/sequentialthinking

Docker MCP Slack

docker run -i --rm -e SLACK_BOT_TOKEN -e SLACK_TEAM_ID mcp/slack

Docker MCP Postgres

docker run -i --rm mcp/postgres ${{ secrets.da1712/dineshs-react-assistant/docker/mcp-postgres/POSTGRES_CONNECTION_STRING }}

Memory

npx -y @modelcontextprotocol/server-memory

Exa

npx -y exa-mcp-server