Back to Skills

contextvar-opportunity-finder

Detect explicit user_id parameters in functions to identify potential opportunities for using ambient context. This is an investigation tool that flags instances for human review, not a prescriptive analyzer.

391stars34forksUpdated 2/18/2026

Security Assessment

Safe(100/100)
Security Score100/100

About contextvar-opportunity-finder

The 'contextvar-opportunity-finder' skill is a Python code analysis tool designed to detect explicit 'user_id' parameters in functions. Its primary purpose is to identify potential opportunities where ambient context might be utilized, allowing developers to consider improvements in user context handling. This skill functions as a detection tool, reporting instances for further human investigation, rather than providing automated recommendations or judgments. By scanning Python code for patterns that involve 'user_id', it helps developers spot instances that could potentially benefit from context optimization. However, it does not evaluate the correctness of the patterns it finds, focusing solely on detection.

FAQ

How does the contextvar-opportunity-finder skill work?

The skill scans Python code for explicit usage patterns involving 'user_id' parameters. It reports all instances it detects based on predefined patterns, without making any judgments about their correctness.

Can the tool provide automated recommendations?

No, the contextvar-opportunity-finder does not offer recommendations or suggestions. It is purely a detection tool that flags instances for human review.

What types of code does the skill analyze?

The skill analyzes Python code, looking for explicit patterns involving 'user_id' parameters in functions, methods, and classes.

What is the expected output of the tool?

The tool provides a report detailing each instance of 'user_id' usage it finds, along with context clues about the surrounding code. It does not filter or categorize results, simply reporting all findings.

Install contextvar-opportunity-finder

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill