my-ado-cppr
Skill1 starsChanged 2 months agoMITView on GitHub
Commit local changes, push branches, and create or update PRs in Azure DevOps or GitHub repositories. Use when asked to commit/push and open PRs, automate ADO work item linking/auto-complete, or create GitHub PRs (ignore work items for GitHub).
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- define-goalSkill
- ghc-searchSkill
- git-worktree-workflowSkill
- hoa-agent-retrieveSkill
- hoa-introspect-distillSkill
- hoa-introspectSkill
- hoa-skill-reviewSkill
- hoa-skill-workSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Create a clean commit, push the current branch, and open or update a pull request in Azure DevOps or GitHub.
- Distinctive: line 130
No attribution footer, no emoji.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- index: areas=software-development; targets=runtime-agnostic; version=1.1.0 -->Commit Push PR
Create a clean commit, push the current branch, and open or update a pull request in Azure DevOps or GitHub.
Prerequisites
- uv — required to run the entry script (
uv run ...) - git — any modern version
- az CLI — required for Azure DevOps (
az login)- On Windows Git Bash / MSYS / Cygwin,
pwsh(PowerShell 7+) must also be onPATH;azis routed through it to avoid stdout capture bugs. Install with:winget install Microsoft.PowerShell
- On Windows Git Bash / MSYS / Cygwin,
- gh CLI — required for GitHub (
gh auth login)
The probe will surface missing prerequisites as blockers (e.g. detached HEAD, not authenticated, or pwsh not on PATH for ADO on Git Bash).
Workflow: probe → plan → apply
The entry script is lib/run.py in this skill's own directory — under
~/.claude/skills/my-ado-cppr/ for a global Claude Code install, and the
equivalent skills/ dir for any other runtime npx skills installed it into.
Adjust the paths below accordingly.
Step 1: Probe
uv run ~/.claude/skills/my-ado-cppr/lib/run.py probeReturns JSON with context and preflight checks (full shape: schemas — probe output).
ok: false→ STOP, reportblockersto the user, do NOT proceed.warningsnon-empty → proceed, but the plan MUST address each warning (e.g. protected branch → includebranch.create; missing identity → ask user).notesnon-empty → informational only. The most common note is "working tree clean", which blockscommit.do=trueplans but is fine forpr.action="update"flows (label edits, description fixes, etc.).state.stale=true→ a previous run left state behind that no longer matches the current branch/HEAD. Either call again without--resume(to start fresh) or discard the state viastate.clearsemantics —applywith--resumewill auto-discard stale state and record aresumewarning step.
Step 2: Plan
Build a plan JSON from the probe output (full shape: schemas — plan). Minimal skeleton:
{
"provider": "ado",
"branch": {"create": true, "name": "feature/my-branch"},
"commit": {"do": true, "message": "[feat] description\n\n- details"},
"push": {"do": true, "set_upstream": true},
"pr": {
"action": "create", "source_branch": "feature/x", "target_branch": "main",
"title": "Add feature X", "description": "## Summary\n...",
"auto_complete": true, "merge_method": "squash", "delete_source_branch": true
}
}Key decision rules (full field notes in schemas):
existing_prsnon-empty → BEFORE you build a plan, summarize each PR (id,title,source_branch → target_branch,draft) and ask the user: update that PR, abandon and create new, or abort.identity.git_email == reviewer→ drop self frompr.reviewersbefore sending.commit.stage_all: truestages every working-tree change; include it only when the user has authorized committing all changes. When omitted, only already-staged changes are committed.commit.pathsmust be a non-empty list of literal filenames; it cannot be combined withcommit.stage_all: trueand leaves unrelated staged entries untouched.commit.amend: truere-pushing a pushed branch →push.force_with_lease: true.provideroptional; auto-detected fromgit remote get-url origin(dev.azure.com/*.visualstudio.com/ssh.dev.azure.com= ADO;github.com= GitHub). To pin in an apply run, put it in the plan —--providerexists onprobeonly.
Step 3: Apply
uv run ~/.claude/skills/my-ado-cppr/lib/run.py apply <<'PLAN'
{...plan JSON...}
PLANOn failure, fix the plan and retry with --resume:
uv run ~/.claude/skills/my-ado-cppr/lib/run.py apply --resume <<'PLAN'
{...corrected plan...}
PLANApply returns a step-list result — full shape and step names in schemas — apply result. The rules that matter:
result.ok: falseonly when a non-warning step failed; warning steps record problems without aborting.- The PR may still exist on
ok: false— always inspectsummary.pr_urlandheadlinebefore re-creating. result.headlinealways reflects the most useful outcome (pr_update>pr_create>push>commit).- Resume semantics, state persistence (
.git/commit-push-pr-state.json), error shapes, and debug mode: see schemas.
Commit Message Format
[category] brief description
- Detailed point 1
- Detailed point 2Categories: feat, fix, docs, chore, refactor, test
No Co-Authored-By, no "Generated with" footer, no emoji.
PR Description Format
## Summary
Brief description of changes.
## Changes
- Key change 1
- Key change 2
## Test Plan
- [ ] Verified locally
- [ ] Tests passNo attribution footer, no emoji.
Provider-specific references
- Azure DevOps: references/ado.md — auth, identity / tenant cross-check, full plan field reference, CLI command table, labels caveat, approval-policy gotchas, deferred capabilities.
- GitHub: references/github.md — auth, identity, full plan field reference (
closes_issues,merge_method,delete_source_branch, labels, reviewers), CLI command table, issue-linking grammar, deferred capabilities.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

