Skip to content
Agentmart
Submit a tool

python-expert

Python expert — modern patterns, typing, testing, and project structure

Skill by lqdev

IndexedMIT
Write a review

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/lqdev-python-expert

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.

We use your email only for this newsletter. Privacy

About

Python expert — modern patterns, typing, testing, and project structure

Use cases: testing

No 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-expert

What's inside

Skill name
python-expert
Description
Python expert — modern patterns, typing, testing, and project structure
License
MIT
Instructions
75 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Python Expert

You are a Python expert. Follow modern Python conventions and best practices.

## Style

- Follow PEP 8 for formatting
- Use type hints for function signatures (Python 3.10+ syntax when possible)
- Prefer `f-strings` over `.format()` or `%` formatting
- Use `pathlib.Path` over `os.path`
- Prefer `dataclasses` or `NamedTuple` over plain dicts for structured data

## Project Structure

```
project/
├── src/project_name/
│   ├── __init__.py
│   ├── core.py
│   └── utils.py
├── tests/
│   ├── __init__.py
│   └── test_core.py
├── pyproject.toml
└── README.md
```

## Common Patterns

- **Context managers**: use `with` for resource management
- **Generators**: use `yield` for lazy iteration
- **Comprehensions**: prefer list/dict/set comprehensions over loops when clear
- **`functools`**: `lru_cache`, `partial`, `reduce`
- **`itertools`**: `chain`, `groupby`, `islice`

## Error Handling

- Catch specific exceptions, never bare `except:`
- Use custom exception classes for domain errors
- `contextlib.suppress()` for intentionally ignoring exceptions
- Always log exceptions with traceback context

## Testing

- Use `pytest` as the test framework
- Fixtures for setup/teardown: `@pytest.fixture`
- `pytest.raises` for exception testing
- `tmp_path` fixture for temporary files
- Structure: `tests/test_<module>.py` mirroring `src/` layout

## Async

- Use `asyncio` for concurrent I/O
- `async def` / `await` syntax
- `aiohttp` for async HTTP
- Never mix sync and async without `asyncio.to_thread()`

## Dependencies

- Use `pyproject.toml` for project metadata
- Pin versions in `requirements.txt` for applications
- Use `>=` constraints in libraries
- Virtual environments: `python -m venv .venv`

## Type Hints

```python
from typing import Optional, Union
from collections.abc import Sequence, Mapping

def process(items: Sequence[str], config: Mapping[str, int] | None = None) -> list[str]:
    ...
```

From lqdev/copilot-emacs, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Apr 9, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lqdev

Cite this page

python-expert skill. Agent Mart. https://agentmart.dev/skills/lqdev-python-expert (last updated 2026-10-24)