omnigent-ai/omnigent/resolve-publish
Claude Code and agent skill by omnigent-ai/omnigent
- community
Checking that the SKILL.md file is still in the repository.
Commit the validated fix and follow local-only, workflow-owned, or direct PR publication.
Install
npx vskill@latest install omnigent-ai/omnigent/resolve-publishSKILL.md
The same SKILL.md was published earlier as omnigent-ai/omnigent/resolve-publish.
Step 3 — Commit, push, and open the pull request (author path only)
This step applies only when you authored a fix in Step 2B — it's about opening a PR. (The review path 2A adopts the existing PR instead of opening one, then goes straight to Step 4 to land it.) Once the set is genuinely green:
Check again before publishing. Once the fix and PR body are ready, repeat Step 1's search immediately before creating a new PR, or before the final handoff to a CI publisher. Inspect only new or changed candidates, using Step 2A if one may cover the bug; preserve your work while evaluating it. Recheck the state of earlier candidates too: if one merged, use the shared repro audit on updated main before deciding whether your fix is still needed. Record the check and decision in fix_summary. Skip this refresh for skip_push and updates to an existing PR.
Choose the publication mode before proceeding
- Local-only (`skip_push: true`) — commit the fix and stop at Step 3.2. No PR
will be published automatically, so do not prepare a PR body or run Step 4. This takes precedence even when CI appended a generic publisher contract.
- **Workflow-owned publication (
skip_push: falseplus an explicit CI publisher
contract)** — do not push or make any gh write. Prepare and validate .omnigent/pr-body.md using the body-writing instructions in Step 3.4, but do not run its gh pr create command. Complete the deferred live-validation preparation described in Step 4.4, then write the final handoff and stop. The publisher performs the GitHub writes; do not run the PR-facing CI/preview/review loop in the rest of Step 4.
- Direct publication (no publisher contract) — perform all of Step 3, then
drive the published PR through Step 4, except for the draft proposal below.
Unresolved design choice: after completing the investigation and available validation in resolve-investigate, publish a direct author proposal with gh pr create --draft. Explain the choice, evidence, alternatives, and remaining checks in the body. Emit a partially_fixed handoff with the decision in remaining_work. Skip preview, readiness checks, and the Step 4 review loop that requires a ready PR; do not mark it ready merely to trigger automation. This is a reviewable proposal, not proof the bug is fixed. For workflow-owned publication, prepare the same body and incomplete handoff and obey the supplied publisher contract; do not assume it supports drafts. skip_push still means local only.
In workflow-owned mode, .omnigent/ is intentionally gitignored, so body transport does not rely on the file being committed. The workflow captures pr-body.md separately in the resolve artifact bundle alongside the committed checkpoint, then restores it into the publication worktree before running the PR finalizer. The finalizer validates and uses that restored file as the PR description; without it, the publisher can only construct a less readable fallback from machine-oriented handoff fields.
Checked publication provided by CI
When .omnigent/pr-gate.json exists, use the pr.py helper supplied in the resolve-drive-pr skill directory. This mode replaces the direct GitHub write and token-recovery recipes below. Keep Git pushes on the supplied credential; never decode another token or change credential configuration.
| Action | Helper arguments | |
|---|---|---|
| Open a PR after the required checks | create --title TITLE --body-file FILE --base main | |
| Update its description | edit --number N --body-file FILE | |
| Reply to findings | comment --number N --body-file FILE | |
| Submit a review without approval | review --number N --head SHA --event COMMENT --body-file FILE | |
| Mark a draft ready | ready --number N |
Run the helper from the fix checkout. Use review_cycle.py request for review requests; CI routes it through the host. Follow CI's review budget and warning policy. Actions the helper does not support remain maintainer actions; never recover a broader credential, approve, or merge to work around that boundary.
Legacy direct publication: GitHub write token
The following token setup applies only when CI has not supplied the checked publication helper and has explicitly authorized direct publication.
Any write to GitHub — git push, gh pr create, gh pr edit --add-reviewer, gh pr comment, gh pr close — needs the resolve-agent App installation token (omni-resolve-agent[bot], Contents and Pull requests: write; Actions: read and write on omnigent-ai/omnigent). Actions access is needed to read review runs and completion artifacts and dispatch both review workflows.
Your shell does not inherit it in a usable env var: you run inside the session's runner process (a different process, often a different machine when hosted on --server), so $GH_TOKEN in your shell is empty and a bare git push fails with a 403 / permission error. This is not a missing/expired/read-only token — the write credential IS on this machine, in the git config of your checkout. Recover it before any GitHub write.
The reliable source is the checkout's persisted `http.extraheader`. actions/checkout bakes the App installation token into your repo's git config as an AUTHORIZATION: basic <base64> header (git worktrees share it via the common config, so it's readable from your fix worktree too). Decode it and export it as GH_TOKEN:
- Do this once at the start of Step 3 (and again in Step 4 if a later
gh/git push call reports it lost auth). Then push, open the PR, request the reviewer, and comment normally — all of them use this token. Confirm it works and is write-scoped with gh auth status / a cheap gh api /repos/omnigent-ai/omnigent before relying on it.
- Do not go hunting elsewhere first. The token is not reachable via
/proc/*/environ (that is denied in the session sandbox), and the ambient github-actions[bot] credential is read-only on omnigent-ai/omnigent (it's scoped to omnigent-internal) — both are dead ends that waste the turn. The extraheader above is the one that works.
- If the extraheader is genuinely absent (rare — e.g. a
skip_pushrun, or the
checkout didn't persist it), report that exact fact in maintainer_review with the command output. Never substitute a guess like "token expired" or "PAT is read-only" — those are false and drop the hand-off silently. Only a real, quoted failure goes in maintainer_review.
- CI may also configure
omnigent.forkPushTokenFile. That is a separate
maintainer credential for one purpose only: pushing a fix to an existing fork PR whose author enabled maintainer edits. Never export it as GH_TOKEN and never pass it to gh; PR creation, comments, reviews, labels, and every other visible action must continue using the App token so GitHub attributes them to omni-resolve-agent[bot].
Once the set is genuinely green:
- Commit the fix and selected permanent regression tests on the working
branch. Reused unchanged tests need no new commit. Follow the repo's commit conventions. Before omitting an investigative test introduced for this task, retain its original paths, command, tested revision, result, and source under .omnigent/repro-evidence/, or cite the intact CI repro baseline/bundle. Follow the evidence retention rules in 2B.4: identify the CI run/artifact/path or verified persistent local copy, and distinguish pending workflow upload from confirmed storage. A worktree-local path alone is not durable; preserve that worktree if retention is unresolved. Put selected committed tests in tests and the selection/evidence location in test_audit; no reproduction-only source is required in the PR. This does not authorize deleting existing repository tests solely to reduce LOC. Never commit workspace artifacts. In particular, never stage or commit the recordings/ clips or any .omnigent/ handoff files (e.g. .omnigent/repro-handoff.json): recordings are workspace artifacts that ride in the PR's Demo section / CI artifact bundle, not in the diff (see `dev/recording-lanes.md`). Do not use a blanket git add -A / git add . that sweeps them in — stage the fix and test paths explicitly, and run git status / git diff --cached --stat before committing to confirm the staged set is only the fix + test. If a recording or handoff file already landed in an earlier commit on this branch, remove it (e.g. git rm --cached) so it never reaches the PR. Read the staged diff for redundant comments and docstrings, including tests carried over from repro. Keep only short explanations of non-obvious constraints; move investigation history to the handoff. If a safety explanation runs long, consider clearer code or a focused docstring first. Refresh the shared impact assessment against the committed deliverable. If a hook changed tested files, rerun their affected checks before the handoff. After committing, if the target checkout has the advisory checker, run python .github/scripts/pr-template/hygiene.py --base origin/main (using the target's default branch). Review any long added comment blocks and trim only redundant text. If the checker is unavailable, inspect the diff manually; the workflow-owned publisher runs its own copy before creating a PR.
- If the input has `skip_push: true`, stop here — the fix is committed
locally; do not push and do not open a PR. Report the branch name in your output (pushed_branch) so a human can inspect, push, and PR it. The focused local validation in 2B.5 still runs before the handoff is written. This local-only input also suppresses workflow-owned publication; never treat the presence of the generic CI publisher overlay as permission to continue.
- Otherwise push the branch. **First make sure
git push/ghhave the
write token — see "Get the GitHub write token" below. Your shell does not inherit `GH_TOKEN` (you run in the session's runner, not the CI wrapper's process), so `echo $GH_TOKEN` is normally empty and a bare `git push` / `gh pr create` fails with a permission error. Recover the token first; do not** conclude the token is "expired" or "read-only" from an empty env var — it is present on the machine, just not exported to your shell.
- Open a ready-for-review PR with
gh pr create, unless the draft proposal
exception above applies. Automated review runs on ready PRs. Create .omnigent/ if needed. If the target repository provides .github/pull_request_template.md, copy it to .omnigent/pr-body.md and edit that file. Otherwise create .omnigent/pr-body.md with concise Related issue, Summary, and Test Plan sections. Pass the finished file to gh pr create --body-file .omnigent/pr-body.md. The workflow-owned publisher also restores this file from the resolve artifact bundle if it has to finish publication after your session ends, so write it before the GitHub call or final handoff. Link the bug in the template's Related issue section.
Write the description for a reviewer, not for the handoff parser:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdev/resolve-agent/skills/resolve-publish/SKILL.md
Popularity
- Repository stars
- 10,378
- Repository forks
- 1,659
- 7-day trend score
- 46
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/omnigent-ai/omnigent/resolve-publish)