AgentFlows
ClaudeCommentNot executed· 1 caveat

@claude mention assistant on issues and PRs

issue_comment / pull_request_review_comment containing @claude

No `prompt` → the action runs in tag/interactive mode and responds to the comment. `trigger_phrase` default is `@claude` (usage.md).

Estimated cost per run

~$0.27

Estimated, not measured.

Basis. ASSUMPTION (8 runner min x $0.006/min GitHub-hosted Linux 2-core (docs.github.com/en/billing/reference/actions-runner-pricing)) + ASSUMED 80,000 input / 6,000 output tokens at Claude Sonnet 5 API $2/MTok in, $10/MTok out (platform.claude.com/docs/en/about-claude/pricing). Token counts are not measured; replace after a real test run.

Verification

Last checked Oct 16, 2026.

inputs checked against source docs; workflow not executed.

Open caveats

  • The exact `if:` guard and permission set are a common pattern, not copied verbatim from usage.md — check against the docs' basic example.

Workflow YAML

Copy the file as-is. Highlighting is only for reading.

workflow.yml

name: Claudeon:  issue_comment:    types: [created]  pull_request_review_comment:    types: [created]jobs:  claude:    if: contains(github.event.comment.body, '@claude')    runs-on: ubuntu-latest    permissions:      contents: write      pull-requests: write      issues: write      id-token: write    steps:      - uses: actions/checkout@v6      - uses: anthropics/claude-code-action@v1        with:          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}          trigger_phrase: "@claude"

More workflows

  • Claude01

    Claude auto PR review

    Copied from the official Solutions Guide basic example (prompt shortened).

    pull_request: opened, synchronize

    Estimated cost~$0.18

    Not executed

    Checked Oct 16, 2026

  • Claude02

    Claude PR review with progress tracking

    `track_progress: true` posts a checkbox tracking comment (per Solutions Guide).

    pull_request: opened, synchronize, ready_for_review, reopened

    Estimated cost~$0.22

    Not executed

    Checked Oct 16, 2026

  • Claude04

    Implement an issue when a label is applied

    `label_trigger`: 'The label name that triggers the action when applied to an issue' (usage.md).

    issues: labeled (label_trigger)

    Estimated cost~$0.69

    Not executed· 1 caveat

    Checked Oct 16, 2026