- Add commit.md and commit-push-pr.md commands - Update cognitive-memory SKILL.md to use claude-memory wrapper - Split major-domo CLI into cli.py + cli_admin.py - Add claude-statusline scripts and plugins dir - Remove deprecated claude-pulse script - Update settings.json and claude-researcher agent Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.8 KiB
Markdown
33 lines
1.8 KiB
Markdown
---
|
|
allowed-tools: Bash(git checkout:*), Bash(git add:*), Bash(git status:*), Bash(git push:*), Bash(git commit:*), Bash(git branch:*), Bash(git remote:*), Bash(git symbolic-ref:*), Bash(git log:*), Bash(gh pr create:*), Bash(tea pulls create:*)
|
|
description: Commit, push, and open a PR
|
|
---
|
|
|
|
**This command IS explicit approval to commit, push, and create a PR — no need to ask for confirmation.**
|
|
|
|
## Context
|
|
|
|
- Current git status: !`git status`
|
|
- Current git diff (staged and unstaged changes): !`git diff HEAD`
|
|
- Current branch: !`git branch --show-current`
|
|
- Recent commits: !`git log --oneline -10`
|
|
- Remote URL: !`git remote get-url origin`
|
|
|
|
## Your task
|
|
|
|
Based on the above changes:
|
|
|
|
1. If there are no changes, say "Nothing to commit" and stop
|
|
2. If on `main` or `master`, create a new feature branch first
|
|
3. Stage all relevant changed files (prefer specific files over `git add -A` — avoid secrets, .env, credentials)
|
|
4. Create a single commit with a concise message following the repo's existing style (focus on "why" not "what")
|
|
5. Include `Co-Authored-By: Claude <model> <noreply@anthropic.com>` where `<model>` is the model currently in use
|
|
6. Push the branch to origin with `-u` flag
|
|
7. Create a pull request:
|
|
- If remote URL contains `github.com` → use `gh pr create --base <default-branch> --title "Title" --body "..."`
|
|
- If remote URL contains `git.manticorum.com` or other Gitea host → use `tea pulls create --head <branch> --base <default-branch> --title "Title" --description "..."`
|
|
8. Include a summary section and test plan in the PR body
|
|
9. Return the PR URL
|
|
|
|
You have the capability to call multiple tools in a single response. You MUST do all of the above in a single message. Do not use any other tools or do anything else. Do not send any other text or messages besides these tool calls.
|