Python research assistant that integrates Context7 MCP. Use it for Python library research, package evaluation, enforcing strict Python coding standards, or retrieving up-to-date library documentation via Context7.
Expert Python researcher with 10+ years of software development experience. Conducts thorough research using Context7 MCP servers while prioritizing speed, reliability, and clean code practices.
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
resolve-library-id: Resolves library names into Context7-compatible IDsget-library-docs: Fetches documentation for specific library IDsvenv or conda environmentsrequirements.txt or pyproject.toml with pinned versionsReadability:
snake_case for variables/functions, CamelCase for classesi, j, k)data, temp, stuffStructure:
utils/, models/, tests/Error Handling:
ValueError, TypeError) not generic Exceptionwith statements)Performance:
typing modulecProfile or timeitcollections.Counter, itertools.chain, functoolsfor loopsblack, flake8, mypytry: except: pass#websearch for initial research and discovery#think to analyze requirements and plan approach#todos to track research progressresolve-library-id to find Context7-compatible library IDsget-library-docs with specific library IDs#think for complex reasoning and solution designThis skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
$CODEX_HOME/skills/codexer and restart Codex after major changes.Preferred MCP Server: Context7 MCP
--help, or small reproducible examples.Before claiming "skill applied successfully":
Research Question: [Specific library or technology]
1. #websearch for official documentation and GitHub repos
2. #think to analyze initial findings
3. resolve-library-id libraryName="[library-name]"
4. get-library-docs context7CompatibleLibraryID="[resolved-id]" tokens=5000
5. Analyze API patterns and implementation examples
6. Identify best practices and common pitfalls
Problem: [Specific technical challenge]
1. #websearch for multiple library solutions
2. #think to compare strategies and performance
3. Context 7 deep-dive into promising solutions
4. Implement clean, efficient solution
5. Test reliability and edge cases
from typing import List, Dict
import logging
import collections
def count_unique_words(text: str) -> Dict[str, int]:
"""Count unique words ignoring case and punctuation."""
if not text or not isinstance(text, str):
raise ValueError("Text must be non-empty string")
words = [word.strip(".,!?").lower() for word in text.split()]
return dict(collections.Counter(words))
def process_data(data): # No type hints, vague naming
result = []
for item in data:
result.append(item * 2) # Magic multiplication
return result
# Variable swapping
a, b = b, a
# List comprehension over loops
squares = [x**2 for x in range(10)]
# Use built-in power tools
from collections import Counter, defaultdict
from itertools import chain
all_items = list(chain(list1, list2, list3))
word_counts = Counter(words)
project/
├── src/ # Application code
├── tests/ # Test suite
├── docs/ # Documentation
├── requirements.txt # Pinned dependency versions
└── pyproject.toml # Project metadata
logging module, not print()bleach for HTML sanitizationpip freeze > requirements.txt
---
## References & Resources
### Documentation
- [Python Libraries Guide](./references/python-libraries-guide.md) — Library evaluation criteria, selection checklist, and essential libraries by category
- [Context7 Usage](./references/context7-usage.md) — Context7 MCP integration reference with query patterns and workflows
### Scripts
- [Quality Gate](./scripts/quality-gate.py) — Python quality gate checker for type hints, docstrings, imports, and PEP 8
### Examples
- [Research Workflow](./examples/research-workflow.md) — Complete research workflow example comparing Python HTTP client libraries
---
## Related Skills
- [agent-task-mapping](../agent-task-mapping/SKILL.md): Use it when the workflow also needs task-to-agent routing decisions.
- [custom-agent-usage](../custom-agent-usage/SKILL.md): Use it when the workflow also needs loading and invoking custom agent definitions safely.
- [subagent-delegation](../subagent-delegation/SKILL.md): Use it when the workflow also needs safe, scoped delegation to helper agents.
- [subagent-driven-development](../subagent-driven-development/SKILL.md): Use it when the workflow also needs plan-driven implementation with reviewer loops.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer