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/plan-protection.sh

View on GitHub
#!/usr/bin/env sh
set -eu
# Pure local planner: consumes a saved GET response; never invokes gh or writes Git config.
# Output: {action: none|update|blocked, body?: <PUT payload>, reason?: <text>}.
# Classification does not grant authorization to send an update.
SCRIPT_DIR=$(CDPATH= cd "$(dirname "$0")" && pwd)
WORK=$(mktemp -d)
trap 'rm -rf "$WORK"' EXIT HUP INT TERM
cat > "$WORK/current.json"
classification=$(sh "$SCRIPT_DIR/classify-protection.sh" --file "$WORK/current.json")
verdict=$(printf '%s\n' "$classification" | sed -n 's/^verdict=//p')
case "$verdict" in
  satisfied) printf '{"action":"none"}\n' ;;
  absent)
    printf '%s\n' '{"action":"update","body":{"required_status_checks":null,"enforce_admins":false,"required_pull_request_reviews":null,"restrictions":null,"allow_force_pushes":false,"allow_deletions":false}}' ;;
  needs-tightening)
    # GET objects are not PUT objects. Only a known lossless conversion is supported.
    if jq -e -f "$SCRIPT_DIR/protection-request.jq" "$WORK/current.json" > "$WORK/plan.json" 2> "$WORK/error"; then
      cat "$WORK/plan.json"
    else
      printf '{"action":"blocked","reason":"unsupported or incomplete protection fields; preserve policy and report for manual review"}\n'
    fi ;;
  *) printf '{"action":"blocked","reason":"unreadable protection response"}\n' ;;
esac
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