jeremylongshore/tons-of-skills-marketplace / plugins/community/contributing-clanker/skills/contribute-prepare
contribute-prepare
VerifiedPrepare an OSS contribution locally after a read-only contribution audit. Creates explicitly scoped candidate records, repository dossiers, worktrees, test evidence, and gate results, but never publishes to GitHub. Use when the user has selected an issue and asks to set up, research, implement, test, or draft the contribution. Trigger with "/contribute-prepare" or "prepare this contribution locally".
scripts/gates/g06-override-rate-limit.sh
View on GitHub#!/usr/bin/env bash
# Catalog: G6 — Override rate limit (anti-habituation)
# Mitigates: Round-1 security GAP-2 — under "just ship it" pressure, an agent
# learns to invoke overrides reflexively. Without a rate limit, the override
# mechanism becomes a slop escape valve. ≥3 overrides at one repo in 30d =
# the system is telling you something; pause and reflect.
source "$(dirname "$0")/lib/preamble.sh"
gate_read_input
if [[ -z "$GATE_REPO" ]]; then
gate_skip "no repo in candidate"
fi
LOG="$CONTRIBUTE_STATE_DIR/log.jsonl"
[[ ! -f "$LOG" ]] && gate_pass "no log.jsonl yet"
# Count override events in last 30 days at this repo
THIRTY_AGO=$(/usr/bin/date -u -d '30 days ago' +%s)
OVERRIDE_COUNT=$(jq -r --arg cutoff "$THIRTY_AGO" --arg repo "$GATE_REPO" '
select(.event == "gate_override")
| select(.details.repo == $repo)
| select((.ts | fromdateiso8601) >= ($cutoff | tonumber))
' "$LOG" 2>/dev/null | jq -s 'length' 2>/dev/null || /usr/bin/echo 0)
if [[ "${OVERRIDE_COUNT:-0}" -ge 3 ]]; then
gate_block "$OVERRIDE_COUNT gate overrides at $GATE_REPO in last 30 days (rate limit: 3)" "the system is telling you something. Either your scope at this repo is wrong, your dossier is out of date, or you're forcing through patterns that will eventually trigger an AI-policy closure. To override THIS rate limit: edit $CONTRIBUTE_STATE_DIR/g06-rate-limit-reset && touch it. Don't just shrug it off."
fi
gate_pass "$OVERRIDE_COUNT/3 overrides at $GATE_REPO in last 30 days"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |