Contextvar Remediation Skill

Community

Migrate to ambient context safely.

Authortaylorsatula
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a guided approach to converting explicit user_id parameters to ambient context using Python's contextvars, with a decision framework and migration steps.

Core Features & Use Cases

  • Investigation Phase: identify all explicit user_id usages across code paths.
  • Decision Guide Adherence: determine the best pattern (constructor vs ambient context) based on architecture.
  • Categorization & Migration: classify code, update services and call sites, and handle background tasks properly.
  • Validation Guidance: ensure background tasks set context and that active flows inherit ambient context.

Quick Start

Read the decision guide completely, categorize code by context type, and apply remediation steps to migrate to ambient context.

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/taylorsatula/mira-OSS/archive/main.zip#contextvar-remediation-skill

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.