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

MCP Servers

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

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.

Context

Learn more
Reference specific functions or classes from throughout your project
Reference the contents from any documentation site
Reference all of the changes you've made to your current branch
Reference the last command you ran in your IDE's terminal and its output
Get Problems from the current file
Uses the same retrieval mechanism as @Codebase, but only on a single folder
Reference the most relevant snippets from your codebase
Reference any file in your current workspace
Reference the currently open file
Reference the contents of all of your open files