aggregate-logs
CommandGenerate 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-market
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"
Orchestrates 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**
The generated PR description includes:
Section names come from `sanctum:pr-prep/modules/pr-template.md`, which is the source of record. Keep this block in sync with it. The pytest contract in `plugins/sanctum/tests/test_pr_template_contract.py` fails if they drift.
[Imperative, self-contained title] | | | |---|---| | **Who** | audience for the change; out-of-band reviewer if any | | **Where** | internal: module + file count. External: consumers, or `none` | | **When** | `on merge`, or the flag / migration window / integration date | ## Why [Motivating problem, why merging now matters, linked issue] ## What and how [What changed in the reader's terms; approach and rejected alternative when a real decision point existed] ## Test plan 1. `make test`: 142/142 passing 2. `make lint`: clean (2 warnings) 3. Manual: [command] Expected: [observable result] ## Quality gates - [x] Formatting: passed - [x] Linting: passed (2 warnings) - [x] Tests: passed (142/142) ## Code review findings ### Critical issues (0) ### Suggestions (3) ### Observations (2) ## Checklist - [ ] Tests fail if the change is reverted - [ ] Docs updated (README, Makefile dogfooding, capabilities reference) - [ ] Breaking changes stated in the Where row - [ ] One logical change per PR (no bundled formatting or unrelated refactors) - [ ] Agent-generated code curated (no redundant implementations or premature abstractions)
`Quality gates` and `Code review findings` are specific to this command, which runs the gates itself. The plain `pr-prep` workflow emits the template without them.
# If quality gates fail Error: Linting failed with 3 errors Run 'ma
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.
Generate context optimization report for skill directories
Create slash commands with brainstorming and best practices
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.