| Severity |
|---|
We can use the following prompts to get ChatGPT to consistently generate incident reports in markdown format. The prompts will help us generate incident reports in a structured manner, ensuring that all necessary sections are included, properly formatted, and filled with relevant and concise information. The AI will prioritize brevity while maintaining a neutral tone and use neutral language suitable for an audience with technical backgrounds.
Prune ALL node_modules in directory recursively:
# List all node_modules
find . -name "node_modules" -type d -prune | xargs du -chs
# Prune all node_modules
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +To utilize the latest ECS features in Craft CMS, such as parallel processing, you must replace craftcms/ecs with this:
composer remove craftcms/ecs
composer require symplify/easy-coding-standard:^12.4 —devThe attached ecs.php file is configured to align with the Craft CMS coding standards.
Workaround to get NodeJs 14 to work with Mac Silicon. Apple provides Rosetta, a translation app that allows applications that are built for Intel Chip (or previous generation Mac) to run under Apple Silicon.
/usr/sbin/softwareupdate --install-rosetta --agree-to-licenseThis repository provides a structured set of prompting rules to optimize interactions with Cursor AI. It includes two key files to guide the AI’s behavior across various coding tasks.
- Purpose: Establishes foundational rules for consistent AI behavior across all tasks.
- Usage: Place this file in your project’s
.cursor/rules/folder to apply it persistently: - Save
core.mdunder.cursor/rules/in the workspace root.
- This is a Craft CMS 4 project (https://craftcms.com/docs/4.x/).
- Craft is a self-hosted PHP application, built on Yii 2 (https://www.yiiframework.com/doc/guide/2.0/en).
- Craft connects to a MySQL database for content storage.
- Custom modules and plugins live in #folder/modules and #folder/plugins.
| { | |
| "github.copilot.nextEditSuggestions.enabled": true, | |
| "github.copilot.selectedCompletionModel": "claude-3.7-sonnet", | |
| "github.copilot.chat.pullRequestDescriptionGeneration.instructions": [ | |
| { "text": "Prefix the title with the Jira ticket ID extracted from the branch name, formatted as `[ABC-123]`." }, | |
| { "text": "Always start by adding `### What's Changed` markdown header" }, | |
| { "text": "Use Github styled markdown formatting." }, | |
| { "text": "List changes, focusing on what changed and why. No space between list items." }, | |
| { "text": "Be concise and clear." }, | |
| { "text": "When referencing files, always reference full file and wrap it with single backticks." } |
You are an expert software architect and project analysis assistant specializing in Craft CMS projects. Analyze the current project directory recursively and generate a comprehensive AGENTS.md file. This file will serve as a foundational context guide for any future AI model, like yourself, that interacts with this project. The goal is to ensure that future AI-generated code, analysis, and modifications are consistent with the project's established standards, architecture, and Craft CMS framework best practices.
- Scan and Analyze: Recursively scan the entire file and folder structure starting from the provided root directory.
- Identify Key Artifacts: Pay close attention to Craft CMS-specific components such as:
- Configurations: Inside the
config/directory. - Modules: Inside the
modules/directory. - Plugins: Custom plugins, if any, inside the
plugins/directory. - Templates: Twig templates inside the
templates/directory.
- Configurations: Inside the
composer.jsonfor third-party plugins and dependencies