EX

explicit-identity

Prevents race conditions by mandating explicit identifier passing instead of relying on 'latest' state.

Install

mkdir -p .claude/skills/explicit-identity && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8138" && unzip -o skill.zip -d .claude/skills/explicit-identity && rm skill.zip

Installs to .claude/skills/explicit-identity

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Explicit Identity Across Boundaries
35 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Pass session IDs explicitly
  • Avoid race conditions
  • Correlate trace IDs

How it works

Enforces passing identifiers explicitly across boundaries to prevent race conditions.

Inputs & outputs

You give it
Process or async boundary
You get back
Explicitly identified context

When to use explicit-identity

  • Passing session IDs to spawned processes
  • Avoiding race conditions at async boundaries
  • Correlating trace IDs across pipelines

About this skill

Explicit Identity Across Boundaries

Never rely on "latest" or "current" when crossing process or async boundaries.

Pattern

Pass explicit identifiers through the entire pipeline. "Most recent" is a race condition.

DO

  • Pass --session-id $ID when spawning processes
  • Store IDs in state files for later correlation
  • Use full UUIDs, not partial matches
  • Keep different ID types separate (don't collapse concepts)

DON'T

  • Query for "most recent session" at execution time
  • Assume the current context will still be current after await/spawn
  • Collapse different ID types:
    • session_id = Claude Code session (human-facing)
    • root_span_id = Braintrust trace (query key)
    • turn_span_id = Braintrust turn within session

Example

// BAD: race condition at session boundaries
spawn('analyzer', ['--learn'])  // defaults to "most recent"

// GOOD: explicit identity
spawn('analyzer', ['--learn', '--session-id', input.session_id])

Source Sessions

  • 1c21e6c8: Defined session_id vs root_span_id distinction
  • 6a9f2d7a: Fixed wrong-session attribution via explicit passing
  • a541f08a: Confirmed pattern prevents race at session boundaries

When not to use it

  • When context is guaranteed to be constant

Limitations

  • Requires discipline in code structure

How it compares

Prevents reliance on implicit context instead of assuming it remains constant.

Compared to similar skills

explicit-identity side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
explicit-identity (this skill)07moNo flagsIntermediate
reverse-engineering-tools734moNo flagsAdvanced
game-hacking-techniques422moNo flagsAdvanced
solidity-security152moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

reverse-engineering-tools

gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

73204

game-hacking-techniques

gmh5225

Guide for game hacking techniques and cheat development. Use this skill when researching memory manipulation, code injection, ESP/aimbot development, overlay rendering, or game exploitation methodologies.

42128

solidity-security

wshobson

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

15115

1password

openclaw

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

2799

senior-security

davila7

Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture, conducting penetration tests, implementing cryptography, or performing security audits.

3191

ghidra

mitsuhiko

Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI.

16105

Search skills

Search the agent skills registry