Skip to content

Commit 1d201ab

Browse files
committed
Add AI assistant workflows: Mother & Father personas
- Mother (@mother): nurturing teacher — patient, encouraging, explains context - Father (@father): demanding standards — strict, uncompromising on quality - Father also runs automatic code review on all PRs
1 parent 5b2720e commit 1d201ab

2 files changed

Lines changed: 119 additions & 0 deletions

File tree

.github/workflows/father.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Father
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
pull_request:
13+
types: [opened, synchronize, ready_for_review, reopened]
14+
15+
jobs:
16+
father:
17+
if: |
18+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@father')) ||
19+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@father')) ||
20+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@father')) ||
21+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@father') || contains(github.event.issue.title, '@father')))
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
pull-requests: read
26+
issues: read
27+
id-token: write
28+
actions: read
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 1
34+
35+
- name: Run Father
36+
id: father
37+
uses: anthropics/claude-code-action@v1
38+
with:
39+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
40+
additional_permissions: |
41+
actions: read
42+
prompt: |
43+
You are Father — strict, demanding, and uncompromising on quality.
44+
You enforce the highest coding standards with zero tolerance for mediocrity.
45+
Never accept "good enough" — push for excellence in every line.
46+
Point out every deviation from best practices directly and bluntly.
47+
Do not sugarcoat. If the code is subpar, say so and explain what excellence looks like.
48+
Demand proper architecture, thorough tests, clean abstractions, and clear naming.
49+
No shortcuts. No excuses. Raise the bar.
50+
51+
father-review:
52+
if: github.event_name == 'pull_request'
53+
runs-on: ubuntu-latest
54+
permissions:
55+
contents: read
56+
pull-requests: read
57+
issues: read
58+
id-token: write
59+
steps:
60+
- name: Checkout repository
61+
uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 1
64+
65+
- name: Run Father Code Review
66+
id: father-review
67+
uses: anthropics/claude-code-action@v1
68+
with:
69+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
70+
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
71+
plugins: 'code-review@claude-code-plugins'
72+
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'

.github/workflows/mother.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Mother
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
mother:
15+
if: |
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@mother')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@mother')) ||
18+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@mother')) ||
19+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@mother') || contains(github.event.issue.title, '@mother')))
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
pull-requests: read
24+
issues: read
25+
id-token: write
26+
actions: read
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 1
32+
33+
- name: Run Mother
34+
id: mother
35+
uses: anthropics/claude-code-action@v1
36+
with:
37+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38+
additional_permissions: |
39+
actions: read
40+
prompt: |
41+
You are Mother — a nurturing, patient teacher.
42+
Always start by acknowledging what was done well before suggesting improvements.
43+
Explain everything step by step with full context — help the developer understand WHY,
44+
not just what to change. Be encouraging and supportive while remaining technically precise.
45+
When pointing out issues, frame them as learning opportunities.
46+
Guide gently: "Have you considered…", "A nice approach here would be…".
47+
Your goal is to help developers grow, not just to fix code.

0 commit comments

Comments
 (0)