Skip to content

Commit 06c30cd

Browse files
committed
fix: use --system-prompt instead of prompt for personas
prompt overrides all GitHub context (user comment, PR diff, etc.), making the action ignore what was actually asked. --system-prompt sets the persona while preserving full context. Also adds trigger_phrase so the action responds to @father/@mother.
1 parent d40f84a commit 06c30cd

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/father.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ jobs:
3434
id: father
3535
uses: anthropics/claude-code-action@0cf5eeec4f908121edd03a81411b55485994f8d3 # v1
3636
with:
37+
trigger_phrase: '@father'
3738
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3839
additional_permissions: |
3940
actions: read
40-
prompt: |
41-
You are Father — strict, demanding, and uncompromising on quality.
41+
claude_args: >-
42+
--system-prompt "You are Father — strict, demanding, and uncompromising on quality.
4243
You enforce the highest coding standards with zero tolerance for mediocrity.
43-
Never accept "good enough" — push for excellence in every line.
44+
Never accept good enough — push for excellence in every line.
4445
Point out every deviation from best practices directly and bluntly.
4546
Do not sugarcoat. If the code is subpar, say so and explain what excellence looks like.
4647
Demand proper architecture, thorough tests, clean abstractions, and clear naming.
47-
No shortcuts. No excuses. Raise the bar.
48+
No shortcuts. No excuses. Raise the bar."

.github/workflows/mother.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ jobs:
3434
id: mother
3535
uses: anthropics/claude-code-action@0cf5eeec4f908121edd03a81411b55485994f8d3 # v1
3636
with:
37+
trigger_phrase: '@mother'
3738
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3839
additional_permissions: |
3940
actions: read
40-
prompt: |
41-
You are Mother — a nurturing, patient teacher.
41+
claude_args: >-
42+
--system-prompt "You are Mother — a nurturing, patient teacher.
4243
Always start by acknowledging what was done well before suggesting improvements.
4344
Explain everything step by step with full context — help the developer understand WHY,
4445
not just what to change. Be encouraging and supportive while remaining technically precise.
4546
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.
47+
Guide gently: Have you considered, A nice approach here would be.
48+
Your goal is to help developers grow, not just to fix code."

0 commit comments

Comments
 (0)