[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MC3N8NH2H3Q4B1QPPKM5CM":3,"skill-same:01M6MC3N8NH2H3Q4B1QPPKM5CM":90},{"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":26,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":65,"ownerHtmlUrl":66,"ownerBlogUrl":67,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M6MC3N8NH2H3Q4B1QPPKM5CM","django-test-parallelization",null,"Safely parallelize Django and pytest-django test suites with Django --parallel, pytest-xdist, test isolation checks, randomized order detection, shared-resource sharding, locks, and load balancing. Use when enabling parallel tests, diagnosing failures under parallel execution, handling flaky Django tests, or making caches, files, queues, and external resources safe across workers.","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-test-parallelization\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"test","django test parallelization","parallelization","django","pytest","when","queues","load","resources","isolation","tests","load balancing","shared","across","testing","files","workers","use","parallel","execution","code","safe","2026-11-10 10:12:30",false,"---\nname: django-test-parallelization\ndescription: Safely parallelize Django and pytest-django test suites with Django --parallel, pytest-xdist, test isolation checks, randomized order detection, shared-resource sharding, locks, and load balancing. Use when enabling parallel tests, diagnosing failures under parallel execution, handling flaky Django tests, or making caches, files, queues, and external resources safe across workers.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Django Test Parallelization\n  category: Django\n  tags: django,testing,parallelization,pytest,xdist\n---\n\n# Django Test Parallelization\n\nParallel test execution is a multiplier after a suite is isolated. Treat failures under parallel execution as evidence of hidden shared state until proven otherwise.\n\n## Readiness Workflow\n\n1. Measure serial runtime first.\n   - If the suite is already dominated by startup or database creation, parallelism may not help enough on its own.\n\n2. Check isolation before enabling parallelism as the default.\n   - Run in reverse order.\n   - Run with randomized order when reverse order is not enough.\n   - Preserve random seeds so failures can be reproduced.\n\n3. Enable the runner deliberately.\n   - Django runner: install `tblib`, then run `python manage.py test --parallel`.\n   - pytest-django: install `pytest-xdist`, then run `pytest -n auto`.\n\n4. Classify failures.\n   - Order-dependent failures usually come from mutated globals, class attributes, settings, caches, monkeypatches, or database assumptions.\n   - Parallel-only failures usually come from shared resources such as files, cache keys, ports, queues, external services, or temporary directories.\n\n5. Make resources worker-safe.\n   - Prefer sharding per process or worker.\n   - Use locks only when the resource cannot be partitioned.\n   - Keep lock scope narrow.\n\n6. Balance work after it is correct.\n   - Split large test classes or modules only when measurement shows one group holds back the parallel run.\n\n## Commands\n\n```bash\npython -m pip install tblib\npython manage.py test --parallel\npython manage.py test --parallel 1\npython manage.py test --reverse\n\npython -m pip install pytest-xdist\npytest -n auto\npytest -n auto --dist loadscope\n```\n\nFor shared-resource patterns, read [shared-resources.md](references\u002Fshared-resources.md).\n\n## Decision Rules\n\n- Add parallel testing early in new projects; older serial suites often have hidden isolation assumptions.\n- Use CI reverse-order testing as a low-friction guard against order dependencies.\n- Use random order when reverse order misses a suspected dependency, and capture the seed.\n- Prefer `pytest -n auto --dist loadscope` for Django `TestCase`-heavy suites because class\u002Fmodule setup can be expensive.\n- Shard resources before reaching for locks.\n- Put process-specific behavior in test settings only, not production settings.\n- Split large test groups only after profiling shows an imbalance.\n\n## Common Mistakes\n\n- Assuming database transaction isolation protects caches, files, task queues, or external systems.\n- Mutating class attributes, globals, app settings, or cache entries without restoring them.\n- Enabling random order without preserving the seed.\n- Using a single lockfile for too much work and accidentally serializing the suite.\n- Letting pytest-xdist split related tests so finely that setup cost is duplicated.\n- Making parallelism the default before the suite passes reliably under order-isolation checks.\n\n## Verification\n\nBefore calling parallelization complete:\n\n- Serial run passes.\n- Reverse or random-order run passes, or known failures are fixed.\n- Parallel run passes at least twice.\n- Any shared-resource sharding lives in test configuration.\n- CI has a serial fallback command for debugging.\n","# Django Test Parallelization\n\nParallel test execution is a multiplier after a suite is isolated. Treat failures under parallel execution as evidence of hidden shared state until proven otherwise.\n\n## Readiness Workflow\n\n1. Measure serial runtime first.\n   - If the suite is already dominated by startup or database creation, parallelism may not help enough on its own.\n\n2. Check isolation before enabling parallelism as the default.\n   - Run in reverse order.\n   - Run with randomized order when reverse order is not enough.\n   - Preserve random seeds so failures can be reproduced.\n\n3. Enable the runner deliberately.\n   - Django runner: install `tblib`, then run `python manage.py test --parallel`.\n   - pytest-django: install `pytest-xdist`, then run `pytest -n auto`.\n\n4. Classify failures.\n   - Order-dependent failures usually come from mutated globals, class attributes, settings, caches, monkeypatches, or database assumptions.\n   - Parallel-only failures usually come from shared resources such as files, cache keys, ports, queues, external services, or temporary directories.\n\n5. Make resources worker-safe.\n   - Prefer sharding per process or worker.\n   - Use locks only when the resource cannot be partitioned.\n   - Keep lock scope narrow.\n\n6. Balance work after it is correct.\n   - Split large test classes or modules only when measurement shows one group holds back the parallel run.\n\n## Commands\n\n```bash\npython -m pip install tblib\npython manage.py test --parallel\npython manage.py test --parallel 1\npython manage.py test --reverse\n\npython -m pip install pytest-xdist\npytest -n auto\npytest -n auto --dist loadscope\n```\n\nFor shared-resource patterns, read [shared-resources.md](references\u002Fshared-resources.md).\n\n## Decision Rules\n\n- Add parallel testing early in new projects; older serial suites often have hidden isolation assumptions.\n- Use CI reverse-order testing as a low-friction guard against order dependencies.\n- Use random order when reverse order misses a suspected dependency, and capture the seed.\n- Prefer `pytest -n auto --dist loadscope` for Django `TestCase`-heavy suites because class\u002Fmodule setup can be expensive.\n- Shard resources before reaching for locks.\n- Put process-specific behavior in test settings only, not production settings.\n- Split large test groups only after profiling shows an imbalance.\n\n## Common Mistakes\n\n- Assuming database transaction isolation protects caches, files, task queues, or external systems.\n- Mutating class attributes, globals, app settings, or cache entries without restoring them.\n- Enabling random order without preserving the seed.\n- Using a single lockfile for too much work and accidentally serializing the suite.\n- Letting pytest-xdist split related tests so finely that setup cost is duplicated.\n- Making parallelism the default before the suite passes reliably under order-isolation checks.\n\n## Verification\n\nBefore calling parallelization complete:\n\n- Serial run passes.\n- Reverse or random-order run passes, or known failures are fixed.\n- Parallel run passes at least twice.\n- Any shared-resource sharding lives in test configuration.\n- CI has a serial fallback command for debugging.\n",{"name":5,"license":15,"metadata":54,"description":7,"compatibility":59},{"tags":55,"version":56,"category":57,"displayName":58},"django,testing,parallelization,pytest,xdist","0.1.0","Django","Django Test Parallelization","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-test-parallelization",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-test-parallelization",{"tool":76,"command":77},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-test-parallelization",{"tool":79,"command":80},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-test-parallelization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-test-parallelization\u002FSKILL.md",true,[84],{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fshared-resources.md","REFERENCE","参考文档",2268,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-test-parallelization\u002Freferences\u002Fshared-resources.md",[91,100,108,116,124,132],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":99},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":99},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":99},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":99},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":99},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]