[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MC3AHNF9NW8ZT38MYXG86N":3,"skill-same:01M6MC3AHNF9NW8ZT38MYXG86N":89},{"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":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6MC3AHNF9NW8ZT38MYXG86N","django-targeted-mocking",null,"Mock Django test boundaries safely with override_settings, pytest settings, autospecced unittest.mock objects, output\u002Finput capture, requests-mock, VCR.py, outbound HTTP blocking, and time-freezing tools. Use when tests need to replace settings, HTTP calls, time, command output, stdin, or external services without broad fragile MagicMock patches.","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-targeted-mocking\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],"django targeted mocking","django","mocking","outbound","when","calls","with","output","mock","input","tests","time","testing","objects","pytest","use","command","Tools","code","http","test","2026-11-10 10:12:30",false,"---\nname: django-targeted-mocking\ndescription: Mock Django test boundaries safely with override_settings, pytest settings, autospecced unittest.mock objects, output\u002Finput capture, requests-mock, VCR.py, outbound HTTP blocking, and time-freezing tools. Use when tests need to replace settings, HTTP calls, time, command output, stdin, or external services without broad fragile MagicMock patches.\nlicense: MIT\ncompatibility: Codex, Claude Code, and other Agent Skills-compatible clients.\nmetadata:\n  version: \"0.1.0\"\n  displayName: Django Targeted Mocking\n  category: Django\n  tags: django,testing,mocking,http,pytest\n---\n\n# Django Targeted Mocking\n\nMock only at boundaries that are slow, nondeterministic, external, or hard to trigger. Broad mocks can make tests faster while proving less, so prefer framework helpers and interface-checked replacements.\n\n## Boundary Workflow\n\n1. Decide whether mocking is necessary.\n   - Prefer real code for local domain logic.\n   - Mock external HTTP, time, settings, output\u002Finput, and expensive service edges.\n\n2. Patch where the code under test looks up the dependency.\n   - Patch the imported symbol used by the module under test, not the original library path unless that is what the module reads.\n\n3. Prefer specific tools.\n   - Settings: `override_settings`, `modify_settings`, or pytest-django's `settings` fixture.\n   - Output: `io.StringIO`, pytest `capsys`, or command test helpers.\n   - HTTP: `requests-mock` for hand-authored responses; VCR.py for recorded responses.\n   - Time: pass time as a parameter when possible; otherwise use `time-machine` or a similar time-specific tool.\n\n4. Make mocks interface-aware.\n   - Use `autospec=True`, `spec`, `spec_set`, `create_autospec`, or a small fake object.\n   - Avoid bare `Mock`\u002F`MagicMock` when the interface matters.\n\n5. Block unexpected outbound HTTP.\n   - A normal test run should fail if a test reaches the network unintentionally.\n\nRead [mocking-patterns.md](references\u002Fmocking-patterns.md) for concrete patterns.\n\n## Decision Rules\n\n- Use Django settings helpers instead of direct assignment to `django.conf.settings`.\n- Prefer a hand-built fake or `types.SimpleNamespace` when only a few attributes are needed.\n- Use `requests-mock` for deterministic API responses you control.\n- Use VCR.py when real recorded responses are valuable and safe to store.\n- On CI, configure VCR record mode so missing cassettes fail instead of recording.\n- Mock time consistently across the runtime; do not patch several datetime functions by hand.\n- Do not mock the component whose behavior the test is meant to prove.\n\n## Common Mistakes\n\n- Patching settings directly and leaking state across tests.\n- Using catch-all `MagicMock` objects that accept typoed attributes and wrong call signatures.\n- Allowing tests to hit real external services.\n- Recording VCR cassettes in CI.\n- Mocking a view's internal helpers so thoroughly that the test no longer covers request behavior.\n- Patching the wrong import path and thinking the mock is active.\n\n## Verification\n\nBefore finishing:\n\n- Each mock has a clear boundary reason.\n- Interface-sensitive mocks use specs or fakes.\n- Unexpected outbound HTTP is blocked in the normal suite.\n- Settings are restored automatically by Django or pytest helpers.\n- Tests still cover the behavior, not only mock calls.\n","# Django Targeted Mocking\n\nMock only at boundaries that are slow, nondeterministic, external, or hard to trigger. Broad mocks can make tests faster while proving less, so prefer framework helpers and interface-checked replacements.\n\n## Boundary Workflow\n\n1. Decide whether mocking is necessary.\n   - Prefer real code for local domain logic.\n   - Mock external HTTP, time, settings, output\u002Finput, and expensive service edges.\n\n2. Patch where the code under test looks up the dependency.\n   - Patch the imported symbol used by the module under test, not the original library path unless that is what the module reads.\n\n3. Prefer specific tools.\n   - Settings: `override_settings`, `modify_settings`, or pytest-django's `settings` fixture.\n   - Output: `io.StringIO`, pytest `capsys`, or command test helpers.\n   - HTTP: `requests-mock` for hand-authored responses; VCR.py for recorded responses.\n   - Time: pass time as a parameter when possible; otherwise use `time-machine` or a similar time-specific tool.\n\n4. Make mocks interface-aware.\n   - Use `autospec=True`, `spec`, `spec_set`, `create_autospec`, or a small fake object.\n   - Avoid bare `Mock`\u002F`MagicMock` when the interface matters.\n\n5. Block unexpected outbound HTTP.\n   - A normal test run should fail if a test reaches the network unintentionally.\n\nRead [mocking-patterns.md](references\u002Fmocking-patterns.md) for concrete patterns.\n\n## Decision Rules\n\n- Use Django settings helpers instead of direct assignment to `django.conf.settings`.\n- Prefer a hand-built fake or `types.SimpleNamespace` when only a few attributes are needed.\n- Use `requests-mock` for deterministic API responses you control.\n- Use VCR.py when real recorded responses are valuable and safe to store.\n- On CI, configure VCR record mode so missing cassettes fail instead of recording.\n- Mock time consistently across the runtime; do not patch several datetime functions by hand.\n- Do not mock the component whose behavior the test is meant to prove.\n\n## Common Mistakes\n\n- Patching settings directly and leaking state across tests.\n- Using catch-all `MagicMock` objects that accept typoed attributes and wrong call signatures.\n- Allowing tests to hit real external services.\n- Recording VCR cassettes in CI.\n- Mocking a view's internal helpers so thoroughly that the test no longer covers request behavior.\n- Patching the wrong import path and thinking the mock is active.\n\n## Verification\n\nBefore finishing:\n\n- Each mock has a clear boundary reason.\n- Interface-sensitive mocks use specs or fakes.\n- Unexpected outbound HTTP is blocked in the normal suite.\n- Settings are restored automatically by Django or pytest helpers.\n- Tests still cover the behavior, not only mock calls.\n",{"name":5,"license":15,"metadata":53,"description":7,"compatibility":58},{"tags":54,"version":55,"category":56,"displayName":57},"django,testing,mocking,http,pytest","0.1.0","Django","Django Targeted Mocking","Codex, Claude Code, and other Agent Skills-compatible clients.","main","2b63f856ce19c2a797929cacabd9e0fc936812fa","plugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-targeted-mocking",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":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-targeted-mocking",{"tool":75,"command":76},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-targeted-mocking",{"tool":78,"command":79},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill django-targeted-mocking","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-targeted-mocking\u002FSKILL.md",true,[83],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fmocking-patterns.md","REFERENCE","参考文档",1946,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002FLVTD-LLC\u002Fskills\u002Fskills\u002Fdjango-targeted-mocking\u002Freferences\u002Fmocking-patterns.md",[90,99,107,115,123,131],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":103,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":98},"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":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":111,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":98},"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":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":98},"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":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":98},"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":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":98},"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",[],[]]