python-code
Improves Python library code quality through ruff linting, mypy type checking, Pythonic idioms, and refactoring.
Skill by wachawo
Chalk Labs
Need help deploying python-code?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wachawo-python-code
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/python-code
What's inside
- Skill name
python-code- Description
- Improves Python library code quality through ruff linting, mypy type checking, Pythonic idioms, and refactoring. Use when reviewing code for quality issues, adding type hints, configuring static analysis tools, or refactoring Python library code.
- License
- MIT
- Instructions
- 131 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (4)
- MYPY_CONFIG.md
- RUFF_CONFIG.md
- SKILL.md
- TYPE_PATTERNS.md
SKILL.md (first lines)
# Python Code Quality
## Quick Reference
| Tool | Purpose | Command |
|------|---------|---------|
| ruff | Lint + format | `ruff check src && ruff format src` |
| mypy | Type check | `mypy src` |
## Ruff Configuration
Minimal config in pyproject.toml:
```toml
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
```
For full configuration options, see **[RUFF_CONFIG.md](RUFF_CONFIG.md)**.
## MyPy Configuration
```toml
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
warn_return_any = true
```
For strict settings and overrides, see **[MYPY_CONFIG.md](MYPY_CONFIG.md)**.
## Type Hints Patterns
```python
# Basic
def process(items: list[str]) -> dict[str, int]: ...
# Optional
def fetch(url: str, timeout: int | None = None) -> bytes: ...
# Callable
def apply(func: Callable[[int], str], value: int) -> str: ...
# Generic
T = TypeVar("T")
def first(items: Sequence[T]) -> T | None: ...
```
For protocols and advanced patterns, see **[TYPE_PATTERNS.md](TYPE_PATTERNS.md)**.
## Common Anti-Patterns
```python
# Bad: Mutable default
def process(items: list = []): # Bug!
...
# Good: None default
def process(items: list | None = None):
items = items or []
...
```
```python
# Bad: Bare except
try:
...
except:
pass
# Good: Specific exception
try:
...
except ValueError as e:
logger.error(e)
```
## Pythonic Idioms
```python
# Iteration
for item in items: # Not: for i in range(len(items))
for i, item in enumerate(items): # When index needed
# Dictionary access
value = d.get(key, default) # Not: if key in d: value = d[key]
# Context managers
with open(path) as f: # Not: f = open(path); try: finally: f.close()
# Comprehensions (simple only)
squares = [x**2 for x in numbers]
```
## Module Organization
```
src/my_library/
├── __init__.py # Public API exports
├── _internal.py # Private (underscore prefix)
├── exceptions.py # Custom exceptions
├── types.py # Type definitions
└── py.typed # Type hint marker
```
## Checklist
```
Code Quality:
- [ ] ruff check passes
- [ ] mypy passes (strict mode)
- [ ] Public API has type hints
- [ ] Public API has docstrings
- [ ] No mutable default arguments
- [ ] Specific exception handlingFrom wachawo/claude-skills, MIT.
More from wachawo/claude-skills
- 0.479score
playwright
wachawo
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, debugging user…
SkillCFreshness: CClaude Code +9 - 0.479score
diagnose
wachawo
Disciplined loop for diagnosing complex bugs and performance regressions.
SkillCFreshness: CClaude Code +9 - 0.479score
mcp-builder
wachawo
Guidance for building high-quality MCP (Model Context Protocol) servers that let LLMs interact with external services through well-designed tools.
SkillCFreshness: CClaude Code +9 - 0.479score
drilldown-analyzer
wachawo
Systematic investigation of metric changes and anomalies.
SkillCFreshness: CClaude Code +9 - 0.476score
data-analyzer
wachawo
Systematic exploratory data analysis.
SkillCFreshness: CClaude Code +9 - 0.474score
qa
wachawo
Interactive QA session in which the user freely reports bugs or issues, and the agent files the corresponding GitHub issues.
SkillCFreshness: CClaude Code +9 - 0.474score
design-api
wachawo
Generate several radically different interface design options for a module via parallel sub-agents.
SkillCFreshness: CClaude Code +9 - 0.474score
grill-docs
wachawo
A "grilling" session that stress-tests your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) as…
SkillCFreshness: CClaude Code +9 - 0.474score
improve-arch
wachawo
Find opportunities to deepen modules in the codebase, drawing on the domain language from CONTEXT.md and decisions recorded in docs/adr/.
SkillCFreshness: CClaude Code +9 - 0.474score
python-fp
wachawo
Guide to functional-style Python — pure functions, immutability, HOFs, functools/itertools, typed functional patterns.
SkillCFreshness: CClaude Code +9 - 0.474score
python-pep8
wachawo
Detailed PEP 8 guide for Python code — layout, imports, names, whitespace, comments, programming recommendations (None comparisons, exceptions, return…
SkillCFreshness: CClaude Code +9 - 0.474score
claude-api
wachawo
Build, debug, and optimize Claude API / Anthropic SDK applications.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 5, 2026 (5 months ago)
- Last release
- May 5, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/wachawo/claude-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wachawo
- 0.479score
mcp-builder
wachawo
Guidance for building high-quality MCP (Model Context Protocol) servers that let LLMs interact with external services through well-designed tools.
SkillCFreshness: CClaude Code +9 - 0.479score
playwright
wachawo
Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, debugging user…
SkillCFreshness: CClaude Code +9 - 0.479score
diagnose
wachawo
Disciplined loop for diagnosing complex bugs and performance regressions.
SkillCFreshness: CClaude Code +9 - 0.479score
drilldown-analyzer
wachawo
Systematic investigation of metric changes and anomalies.
SkillCFreshness: CClaude Code +9 - 0.476score
data-analyzer
wachawo
Systematic exploratory data analysis.
SkillCFreshness: CClaude Code +9 - 0.474score
grill-docs
wachawo
A "grilling" session that stress-tests your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) as…
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get python-code running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
python-code skill. Agent Mart. https://agentmart.dev/skills/wachawo-python-code (last updated 2026-10-24)