[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AASMDXT4B8XBCPXGGF5V0P":3,"skill-same:01M7AASMDXT4B8XBCPXGGF5V0P":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7AASMDXT4B8XBCPXGGF5V0P","pytest-skill",null,"Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions \"pytest\", \"conftest\", \"@pytest.fixture\", \"@pytest.mark\", \"Python test\". Triggers on: \"pytest\", \"conftest\", \"Python test\", \"parametrize\", \"Python unit test\".","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpytest-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions \\\"pytest\\\", \\\"conftest\\\", \\\"@pytest.fixture\\\", \\\"@pytest.mark\\\", \\\"Python test\\\". Triggers on: \\\"pytest\\\", \\\"conftest\\\", \\\"Python test\\\", \\\"parametrize\\\", \\\"Python unit test\\\".\\n\"\nlicense: \"MIT\"\nmetadata: {\"author\":\"TestMu AI\",\"version\":\"1.0\"}\n---\n# Pytest Testing Skill\n\n## Core Patterns\n\n### Basic Test\n\n```python\nimport pytest\n\ndef test_addition():\n    assert 2 + 3 == 5\n\ndef test_exception():\n    with pytest.raises(ValueError, match=\"invalid\"):\n        int(\"not_a_number\")\n\nclass TestCalculator:\n    def test_add(self):\n        calc = Calculator()\n        assert calc.add(2, 3) == 5\n\n    def test_divide_by_zero(self):\n        with pytest.raises(ZeroDivisionError):\n            Calculator().divide(10, 0)\n```\n\n### Fixtures\n\n```python\n@pytest.fixture\ndef calculator():\n    return Calculator()\n\n@pytest.fixture\ndef db_connection():\n    conn = Database.connect(\"test_db\")\n    yield conn  # teardown after yield\n    conn.rollback()\n    conn.close()\n\n@pytest.fixture(scope=\"module\")\ndef api_client():\n    client = APIClient(base_url=\"http:\u002F\u002Flocalhost:8000\")\n    yield client\n    client.logout()\n\n# conftest.py - shared fixtures\n@pytest.fixture(autouse=True)\ndef reset_state():\n    State.reset()\n    yield\n    State.cleanup()\n\n# Usage\ndef test_add(calculator):\n    assert calculator.add(2, 3) == 5\n```\n\n### Parametrize\n\n```python\n@pytest.mark.parametrize(\"input,expected\", [\n    (\"hello\", 5), (\"\", 0), (\"pytest\", 6),\n])\ndef test_string_length(input, expected):\n    assert len(input) == expected\n\n@pytest.mark.parametrize(\"a,b,expected\", [\n    (2, 3, 5), (-1, 1, 0), (0, 0, 0),\n])\ndef test_add(calculator, a, b, expected):\n    assert calculator.add(a, b) == expected\n```\n\n### Markers\n\n```python\n@pytest.mark.slow\ndef test_large_dataset(): ...\n\n@pytest.mark.skip(reason=\"Not implemented\")\ndef test_future_feature(): ...\n\n@pytest.mark.skipif(sys.platform == \"win32\", reason=\"Unix only\")\ndef test_unix_permissions(): ...\n\n@pytest.mark.xfail(reason=\"Known bug #123\")\ndef test_known_bug(): ...\n```\n\n### Mocking\n\n```python\nfrom unittest.mock import patch, MagicMock\n\ndef test_send_email(mocker):\n    mock_smtp = mocker.patch(\"myapp.email.smtplib.SMTP\")\n    send_welcome_email(\"user@test.com\")\n    mock_smtp.return_value.sendmail.assert_called_once()\n\ndef test_api_call(mocker):\n    mock_response = mocker.Mock()\n    mock_response.status_code = 200\n    mock_response.json.return_value = {\"users\": [{\"name\": \"Alice\"}]}\n    mocker.patch(\"myapp.service.requests.get\", return_value=mock_response)\n    users = get_users()\n    assert len(users) == 1\n\n@patch(\"myapp.service.database\")\ndef test_save_user(mock_db):\n    mock_db.save.return_value = True\n    assert save_user({\"name\": \"Alice\"}) is True\n    mock_db.save.assert_called_once()\n```\n\n### Assertions\n\n```python\nassert x == y\nassert x != y\nassert x in collection\nassert isinstance(obj, MyClass)\nassert 0.1 + 0.2 == pytest.approx(0.3)\n\nwith pytest.raises(ValueError) as exc_info:\n    raise ValueError(\"bad\")\nassert \"bad\" in str(exc_info.value)\n```\n\n### Anti-Patterns\n\n| Bad | Good | Why |\n|-----|------|-----|\n| `self.assertEqual()` | `assert x == y` | pytest rewrites give better output |\n| Setup in `__init__` | `@pytest.fixture` | Lifecycle management |\n| Global state | Fixture with `yield` | Proper cleanup |\n| Huge test functions | Small focused tests | Easier debugging |\n\n## Quick Reference\n\n| Task | Command |\n|------|---------|\n| Run all | `pytest` |\n| Run file | `pytest tests\u002Ftest_login.py` |\n| Run specific | `pytest tests\u002Ftest_login.py::test_login_success` |\n| By marker | `pytest -m slow` |\n| By keyword | `pytest -k \"login and not invalid\"` |\n| Verbose | `pytest -v` |\n| Stop first fail | `pytest -x` |\n| Last failed | `pytest --lf` |\n| Coverage | `pytest --cov=myapp --cov-report=html` |\n| Parallel | `pytest -n auto` (pytest-xdist) |\n\n## pyproject.toml\n\n```toml\n[tool.pytest.ini_options]\ntestpaths = [\"tests\"]\nmarkers = [\"slow: slow tests\", \"integration: integration tests\"]\naddopts = \"-v --tb=short\"\n```\n\n## Deep Patterns\n\nFor production-grade patterns, see `reference\u002Fplaybook.md`:\n\n| Section | What's Inside |\n|---------|--------------|\n| §1 Config | pytest.ini + pyproject.toml with markers, coverage |\n| §2 Fixtures | Scoping, factories, teardown, autouse, tmp_path |\n| §3 Parametrize | Basic, with IDs, cartesian, indirect |\n| §4 Mocking | pytest-mock, monkeypatch, spies, env vars |\n| §5 Async | pytest-asyncio, async fixtures, async client |\n| §6 Exceptions | pytest.raises(match=), warnings |\n| §7 Markers & Plugins | Custom markers, collection hooks |\n| §8 Class-Based | Nested classes, autouse setup |\n| §9 CI\u002FCD | GitHub Actions matrix, coverage gates |\n| §10 Debugging Table | 10 common problems with fixes |\n| §11 Best Practices | 15-item production checklist |\n","# Pytest Testing Skill\n\n## Core Patterns\n\n### Basic Test\n\n```python\nimport pytest\n\ndef test_addition():\n    assert 2 + 3 == 5\n\ndef test_exception():\n    with pytest.raises(ValueError, match=\"invalid\"):\n        int(\"not_a_number\")\n\nclass TestCalculator:\n    def test_add(self):\n        calc = Calculator()\n        assert calc.add(2, 3) == 5\n\n    def test_divide_by_zero(self):\n        with pytest.raises(ZeroDivisionError):\n            Calculator().divide(10, 0)\n```\n\n### Fixtures\n\n```python\n@pytest.fixture\ndef calculator():\n    return Calculator()\n\n@pytest.fixture\ndef db_connection():\n    conn = Database.connect(\"test_db\")\n    yield conn  # teardown after yield\n    conn.rollback()\n    conn.close()\n\n@pytest.fixture(scope=\"module\")\ndef api_client():\n    client = APIClient(base_url=\"http:\u002F\u002Flocalhost:8000\")\n    yield client\n    client.logout()\n\n# conftest.py - shared fixtures\n@pytest.fixture(autouse=True)\ndef reset_state():\n    State.reset()\n    yield\n    State.cleanup()\n\n# Usage\ndef test_add(calculator):\n    assert calculator.add(2, 3) == 5\n```\n\n### Parametrize\n\n```python\n@pytest.mark.parametrize(\"input,expected\", [\n    (\"hello\", 5), (\"\", 0), (\"pytest\", 6),\n])\ndef test_string_length(input, expected):\n    assert len(input) == expected\n\n@pytest.mark.parametrize(\"a,b,expected\", [\n    (2, 3, 5), (-1, 1, 0), (0, 0, 0),\n])\ndef test_add(calculator, a, b, expected):\n    assert calculator.add(a, b) == expected\n```\n\n### Markers\n\n```python\n@pytest.mark.slow\ndef test_large_dataset(): ...\n\n@pytest.mark.skip(reason=\"Not implemented\")\ndef test_future_feature(): ...\n\n@pytest.mark.skipif(sys.platform == \"win32\", reason=\"Unix only\")\ndef test_unix_permissions(): ...\n\n@pytest.mark.xfail(reason=\"Known bug #123\")\ndef test_known_bug(): ...\n```\n\n### Mocking\n\n```python\nfrom unittest.mock import patch, MagicMock\n\ndef test_send_email(mocker):\n    mock_smtp = mocker.patch(\"myapp.email.smtplib.SMTP\")\n    send_welcome_email(\"user@test.com\")\n    mock_smtp.return_value.sendmail.assert_called_once()\n\ndef test_api_call(mocker):\n    mock_response = mocker.Mock()\n    mock_response.status_code = 200\n    mock_response.json.return_value = {\"users\": [{\"name\": \"Alice\"}]}\n    mocker.patch(\"myapp.service.requests.get\", return_value=mock_response)\n    users = get_users()\n    assert len(users) == 1\n\n@patch(\"myapp.service.database\")\ndef test_save_user(mock_db):\n    mock_db.save.return_value = True\n    assert save_user({\"name\": \"Alice\"}) is True\n    mock_db.save.assert_called_once()\n```\n\n### Assertions\n\n```python\nassert x == y\nassert x != y\nassert x in collection\nassert isinstance(obj, MyClass)\nassert 0.1 + 0.2 == pytest.approx(0.3)\n\nwith pytest.raises(ValueError) as exc_info:\n    raise ValueError(\"bad\")\nassert \"bad\" in str(exc_info.value)\n```\n\n### Anti-Patterns\n\n| Bad | Good | Why |\n|-----|------|-----|\n| `self.assertEqual()` | `assert x == y` | pytest rewrites give better output |\n| Setup in `__init__` | `@pytest.fixture` | Lifecycle management |\n| Global state | Fixture with `yield` | Proper cleanup |\n| Huge test functions | Small focused tests | Easier debugging |\n\n## Quick Reference\n\n| Task | Command |\n|------|---------|\n| Run all | `pytest` |\n| Run file | `pytest tests\u002Ftest_login.py` |\n| Run specific | `pytest tests\u002Ftest_login.py::test_login_success` |\n| By marker | `pytest -m slow` |\n| By keyword | `pytest -k \"login and not invalid\"` |\n| Verbose | `pytest -v` |\n| Stop first fail | `pytest -x` |\n| Last failed | `pytest --lf` |\n| Coverage | `pytest --cov=myapp --cov-report=html` |\n| Parallel | `pytest -n auto` (pytest-xdist) |\n\n## pyproject.toml\n\n```toml\n[tool.pytest.ini_options]\ntestpaths = [\"tests\"]\nmarkers = [\"slow: slow tests\", \"integration: integration tests\"]\naddopts = \"-v --tb=short\"\n```\n\n## Deep Patterns\n\nFor production-grade patterns, see `reference\u002Fplaybook.md`:\n\n| Section | What's Inside |\n|---------|--------------|\n| §1 Config | pytest.ini + pyproject.toml with markers, coverage |\n| §2 Fixtures | Scoping, factories, teardown, autouse, tmp_path |\n| §3 Parametrize | Basic, with IDs, cartesian, indirect |\n| §4 Mocking | pytest-mock, monkeypatch, spies, env vars |\n| §5 Async | pytest-asyncio, async fixtures, async client |\n| §6 Exceptions | pytest.raises(match=), warnings |\n| §7 Markers & Plugins | Custom markers, collection hooks |\n| §8 Class-Based | Nested classes, autouse setup |\n| §9 CI\u002FCD | GitHub Actions matrix, coverage gates |\n| §10 Debugging Table | 10 common problems with fixes |\n| §11 Best Practices | 15-item production checklist |\n",{"license":15,"metadata":24,"description":27},{"author":25,"version":26},"TestMu AI","1.0","Generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions \"pytest\", \"conftest\", \"@pytest.fixture\", \"@pytest.mark\", \"Python test\". Triggers on: \"pytest\", \"conftest\", \"Python test\", \"parametrize\", \"Python unit test\".\n","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fpytest-skill","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add NeelakshSaxena\u002FVayu --skill pytest-skill",{"tool":41,"command":42},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill pytest-skill",{"tool":44,"command":45},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill pytest-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpytest-skill\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"reference\u002Fadvanced-patterns.md","REFERENCE","参考文档",5930,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpytest-skill\u002Freference\u002Fadvanced-patterns.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"reference\u002Fplaybook.md",10967,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fpytest-skill\u002Freference\u002Fplaybook.md",[60,68,75,82,89,96],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":64,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]