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/g01-no-vendored-edits.sh
View on GitHub#!/usr/bin/env bash
# Catalog: G1 — Block hand-edits to vendored / generated paths
# Vendored dirs (vendor/, node_modules/, dist/, etc.) must regenerate from
# source. Lockfile changes are common and legitimate (dependency bumps);
# treat them as WARN, not BLOCK.
source "$(dirname "$0")/lib/preamble.sh"
gate_read_input
CLONE="$CONTRIBUTE_WORKSPACE_DIR/${GATE_REPO##*/}"
if [[ ! -d "$CLONE/.git" ]]; then
gate_skip "no local clone at $CLONE"
fi
DEFAULT_BRANCH=$(fm_field "$GATE_DOSSIER_PATH" "default_branch")
[[ -z "$DEFAULT_BRANCH" ]] && DEFAULT_BRANCH="main"
CHANGED=$(/usr/bin/git -C "$CLONE" diff "$DEFAULT_BRANCH..HEAD" --name-only 2>/dev/null || /usr/bin/echo "")
if [[ -z "${CHANGED// /}" ]]; then
gate_pass "no changed files"
fi
VENDOR_HITS=()
LOCKFILE_HITS=()
# Vendor-dir patterns (BLOCK)
VENDOR_RE='^(vendor/|node_modules/|\.next/|dist/|build/|generated/|_generated/)'
# Lockfile patterns (WARN)
LOCKFILE_RE='(^pnpm-lock\.yaml$|^package-lock\.json$|^Cargo\.lock$|^poetry\.lock$|^uv\.lock$|^yarn\.lock$|\.lock$)'
while IFS= read -r f; do
[[ -z "$f" ]] && continue
if /usr/bin/printf '%s' "$f" | /usr/bin/grep -qE "$VENDOR_RE"; then
VENDOR_HITS+=("$f")
elif /usr/bin/printf '%s' "$f" | /usr/bin/grep -qE "$LOCKFILE_RE"; then
LOCKFILE_HITS+=("$f")
fi
done <<< "$CHANGED"
if (( ${#VENDOR_HITS[@]} > 0 )); then
JOINED=$(/usr/bin/printf '%s, ' "${VENDOR_HITS[@]}" | /usr/bin/sed 's/, $//')
gate_block "vendored/generated paths edited: $JOINED" "regenerate from source instead of editing by hand; if this is intentional, override with --override-gate G1"
fi
if (( ${#LOCKFILE_HITS[@]} > 0 )); then
JOINED=$(/usr/bin/printf '%s, ' "${LOCKFILE_HITS[@]}" | /usr/bin/sed 's/, $//')
gate_warn "lockfile changes detected: $JOINED" "verify the lockfile changes are intentional (dependency bumps) and not stale-checkout artifacts"
fi
gate_pass "no vendored/generated path edits"
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 |