Contextvar Remediation Skill

Convert explicit user_id parameters to ambient context using Python contextvars.

1|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/robertcope/mira --skill contextvar-remediation-skill-robertcope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Contextvar Remediation Skill
Source: https://github.com/robertcope/mira/tree/main/.claude/skills/contextvar-remediation
Command: npx skills add https://github.com/robertcope/mira --skill contextvar-remediation-skill-robertcope

SYSTEM DOCUMENTATION & REQUIREMENTS

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.