Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill agent-identity --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Path: skills/agent/agent-identity/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

--- 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's inside
Steps it walks through
  1. What This Skill Creates
  2. Step 1: Create the Identity Directory
  3. Step 2: Create AGENT.md
  4. Step 3: Create USER.md
  5. Step 4: Create MEMORY.md
  6. Step 5: Wire Into CLAUDE.md
  7. Step 6: Reading at Session Start
  8. Updating Memory Over Time
  9. What to Write vs. What to Skip
  10. Going Further
Ships with 1 file
  • metadata.json
Commands it runs
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
More from claude-skill-registry
All skills →
About this skill
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.

Keep going