@parcadei/explicit-identity

Context management for Claude Code. Hooks maintain state via ledgers and handoffs. MCP execution without context pollution. Agent orchestration with isolated context windows.

View in AI SkillSafe app
Scanned · no findings
18421 downloads
0 stars
0 demos
SKILL.md
nameexplicit-identity
descriptionExplicit Identity Across Boundaries
user-invocablefalse

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

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@parcadei/explicit-identity/verified)](https://skillsafe.ai/skill/@parcadei/explicit-identity/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@parcadei/explicit-identity/installs)](https://skillsafe.ai/skill/@parcadei/explicit-identity/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@parcadei/explicit-identity/scan)](https://skillsafe.ai/skill/@parcadei/explicit-identity/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@parcadei/explicit-identity/eval)](https://skillsafe.ai/skill/@parcadei/explicit-identity/)