Agent skill

Pytest Config

by athola in athola/claude-night-market

Provides standardized pytest config, reusable fixtures, and CI integration patterns.

MITAuto-check passedTesting & QA

Install Pytest Config

skills CLI
$ npx skills add athola/claude-night-market --skill pytest-config -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market pytest-config --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/leyline/skills/pytest-config .claude/skills/pytest-config && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pytest-config
GitHub stars
342
Token cost
~947 tokens
SKILL.md length
243 words
Files
6
Skills in repo
159
Repo updated
First seen
Licence
MIT

At a glance

Provides standardized pytest config, reusable fixtures, and CI integration patterns.

  • Auditing a Python plugins test infrastructure
  • SKILL.md covers When To Use, When NOT To Use, Quick Start and Detailed Patterns, plus 3 more sections
  • Calls pytest and pip
  • Tasks that involve Unit testing

What it does

Pytest Config is an agent skill from athola/claude-night-market. Provides standardized pytest config, reusable fixtures, and CI integration patterns. Use when setting up or auditing a Python plugin's test infrastructure.

Its SKILL.md is about 950 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `modules/README.md`, `modules/ci-integration.md` and `modules/conftest-patterns.md`).

It sits in Testing & QA, covering Unit testing and Third-party API integration. It works with pytest, Python and Git. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Auditing a Python plugins test infrastructure
  • Tasks that involve Unit testing
  • Tasks that involve Third-party API integration

Example prompts

  • “Use the pytest-config skill to provide standardized pytest config, reusable fixtures, and CI integration patterns”
  • “/pytest-config”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pytest
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pytest Config loads about 947 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 243 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~947

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 243 words, ~947 tokens.

Download SKILL.mdSave it as .claude/skills/pytest-config/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
pytest-config
description
Provides standardized pytest config, reusable fixtures, and CI integration patterns. Use when setting up or auditing a Python plugin's test infrastructure.
globs
**/conftest.py, **/pytest.ini, **/pyproject.toml
alwaysApply
false
category
infrastructure
tags
pytest, testing, configuration, fixtures
dependencies
leyline:testing-quality-standards
estimated_tokens
200
provides.infrastructure
pytest-config, conftest-patterns, coverage-config
modules
modules/conftest-patterns.md, modules/git-testing-fixtures.md, modules/mock-fixtures.md, modules/ci-integration.md, modules/README.md
model_hint
standard

Pytest Configuration Patterns

Standardized pytest configuration and patterns for consistent testing infrastructure across Claude Night Market plugins.

When To Use

  • Setting up pytest configuration and fixtures
  • Configuring conftest.py patterns for test infrastructure

When NOT To Use

  • Non-Python projects or projects using other test frameworks
  • Simple scripts that do not need test infrastructure

Quick Start

Basic pyproject.toml Configuration
toml
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
    "-v",
    "--cov=src",
    "--cov-report=term-missing",
    "--cov-fail-under=80",
    "--strict-markers",
]
markers = [
    "unit: marks tests as unit tests",
    "integration: marks tests as integration tests",
    "slow: marks tests as slow running",
]

[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*", "*/migrations/*", "*/__pycache__/*"]
branch = true

[tool.coverage.report]
exclude_lines = [
    "pragma: no cover",
    "def __repr__",
    "def __str__",
    "raise NotImplementedError",
    "if __name__ == .__main__.:",
    "if TYPE_CHECKING:",
    "class .*\\bProtocol\\):",
    "@(abc\\.)?abstractmethod",
]
precision = 2
show_missing = true

Verification: Run pytest --collect-only to verify discovery, pytest -v --co -q for markers, and pytest --cov for coverage thresholds.

Detailed Patterns

For detailed implementation patterns, see:

  • Conftest Patterns - Conftest.py templates, fixtures, test markers, and directory structure
  • Git Testing Fixtures - GitRepository helper class for testing git workflows
  • Mock Fixtures - Mock tool fixtures for Bash, TodoWrite, and other Claude Code tools
  • CI Integration - GitHub Actions workflows and test commands for automated testing
  • Module Index: See modules/README.md for module organization overview

Integration with Other Skills

This skill provides foundational patterns referenced by:

  • parseltongue:python-testing - Uses pytest configuration and fixtures
  • pensive:test-review - Uses test quality standards
  • sanctum:test-* - Uses conftest patterns and Git fixtures

Reference in your skill's frontmatter:

yaml
dependencies: [leyline:pytest-config, leyline:testing-quality-standards]

Exit Criteria

  • pytest configuration standardized across plugins
  • conftest.py provides reusable fixtures
  • test markers defined and documented
  • coverage configuration enforces quality thresholds
  • CI/CD integration configured for automated testing

Troubleshooting

Common Issues

Tests not discovered Ensure test files match pattern test_*.py or *_test.py. Run pytest --collect-only to verify.

Import errors Check that the module being tested is in PYTHONPATH or install with pip install -e .

Async tests failing Install pytest-asyncio and decorate test functions with @pytest.mark.asyncio

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in plugins/leyline/skills/pytest-config of athola/claude-night-market.

  • SKILL.md
  • modules/README.md
  • modules/ci-integration.md
  • modules/conftest-patterns.md
  • modules/git-testing-fixtures.md
  • modules/mock-fixtures.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Pytest Config next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pytest Config compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pytest Config this skillathola/claude-night-market342—~947Automated safety check: PassMIT
Smoke Test ML Pipelineprobabl-ai/skills137—~6kAutomated safety check: PassBSD-3-Clause
Adk Setupgoogle/adk-python22k—~993Automated safety check: NotesApache-2.0
LexGuard MCP Developer GuideSeoNaRu/lexguard-mcp131—~1.1kAutomated safety check: PassCustom licence
Adk Verify Snippetsgoogle/adk-python22k—~1.4kAutomated safety check: PassApache-2.0
Hermetic Python Unit TestsdimensionalOS/dimos4.6k—~1.4kAutomated safety check: PassCustom licence

Similar skills

  • Smoke Test ML Pipeline

    probabl-ai/skills

    Owns one experiment's smoke test: a small pytest that fits on part of real data/ and predicts on a disjoint slice with no pre-history buffer.

    137 GitHub stars~6k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Adk Setup

    google/adk-python

    Official

    Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test…

    22k GitHub stars~993 tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • LexGuard MCP Developer Guide

    SeoNaRu/lexguard-mcp

    Developer guide for the LexGuard Korean law MCP server: layer rules, adding tools and repositories, JSON-RPC responses, law API handling, answer rules and tests.

    131 GitHub stars~1.1k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Adk Verify Snippets

    google/adk-python

    Official

    Checks that every Python code block in a Markdown file actually compiles and runs, by extracting each block to a temporary file, executing it in an isolated subprocess, and writing a pass/fail…

    22k GitHub stars~1.4k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Hermetic Python Unit Tests

    dimensionalOS/dimos

    Rules for writing, fixing and reviewing pytest unit tests that are hermetic: behavior-focused, deterministic, isolated and cheap to run.

    4.6k GitHub stars~1.4k tokensUpdated today
    Testing & QAAuto-check passed
  • ONNX Runtime Test Runner

    microsoft/onnxruntime

    Official

    Runs and debugs ONNX Runtime tests: Google Test executables for C++ and unittest or pytest for Python, with filters and build-directory guidance.

    22k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed

More from athola/claude-night-market

All 159 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    342 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    342 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Pytest Config

What does Pytest Config do?

Provides standardized pytest config, reusable fixtures, and CI integration patterns. Pytest Config is an agent skill from athola/claude-night-market. Provides standardized pytest config, reusable fixtures, and CI integration patterns.

When should I use Pytest Config?

Pytest Config fits situations like: auditing a Python plugins test infrastructure; tasks that involve Unit testing; tasks that involve Third-party API integration.

How do I install Pytest Config in Claude Code?

Run `npx skills add athola/claude-night-market --skill pytest-config -a claude-code`. Or copy the skill folder (plugins/leyline/skills/pytest-config in athola/claude-night-market) into .claude/skills/pytest-config in your project. Claude Code loads it when a task matches its description.

How do I install Pytest Config in Codex?

Run `npx skills add athola/claude-night-market --skill pytest-config -a codex`. Or copy the skill folder (plugins/leyline/skills/pytest-config in athola/claude-night-market) into .agents/skills/pytest-config in your project. Codex loads it when a task matches its description.

Can I use Pytest Config in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill pytest-config -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pytest-config, .gemini/skills/pytest-config, .github/skills/pytest-config and .opencode/skills/pytest-config in your project.

What does Pytest Config need to run?

Going by SKILL.md and its folder, Pytest Config needs the command-line tools its instructions call (pytest and pip). Our summary lists: Python 3.

Does Pytest Config access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Pytest Config safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pytest Config use?

Pytest Config is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pytest Config use?

About 947 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pytest Config?

Skills that share tags, products or a category with Pytest Config: Smoke Test ML Pipeline (probabl-ai/skills, 137 stars), Adk Setup (google/adk-python, 22k stars), LexGuard MCP Developer Guide (SeoNaRu/lexguard-mcp, 131 stars) and Adk Verify Snippets (google/adk-python, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pytest Config?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 342 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.