Agent skill
python
Default Python stack for Lambda: uv + Astral tools, typed code, schemas, and Hypothesis.
Install this agent skill to your Project
npx add-skill https://github.com/lambdamechanic/scrapinghub-mcp/tree/main/skills/python
SKILL.md
Python Workflow
Use this skill when working on Python projects or adding Python support.
Tooling baseline
- Use
uvfor environments, dependency management, and running commands. - Prefer Astral tooling for quality gates:
rufffor lint/format andtyfor type checking. - Favor strict typing everywhere; avoid
Anyunless the boundary truly requires it.
Typing and schemas
- Type every function signature (params + return) and keep types narrow.
- Use Pydantic models for inputs, outputs, and configuration schemas.
- Prefer typed collections and
typing_extensionsfor newer typing features.
Testing
- Write tests with
pytestand property tests withhypothesiswhen behavior is stateful or rule-based. - Add coverage checks (e.g., pytest-cov) and keep coverage green for new code paths.
Packaging
- Structure the code as a releasable PyPI package.
- Use a
pyproject.tomlwith build metadata, versioning, and asrc/layout. - Ensure imports and entrypoints work when installed from a wheel.
Quality gates
- For pre-commit hooks, run formatting last so lint fixes land before formatting.
- Keep linting, type checking, and tests passing before closing work.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
lambda-workflow
One lifecycle for Lambda repos: choose a bd task, start work, land the PR, and watch GitHub via Dumbwaiter MCP until it merges.
bd-workflow
How to use bd (beads) for issue tracking, ready work, status updates, and comments in this repo.
zfc
Zero Framework Cognition Principles
lambda-workflow
One lifecycle for Lambda repos: choose a br issue, start work, land the PR, and watch GitHub via Dumbwaiter MCP until it merges.
testing-patterns
Testing patterns and standards for this codebase, including async effects, fakes vs mocks, and property-based testing.
tooltest-fix-loop
Use when running tooltest to validate MCP servers, interpret failures, and iterate fixes in this repo.
Didn't find tool you were looking for?