agent-identity
Without identity infrastructure, every Claude Code session starts from zero. The agent has no name, no remembered preferences, no sense of who it works with or what it has learned. Context compaction erases everything mid-session. This skill fixes that — no external tools required.
npx skills add majiayu000/claude-skill-registry --skill agent-identity --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: agent-identity description: Set up persistent agent identity files (AGENT.md, USER.md, MEMORY.md) and teach the agent to read them at every session start. Works in any Claude Code project — no external dependencies required. Trigger words: who am I, identity, remember me, agent name, my principles, who are you, what are my values. license: MIT metadata: author: sagemindai version: "1.0" homepage: https://instar.sh --- # agent-identity — Persistent Agent Identity for Claude Code Without identity infrastructure, every Claude Code session starts from zero. The agent has no name, no remembered preferences, no sense of who it works with or what it has learned. Context compaction erases everything mid-session. This skill fixes that — no external tools required. ## What This Skill Creates Three files at `.claude/identity/`: - **AGENT.md** — Who the agent is: name, role, personality, principles - **USER.md** — Who the agent works with: preferences, context, communication style - **MEMORY.md** — What the agent has learned across sessions And a reference in **CLAUDE.md** that teaches the agent to read them at every session start. --- ## Step 1: Create the Identity Directory ```bash
- What This Skill Creates
- Step 1: Create the Identity Directory
- Step 2: Create AGENT.md
- Step 3: Create USER.md
- Step 4: Create MEMORY.md
- Step 5: Wire Into CLAUDE.md
- Step 6: Reading at Session Start
- Updating Memory Over Time
- What to Write vs. What to Skip
- Going Further
mkdir -p .claude/identity cat .claude/identity/AGENT.md cat .claude/identity/USER.md cat .claude/identity/MEMORY.md Append a new entry cat >> .claude/identity/MEMORY.md << 'EOF' npx instar
What does the agent-identity skill do?
Without identity infrastructure, every Claude Code session starts from zero. The agent has no name, no remembered preferences, no sense of who it works with or what it has learned. Context compaction erases everything mid-session. This skill fixes that — no external tools required.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill agent-identity --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
