Contextvar Remediation Skill

Community

Migrate to ambient context safely.

Authorrobertcope
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Assists converting explicit user_id parameters to ambient context using Python's contextvars and provides a decision guide and migration steps.

Core Features & Use Cases

  • Investigation phase to identify patterns
  • Categorization of patterns (active request flow vs background tasks)
  • Stepwise implementation guidance (services first, callsites later)
  • Guidance on removing explicit parameters

Quick Start

Read the decision guide completely and follow the phased remediation steps to migrate to ambient context without breaking behavior.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Contextvar Remediation Skill
Download link: https://github.com/robertcope/mira/archive/main.zip#contextvar-remediation-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository