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/b05-dco-signoff.sh
View on GitHub#!/usr/bin/env bash
# Catalog: B5 — Commits missing Signed-off-by when dossier requires DCO
source "$(dirname "$0")/lib/preamble.sh"
gate_read_input
if [[ -z "$GATE_DOSSIER_PATH" || ! -f "$GATE_DOSSIER_PATH" ]]; then
gate_skip "no dossier"
fi
DCO=$(fm_field "$GATE_DOSSIER_PATH" "dco_required")
if [[ "$DCO" != "true" ]]; then
gate_skip "dossier does not require DCO"
fi
DEFAULT_BRANCH=$(fm_field "$GATE_DOSSIER_PATH" "default_branch")
if [[ -z "$DEFAULT_BRANCH" ]]; then
gate_skip "no default_branch in dossier"
fi
REPO_NAME="${GATE_REPO##*/}"
CLONE_DIR="$CONTRIBUTE_WORKSPACE_DIR/$REPO_NAME"
if [[ ! -d "$CLONE_DIR/.git" ]]; then
gate_skip "no local clone at $CLONE_DIR"
fi
cd "$CLONE_DIR" || gate_skip "cannot cd to clone dir"
# Iterate per-commit so we can flag exactly which sha is missing the trailer.
MISSING=""
COMMITS=$(/usr/bin/git rev-list "origin/$DEFAULT_BRANCH..HEAD" 2>/dev/null || /usr/bin/echo "")
if [[ -z "$COMMITS" ]]; then
gate_pass "no new commits to check"
fi
while read -r sha; do
[[ -z "$sha" ]] && continue
BODY=$(/usr/bin/git log -1 --format=%B "$sha" 2>/dev/null || /usr/bin/echo "")
if ! /usr/bin/printf '%s' "$BODY" | /usr/bin/grep -q "^Signed-off-by:"; then
MISSING="${MISSING}${sha:0:8} "
fi
done <<< "$COMMITS"
if [[ -n "$MISSING" ]]; then
COUNT=$(/usr/bin/printf '%s' "$COMMITS" | /usr/bin/grep -c .)
gate_block "commits missing Signed-off-by: $MISSING" "git commit --amend -s OR sign all commits: git rebase HEAD~$COUNT --signoff"
fi
gate_pass "all commits have Signed-off-by trailer"
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 |