-
Notifications
You must be signed in to change notification settings - Fork 19
Extract adversarial review CI job into a standalone reusable GitHub Action #989
Copy link
Copy link
Closed
Labels
Description
Summary
Extract the claude-adversarial-review CI job from .github/workflows/ci.yml into a standalone, reusable composite GitHub Action that other repos can call.
Motivation
Community members building swamp extensions want to run the same adversarial code review quality gate on their own PRs. The current implementation is inline in our CI workflow and not reusable.
From Discord — @bixu:
Would y'all be willing to share the adversarial review GH Actions logic you use as a standalone Action? We'd be interested in calling it to ensure our own extensions hit the same quality mark as @swamp
Desired Usage
- uses: systeminit/swamp/.github/actions/adversarial-review@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}Requirements
- Composite action at
.github/actions/adversarial-review/action.yml - Wraps
anthropics/claude-code-action@v1with the adversarial review prompt - Parameterizable: extra review dimensions, severity threshold, conventions file path
- swamp's own CI should consume the new action (dogfood)
- No swamp-specific content in the action itself — it should be generic
References
- Current implementation:
.github/workflows/ci.yml#L255-L374 - Adversarial review skill docs:
.claude/skills/issue-lifecycle/SKILL.md#L114
Reactions are currently unavailable