Merged
Conversation
Contributor
WiktorStarczewski
left a comment
There was a problem hiding this comment.
Overview
Adds Claude Code automation scaffolding: three sub-agents (changelog-manager, code-reviewer, security-reviewer), five shell hooks wired through .claude/settings.json, a /codify-lesson slash command, and a starter CHANGELOG.md. No runtime code changes.
The design is good - I particularly like the two-persona adversarial security reviewer, the parallel code+security review on push, and the deny-by-default draft PR hook. The execution has a handful of real bugs that prevent some hooks from doing what the PR description says they do; I've left inline comments on each.
What's done well
- Two-persona adversarial security reviewer with merge-and-promote logic - worth stealing.
pre-push-review.shdecouples severity policy from agent prompts and keeps it in the hook with a clear comment explaining the divergence.pre-pr-draft.shis the template the other hooks should aim at: defensive command match, clear--no-draftvs--draftdecision, JSON-encoded reason, escape hatch, best-effort corrected-command suggestion..gitignoreswitch from ignoring all of.claude/to ignoring onlysettings.local.jsonandworktrees/is exactly right for shipping shared Claude config.- Milestone-driven version resolution for the changelog is a much better design than a hardcoded
vX.Y.Z, and the "give up and ask the human" fallback is the right failure mode.
Nits (not worth an inline anchor)
- Every added file ends with
\ No newline at end of file. I would add trailing newlines. pre-pr-draft.shhas trailing whitespace on several lines..claude/commands/codify-lesson.md- "Touch only.claude/lessons.mdwithout explicit user confirmation" reads backwards; intended meaning seems to be "Touch only lessons.md; hooks and CLAUDE.md edits require confirmation."post-pr-create-changelog.shuses[ -z X ] || [ -z Y ] || [ -z Z ] && exit 0. It happens to work because&&/||are equal precedence and left-associate, but it's fragile - I would use an explicitif ... ; then exit 0; fi.CHANGELOG.mdstyle guide says "past-tense imperative" - those are opposites. I think you mean past-tense declarative (Added,Fixed)..claude/CLAUDE.mdduplicates a lot of content from the global~/.claude/CLAUDE.md. Consider narrowing the project file to project-specific deltas.
Suggested minimum bar before merge
- Fix the
# !/bin/bashshebang or deletepre-push-test.sh. - Delete
post-pr-create-ci-monitor.shor add and wire theci-monitoragent. - Fix the two
gh repo view ... -- <path>commands inchangelog-manager.md. - Swap
grep -oP->grep -oEin both post-PR hooks. - Confirm
"if"is a real field in your Claude Code version; if not, move filters intomatcheror add internal guards. chmod +xall hook scripts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows: 0xMiden/protocol#2783
Desired workflow:
The goal is to codify our shared knowledge into a set of actionable artifacts.