repository-routing-security
БесплатноБез исполняемых скриптовНе проверенUse when changing fork routing, forge-profile identity, provider-plugin host selection, repository URL persistence, credential redaction, the repo-config…
от kunchenguid★ 9 314 звёзд на GitHubОб этом скилле
Fork Routing
repos.upstream_urlis the default parent repository; a run's explicit integration pin supplies its PR base routing instead.repos.fork_urlis an optional GitHub fork push target. User-facing selection semantics are owned bydocs/src/content/docs/reference/cli.md(--base-remote).no-mistakes init --fork-url <url>expectsoriginto point at the GitHub parent repository and<url>at the contributor fork; plainno-mistakes initpreserves an existing fork URL on idempotent refresh.- Push code must resolve the push URL via
resolvePushURL(internal/pipeline/steps/common_git.go) so configured forks still receive branch updates, including after a CI repair restarts validation. Without a fork,resolveUpstreamURLverifies a pinned destination throughDestination.RuntimeURL; only unpinned runs use its origin/registration fallback.Repo.PushURL()remains correct only for fork-only callers (e.g.rebase.go), since fork URLs carry no embedded credentials. - GitHub PR code must keep
--repopointed at the parent and use--head <fork_owner>:<branch>whenfork_urlis set; existing-PR lookup must list by the bare branch and filter head-owner fields, never pass<owner>:<branch>togh pr list --head. - Non-GitHub fork MR/PR routing is intentionally out of scope until implemented end to end; if a legacy row has
fork_urlfor another provider, PR creation must skip instead of opening a self PR. - Every new run best-effort refreshes registered upstream/fork URLs from the working clone through
gate.RefreshRepoURLs: origin is the upstream authority, an existing fork requires one uniquely matching clone remote, both DB fields replace atomically, and every discovery/validation/write failure logs only a bounded reason and continues with the exact old registration. The refresh never rewrites clone or gate remotes;Repo.URLsVerifiedis run-scoped evidence that trusted fetch/push may use the refreshed DB URL instead of an inherited stale gate origin. - Fork-as-origin detection (
internal/gate/forklayout.go, issue #1178): a plaininit(no--fork-url, no previously recorded fork) refuses whenoriginis a GitHub fork and a separateupstreamremote already names its real parent - the layoutgh repo fork --cloneleaves behind, which otherwise opens scratch PRs inside the contributor's own fork and never binds a parent-PR attestation. Contract is restore-style (VISION R1: refuse loudly with--fork-url/CONTRIBUTING guidance), not auto-adopt, per the maintainer's triage on #1178 (opt-in was the acceptable alternative; silently rewriting remotes or always auto-rerouting was explicitly rejected). Detection fails OPEN, never closed: it needs positive proof (github.RepoParent'sgh api repos/<slug>"fork" + "parent" answer fororiginmatching whatupstreamnames) and skips silently otherwise - noupstreamremote, either remote not on GitHub, an unrelatedupstream(different repo name, or a different host fromorigin- both checked locally before ever shelling out togh, so init never pays network latency for a template/referenceupstream), orghunavailable/unauthenticated/offline. The host check exists because a GitHub fork always shares its parent's host (forking across GitHub.com/GHE instances does not exist), so anupstreamon a different host can never beorigin's parent however its owner/name happen to read - comparing owner/name alone would wrongly match two unrelated same-named repos on different hosts (Greptile finding on PR #1183).resolveForkParent(package var ininternal/gate/forklayout.go) is the test seam over the realghcall, mirroringensureGateHooksPathIsolation.
Repository Forge Identity (internal/forgecontext)
- Optional global
forge_profilesmap raw remote host tokens/SSH aliases (gh_userkeys optionally scoped ashost/owner) to one isolatedghorglabconfig directory, plus an optionalexpected_loginpin, or to agh_userlogin whose tokengithubUserEnvironmentreads once per run withgh auth token --userand carries only inContext.Environment(runenv.Overlaynever prints values; refusal on a login gh cannot serve, never an active-account fallback). An owner-scoped match outranks a plain host match across parent/fork, falls back to the plain host key, and never activates routing for other owners (selectProfile,profilesActivateProvider). Regressions:internal/forgecontext/ghuser_test.go,TestMergeTakesForgeProfilesFromGlobalOnly. The resolver owns profile selection, validation, parent/fork ambiguity, provider-specific fail-closed activation, and the immutable run environment; do not add ambient account switching or per-step routing. Profile identity for the parent/fork same-profile check is the config directory AND the pin, so conflicting pins fail as ambiguous instead of silently picking one account (sameProfile/expectLoginown the rationale). - A resolved context must reach buil
Установить repository-routing-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл repository-routing-security?
Use when changing fork routing, forge-profile identity, provider-plugin host selection, repository URL persistence, credential redaction, the repo-config trust boundary (trusted-default-branch-only fields), gate-agent instruction neutralization, or repository-declared extra gates.
Как установить скилл repository-routing-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл repository-routing-security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic