aggregate-logs
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Prepare a PR end-to-end by updating documentation, running tests, dogfooding checks, and validating with code review.
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/prepare-prContext preview
What this command does when you run it.
Prepare a PR end-to-end by updating documentation, running tests, dogfooding checks, and validating with code review.
name: prepare-pr
aliases: [pr]
description: Prepare a PR end-to-end by updating documentation, running tests, dogfooding checks, and validating with code review.
usage: /prepare-pr [--no-code-review] [--reviewer-scope strict|standard|lenient] [--skip-updates] [destination-file]
extends: "superpowers:receiving-code-review"
# Claude Code 2.1.0+ lifecycle hooks
hooks:
PreToolUse:
- matcher: "Skill|Task"
command: |
# Log PR preparation start with options
echo "[cmd:prepare-pr] PR preparation started at $(date) | User: ${USER:-unknown}" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/command-audit.log
# Track code review option (important for quality metrics)
if echo "$CLAUDE_TOOL_INPUT" | grep -q "no-code-review"; then
echo "[cmd:prepare-pr] ⚠️ Option: --no-code-review (automated review SKIPPED)" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/command-audit.log
fi
# Track reviewer scope
if echo "$CLAUDE_TOOL_INPUT" | grep -q "reviewer-scope"; then
scope=$(echo "$CLAUDE_TOOL_INPUT" | grep -oP 'reviewer-scope["\s:=]+\K\w+')
echo "[cmd:prepare-pr] Reviewer scope: ${scope:-standard}" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/command-audit.log
fi
# Track update skip option
if echo "$CLAUDE_TOOL_INPUT" | grep -q "skip-updates"; then
echo "[cmd:prepare-pr] ⚠️ Option: --skip-updates (documentation updates SKIPPED)" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/command-audit.log
fi
once: true
PostToolUse:
- matcher: "Bash"
command: |
# Log quality gate execution
if echo "$CLAUDE_TOOL_INPUT" | grep -qE "(make|npm|cargo) (test|lint|fmt|build)"; then
cmd=$(echo "$CLAUDE_TOOL_INPUT" | jq -r '.command // empty' 2>/dev/null || echo 'N/A')
echo "[cmd:prepare-pr] ✓ Quality gate executed: $cmd" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/command-audit.log
fi
Stop:
- command: |
echo "[cmd:prepare-pr] === PR preparation completed at $(date) ===" >> ${CLAUDE_CODE_TMPDIR:-/tmp}/command-audit.log
# Could push to PR metrics dashboardOrchestrates the full PR preparation workflow by running documentation updates, dogfooding checks, README updates, and test reviews before validating with code review. This is the "one command to prepare everything" before submitting a PR.
Unless `--skip-updates` is specified:
1. **Update Documentation**
/sanctum:update-docs
2. **Update Makefile Dogfooding**
/abstract:make-dogfood
3. **Update README**
/sanctum:update-readme
4. **Update Tests**
/sanctum:update-tests
5. **Workspace Review**
Skill(sanctum:git-workspace-review)
6. **Quality Gates**
# Project-specific commands detected automatically make lint # or equivalent (formats, then checks) make test # or equivalent
7. **Automated Code Review**
Skill(superpowers:receiving-code-review)
8. **PR Template Generation**
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.