improve-a5

star 6

Improve adoption criterion A5 (Workflow Integration) by embedding agents into pull request creation, CI observation, and review processes. Raises the fulfillment level by one step.

jaksa76 By jaksa76 schedule Updated 5/22/2026

name: improve-a5 description: Improve adoption criterion A5 (Workflow Integration) by embedding agents into pull request creation, CI observation, and review processes. Raises the fulfillment level by one step. allowed-tools: Bash Read Write Edit

Improve A5 — Workflow Integration

Current State

Examine the project to understand its current state:

  • Check CLAUDE.md, AGENTS.md, and skill files for any PR creation or workflow guidance.
  • Look at recent git history for evidence of agent-created pull requests.
  • Look at CI workflow files for review automation or deployment steps.
  • Check the MCP server configuration for any CI or GitHub/GitLab access.

Instructions

Step 1 — Determine current level:

  • Level 0: Agents used in isolation; all handoffs (PRs, reviews, CI, deployments) are managed by humans
  • Level 1: Agents assist with tasks but humans handle all handoffs; agent output is manually incorporated
  • Level 2: Agents create pull requests with generated descriptions; agents observe CI results as part of their workflow
  • Level 3: Agents are fully embedded: create PRs, post review comments, monitor CI, trigger and observe deployments

Assessment guide:

  • If no skills or CLAUDE.md mention gh pr create or PR workflows → Level 0 or 1
  • If skills/CLAUDE.md instruct agents to create PRs but no CI monitoring → Level 2
  • If CI observation is in skills and agents post review comments or monitor deployments → Level 3

Step 2 — Implement the improvement:

If current level is 0 → raise to 1: Update CLAUDE.md (create if absent) with a workflow section that describes the expected handoff process:

## Workflow Handoffs

When completing implementation work:
1. Summarize what was changed and why in your response
2. List all files modified
3. The developer will review the diff and incorporate it into a PR manually

Also add to any existing implementation skills a final "Handoff" section that lists files changed and suggests a commit message.

If current level is 1 → raise to 2: Add PR creation steps to CLAUDE.md and to all implementation skills:

  1. Update CLAUDE.md with PR creation guidance:
## Creating Pull Requests

When implementation is complete and tests pass, create a PR:

```bash
git checkout -b feat/<short-description>
git add <changed files>
git commit -m "feat: <description>

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>"
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<bullet points of what was implemented>

## Test plan
- [ ] Tests pass locally (all suites)
- [ ] Reviewed for regressions

🤖 Generated with Claude Code
EOF
)"

After creating the PR, note the PR URL in your response.


2. **Update all implementation skills** (`implement-feature`, `implement-story`, `fix-bug` if they exist) to include a "Create PR" step before "Report":
   - `git checkout -b` with a descriptive branch name
   - `git add` and `git commit` with co-authorship
   - `gh pr create` with a structured body

3. **Check if `gh` CLI is available**: Run `which gh 2>/dev/null || echo "not installed"`. If not installed, note in CLAUDE.md that `gh` must be installed (`brew install gh` / `sudo apt install gh`) and authenticated (`gh auth login`).

**If current level is 2 → raise to 3:**
Add CI monitoring and review comment capabilities:

1. **Update CLAUDE.md** with post-PR verification guidance:
```markdown
## Post-PR Verification

After creating a PR:
1. Note the PR number from `gh pr create` output
2. Wait for CI to start: `gh run list --branch <branch> --limit 3`
3. Watch CI status: `gh run watch <run-id>`
4. If CI fails, read the failure: `gh run view <run-id> --log-failed`
5. Fix the issue, push, and re-verify
6. Only request review when CI passes
  1. Add a GitHub MCP server to .claude/settings.json if not present:
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}" }
    }
  }
}
  1. Create a PR review comment workflow at .github/workflows/agent-review.yml:
name: Agent Review
on:
  pull_request:
    types: [opened, synchronize]
jobs:
  review:
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Post review checklist comment
        env:
          GH_TOKEN: ${{ github.token }}
        run: |
          gh pr comment ${{ github.event.pull_request.number }} \
            --body "## Agent Review Checklist
          - [ ] Tests pass in CI
          - [ ] No new lint warnings
          - [ ] Co-authorship trailer present
          - [ ] PR description explains the change"
  1. Update implementation skills to include CI watching as a step after PR creation.

If already at level 3: Report that A5 is already at its maximum level (3) and no improvement is needed.

Step 3 — Report: State what files were created or modified, the before and after level.

Install via CLI
npx skills add https://github.com/jaksa76/agentize --skill improve-a5
Repository Details
star Stars 6
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator