agentleFS
unclejobs-aiunclejobs-ai/second-claude-code/skills/soul/SKILL.md

soul

Skill41 starsChanged 8 days agoMITView on GitHub

Use when observing user patterns and synthesizing a persistent identity profile

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If SOUL.md already exists, warn and require --force.

    line 73
  2. Very specific:

    Write nothing. propose ends in review.

    line 99
  3. Distinctive:

    Ask: "Apply this soul update?

    line 104
  4. Very specific:

    Read the current profile via soul_get_profile, compare dimension by dimension against the proposed one, and flag semantic shifts above 30% …

    line 109
  5. Very specific:

    Call soul_retro with period and optional projects.

    line 114
  6. Distinctive:

    Leave the observation log alone unless the user asks for it.

    line 123

“Common” is measured: kept by at least 6 in 10 of the 9 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

Resolve runtime paths before file or script operations.

Iron Law

Observation is not judgment. Record patterns only.

Red Flags

  • "They seem like a detail-oriented person" → STOP, because generic descriptions that could apply to any knowledge worker are rejected — every dimension needs 2+ evidence citations from actual observations.
  • "They were direct last time and verbose this time, so they're inconsistent" → STOP, because contradictions become conditional rules ("direct in chat, verbose in reports"), not averages — context determines the pattern.
  • "I noticed they mentioned their health situation" → STOP, because medical data, financial details, relationship status, and political/religious beliefs must never be recorded — log "sensitive signal omitted" without content.
  • "5 observations should be enough to synthesize a profile" → STOP, because the minimum threshold is 10 sessions OR 30 observations — premature synthesis produces unreliable profiles.
  • "The soul profile shifted significantly but the new version is clearly better" → STOP, because >30% drift in any dimension requires explicit user acknowledgment with "SIGNIFICANT DRIFT DETECTED" — never auto-apply large shifts.

Soul

Build and maintain a persistent user identity profile from behavioral signals observed across sessions. Every claim in SOUL.md must be evidence-backed. Contradictions become conditional rules, not averages.

When to Use

  • User wants a persistent identity profile synthesized from session history
  • User wants to understand their own patterns and behavioral tendencies
  • Another skill needs user context that goes beyond project preferences
  • User wants to track how their communication style or decision patterns shift over time

Subcommands

The observation store is written by the SessionStart/SubagentStart/Stop hooks and read through the soul_* MCP tools. Never append to it by hand. Two writers with two layouts is how this skill previously produced observations nothing ever synthesized.

SubcommandDescriptionBacked by
initCreate a SOUL.md stub from a templatefile write (the observation store starts itself)
learnRecord an observation the hooks would not have caughtsoul_record_observation
showDisplay current SOUL.md with evidence citationssoul_get_profile, soul_get_observations
proposeRun full synthesis and output a proposed SOUL.md — does not writesoul_get_readiness, soul_get_synthesis_context
applyWrite the proposed SOUL.md after user reviewfile write
diffCompare current SOUL.md against a proposed versionfile read
resetArchive current SOUL.mdfile move
retroShipping metrics from git history across projectssoul_retro

Options

FlagValuesDefaultEffect
--modemanual|learning|hybridhybridmanual = only user-triggered; learning = auto-observe every session; hybrid = auto-observe + user-triggered synthesis
--templatedefault|developer|writer|researcherdefaultStarter template for init
--periodweek|month|quarterweekTime range for retro metrics
--projectscomma-separated pathsauto-detectProject directories for retro git scanning

Mode Behavior

The mode lives in soul-active.json and the hooks read it — learning and hybrid are what turn automatic observation on.

  • manual: nothing is recorded unless the user calls soul learn.
  • learning: the hooks observe every session. Synthesis still requires soul propose.
  • hybrid: learning, plus a synthesis prompt once proposal_due is set.

Workflow

init

  1. If SOUL.md already exists, warn and require --force.
  2. Load references/templates/{template}.md and write it as the SOUL.md stub.

The observation log needs no bootstrap. The hooks create it on first signal.

learn

For a signal the hooks did not catch. Call soul_record_observation with signal, category (correction | emotional | style), optional confidence, and raw_context trimmed to 200 characters. Report the count it returns.

show

  1. soul_get_profile → the profile and its metadata. A null profile means synthesis has not run.
  2. soul_get_observations for the citations behind each dimension.
  3. Render the profile with its evidence inline, then the pool stats.

propose

  1. soul_get_readiness. Below threshold (10 sessions or 30 observations), print the shortfall and stop.
  2. soul_get_synthesis_context — recency-weighted observations, shipping entries, the current profile, and a drift pre-check, already assembled. Do not re-read the files it summarizes.
  3. Dispatch soul-keeper (Pikachu, opus) with that context. It applies references/synthesis-algorithm.md.
  4. Output the proposed SOUL.md with citations. Surface any dimension the drift pre-check flags above 30% with the words SIGNIFICANT DRIFT DETECTED.
  5. Write nothing. propose ends in review.

apply

  1. Require that propose ran in this session.
  2. Ask: "Apply this soul update? This overwrites SOUL.md. [yes/no]"
  3. On yes, write the proposed profile. On no, discard it and leave the profile untouched.

diff

Read the current profile via soul_get_profile, compare dimension by dimension against the proposed one, and flag semantic shifts above 30% per references/synthesis-algorithm.md.

retro

Call soul_retro with period and optional projects. It scans the git history, computes the metrics in references/retro-metrics.md, detects the trend against previous retros, and appends the shipping observation itself. Render its report; do not recompute what it returns and do not write the observation a second time.

reset

  1. Require explicit confirmation.
  2. Archive the current SOUL.md under archive/SOUL-{timestamp}.md.
  3. Leave the observation log alone unless the user asks for it. The pool is the evidence; discarding it silently destroys every citation the next profile would rest on.

Storage

Under the resolved <plugin-data> path. The hooks, the MCP handlers, and this skill must all use the same layout — they did not, and that is what made half the pipeline invisible to the other half.

PathWritten byDescription
soul/SOUL.mdthis skill (apply)The synthesized profile
soul/observations/YYYY-MM-DD.jsonlhooks, soul_record_observationDaily append-only signal log
soul/soul-active.jsonhooksSession and observation counters, proposal_due flag
soul/archive/this skill (reset)Archived profiles

Resolve <plugin-data> to a durable location to keep this outside the plugin directory. Otherwise the store sits in the plugin install and does not survive a reinstall.

Subagents

soul-keeper: { model: opus, agent: pikachu, constraint: "every dimension needs 2+ evidence citations, contradictions become conditional rules, generic descriptions are rejected" }
analyst: { model: sonnet, agent: alakazam, constraint: "extract signals matching observation catalog, return structured JSON, no inferences beyond what the signal supports" }

Gotchas

Generic Soul Trap

The most common failure: producing dimensions that could describe any knowledge worker. soul-keeper must run the anti-generic filter on every dimension before output. If a dimension reads like a LinkedIn bio, it is rejected.

Token Budget

Observation logs can grow large. When calling soul-keeper, summarize observations older than 30 days to a single paragraph per session. Only the last 5 sessions are passed verbatim. Total input to soul-keeper must not exceed 500 tokens of observation data per session in the summary window.

Contradiction Handling

A user who is "direct in chat but verbose in reports" is NOT contradictory — those are conditional behaviors. Do not force a single characterization. The conditional rule format preserves predictive power; averaging destroys it.

Privacy

SOUL.md must never contain medical data, financial details, relationship status, or political/religious beliefs unless the user explicitly provides them as work-relevant context. If a sensitive signal is observed, note "sensitive signal omitted" in the observation log without recording the content.

Drift Approval

A >30% shift in any dimension is not automatically applied. It requires explicit user acknowledgment. Surface it visibly in propose output with the phrase "SIGNIFICANT DRIFT DETECTED" before applying.

Output

  • SOUL.md at .data/soul/SOUL.md
  • Template reference at references/templates/
  • Observation signals reference at references/observation-signals.md
  • Synthesis algorithm at references/synthesis-algorithm.md
  • Retro metrics specification at references/retro-metrics.md

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.