agentleFS
hailneedhailneed/devpersona/skills/analyze/SKILL.md

analyze

Skill2 starsChanged 2 months agoMITView on GitHub

Build a developer character profile (persona card) from the user's local coding-agent history — Claude Code, Codex CLI and Gemini CLI transcripts, session titles, and auto-memory files, with projects worked on in several agents merged into one profile. Use when the user asks to analyze their agent or Claude Code history or past sessions, asks what kind of developer they are, says "analyze me", "build my persona", "karakterimi çıkar", "geçmişimi analiz et", or runs /devpersona:analyze. Not for generating improvement suggestions — that is devpersona:advise. Not for raw numbers only — that is devpersona:stats.

71 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constitution, revise and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArvorCoSkill

    constitution

    Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.

    Also in 4 projects that use this

  • stormlightlabsSkill

    revise

    Address review comments on an open pull request and push the fixes. Use for /edit, /revise, or when asked to respond to review feedback on a PR number.

    Also in 3 projects that use this

  • DockerSkill

    write

    Write or edit reader-facing technical prose for immediate comprehension. Use for documentation, PR titles and descriptions, release notes, design documents, user-facing explanations, and substantive comments. Also use when asked to make writing clearer, more natural, less AI-generated, or easier to read. For documentation fixes, handles edits, formatting, self-review, and commits after research identifies what to change. Do not use for code-only tasks with no prose deliverable.

    Also in 6 projects that use this

  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 5 projects that use this

  • H-mmerSkill

    submit

    Draft and submit a vulnerability report to the bug bounty platform. Reads scope.yaml for platform/program, uses brain + findings for content. Always drafts first for review.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • +1 more from ArvorCo

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 61 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All of this runs locally: transcripts are read from disk, nothing is uploaded anywhere.

    line 11
  2. Very specific:

    Create the output directory ~/.claude/persona/ if it does not exist, then run the scanner and load its output:

    line 17
  3. Very specific:

    Add --agent claude-code|codex|gemini-cli to narrow, or --days 90 to bound the window.

    line 27
  4. Very specific:

    Read the JSON. If node is missing, stop and tell the user Node.js 18+ is required.

    line 29
  5. Very specific:

    If totals.humanPrompts is 0, stop and say there is no history to analyze yet.

    line 30
  6. Distinctive:

    No horoscope material: if the data doesn't support a trait, leave it out.

    line 55
  7. Very specific:

    Write the card to ~/.claude/persona/persona.md (the scan JSON is already at ~/.claude/persona/stats.json from Step 1).

    line 84

“Common” is measured: kept by at least 6 in 10 of the 61 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Persona analysis

Turn the user's local coding-agent history into an evidence-backed developer character card. One shared adapter reads Claude Code, Codex CLI and Gemini CLI, so a project worked on in more than one agent appears once, with the agents named. All of this runs locally: transcripts are read from disk, nothing is uploaded anywhere.

Language rule: write every user-facing output in the language the user is speaking with you.

Step 1 — Scan

Create the output directory ~/.claude/persona/ if it does not exist, then run the scanner and load its output:

node "${CLAUDE_PLUGIN_ROOT}/scripts/scan.mjs" --out "<home>/.claude/persona/stats.json"

(Replace <home> with the user's real home directory — expand it yourself; do not pass a literal ~ or <home> to the script.)

Add --agent claude-code|codex|gemini-cli to narrow, or --days 90 to bound the window.

Read the JSON. If node is missing, stop and tell the user Node.js 18+ is required. If totals.humanPrompts is 0, stop and say there is no history to analyze yet. Check source.agents — which agents were actually found — and name them in the report, because a profile built from one agent describes only part of how the user works.

Step 2 — Gather qualitative evidence

Numbers alone don't make a character. For the top 3 projects by humanPrompts:

  1. Auto-memory files — memoryFiles holds absolute paths; read each one. These are distilled facts from past chats: the highest-quality evidence available. Read all of them for the top projects. (Only Claude Code writes these, so they may be empty.)
  2. Prompt samples — run:
    node "${CLAUDE_PLUGIN_ROOT}/scripts/scan.mjs" --prompts <project> --limit 30
    Pass the project's label or its key (the working directory). This prints truncated first/last human prompts of that project; IDE-injected messages are already filtered out. Use them to judge tone, prompt style, and how the user directs an agent — never quote more than a short fragment back, and never quote anything that looks sensitive (names, keys, URLs).
  3. Session titles — sessionTitles in the JSON summarize what each session was about.

Step 3 — Synthesize the character card

Produce a card with exactly these sections. Every claim must cite evidence (a number from the JSON, a memory file, or an observed prompt pattern). No horoscope material: if the data doesn't support a trait, leave it out.

# Developer persona — <date>

## Identity
Stack, domains, project types. (from languages, commands, memory files)

## Working style
Session rhythm (peak hours/days, activeDays), session length, iteration style,
planning vs diving in, how errors are handled (errors/toolCalls ratio, denials).

## Communication style
Prompt length (avgPromptChars), language mix (turkishPromptRatio), tone,
how precisely tasks are specified, correction patterns.

## Strengths
2–4 traits the evidence clearly supports.

## Risk patterns
2–4 honest, kindly-worded risks (e.g. giant sessions, high error rate,
repeated manual routines, never writing tests). Each with its evidence.

## Signature moves
1–3 memorable, specific habits that make this developer recognizable.

Step 4 — Save and present

  1. Write the card to ~/.claude/persona/persona.md (the scan JSON is already at ~/.claude/persona/stats.json from Step 1).
  2. Show the full card in chat.
  3. Close with one line: everything was computed locally, and /devpersona:advise turns this card into concrete suggestions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.