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/c13-bots-passed.sh
View on GitHub#!/usr/bin/env bash
# Catalog: C13 — Required review bots haven't reviewed/commented yet
source "$(dirname "$0")/lib/preamble.sh"
gate_read_input
PR_NUMBER=$(fm_field "$GATE_CANDIDATE_PATH" "pr_number")
if [[ -z "$PR_NUMBER" ]]; then
gate_skip "no pr_number in candidate (no PR yet)"
fi
# Parse review_bots: list from dossier — ` - <name>` lines following `review_bots:`
BOTS_RAW=$(/usr/bin/awk '
/^---$/ { fm = !fm ? 1 : 2; next }
fm != 1 { next }
/^review_bots:/ { collecting = 1; next }
collecting && /^[[:space:]]+-[[:space:]]+/ {
sub(/^[[:space:]]+-[[:space:]]+/, "")
gsub(/^"|"$/, "")
print
next
}
collecting && /^[A-Za-z]/ { collecting = 0 }
' "$GATE_DOSSIER_PATH" 2>/dev/null || /usr/bin/echo "")
if [[ -z "$BOTS_RAW" ]]; then
gate_skip "no review_bots listed in dossier"
fi
# Filter "(none detected)" sentinel
declare -a BOTS=()
while IFS= read -r line; do
[[ -z "$line" ]] && continue
[[ "$line" == "(none detected)" ]] && continue
BOTS+=("$line")
done <<< "$BOTS_RAW"
if (( ${#BOTS[@]} == 0 )); then
gate_skip "review_bots list empty or (none detected)"
fi
# Pull all reviewer + commenter logins from the PR
REVIEWERS=$(gh_safe pr view "$PR_NUMBER" --repo "$GATE_REPO" --json reviews,comments \
--jq '[.reviews[].author.login, .comments[].author.login] | unique | join(",")' 2>/dev/null || /usr/bin/echo "")
# For each required bot, substring match against the reviewers/commenters list (lowercased)
REVIEWERS_LC=$(/usr/bin/printf '%s' "$REVIEWERS" | /usr/bin/tr '[:upper:]' '[:lower:]')
declare -a MISSING=()
for bot in "${BOTS[@]}"; do
bot_lc=$(/usr/bin/printf '%s' "$bot" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/tr -d '-')
reviewers_norm=$(/usr/bin/printf '%s' "$REVIEWERS_LC" | /usr/bin/tr -d '-')
if [[ "$reviewers_norm" != *"$bot_lc"* ]]; then
MISSING+=("$bot")
fi
done
if (( ${#MISSING[@]} > 0 )); then
joined=$(IFS=', '; /usr/bin/printf '%s' "${MISSING[*]}")
gate_warn "waiting on review from: $joined" "wait for these bots to weigh in before flipping to ready-for-review"
fi
gate_pass "all required review bots have engaged on the PR"
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 |