git-resolve-for-origin-develop

git-resolve-for-origin-develop is a skill for Claude Code, Codex from aiya000/dotfiles. It costs 77 tokens per session (2,926 once invoked), scanned A, original, MIT.

A Git workflow for rebasing a branch onto origin/develop and resolving conflicts, then checking the result.

In plain words
What is it for?
Use it when a branch needs to catch up with the remote develop branch. Git is a version-control system for tracking code changes and branches.
Why use it?
It replaces a potentially error-prone sequence of branch selection, rebase, conflict handling, and verification with defined steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when a branch needs to catch up with the remote develop branch. Git is a version-control system for tracking code changes and branches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiya000/dotfiles/git-resolve-for-origin-develop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aiya000/dotfiles --skill git-resolve-for-origin-develop
Clone the repo
git clone --depth 1 https://github.com/aiya000/dotfiles

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-resolve-for-origin-develop

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiya000/dotfiles/git-resolve-for-origin-develop/github.svg)](https://agentmods.dev/skills/aiya000/dotfiles/git-resolve-for-origin-develop)
Your own site
<a href="https://agentmods.dev/skills/aiya000/dotfiles/git-resolve-for-origin-develop"><img src="https://agentmods.dev/badge/skills/aiya000/dotfiles/git-resolve-for-origin-develop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-resolve-for-origin-develop

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiya000/dotfiles/git-resolve-for-origin-develop"><img src="https://agentmods.dev/badge/skills/aiya000/dotfiles/git-resolve-for-origin-develop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.02926
Opus 5.5 $0.00031 $0.01170
Sonnet 5.5 $0.00015 $0.00585
Haiku 4.5 $0.00008 $0.00293

Measured 1mo ago against content hash ea167856cd52, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-resolve-for-origin-develop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.kiro_global/skills/git-resolve-for-origin-develop/SKILL.md · 272 lines

How it starts

The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.

origin/develop への rebase とコンフリクト解消

目的

対象ブランチを最新の origin/develop へ rebase し、コンフリクトを安全に解消して、検証が通る状態までローカルで仕上げる。

呼び出し形式

/git-resolve-for-origin-develop [<Issue URL または Issue 番号>]
  • 引数は省略可能
  • 引数は「どのブランチを rebase するか」を決めるためだけに使う
  • 引数があっても、Issue 本文の内容をコードへ実装することはしない

対象ブランチの決定

次の A → B → X → C の順にフォールバックする。 先の手段で対象が一意に決まった時点で、以降の手段は試さない。 決定後は、必ず対象ブランチと決定根拠(A/B/X/C)を宣言してから作業を始める。

A. Issue に紐づく PR の head ブランチ

引数で Issue が指定された場合に試す。

  1. Issue を確認する

    gh issue view <issue-url-or-number> --json number,title,url,state
    
  2. Issue に紐づく PR を取得する

    gh api graphql -f query='
    query($owner:String!,$repo:String!,$number:Int!){
      repository(owner:$owner,name:$repo){
        issue(number:$number){
          timelineItems(itemTypes:[CROSS_REFERENCED_EVENT,CONNECTED_EVENT],first:100){
            nodes{
              __typename
              ... on CrossReferencedEvent{ source{ ... on PullRequest{ number headRefName state isDraft url } } }
              ... on ConnectedEvent{ subject{ ... on PullRequest{ number headRefName state isDraft url } } }
            }
          }
        }
      }
    }' -F owner=<owner> -F repo=<repo> -F number=<issue-number>
    

    取得できない場合の補助として次も使う

    gh pr list --state open --search "<issue-number>" --json number,title,headRefName,url
    
  3. open な PR が 1 件に絞れたら、その headRefName を対象ブランチにする

  4. open な PR が複数ある場合は A を成立させず C へ進む

  5. 対象ブランチが現在のブランチと異なる場合も、A で一意に決まったなら切り替えて進める。ただし作業ツリーがクリーンでないときは切り替えず C へ進む

B. 現在のブランチ

A が成立しなかった場合に試す。

  1. git branch --show-current で現在のブランチを取得する

  2. 現在のブランチが develop / main / master の場合は B を成立させず X へ進む

  3. detached HEAD の場合は B を成立させず C へ進む

  4. 現在のブランチに紐づく open PR があるか確認する

    gh pr view --json number,title,headRefName,baseRefName,url
    
  5. PR があり、その head が現在のブランチなら、現在のブランチを対象にする

  6. PR がない場合、そのブランチが作業ブランチだと判断できるなら現在のブランチを対象にしてよい。判断できないときは X へ進む

X. 推論

A も B も成立しなかった場合に、根拠を挙げて推論する。

  • ブランチ名に Issue 番号が含まれる(例: feature/3207-xxx、fix/issue-3207)
  • ブランチの独自コミットのメッセージに Issue 番号や Issue タイトルと一致する記述がある

Read the full file on GitHub · 272 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 272 lines · 77 tokens per session scan A ea167856cd52

Subscribe to this mod's changes

git-resolve-for-origin-develop is a skill published in the GitHub repository aiya000/dotfiles (21 stars, last pushed 2d ago), licensed MIT. It adds 77 tokens to every session and 2,926 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.