agents/skills/apply-fix-from-crbug-with-diff/SKILL.md
This skill provides a structured workflow for applying bug fixes that contain a diff and a suggested CL description within the bug comments.
When asked to apply one or more bug fixes, strictly follow these steps:
invoke_subagent tool to spawn a separate self subagent for each
bug.Workspace parameter to share so
that each subagent gets its own isolated git worktree. This prevents branch
checkout conflicts when parallelizing work in the same repository./goal to the Prompt given to the subagent so that it runs
continuously until its bug fix is complete.origin/main.git checkout -b fix-<bug_id> origin/maingclient sync -D --force to
ensure all dependencies are correctly synchronized for the target branch.bug_fix.patch).git apply bug_fix.patch.git cl format).autoninja, unit tests) to verify the
patch compiles and passes.Before committing, ensure you delete the bug_fix.patch file or any other
temporary files.
Stage only the source files modified by the patch (e.g., using git add -u).
DO NOT commit the patch file itself.
Commit the changes using the extracted CL description.
Ensure the commit message includes the bug tag in the correct format (e.g.,
Bug: <bug_id>) at the bottom.
Upload the fix using git cl upload. Run git cl presubmit before uploading
to ensure all code quality checks pass.