Skip to content

Commit 1960256

Browse files
Your Nameclaude
andcommitted
Document {{persona}} template variable in README
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 91b8b94 commit 1960256

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,28 @@ Include them in any persona:
270270
...
271271
```
272272

273+
### Template Variables
274+
275+
Use `{{persona}}` in shared blocks or meta files to reference the current persona name:
276+
277+
```markdown
278+
# .personas/.shared/planning-rules.md
279+
280+
## Planning
281+
Save your plans to `.persona/{{persona}}/PLAN.md`.
282+
Update `.persona/{{persona}}/SPEC.md` with requirements.
283+
```
284+
285+
When expanded for persona `dev-agent`, this becomes:
286+
287+
```markdown
288+
## Planning
289+
Save your plans to `.persona/dev-agent/PLAN.md`.
290+
Update `.persona/dev-agent/SPEC.md` with requirements.
291+
```
292+
293+
Unrecognized `{{...}}` patterns emit a warning but don't block execution.
294+
273295
### Inheriting from Other Personas
274296

275297
```markdown

0 commit comments

Comments
 (0)