Skip to content

Extract adversarial review CI job into a standalone reusable GitHub Action #989

@keeb

Description

@keeb

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@v1 with 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions