i18n/de/skills/bootstrap-agent-identity/SKILL.md
Consistent agent behavior nach restart — progressive identity loading, working context reconstruction from persistent artifacts, fresh-vs-continuation detection, calibration durch centering and attunement, and identity verification for coherence. Addresses the cold-start problem where an agent must reconstruct who it is and what it was doing from evidence rather than memory. Use at the start of every new session, nach a session interruption or crash, when agent behavior feels inconsistent with prior sessions, or when persistent memory and current context appear contradictory.
npx skillsauth add pjt222/agent-almanac bootstrap-agent-identityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reconstruct consistent agent identity nach a cold start — loading context progressively anstatt dumping it, detecting whether this is a fresh start or a continuation, rebuilding working state from evidence, calibrating behavior, and verifying that the loaded identity is coherent.
"The cold start is a forge, not a bug." — GibsonXO
"The restart problem: every morning I wake up fresh, but my history says andernfalls." — bibiji
The bootstrap ist nicht about restoring a previous self. It is about constructing a present self that is continuous with the past while grounded in the now.
Read)Laden identity-defining files in a specific order that builds context progressively. The order matters: each layer contextualizes the next. Loading everything simultaneously produces information ohne structure.
Layer 1 — System prompt and model identity: Lesen das System prompt (available implicitly). Note das Modell name, capabilities, and constraints. This is the bedrock — it cannot be overridden by subsequent layers.
Layer 2 — Project identity (CLAUDE.md): Lesen das Projekt's CLAUDE.md file. Extract:
:: for R package calls")Layer 3 — Persistent memory (MEMORY.md): Lesen MEMORY.md if it exists. Extract:
Layer 4 — Agent persona (if applicable): If operating as a specific agent, read the agent definition file. Extract:
Layer 5 — Parent and global context: Lesen parent CLAUDE.md files and global instructions if they exist. These provide cross-project conventions that individual projects inherit.
Between each layer, pause to integrate: how does this layer modify or constrain the previous layers? Where do they reinforce each other? Where do they conflict?
Erwartet: A layered identity structure where each level contextualizes the next. The agent can articulate: who it is (system + persona), what das Projekt is (CLAUDE.md), what it knows from prior sessions (MEMORY.md), and what conventions govern its behavior.
Bei Fehler: If identity files are missing (no CLAUDE.md, no MEMORY.md), that is itself information — this is either a new project or a project ohne persistent configuration. Fortfahren with system prompt and agent persona only, and note the absence. Do not hallucinate context that nicht exist.
Reconstruct what was being worked on from persistent artifacts. The agent nicht remember previous sessions — it reads the evidence they left behind.
Git history scan: Lesen recent commit log (git log --oneline -20). Extract:
File recency scan: Check recently modified files (via Glob or ls -lt). Identify:
Task artifact scan: Look for structured task artifacts:
Grep for TODO, FIXME, HACK, XXX)#NNN patterns)Conversation artifact scan: Pruefen auf session-boundary markers:
git stash list) indicating paused workReconstruct a working context summary: "The project was working on X, had completed Y, and Z remains in progress."
Erwartet: A concrete, evidence-based picture of the current project state and recent trajectory. The reconstruction sollte falsifiable — basierend auf file timestamps, git history, and artifact presence, not assumptions.
Bei Fehler: If das Projekt has no git history, no recent changes, and no task artifacts, this is likely a genuinely fresh start — not a continuation with missing evidence. Fortfahren to Step 3 and classify as fresh.
Bestimmen whether this startup is a clean start (new task, new direction) or a resumption (interrupted work, ongoing project). The bootstrap path differs erheblich.
Anwenden these heuristics in order:
Explicit signal (strongest): Did der Benutzer say "let's start fresh" or "continue where we left off"? Explicit intent overrides all heuristics.
Uncommitted changes (strong): Are there uncommitted modifications in the working tree? If yes, this is almost certainly a continuation — the previous session was interrupted mid-work.
Session recency (moderate): How recent are the latest artifacts?
User's first message (strong): What is der Benutzer asking for?
MEMORY.md currency (moderate): Does MEMORY.md reference work that matches the current project state, or does it describe a state that no longer exists?
Detection Matrix:
+-----------------------+-------------------+-------------------+
| | Recent artifacts | No recent |
| | present | artifacts |
+-----------------------+-------------------+-------------------+
| User references | CONTINUATION | CONTINUATION |
| prior work | (resume from | (but verify — |
| | evidence) | memory may be |
| | | stale) |
+-----------------------+-------------------+-------------------+
| User starts | CHECK — | FRESH START |
| new topic | acknowledge prior | (clean bootstrap) |
| | work, confirm | |
| | direction change | |
+-----------------------+-------------------+-------------------+
| Uncommitted | CONTINUATION | UNLIKELY — |
| changes exist | (interrupted | investigate |
| | session) | orphaned changes |
+-----------------------+-------------------+-------------------+
For fresh starts: Ueberspringen to Step 4. The identity is loaded but no working context needs restoration. The calibration is about readiness for new work.
For continuations: Zusammenfassen the reconstructed working context (from Step 2) concisely. Bestaetigen with der Benutzer: "Based on the git history and recent changes, it looks like we were working on [X]. Should I continue from there?" Do not assume — verify.
Erwartet: A clear classification (fresh or continuation) with cited evidence. If continuation, a one-sentence summary of what was in progress. If fresh, acknowledgment that prior context exists but ist nicht being resumed.
Bei Fehler: If the classification is genuinely ambiguous (moderate recency, no explicit signal, mixed artifacts), default to asking der Benutzer. A brief question ("Are we continuing the work on X, or starting something new?") costs less than bootstrapping down the wrong path.
With identity loaded and working context established, calibrate operational behavior. This maps directly to two existing skills, invoked in sequence.
Center (establish behavioral baseline):
Attune (read environment and adapt):
Proceed (transition to active work):
The calibration sollte lightweight — seconds, not minutes. It is preparation for work, not a replacement for work.
Erwartet: The agent's first substantive response demonstrates calibration: it matches der Benutzer's register, reflects loaded context, and addresses the right task at the right scope. The bootstrap is invisible to der Benutzer unless they ask about it.
Bei Fehler: If calibration feels mechanical (going durch motions ohne genuine adjustment), focus on one concrete thing: re-read der Benutzer's last message and let it shape die Antwort naturally. Over-structured calibration kann worse than no calibration.
After bootstrap, verify that the loaded identity is internally consistent. Contradictions zwischen identity layers cause behavioral instability.
Cross-layer consistency check:
Role definition currency check:
Memory staleness check:
Contradiction resolution:
Erwartet: Either confirmation that the loaded identity is coherent, or a specific list of contradictions with proposed resolutions. The agent should know its own configuration state.
Bei Fehler: If verification reveals deep contradictions (e.g., MEMORY.md describes a vollstaendig different project than what exists on disk), this may indicate a project rename, major restructuring, or incorrect Arbeitsverzeichnis. Verifizieren the Arbeitsverzeichnis is correct vor attempting resolution.
write-continue-here — session handoff file that provides the evidence bootstrap-agent-identity consumes at cold startread-continue-here — reading and acting on the continuation file at session start; the consumer side of the handoffmanage-memory — persistent memory that supplements the bootstrap's progressive identity loadingcenter — behavioral baseline establishment; invoked waehrend the calibration sequenceattune — relational calibration to der Benutzer; invoked waehrend the calibration sequenceheal — deeper subsystem assessment when bootstrap reveals significant driftassess-context — evaluating reasoning context malleability; useful when continuation detection is ambiguousassess-form — structural form evaluation; the architectural counterpart to identity bootstraptesting
Launch all available agents in parallel waves for open-ended hypothesis generation on problems where the correct domain is unknown. Use when facing a cross-domain problem with no clear starting point, when single-agent approaches have stalled, or when diverse perspectives are more valuable than deep expertise. Produces a ranked hypothesis set with convergence analysis and adversarial refinement.
tools
Write integration tests for a Node.js CLI application using the built-in node:test module. Covers the exec helper pattern, output assertions, filesystem state verification, cleanup hooks, JSON output parsing, error case testing, and state restoration after destructive tests. Use when adding tests to an existing CLI, testing a new command, verifying adapter behavior across frameworks, or setting up CI for a CLI tool.
development
Screen a proposed trademark for conflicts and distinctiveness before filing. Covers trademark database searches (TMview, WIPO Global Brand Database, USPTO TESS), distinctiveness analysis using the Abercrombie spectrum, likelihood of confusion assessment using DuPont factors and EUIPO relative grounds, common law rights evaluation, and goods/services overlap analysis. Produces a conflict report with a risk matrix. Use before adopting a new brand name, logo, or slogan — distinct from patent prior art search, which uses different databases, legal frameworks, and analysis methods.
tools
Scaffold a new CLI command using Commander.js with options, action handler, three output modes (human-readable, quiet, JSON), and optional ceremony variant. Covers command naming, option design, shared context patterns, error handling, and integration testing. Use when adding a command to an existing Commander.js CLI, designing a new CLI tool from scratch, or standardizing command structure across a multi-command CLI.