/tdd-flask:flask-qualityfrom tdd-flask
Runs Flask project quality checks: pytest with pytest-flask fixtures, mypy strict type-checking, Black formatting, and isort import sorting.
Ships in tdd-flask. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Flask プロジェクトの品質チェックツール。
| ツール | コマンド | 用途 |
|---|---|---|
| pytest | pytest | テスト実行(pytest-flask) |
| mypy | mypy --strict | 型チェック |
| Black | black . | コードフォーマット |
| isort | isort . | import整理 |
| Fixture | 用途 |
|---|---|
client | test_client インスタンス |
app | Flask アプリケーション |
app_context | アプリケーションコンテキスト |
# conftest.py
import pytest
from myapp import create_app
@pytest.fixture
def app():
app = create_app()
app.config.update({"TESTING": True})
yield app
@pytest.fixture
def client(app):
return app.test_client()
# 基本
pytest
# verbose
pytest -v
# 特定ファイル
pytest tests/test_routes.py
# カバレッジ
pytest --cov=src --cov-report=html
def test_get_users(client):
response = client.get('/api/users')
assert response.status_code == 200
assert response.json is not None
def test_create_user(client):
response = client.post('/api/users', json={
'name': 'Test User',
'email': '[email protected]'
})
assert response.status_code == 201
# 型チェック
mypy --strict src/
# フォーマット
black .
isort .
| 項目 | 目標 |
|---|---|
| mypy | strict mode |
| カバレッジ | 90%+ |
| black/isort | エラー0 |
reference.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub morodomi/tdd-skills --plugin tdd-flask