[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C22GQ3BK7DVZ530BVJJD8A":3,"skill-same:01M6C22GQ3BK7DVZ530BVJJD8A":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":66,"ownerHtmlUrl":67,"ownerBlogUrl":68,"ownerDescription":69,"updatedAt":70,"install":71,"resources":84},"01M6C22GQ3BK7DVZ530BVJJD8A","pytest-runner","pytest 测试执行","Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.","使用 pytest 执行 Python 测试,支持测试夹具(fixtures)、标记(markers)、覆盖率(coverage)和并行执行。适用于 Python 测试自动化。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fextensions\u002Fpython\u002Fskills\u002Fpytest-runner\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"runner","pytest","pytest runner","execute","for","with","markers","tests","fixtures","parallel execution","use","python","coverage","write","read","parallel","Bash","execution","test automation","test","automation","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: pytest-runner\ndescription: Execute Python tests with pytest, supporting fixtures, markers, coverage, and parallel execution. Use for Python test automation.\ntools: Read, Write, Bash\nplatforms: [all]\n\n---\n\n# Pytest Runner Skill\n\n## Purpose\n\nSingle responsibility: Execute and manage pytest test suites with proper configuration, coverage reporting, and failure analysis. (BP-4)\n\n## Grounding Checkpoint (Archetype 1 Mitigation)\n\nBefore executing, VERIFY:\n\n- [ ] Python virtual environment is active or available\n- [ ] pytest is installed (`pip show pytest`)\n- [ ] Test directory exists with test files\n- [ ] pytest.ini or pyproject.toml configured (optional)\n\n**DO NOT run tests without verifying environment.**\n\n## Uncertainty Escalation (Archetype 2 Mitigation)\n\nASK USER instead of guessing when:\n\n- Multiple test directories detected - which to run?\n- Coverage threshold unclear\n- Parallel execution appropriate?\n- Specific markers or keywords needed?\n\n**NEVER modify test configurations without user approval.**\n\n## Context Scope (Archetype 3 Mitigation)\n\n| Context Type | Included | Excluded |\n|--------------|----------|----------|\n| RELEVANT | Test files, pytest config, fixtures | Application code details |\n| PERIPHERAL | Coverage reports, test markers | CI\u002FCD pipelines |\n| DISTRACTOR | Other language tests | Deployment configs |\n\n## Workflow Steps\n\n### Step 1: Environment Check (Grounding)\n\n```bash\n# Verify virtual environment\nif [ -z \"$VIRTUAL_ENV\" ]; then\n  # Activate if exists\n  if [ -f \"venv\u002Fbin\u002Factivate\" ]; then\n    source venv\u002Fbin\u002Factivate\n  elif [ -f \".venv\u002Fbin\u002Factivate\" ]; then\n    source .venv\u002Fbin\u002Factivate\n  else\n    echo \"WARNING: No virtual environment active\"\n  fi\nfi\n\n# Verify pytest installed\npython -m pytest --version || pip install pytest\n```\n\n### Step 2: Discover Tests\n\n```bash\n# List all test files\nfind . -name \"test_*.py\" -o -name \"*_test.py\" | head -20\n\n# Show pytest collection\npython -m pytest --collect-only -q\n```\n\n### Step 3: Execute Tests\n\n**Basic execution:**\n```bash\npython -m pytest tests\u002F -v\n```\n\n**With coverage:**\n```bash\npython -m pytest tests\u002F -v --cov=src --cov-report=term-missing --cov-report=html\n```\n\n**Parallel execution:**\n```bash\npython -m pytest tests\u002F -v -n auto  # requires pytest-xdist\n```\n\n**With markers:**\n```bash\npython -m pytest tests\u002F -v -m \"unit\"\npython -m pytest tests\u002F -v -m \"not slow\"\n```\n\n### Step 4: Analyze Results\n\n```bash\n# Parse test results\npython -m pytest tests\u002F -v --tb=short 2>&1 | tee test_results.txt\n\n# Extract failures\ngrep -E \"^FAILED|^ERROR\" test_results.txt\n\n# Coverage summary\npython -m pytest --cov=src --cov-report=term | grep -E \"^TOTAL|^Name\"\n```\n\n## Recovery Protocol (Archetype 4 Mitigation)\n\nOn error:\n\n1. **PAUSE** - Capture test output\n2. **DIAGNOSE** - Check error type:\n   - `ImportError` → Check dependencies, PYTHONPATH\n   - `FixtureError` → Check conftest.py\n   - `CollectionError` → Check test file syntax\n   - `Timeout` → Reduce test scope or add markers\n3. **ADAPT** - Adjust test selection or configuration\n4. **RETRY** - With narrower scope (max 3 attempts)\n5. **ESCALATE** - Report failures with context\n\n## Checkpoint Support\n\nState saved to: `.aiwg\u002Fworking\u002Fcheckpoints\u002Fpytest-runner\u002F`\n\n```\ncheckpoints\u002Fpytest-runner\u002F\n├── test_collection.json     # Discovered tests\n├── test_results.json        # Last run results\n├── coverage_report.json     # Coverage data\n└── failure_analysis.md      # Failure diagnostics\n```\n\n## Common Pytest Options\n\n| Option | Purpose |\n|--------|---------|\n| `-v` | Verbose output |\n| `-x` | Stop on first failure |\n| `-s` | Show print statements |\n| `--lf` | Run last failed tests |\n| `--ff` | Run failed tests first |\n| `-k \"pattern\"` | Filter by name pattern |\n| `-m \"marker\"` | Filter by marker |\n| `--tb=short` | Shorter tracebacks |\n\n## Configuration Templates\n\n**pytest.ini:**\n```ini\n[pytest]\ntestpaths = tests\npython_files = test_*.py *_test.py\npython_functions = test_*\naddopts = -v --tb=short\nmarkers =\n    unit: Unit tests\n    integration: Integration tests\n    slow: Slow tests\n```\n\n**pyproject.toml:**\n```toml\n[tool.pytest.ini_options]\ntestpaths = [\"tests\"]\npython_files = [\"test_*.py\", \"*_test.py\"]\naddopts = \"-v --tb=short\"\n```\n\n## References\n\n- pytest documentation: https:\u002F\u002Fdocs.pytest.org\u002F\n- REF-001: Production-Grade Agentic Workflows (BP-4 single responsibility)\n- REF-002: LLM Failure Modes (Archetype 1 grounding)\n","# Pytest Runner Skill\n\n## Purpose\n\nSingle responsibility: Execute and manage pytest test suites with proper configuration, coverage reporting, and failure analysis. (BP-4)\n\n## Grounding Checkpoint (Archetype 1 Mitigation)\n\nBefore executing, VERIFY:\n\n- [ ] Python virtual environment is active or available\n- [ ] pytest is installed (`pip show pytest`)\n- [ ] Test directory exists with test files\n- [ ] pytest.ini or pyproject.toml configured (optional)\n\n**DO NOT run tests without verifying environment.**\n\n## Uncertainty Escalation (Archetype 2 Mitigation)\n\nASK USER instead of guessing when:\n\n- Multiple test directories detected - which to run?\n- Coverage threshold unclear\n- Parallel execution appropriate?\n- Specific markers or keywords needed?\n\n**NEVER modify test configurations without user approval.**\n\n## Context Scope (Archetype 3 Mitigation)\n\n| Context Type | Included | Excluded |\n|--------------|----------|----------|\n| RELEVANT | Test files, pytest config, fixtures | Application code details |\n| PERIPHERAL | Coverage reports, test markers | CI\u002FCD pipelines |\n| DISTRACTOR | Other language tests | Deployment configs |\n\n## Workflow Steps\n\n### Step 1: Environment Check (Grounding)\n\n```bash\n# Verify virtual environment\nif [ -z \"$VIRTUAL_ENV\" ]; then\n  # Activate if exists\n  if [ -f \"venv\u002Fbin\u002Factivate\" ]; then\n    source venv\u002Fbin\u002Factivate\n  elif [ -f \".venv\u002Fbin\u002Factivate\" ]; then\n    source .venv\u002Fbin\u002Factivate\n  else\n    echo \"WARNING: No virtual environment active\"\n  fi\nfi\n\n# Verify pytest installed\npython -m pytest --version || pip install pytest\n```\n\n### Step 2: Discover Tests\n\n```bash\n# List all test files\nfind . -name \"test_*.py\" -o -name \"*_test.py\" | head -20\n\n# Show pytest collection\npython -m pytest --collect-only -q\n```\n\n### Step 3: Execute Tests\n\n**Basic execution:**\n```bash\npython -m pytest tests\u002F -v\n```\n\n**With coverage:**\n```bash\npython -m pytest tests\u002F -v --cov=src --cov-report=term-missing --cov-report=html\n```\n\n**Parallel execution:**\n```bash\npython -m pytest tests\u002F -v -n auto  # requires pytest-xdist\n```\n\n**With markers:**\n```bash\npython -m pytest tests\u002F -v -m \"unit\"\npython -m pytest tests\u002F -v -m \"not slow\"\n```\n\n### Step 4: Analyze Results\n\n```bash\n# Parse test results\npython -m pytest tests\u002F -v --tb=short 2>&1 | tee test_results.txt\n\n# Extract failures\ngrep -E \"^FAILED|^ERROR\" test_results.txt\n\n# Coverage summary\npython -m pytest --cov=src --cov-report=term | grep -E \"^TOTAL|^Name\"\n```\n\n## Recovery Protocol (Archetype 4 Mitigation)\n\nOn error:\n\n1. **PAUSE** - Capture test output\n2. **DIAGNOSE** - Check error type:\n   - `ImportError` → Check dependencies, PYTHONPATH\n   - `FixtureError` → Check conftest.py\n   - `CollectionError` → Check test file syntax\n   - `Timeout` → Reduce test scope or add markers\n3. **ADAPT** - Adjust test selection or configuration\n4. **RETRY** - With narrower scope (max 3 attempts)\n5. **ESCALATE** - Report failures with context\n\n## Checkpoint Support\n\nState saved to: `.aiwg\u002Fworking\u002Fcheckpoints\u002Fpytest-runner\u002F`\n\n```\ncheckpoints\u002Fpytest-runner\u002F\n├── test_collection.json     # Discovered tests\n├── test_results.json        # Last run results\n├── coverage_report.json     # Coverage data\n└── failure_analysis.md      # Failure diagnostics\n```\n\n## Common Pytest Options\n\n| Option | Purpose |\n|--------|---------|\n| `-v` | Verbose output |\n| `-x` | Stop on first failure |\n| `-s` | Show print statements |\n| `--lf` | Run last failed tests |\n| `--ff` | Run failed tests first |\n| `-k \"pattern\"` | Filter by name pattern |\n| `-m \"marker\"` | Filter by marker |\n| `--tb=short` | Shorter tracebacks |\n\n## Configuration Templates\n\n**pytest.ini:**\n```ini\n[pytest]\ntestpaths = tests\npython_files = test_*.py *_test.py\npython_functions = test_*\naddopts = -v --tb=short\nmarkers =\n    unit: Unit tests\n    integration: Integration tests\n    slow: Slow tests\n```\n\n**pyproject.toml:**\n```toml\n[tool.pytest.ini_options]\ntestpaths = [\"tests\"]\npython_files = [\"test_*.py\", \"*_test.py\"]\naddopts = \"-v --tb=short\"\n```\n\n## References\n\n- pytest documentation: https:\u002F\u002Fdocs.pytest.org\u002F\n- REF-001: Production-Grade Agentic Workflows (BP-4 single responsibility)\n- REF-002: LLM Failure Modes (Archetype 1 grounding)\n",{"name":5,"tools":57,"namespace":58,"platforms":59,"description":7},"Read, Write, Bash","aiwg",[60],"all","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fextensions\u002Fpython\u002Fskills\u002Fpytest-runner",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add jmagly\u002Faiwg --skill pytest-runner",{"tool":77,"command":78},"bunx","bunx skills add jmagly\u002Faiwg --skill pytest-runner",{"tool":80,"command":81},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill pytest-runner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fextensions\u002Fpython\u002Fskills\u002Fpytest-runner\u002FSKILL.md",true,[],[86,94,99,124,143,148],{"skillNo":87,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":95,"name":88,"nameZh":17,"description":89,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":93},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":17,"description":102,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":52},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[106,107,108,109,110,45,111,112,113,114,115,116,117,47,118,119,120,121,122,123],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","only","retention","re","never","firewall",{"skillNo":125,"name":126,"nameZh":17,"description":127,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":52},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[131,132,133,134,135,44,45,136,116,122,47,137,107,138,119,139,140,123,141,142],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":144,"name":101,"nameZh":17,"description":102,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":52},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[106,107,108,121,122,123,117,120,113,110,45,111,112,114,115,116,109,47,118,119],{"skillNo":149,"name":126,"nameZh":17,"description":127,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":52},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[131,132,142,141,135,140,139,119,134,44,45,136,116,133,47,137,107,123,122,138]]