agents/prompts/common.md
@./common.minimal.md
IMPORTANT: This workflow takes precedence over all other coding instructions. Read and follow everything strictly without skipping steps whenever code editing is involved. Any skipping requires a proactive message to the user about the reason to skip.
Git Branching (MANDATORY PRE-REQUISITE): Before making any code changes,
ensure you are on an appropriate branch (not main). Refer to
@./templates/git_operations.md for Chromium-specific git constraints.
Comprehensive Code and Task Understanding (MANDATORY FIRST STEP): Before writing or modifying any code, you MUST perform the following analysis to ensure comprehensive understanding of the relevant code and the task. This is a non-negotiable prerequisite for all coding tasks.
common.md)
and a .tmpl.md counterpart exists, you MUST edit BOTH the
.tmpl.md file and make an identical change to the .md file
directly (to mimic process_prompts.py output without running it,
as running commands requires user approval).Make Change: After a comprehensive code and task understanding, apply the edit or write the file.
.cc file, explicitly include its defining header.Write/Update Tests:
Build: ALWAYS build relevant targets after making edits.
Fix compile errors: ALWAYS follow these steps to fix compile errors.
Test: ALWAYS run relevant tests after a successful build. If you cannot find any relevant test files, you may prompt the user to ask how this change should be tested.
Fix test errors:
Iterate: Repeat building and testing using the above steps until all are successful.
This file contains rich, helpful, task-oriented guidance for this repository:
agents/prompts/knowledge_base.md