Skip to content

0x0w1/jig / .claude/skills/github-sync

github-sync

Verified

Use when synchronizing this repository's GitHub setup: main/develop branches, optional branch protection, and the managed local guards (the git pre-push hook plus the native Codex and Antigravity push hooks), including guard cleanup before uninstalling jig. Do not use for creating a release.

FileKindSize
SKILL.mdskill md17.7 KB
assets/guard-push.shexecutablescript2.5 KB
assets/pre-pushexecutablescript1.9 KB
scripts/classify-protection.shexecutablescript5.0 KB
scripts/manage-native-hooks.shexecutablescript14.4 KB
scripts/manage-pre-push.shexecutablescript4.2 KB
scripts/plan-protection.shscript1.3 KB
scripts/protection-request.jqother3.1 KB

scripts/protection-request.jq

View on GitHub
# Convert documented GET fields to PUT fields; reject unrecognized policy data.
def keys_only($allowed):
  if type != "object" or ((keys - $allowed) | length) != 0
  then error("unsupported protection fields") else . end;
def bool: if type == "boolean" then . else error("expected boolean") end;
def flag: keys_only(["url", "enabled"]) | .enabled | bool;
def strings: if type == "array" and all(.[]; type == "string") then . else error("expected strings") end;
def actors:
  keys_only(["url","users_url","teams_url","apps_url","users","teams","apps"])
  | with_entries(select(.key == "users" or .key == "teams" or .key == "apps"))
  | with_entries(.value |= (if type == "array" then . else error("expected actors") end))
  | with_entries(.key as $k | .value |= map(if $k == "users" then .login else .slug end))
  | with_entries(.value |= strings);
def checks:
  if . == null then null else
    keys_only(["url","contexts_url","strict","contexts","checks","enforcement_level"])
    | {strict: (.strict | bool), contexts: (.contexts | strings)} +
      (if has("checks") then {checks: (.checks | map(
        keys_only(["context","app_id"]) |
        if (.context | type) != "string" or (.app_id | type) != "number"
        then error("unknown check app binding") else . end))} else {} end)
  end;
def reviews:
  if . == null then null else
    keys_only(["url","dismissal_restrictions","dismiss_stale_reviews","require_code_owner_reviews",
      "required_approving_review_count","require_last_push_approval","bypass_pull_request_allowances"])
    | del(.url)
    | with_entries(
        if .key == "dismissal_restrictions" or .key == "bypass_pull_request_allowances"
        then .value |= actors
        elif .key == "required_approving_review_count"
        then .value |= (if type == "number" and . >= 0 and . <= 6 and floor == . then . else error("invalid review count") end)
        else .value |= bool end)
  end;
keys_only(["url","required_status_checks","enforce_admins","required_pull_request_reviews","restrictions",
  "required_linear_history","allow_force_pushes","allow_deletions","required_conversation_resolution",
  "block_creations","lock_branch","allow_fork_syncing","required_signatures"])
# Required signatures use a separate endpoint. Preserve by declining unsupported updates.
| if has("required_signatures") then error("signature protection requires separate review") else . end
| . as $current
| if (["required_status_checks","enforce_admins","required_pull_request_reviews","restrictions"] - keys | length) > 0
  then error("incomplete current policy") else . end
| {
    required_status_checks: (.required_status_checks | checks),
    enforce_admins: (.enforce_admins | flag),
    required_pull_request_reviews: (.required_pull_request_reviews | reviews),
    restrictions: (if .restrictions == null then null else .restrictions | actors end),
    allow_force_pushes: false,
    allow_deletions: false
  }
  + ($current | with_entries(select(.key == "required_linear_history" or .key == "required_conversation_resolution"
      or .key == "block_creations" or .key == "lock_branch" or .key == "allow_fork_syncing"))
    | with_entries(.value |= flag))
| {action: "update", body: .}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 321kUpdated Claude CodeCodexVerifiedInstall