From ralph-dev
Runs quality gates (lint/test/build/typecheck), performs two-stage code review (spec compliance + quality), commits changes with task summary, and optionally creates PRs via Ralph-dev CLI.
npx claudepluginhub mylukin/ralph-dev --plugin ralph-devThis skill is limited to using the following tools:
Run quality gates, perform two-stage code review, create commit, and optionally create pull request.
Validates code quality via tests, linting, security; auto-fixes issues; generates commits; multi-agent reviews; creates PRs. Use after features to ship confidently.
Runs strict quality gate orchestration via team-plan -> team-prd -> team-exec -> team-verify pipeline, with team-fix loops until validation passes or blockers noted. Summarizes evidence, risks, release decision.
Validates post-implementation code via tests, type checks, linting, builds; invokes code review; stacks commits with git-town; prepares PR summary. Triggers after 'finish' or tasks done.
Share bugs, ideas, or general feedback.
Run quality gates, perform two-stage code review, create commit, and optionally create pull request.
.ralph-dev/tasks/IMPORTANT: This skill requires the Ralph-dev CLI. It will build automatically on first use.
# Bootstrap CLI - runs automatically, builds if needed
source ${CLAUDE_PLUGIN_ROOT}/shared/bootstrap-cli.sh
# Verify CLI is ready
ralph-dev --version
# Context-compression resilience: Verify current phase and task progress
CURRENT_PHASE=$(ralph-dev state get --json 2>/dev/null | jq -r '.phase // "none"')
TASKS_JSON=$(ralph-dev tasks list --json 2>/dev/null)
TOTAL=$(echo "$TASKS_JSON" | jq -r '.data.total // 0')
COMPLETED=$(echo "$TASKS_JSON" | jq -r '.data.completed // 0')
FAILED=$(echo "$TASKS_JSON" | jq -r '.data.failed // 0')
echo "Current phase: $CURRENT_PHASE | Tasks: $COMPLETED/$TOTAL completed, $FAILED failed"
# Expected: deliver
# Query task stats (context-compression safe)
COMPLETED=$(ralph-dev tasks list --status completed --json | jq -r '.data.total')
TOTAL=$(ralph-dev tasks list --json | jq -r '.data.total')
echo "Tasks completed: $COMPLETED/$TOTAL"
CRITICAL: All gates must pass before delivery.
# Get verification commands from language config
VERIFY_CMDS=$(ralph-dev detect --json | jq -r '.verifyCommands[]')
# Run each command with CI=true
for cmd in $VERIFY_CMDS; do
echo "Running: $cmd"
CI=true eval "$cmd"
[ $? -ne 0 ] && { echo "GATE FAILED: $cmd"; exit 1; }
done
Standard Quality Gates:
npx tsc --noEmit)npm run lint)npm test)npm run build)Stage 1: Spec Compliance (Blocking)
Stage 2: Code Quality (Advisory)
# Stage changes
git add .
# Generate commit message based on completed tasks
# Format: feat(modules): description
git commit -m "$(cat <<EOF
feat({modules}): implement {N} tasks
Tasks completed:
{task list}
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
EOF
)"
COMMIT_SHA=$(git rev-parse --short HEAD)
If gh CLI available and on feature branch:
# Push branch
git push -u origin $(git branch --show-current)
# Create PR
gh pr create \
--title "{PR title}" \
--body "{PR body with summary, tasks, quality gates}"
Ask user about cleaning up temporary files:
state.json, progress.log, debug.logprd.md, tasks/ralph-dev state update --phase complete
REQUIRED Output Format:
---PHASE RESULT---
phase: deliver
status: complete
tasks_delivered: {N}
commit_sha: {sha}
pr_url: {url or null}
quality_gates:
typecheck: passed
lint: passed
tests: passed
build: passed
code_review:
spec_compliance: passed
code_quality: passed | passed_with_suggestions
next_phase: null
---END PHASE RESULT---
| Gate | Blocking | Retry |
|---|---|---|
| Type checking | Yes | Fix errors, re-run |
| Linting | Yes | Fix errors, re-run |
| Tests | Yes | Fix failures, re-run |
| Build | Yes | Fix errors, re-run |
| Spec compliance | Yes | Implementation incomplete |
| Code quality | No | Suggestions only |
CI=true when running verification commandsCo-Authored-By in commit message| Error | Action |
|---|---|
| Quality gate fails | Stop delivery, report failure, don't commit |
| Spec compliance issues | Report issues, don't commit |
| Commit fails | Abort delivery, report error |
| PR creation fails | Continue (manual PR fallback) |
| gh CLI not found | Skip PR, show manual instructions |