user-profile-distillation

user-profile-distillation is a skill for Claude Code from SummerSec/AI-Inner-Os. It costs 42 tokens per session (705 once invoked), scanned A, original, Apache-2.0.

A skill for analyzing a user’s own prompts or agent-chat history to summarize communication preferences and work patterns.

In plain words
What is it for?
Use it when the user asks for prompt-history analysis, personality or work-style summaries, or a profile based on supplied chat data.
Why use it?
It creates a concise profile from explicitly provided material instead of guessing from unrelated conversations.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/query_history.py --date YYYY-MM-DD --prompts-only --json.

Part of the ai-inner-os plugin — 4 skills, 1 command, 9 hooks shipped together

Good fit Use it when the user asks for prompt-history analysis, personality or work-style summaries, or a profile based on supplied chat data.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/SummerSec/AI-Inner-Os
agentmods
npx agentmods add skills/summersec/ai-inner-os/user-profile-distillation

Made for: Claude Code.

Or install ai-inner-os, the plugin that ships this one along with the rest of its 4 skills, 1 command, 9 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for user-profile-distillation

README.md
[![agentmods](https://agentmods.dev/badge/skills/summersec/ai-inner-os/user-profile-distillation/github.svg)](https://agentmods.dev/skills/summersec/ai-inner-os/user-profile-distillation)
Your own site
<a href="https://agentmods.dev/skills/summersec/ai-inner-os/user-profile-distillation"><img src="https://agentmods.dev/badge/skills/summersec/ai-inner-os/user-profile-distillation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for user-profile-distillation

Your own site · 80×15
<a href="https://agentmods.dev/skills/summersec/ai-inner-os/user-profile-distillation"><img src="https://agentmods.dev/badge/skills/summersec/ai-inner-os/user-profile-distillation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 705 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00705
Opus 5 $0.00021 $0.00352
Sonnet 5 $0.00008 $0.00141
Haiku 4.5 $0.00004 $0.00071

Measured 10d ago against content hash 81bcd2f00389, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

user-profile-distillation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cursor/skills/user-profile-distillation/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

User Profile Distillation

Core Rule

This skill is opt-in only. Do not use it unless the user explicitly asks for user profiling, personality/work-style analysis, prompt-history distillation, or similar wording.

Do not read local history, transcripts, databases, or cached prompts unless the user explicitly asks you to do so for this profile task.

Inputs

Use one of these sources:

  1. User-provided prompts: analyze only the text the user pasted in the current conversation.
  2. Local history extraction: only after explicit user approval, use the bundled agent-chat-history skill to extract user prompts.

For local history, prefer a bounded date range. If no date range is provided, ask for one before reading history.

Recommended command from skills/agent-chat-history/:

python scripts/query_history.py --date YYYY-MM-DD --prompts-only --json

Use --mode claude, --mode codex, or --mode cursor when the user limits the source.

Privacy Boundaries

  • Do not infer protected attributes such as race, ethnicity, religion, sexuality, health status, disability, political affiliation, or precise age.
  • Do not diagnose mental health, personality disorders, intelligence, or clinical traits.
  • Do not quote long prompt excerpts. Use short paraphrases or brief fragments only when necessary.
  • Do not save the profile to files, memory, rules, personas, or plugin config unless the user explicitly asks to save it.
  • Treat all conclusions as provisional and based only on the provided prompt sample.

Analysis Method

  1. Identify the data source, date range, client/source, and sample size.
  2. Remove obvious tool output, copied logs, code blocks, and assistant text when they are not user intent.
  3. Cluster prompts by task type and recurring intent.
  4. Distill behavioral patterns with evidence strength:
    • strong: repeated across many prompts
    • medium: appears several times
    • weak: plausible but sparse
  5. Separate observed behavior from inference. Mark uncertainty clearly.

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 99 lines · 42 tokens per session scan A 81bcd2f00389

Subscribe to this mod's changes

user-profile-distillation is a skill published in the GitHub repository SummerSec/AI-Inner-Os (17 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 42 tokens to every session and 705 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also…

mem0ai/mem0 · 146 tokens

pause

Pause Mem0 memory capture on this machine. Use when the user wants to stop memories being recorded, for example for private work or experiments.

mem0ai/mem0 · 30 tokens

mine

Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.

MemPalace/mempalace · 21 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

agent-carnet

Use this skill when the user asks to save, recall, find, or organize notes. Triggers on: 'remember this', 'save this', 'note this', 'what did we discuss about...', 'check the notebook', 'find in carnet'. Also use proactively when discovering findings worth preserving across sessions.

yamadashy/repomix · 67 tokens