
empty-commit
Create an empty commit for testing purposes
提供方 ashneyderman|开源
Empty Commit
Create an empty commit to be used in testing or marking task milestones.
Instructions
Extract parameters:
agf_id- The unique task identifierprompt- The task description
- Validate Parameters: If
agf_idorpromptis not provided, stop and ask the user to provide them - Truncate Prompt: Create
truncated_promptby taking the first 5 to 10 words ofprompt- Add three ellipses (...) if the truncated prompt does not contain all the words in
prompt
- Add three ellipses (...) if the truncated prompt does not contain all the words in
- Create Empty Commit: Create a single empty commit using:
git commit --allow-empty -m "<truncated_prompt> (task: <agf_id>)"- DO NOT indicate co-authoring attributions in the commit
- Save Commit SHA: Extract the short version of the commit SHA
Output Format
IMPORTANT: Return a JSON object with this structure:
{
"commit_sha": "<short_commit_sha>",
"commit_message": "<truncated_prompt> (task: <agf_id>)"
}
Example Output
{
"commit_sha": "0acf3cf",
"commit_message": "add create_github_pr wrapper method with... (task: agf-001)"
}