agents/projects/code-health/hub/references/submission.md
CRITICAL: Do not execute this file unless explicitly invoked by a skill.
When invoked, the calling skill provides specific context variables (Skill Name,
Branch Name, Commit Hashtag, Cleanup Title, Cleanup Description, Parent Bug,
Cleaned Component, File Count, and optionally a pre-resolved Bug ID).
First, prompt the user using ask_question with the question: "Create a
branch, commit these changes, file a bug, and upload a CL to Gerrit?" and
choices "Yes, submit this cleanup" and "No, keep local changes uncommitted".
If the user chooses "No": Print a summary of the changes, print a success message, leave the changes uncommitted in the local working directory, and end the workflow here.
If the user chooses "Yes": The following steps must be performed sequentially, one by one, in the exact order specified, without skipping or jumping:
git new-branch <Branch Name>.Bug ID is provided as a context variable
(distinct from the general Parent Bug): Set <Bug ID> to the
provided value. (If the value is "none", set <Bug ID> to "none").Bug ID was not provided by the calling
skill): File a new Buganizer issue using the create_buganizer_issue
tool with the following properties:
[<Commit Hashtag>] <Cleanup Title>*"Note: This bug was automatically generated by the Chrome Code Health AI."*\n\n<Cleanup Description>1456931["8218789"]INTERNAL_CLEANUPP2<Bug ID> to
this value.git add.[<Commit Hashtag>] <Cleanup Title>
<Cleanup Description>
This change was generated using the skill <Skill Name>.
Bug: <Parent Bug>, <Bug ID>
TAG= or CONV= lines from the commit
message. Do NOT include them.git commit -m "<drafted message>".git pull origin main --rebase > /dev/null 2>&1 && gclient sync -D > /dev/null 2>&1
followed by git cl upload --force --bypass-hooks -a -d.<File Count>.