Skip to content

Commit 52502b5

Browse files
Your Nameclaude
andcommitted
Mirror repo structure: use .personas/ as the source
The agent-persona repo now uses the same structure as user repos: - .personas/blank/ - shipped "no instructions" persona - .personas/template/ - starter template - .personas/meta.AGENTS.md - template (auto-ignored until edited) This makes the repo itself a working example. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c72e8d6 commit 52502b5

File tree

6 files changed

+6
-18
lines changed

6 files changed

+6
-18
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ tests/tmp/
2020
# Local-only personas (keep private, never commit)
2121
personas.local/
2222
profiles.local/
23-
/.personas/
24-
!examples/.personas/
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Repo-Wide Agent Instructions
22

33
These instructions are automatically merged into every persona launched in this repository.
4-
Place this file at `.personas/meta.AGENTS.md` in your repo root.
4+
Edit this file to add project-specific context for your agents.
55

66
## Project Context
77
<!-- Describe your project so agents understand the codebase -->
File renamed without changes.

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ ln -s ~/.local/bin/agent-persona ~/.local/bin/opencode-persona
4141
# 3. Create persona directories
4242
mkdir -p ~/.local/share/agent-persona/personas ~/.local/share/agent-persona/personas.local
4343

44-
# 4. Copy example personas
45-
cp -r personas/* ~/.local/share/agent-persona/personas/
44+
# 4. Copy shipped personas
45+
cp -r .personas/* ~/.local/share/agent-persona/personas/
4646

4747
# 5. Ensure ~/.local/bin is in PATH
4848
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

install.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ install_persona() {
7171
cp "$src/AGENTS.md" "$SHARE_DIR/personas/$name/"
7272
[[ -f "$src/persona.json" ]] && cp "$src/persona.json" "$SHARE_DIR/personas/$name/"
7373
else
74-
fetch "$REPO_URL/personas/$name/AGENTS.md" "$SHARE_DIR/personas/$name/AGENTS.md"
74+
fetch "$REPO_URL/.personas/$name/AGENTS.md" "$SHARE_DIR/personas/$name/AGENTS.md"
7575
fi
7676
info "Installed persona: $name"
7777
}
7878

79-
if [[ -n "$SCRIPT_DIR" && -d "$SCRIPT_DIR/personas" ]]; then
80-
for persona in "$SCRIPT_DIR/personas"/*; do
79+
if [[ -n "$SCRIPT_DIR" && -d "$SCRIPT_DIR/.personas" ]]; then
80+
for persona in "$SCRIPT_DIR/.personas"/*; do
8181
[[ -d "$persona" ]] || continue
8282
install_persona "$(basename "$persona")" "$persona"
8383
done
@@ -86,16 +86,6 @@ else
8686
install_persona "template" ""
8787
fi
8888

89-
# Install examples
90-
if [[ -n "$SCRIPT_DIR" && -d "$SCRIPT_DIR/examples" ]]; then
91-
cp -r "$SCRIPT_DIR/examples" "$SHARE_DIR/"
92-
info "Installed examples"
93-
else
94-
mkdir -p "$SHARE_DIR/examples/.personas"
95-
fetch "$REPO_URL/examples/.personas/meta.AGENTS.md" "$SHARE_DIR/examples/.personas/meta.AGENTS.md"
96-
info "Installed examples"
97-
fi
98-
9989
# Check PATH
10090
if [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then
10191
warn "$BIN_DIR is not in PATH"

0 commit comments

Comments
 (0)