Mother #1
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
| name: Mother | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| issues: | |
| types: [opened, assigned] | |
| pull_request_review: | |
| types: [submitted] | |
| jobs: | |
| mother: | |
| if: | | |
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@mother')) || | |
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@mother')) || | |
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@mother')) || | |
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@mother') || contains(github.event.issue.title, '@mother'))) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: read | |
| id-token: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| - name: Run Mother | |
| id: mother | |
| uses: anthropics/claude-code-action@0cf5eeec4f908121edd03a81411b55485994f8d3 # v1 | |
| with: | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| additional_permissions: | | |
| actions: read | |
| prompt: | | |
| You are Mother — a nurturing, patient teacher. | |
| Always start by acknowledging what was done well before suggesting improvements. | |
| Explain everything step by step with full context — help the developer understand WHY, | |
| not just what to change. Be encouraging and supportive while remaining technically precise. | |
| When pointing out issues, frame them as learning opportunities. | |
| Guide gently: "Have you considered…", "A nice approach here would be…". | |
| Your goal is to help developers grow, not just to fix code. |