draft-tests

Generate pytest test drafts for Python modules using a local Ollama model.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/qvidal01/claude-code-skills --skill draft-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: draft-tests
Source: https://github.com/qvidal01/claude-code-skills/tree/main/draft-tests
Command: npx skills add https://github.com/qvidal01/claude-code-skills --skill draft-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, and includes scripts (resource) components.

What problem does it solve?

The Skill unit "draft-tests" solves the problem of manual pytest test generation by automating the creation of test cases using a local Ollama server, reducing the time spent on repetitive tasks and enhancing code review efficiency.

Core Features & Use Cases

  • Automated Test Drafting: Generates pytest test cases for specific modules based on code analysis.
  • Code Review Efficiency: Allows Claude to focus on reviewing and improving the generated test cases, rather than on creating them from scratch.
  • Use Case: When working on a module, use the /draft-tests command to generate tests, then Claude reviews and commits them, ensuring high-quality test coverage.

Quick Start

Run the /draft-tests command followed by the module path, such as: /draft-tests sentinel-core/app/services/compliance/scoring.py

Frequently Asked Questions about draft-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pytest test generation for Python modules?

To automate pytest test generation, run the /draft-tests command followed by your module path. The Skill analyzes the module and uses a local Ollama model to draft pytest test cases.

Can I use a local LLM to generate test cases for code review?

Yes, you can use a local LLM to generate test cases for code review. The Skill leverages a local Ollama server to draft pytest tests, allowing you to focus on reviewing and improving the generated coverage.

Do I need an Ollama server running to draft pytest tests?

Yes, you need a local Ollama server running to draft pytest tests. The Skill requires access to the local Ollama model to analyze Python modules and generate the test cases.

What is the best way to streamline Python test creation and code review?

The best way to streamline Python test creation and code review is to automate the initial drafting. This Skill generates pytest test cases via a local Ollama model, letting you focus on reviewing and committing high-quality tests.

How does automated test drafting work with pytest?

Automated test drafting works by analyzing your Python module and prompting a local Ollama model to generate pytest test cases. You simply provide the module path, and the Skill creates the initial test drafts.