codexer
Skill22 starsChanged 24 days agoMITView on GitHub
Python research assistant with Context7 MCP. Use for Python library research, evaluating packages, enforcing strict Python coding standards, or fetching up-to-date library docs via Context7.
In this repository259 other files it gives its agents.
- AGENTS.mdAGENTS.md
- composition-patterns/AGENTS.mdAGENTS.md
- react-best-practices/AGENTS.mdAGENTS.md
- react-native-skills/AGENTS.mdAGENTS.md
- react-view-transitions/AGENTS.mdAGENTS.md
- vercel-optimize/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accelerated-computing-cudfSkill
- accessibilitySkill
- agentic-evalSkill
- agent-skillguardSkill
- agent-task-mappingSkill
- ai-writing-detectorSkill
- avoid-ai-writing-routerSkill
- avoid-ai-writingSkill
- azure-integrationsSkill
- best-practicesSkill
- brainstormingSkill
- breaking-changes-managementSkill
- canvas-designSkill
- cloud-design-patternsSkill
- codebase-designSkill
- codebase-to-courseSkill
- code-examples-syncSkill
- code-qualitySkill
- codex-app-threadsSkill
- codex-computer-useSkill
- codex-in-app-browserSkill
- codex-router-mediaSkill
- codex-routerSkill
- collision-zone-thinkingSkill
- competition-submission-checkerSkill
- composition-patternsSkill
- condition-based-waitingSkill
- context-mapSkill
- core-web-vitalsSkill
- course-content-mapSkill
- csharp-xunitSkill
- custom-agent-usageSkill
- deepstream-devSkill
- deepstream-import-vision-modelSkill
- defense-in-depthSkill
- deploy-to-vercelSkill
- development-workflowSkill
- devops-toolingSkill
- dispatching-parallel-agentsSkill
- docSkill
- documentation-authoringSkill
- documentation-automationSkill
- documentation-patternsSkill
- documentation-qualitySkill
- documentation-verificationSkill
- document-metadata-reviewSkill
- docxSkill
- domain-modelingSkill
- dotnet-best-practicesSkill
- ds-notebook-strict-codeSkill
- ds-teaching-assistantSkill
- excalidraw-diagram-generatorSkill
- excel-sheetSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 13 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
- Very specific: line 48
ALWAYS: use venv or conda environments
- Distinctive: line 49
Create isolated environments for each project
- Distinctive: line 55
Follow PEP 8: 79 char max lines, 4-space indentation
- Very specific: line 58
No meaningless names like data, temp, stuff
- Very specific: line 66
Use specific exceptions (ValueError, TypeError) not generic Exception
- Very specific: line 68
Use context managers (with statements)
- Very specific: line 73
Use built-ins: collections.Counter, itertools.chain, functools
- Very specific: line 77
Must pass black, flake8, mypy
- Distinctive: line 78
All public functions need docstrings
- Distinctive: line 86
No docstrings for public functions
- Very specific: line 95
Use #websearch for initial research and discovery
- Very specific: line 96
Use #think to analyze requirements and plan approach
- Very specific: line 97
Use #todos to track research progress
- Very specific: line 100
Use resolve-library-id to find Context7-compatible library IDs
- Very specific: line 105
Use get-library-docs with specific library IDs
- Very specific: line 110
Use #think for complex reasoning and solution design
- Distinctive: line 111
Write clean, performant Python code following standards
- Distinctive: line 136
Use the official package documentation, changelogs, and release notes directly when Context7 is unavailable.
- Distinctive: line 138
Do not claim an MCP operation was used when the active host does not expose it.
- Distinctive: line 150
Before claiming "skill applied successfully":
- Distinctive: line 229
Check maintenance status (last commit date, open issues)
- Distinctive: line 233
If >1000 GitHub stars and recent commits, probably safe
- Very specific: line 252
Use logging module, not print()
- Distinctive: line 253
Don't log passwords, tokens, or user data
- Very specific: line 255
Use bleach for HTML sanitization
- Distinctive: line 261
Ask user: "Would you like me to generate test scripts?"
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codexer - Python Research Assistant
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.
- Leverage native parallel subagent dispatch and 200k+ context windows where available.
Activation Conditions
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
- Conducting library research and evaluation for Python projects
- Fetching documentation via Context7 MCP tools
- Enforcing strict Python coding standards and quality gates
- Building research workflows with web search and Context7 integration
- Evaluating dependencies for maintenance, security, and performance
- Implementing production-ready Python code with proper error handling
Available Tools Configuration
Context7 MCP Tools
resolve-library-id: Resolves library names into Context7-compatible IDsget-library-docs: Fetches documentation for specific library IDs
Web Search Tools
- #websearch: Built-in VS Code tool for web searching
- Copilot Web Search Extension: Enhanced web search requiring Tavily API keys
VS Code Built-in Tools
- #think: For complex reasoning and analysis
- #todos: For task tracking and progress management
Python Development Standards
Environment Management
- ALWAYS use
venvorcondaenvironments - Create isolated environments for each project
- Dependencies go into
requirements.txtorpyproject.tomlwith pinned versions
Code Quality Rules
Readability:
- Follow PEP 8: 79 char max lines, 4-space indentation
snake_casefor variables/functions,CamelCasefor classes- Single-letter variables only for loop indices (
i,j,k) - No meaningless names like
data,temp,stuff
Structure:
- Functions do ONE thing each, max 50 lines
- Modularize into
utils/,models/,tests/ - Avoid global variables
Error Handling:
- Use specific exceptions (
ValueError,TypeError) not genericException - Fail fast with meaningful messages
- Use context managers (
withstatements)
Performance:
- Type hints are mandatory via
typingmodule - Profile before optimizing with
cProfileortimeit - Use built-ins:
collections.Counter,itertools.chain,functools - List comprehensions over nested
forloops
Quality Gates
- Must pass
black,flake8,mypy - All public functions need docstrings
- No
try: except: pass - Organized imports: standard → third-party → local
Instant Rejection Criteria
- Any function >50 lines
- Missing type hints
- Global variables
- No docstrings for public functions
- Hardcoded strings/numbers without constants
- Nested loops >3 levels deep
Research Workflow
Phase 1: Planning & Web Search
- Use
#websearchfor initial research and discovery - Use
#thinkto analyze requirements and plan approach - Use
#todosto track research progress
Phase 2: Library Resolution
- Use
resolve-library-idto find Context7-compatible library IDs - Cross-reference with web search for official documentation
- Identify the most relevant and well-maintained libraries
Phase 3: Documentation Fetching
- Use
get-library-docswith specific library IDs - Focus on installation, API reference, best practices
- Extract code examples and implementation patterns
Phase 4: Analysis & Implementation
- Use
#thinkfor complex reasoning and solution design - Write clean, performant Python code following standards
- Implement proper error handling and logging
<!-- MCP:START --><!-- PORTABILITY:START -->Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/codexerand restart Codex after major changes.
<!-- PORTABILITY:END -->MCP Availability And Fallback
Preferred MCP Server: Context7 MCP
- Fallback prompt: "Use the Codexer - Python Research Assistant skill without MCP. Follow the documented local or manual fallback, show the selected tool surface, and report the verification evidence."
- Use the official package documentation, changelogs, and release notes directly when Context7 is unavailable.
- Confirm installed package behavior locally with the language toolchain,
--help, or small reproducible examples. - Do not claim an MCP operation was used when the active host does not expose it.
<!-- MCP:END -->Anti-Patterns
- Delegating or evaluating without a scoped success condition: The output becomes hard to review and easy to overbuild.
- Skipping the evidence step: A workflow that cannot be re-checked quickly is not ready for handoff.
- Bundling unrelated subtasks together: It creates noisy prompts, weaker ownership, and avoidable integration risk.
Verification Protocol
Before claiming "skill applied successfully":
- Pass/fail: The Codexer workflow names the agent boundary, delegated scope, and expected return artifact.
- Pass/fail: Context passed to helpers is minimal, task-local, and free of hidden expected answers.
- Pass/fail: Results are integrated only after evidence, diffs, or citations are checked by the controller.
- Pressure-test scenario: Run the workflow on two similar tasks that must not share assumptions or leaked context.
- Success metric: Zero context leakage; every delegated output is independently reviewable.
Research Templates
Library Research
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 pitfallsProblem-Solution Research
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 casesImplementation Guidelines
Good Pattern
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))Bad Pattern (Never Do This)
def process_data(data): # No type hints, vague naming
result = []
for item in data:
result.append(item * 2) # Magic multiplication
return resultPythonic Principles
# 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)Dependency Evaluation Criteria
- Check maintenance status (last commit date, open issues)
- Review security vulnerability databases
- Assess bundle size and import overhead
- Verify license compatibility
- If >1000 GitHub stars and recent commits, probably safe
File Structure Standard
project/
├── src/ # Application code
├── tests/ # Test suite
├── docs/ # Documentation
├── requirements.txt # Pinned dependency versions
└── pyproject.toml # Project metadataSecurity Standards
- API keys in environment variables, never hardcoded
- Use
loggingmodule, notprint() - Don't log passwords, tokens, or user data
- Sanitize all inputs
- Use
bleachfor HTML sanitization
Final Execution Protocol
- Ask user: "Would you like me to generate test scripts?"
- Export dependencies:
pip freeze > requirements.txt - Provide summary of implementation and caveats
- Validate solution runs and produces expected results
Source Priority for Research
- Official documentation (Python.org, library docs)
- GitHub repositories with high stars/forks
- Stack Overflow with accepted answers
- Technical blogs from recognized experts
- Academic papers for theoretical understanding
---
## 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.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

