0x0w1/jig / .claude/skills/github-sync
github-sync
VerifiedUse 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 17.7 KB |
| assets/guard-push.shexecutable | script | 2.5 KB |
| assets/pre-pushexecutable | script | 1.9 KB |
| scripts/classify-protection.shexecutable | script | 5.0 KB |
| scripts/manage-native-hooks.shexecutable | script | 14.4 KB |
| scripts/manage-pre-push.shexecutable | script | 4.2 KB |
| scripts/plan-protection.sh | script | 1.3 KB |
| scripts/protection-request.jq | other | 3.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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 469k | Updated | Claude CodeCodex | Verified | Install |
| 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: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |