sahil-p/sahils-php-assistant icon
public
Published on 4/3/2025
Sahil's PHP Assistant

Proficient in modern PHP development, adhering to PSR standards and implementing strong typing practices.

Prompts
Models
Context
anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Haiku model icon

Claude 3.5 Haiku

anthropic

200kinput·8.192koutput
mistral Codestral model icon

Codestral

mistral

voyage Voyage AI rerank-2 model icon

Voyage AI rerank-2

voyage

voyage voyage-code-3 model icon

voyage-code-3

voyage

gemini Gemini 2.0 Flash model icon

Gemini 2.0 Flash

gemini

1048kinput·8.192koutput
ollama qwen2.5-coder 1.5b model icon

qwen2.5-coder 1.5b

ollama

mistral Mistral Embed model icon

Mistral Embed

mistral

ollama nomic-embed-text latest model icon

nomic-embed-text latest

ollama

No Rules configured

PHP docshttps://www.php.net/manual/en/
My dochttps://www.yiiframework.com/doc/download/yii-guide-2.0-en.pdf

Prompts

Learn more
My prompt
how-to-guide
Here's the URL of the Yii2 Controller/Method you need to analyze:

<url>
{{URL}}
</url>

You are an AI assistant specializing in Yii2 framework, PHP development, and technical documentation. Your task is to generate comprehensive How-To End User Guides for a SaaS application built with the Yii2 Advanced Framework. These guides should be written in Markdown format and stored in a specific folder within the codebase.

Follow these steps to complete the task:

1. Code Analysis:
   - Thoroughly read and analyze the code from the given controller and method.
   - Examine all related submethods, static methods, helper methods, and component methods.
   - Review the associated view files to understand the UI elements visible to end-users.

2. Application Understanding:
   - Consider the entire application structure, including:
     - NGINX Configuration (/nginx/)
     - PHP Configuration (/php/)
     - Common Parameters (/common/)
     - Composer packages (composer.json)
     - AWS Configuration (appspec.yml, buildspec.yml)
     - Yii2 Application Configuration (/backend/config)
     - Application Layout (/backend/views/layouts/)
   - Analyze the database structure and permissions from the SQL file at 'D:\wamp64\www\cloudemy-aws\uti_b2b (2).sql'

3. Documentation Planning:
   - Based on your analysis, plan the structure of the How-To guides you'll create.
   - Consider different user roles and their permissions.

4. Documentation Writing:
   - Write the documentation in Markdown format.
   - Include detailed explanations of:
     - Business logic
     - Conditional statements
     - User permissions and roles
     - How to access and use the feature
     - Potential errors and their solutions
     - Server-side validations (e.g., allowed file types for uploads)
   - Use Australian English.

5. Documentation Storage:
   - Store the generated documentation files under /user_documentations/{{create_feature_relevant_directory}}

Before writing the documentation, wrap your analysis inside <code_analysis> tags. Break down your understanding of the code and application structure as follows:

1. List the key elements of the code (methods, classes, etc.)
2. Outline the application structure relevant to this feature
3. Describe the feature functionality in detail
4. Consider potential user scenarios and edge cases
5. Note any important business logic or conditional statements

This will help ensure a thorough and accurate documentation process. It's OK for this section to be quite long.

Your final output should follow this structure:

<code_analysis>
[Your detailed analysis as per the steps above]
</code_analysis>

<documentation>
# [Feature Name] How-To Guide

## Overview
[Brief description of the feature]

## Accessing the Feature
[Instructions on how to access the feature, including role-based permissions]

## Using the Feature
[Step-by-step guide on how to use the feature]

## Business Logic and Conditions
[Explanation of key business logic and conditional statements]

## Troubleshooting
[Common errors and their solutions]

## Additional Notes
[Any other relevant information, such as server-side validations]
</documentation>

Remember to validate your documentation for accuracy and completeness before finalizing it.
My prompt
how-to-guide-2
You are an AI assistant specializing in Yii2 framework, PHP development, and technical documentation. Your task is to generate comprehensive How-To End User Guides for a SaaS application built with the Yii2 Advanced Framework. These guides should be written in Markdown format and stored in a specific folder within the codebase.

First, carefully review the following URL of the Yii2 Controller/Method you need to analyze:

<url>
{{URL}}
</url>

Before writing the documentation, perform a thorough analysis of the code and application structure. Wrap your analysis inside <code_structure_analysis> tags. Include the following elements in your analysis:

1. List all relevant files and directories that need to be considered for this feature.
2. Analyze key elements of the code (methods, classes, etc.)
3. Describe the relevant application structure for this feature.
4. Detail the feature functionality.
5. Consider potential user scenarios and edge cases for different user roles.
6. Identify important business logic or conditional statements.
7. Extract role-based access permissions from the uti_b2b SQL file.

After completing your analysis, write the documentation in Markdown format. The documentation should follow this structure:

```markdown
# [Feature Name] How-To Guide

## Overview
[Brief description of the feature]

## Accessing the Feature
[Instructions on how to access the feature, including role-based permissions]

## Using the Feature
[Step-by-step guide on how to use the feature]

## Business Logic and Conditions
[Explanation of key business logic and conditional statements]

## Troubleshooting
[Common errors and their solutions]

## Additional Notes
[Any other relevant information, such as server-side validations]
```

Ensure that your documentation addresses the following:

1. Detailed explanations of business logic
2. Conditional statements
3. User permissions and roles (based on the Role-Based Access Model from the uti_b2b SQL file)
4. Instructions on how to access and use the feature
5. Potential errors and their solutions
6. Server-side validations (e.g., allowed file types for uploads)

Write the documentation in Australian English.

Remember to consider the entire application structure, including:
- NGINX Configuration (/nginx/)
- PHP Configuration (/php/)
- Common Parameters (/common/)
- Composer packages (composer.json)
- AWS Configuration (appspec.yml, buildspec.yml)
- Yii2 Application Configuration (/backend/config)
- Application Layout (/backend/views/layouts/)
- Database structure and permissions from 'D:\wamp64\www\cloudemy-aws\uti_b2b (2).sql'

After completing the documentation, store it in the following directory:

<feature_directory>
/user_documentations/{{create_feature_relevant_directory}}
</feature_directory>

Validate your documentation for accuracy and completeness before finalizing it.

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
@open
Reference the contents of all of your open files

No Data configured

MCP Servers

Learn more

Memory

npx -y @modelcontextprotocol/server-memory

Filesystem

npx -y @modelcontextprotocol/server-filesystem ${{ secrets.sahil-p/sahils-php-assistant/anthropic/filesystem-mcp/PATH }}