[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74ZMMXSPK0CDCKGRGSJ0V1H":3,"skill-same:01M74ZMMXSPK0CDCKGRGSJ0V1H":71},{"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":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M74ZMMXSPK0CDCKGRGSJ0V1H","generating-test-data",null,"Generate realistic test data including edge cases and boundary conditions.\nUse when creating realistic fixtures or edge case test data.\nTrigger with phrases like \"generate test data\", \"create fixtures\", or \"setup test database\".","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fgenerating-test-data\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: generating-test-data\ndescription: |\n  Generate realistic test data including edge cases and boundary conditions.\n  Use when creating realistic fixtures or edge case test data.\n  Trigger with phrases like \"generate test data\", \"create fixtures\", or \"setup test database\".\n\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(test:data-*)\nversion: 1.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\n---\n# Test Data Generator\n\n## Overview\n\nGenerate realistic, type-safe test data including fixtures, factory functions, seed datasets, and edge case values. Supports Faker.js, Factory Bot patterns, Fishery (TypeScript factories), pytest fixtures, and database seed scripts.\n\n## Prerequisites\n\n- Data generation library installed (Faker.js\u002F@faker-js\u002Ffaker, Fishery, factory-boy for Python, or JavaFaker)\n- Database schema or TypeScript\u002FPython type definitions for the data models\n- Test framework with fixture support (Jest, pytest, JUnit)\n- Seed management for reproducible random data (`faker.seed()`)\n- Database client for seed data insertion (if generating database fixtures)\n\n## Instructions\n\n1. Read the project's data models, TypeScript interfaces, database schemas, or ORM definitions to understand the shape of all entities.\n2. For each entity, create a factory function that produces a valid default instance:\n   - Use Faker methods matched to field semantics (e.g., `faker.person.fullName()` for names, `faker.internet.email()` for emails).\n   - Provide sensible defaults for required fields.\n   - Allow overrides via a partial parameter for test-specific customization.\n   - Set a deterministic seed for reproducibility (`faker.seed(12345)`).\n3. Generate edge case data variants for each entity:\n   - **Empty values**: Empty strings, null, undefined, empty arrays.\n   - **Boundary values**: Maximum string length, integer overflow, zero, negative numbers.\n   - **Unicode and i18n**: Names with accents, CJK characters, RTL text, emoji.\n   - **Adversarial inputs**: SQL injection strings, XSS payloads, excessively long strings.\n   - **Temporal edge cases**: Leap years, timezone boundaries, epoch zero, far-future dates.\n4. Create relationship factories that build connected entity graphs:\n   - A user factory that also creates associated addresses and orders.\n   - Configurable depth to avoid infinite recursion.\n   - Lazy evaluation for optional relationships.\n5. Generate database seed files for integration tests:\n   - SQL insert scripts or ORM seed functions.\n   - Idempotent operations (use `ON CONFLICT` or `INSERT IF NOT EXISTS`).\n   - Separate seed sets for different test scenarios (empty state, populated state, edge cases).\n6. Write fixture files in JSON, YAML, or TypeScript for static test data:\n   - Group fixtures by test scenario.\n   - Include both valid and invalid data sets.\n7. Validate generated data against the schema to ensure factories remain in sync with model changes.\n\n## Output\n\n- Factory function files (one per entity) in `test\u002Ffactories\u002F` or `tests\u002Ffactories\u002F`\n- Edge case data collections covering boundaries and adversarial inputs\n- Database seed scripts for integration test environments\n- JSON\u002FYAML fixture files for static test data\n- Factory index file exporting all factories for easy test imports\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| Factory produces invalid data | Schema changed but factory not updated | Add a validation step that runs the factory output through the schema validator |\n| Duplicate unique values | Faker generates collisions in small datasets | Use sequential IDs or append a counter; increase Faker's unique retry limit |\n| Database seed fails on foreign key | Seed insertion order violates referential integrity | Sort seed operations topologically by dependency; disable FK checks during seeding |\n| Factory recursion overflow | Circular relationships (User -> Order -> User) | Limit relationship depth; use lazy references; break cycles with ID-only references |\n| Non-deterministic test failures | Random seed not set consistently | Call `faker.seed()` in `beforeAll` or at factory module level; document seed values |\n\n## Examples\n\n**TypeScript factory with Fishery:**\n```typescript\nimport { Factory } from 'fishery';\nimport { faker } from '@faker-js\u002Ffaker';\n\ninterface User {\n  id: string;\n  name: string;\n  email: string;\n  role: 'admin' | 'user';\n  createdAt: Date;\n}\n\nexport const userFactory = Factory.define\u003CUser>(({ sequence }) => ({\n  id: `user-${sequence}`,\n  name: faker.person.fullName(),\n  email: faker.internet.email(),\n  role: 'user',\n  createdAt: faker.date.past(),\n}));\n\n\u002F\u002F Usage:\nconst user = userFactory.build();\nconst admin = userFactory.build({ role: 'admin' });\nconst users = userFactory.buildList(10);\n```\n\n**pytest fixture factory:**\n```python\nimport pytest\nfrom faker import Faker\n\nfake = Faker()\nFaker.seed(42)\n\n@pytest.fixture\ndef make_user():\n    def _make_user(**overrides):\n        defaults = {\n            \"name\": fake.name(),\n            \"email\": fake.email(),\n            \"age\": fake.random_int(min=18, max=99),\n        }\n        return {**defaults, **overrides}\n    return _make_user\n\ndef test_user_validation(make_user):\n    user = make_user(age=17)\n    assert validate_age(user) is False\n```\n\n**Edge case data collection:**\n```typescript\nexport const edgeCases = {\n  strings: ['', ' ', '\\t\\n', 'a'.repeat(10000), '\u003Cscript>alert(1)\u003C\u002Fscript>',  # 10000: 10 seconds in ms\n            \"Robert'); DROP TABLE users;--\", '\\u0000null\\u0000byte'],\n  numbers: [0, -0, -1, Number.MAX_SAFE_INTEGER, NaN, Infinity, -Infinity],\n  dates: [new Date(0), new Date('2024-02-29'), new Date('9999-12-31')],  # 2024: 9999 = configured value\n};\n```\n\n## Resources\n\n- Faker.js: https:\u002F\u002Ffakerjs.dev\u002F\n- Fishery (TypeScript factories): https:\u002F\u002Fgithub.com\u002Fthoughtbot\u002Ffishery\n- factory_boy (Python): https:\u002F\u002Ffactoryboy.readthedocs.io\u002F\n- Chance.js: https:\u002F\u002Fchancejs.com\u002F\n- Test data management patterns: https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FObjectMother.html","# Test Data Generator\n\n## Overview\n\nGenerate realistic, type-safe test data including fixtures, factory functions, seed datasets, and edge case values. Supports Faker.js, Factory Bot patterns, Fishery (TypeScript factories), pytest fixtures, and database seed scripts.\n\n## Prerequisites\n\n- Data generation library installed (Faker.js\u002F@faker-js\u002Ffaker, Fishery, factory-boy for Python, or JavaFaker)\n- Database schema or TypeScript\u002FPython type definitions for the data models\n- Test framework with fixture support (Jest, pytest, JUnit)\n- Seed management for reproducible random data (`faker.seed()`)\n- Database client for seed data insertion (if generating database fixtures)\n\n## Instructions\n\n1. Read the project's data models, TypeScript interfaces, database schemas, or ORM definitions to understand the shape of all entities.\n2. For each entity, create a factory function that produces a valid default instance:\n   - Use Faker methods matched to field semantics (e.g., `faker.person.fullName()` for names, `faker.internet.email()` for emails).\n   - Provide sensible defaults for required fields.\n   - Allow overrides via a partial parameter for test-specific customization.\n   - Set a deterministic seed for reproducibility (`faker.seed(12345)`).\n3. Generate edge case data variants for each entity:\n   - **Empty values**: Empty strings, null, undefined, empty arrays.\n   - **Boundary values**: Maximum string length, integer overflow, zero, negative numbers.\n   - **Unicode and i18n**: Names with accents, CJK characters, RTL text, emoji.\n   - **Adversarial inputs**: SQL injection strings, XSS payloads, excessively long strings.\n   - **Temporal edge cases**: Leap years, timezone boundaries, epoch zero, far-future dates.\n4. Create relationship factories that build connected entity graphs:\n   - A user factory that also creates associated addresses and orders.\n   - Configurable depth to avoid infinite recursion.\n   - Lazy evaluation for optional relationships.\n5. Generate database seed files for integration tests:\n   - SQL insert scripts or ORM seed functions.\n   - Idempotent operations (use `ON CONFLICT` or `INSERT IF NOT EXISTS`).\n   - Separate seed sets for different test scenarios (empty state, populated state, edge cases).\n6. Write fixture files in JSON, YAML, or TypeScript for static test data:\n   - Group fixtures by test scenario.\n   - Include both valid and invalid data sets.\n7. Validate generated data against the schema to ensure factories remain in sync with model changes.\n\n## Output\n\n- Factory function files (one per entity) in `test\u002Ffactories\u002F` or `tests\u002Ffactories\u002F`\n- Edge case data collections covering boundaries and adversarial inputs\n- Database seed scripts for integration test environments\n- JSON\u002FYAML fixture files for static test data\n- Factory index file exporting all factories for easy test imports\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| Factory produces invalid data | Schema changed but factory not updated | Add a validation step that runs the factory output through the schema validator |\n| Duplicate unique values | Faker generates collisions in small datasets | Use sequential IDs or append a counter; increase Faker's unique retry limit |\n| Database seed fails on foreign key | Seed insertion order violates referential integrity | Sort seed operations topologically by dependency; disable FK checks during seeding |\n| Factory recursion overflow | Circular relationships (User -> Order -> User) | Limit relationship depth; use lazy references; break cycles with ID-only references |\n| Non-deterministic test failures | Random seed not set consistently | Call `faker.seed()` in `beforeAll` or at factory module level; document seed values |\n\n## Examples\n\n**TypeScript factory with Fishery:**\n```typescript\nimport { Factory } from 'fishery';\nimport { faker } from '@faker-js\u002Ffaker';\n\ninterface User {\n  id: string;\n  name: string;\n  email: string;\n  role: 'admin' | 'user';\n  createdAt: Date;\n}\n\nexport const userFactory = Factory.define\u003CUser>(({ sequence }) => ({\n  id: `user-${sequence}`,\n  name: faker.person.fullName(),\n  email: faker.internet.email(),\n  role: 'user',\n  createdAt: faker.date.past(),\n}));\n\n\u002F\u002F Usage:\nconst user = userFactory.build();\nconst admin = userFactory.build({ role: 'admin' });\nconst users = userFactory.buildList(10);\n```\n\n**pytest fixture factory:**\n```python\nimport pytest\nfrom faker import Faker\n\nfake = Faker()\nFaker.seed(42)\n\n@pytest.fixture\ndef make_user():\n    def _make_user(**overrides):\n        defaults = {\n            \"name\": fake.name(),\n            \"email\": fake.email(),\n            \"age\": fake.random_int(min=18, max=99),\n        }\n        return {**defaults, **overrides}\n    return _make_user\n\ndef test_user_validation(make_user):\n    user = make_user(age=17)\n    assert validate_age(user) is False\n```\n\n**Edge case data collection:**\n```typescript\nexport const edgeCases = {\n  strings: ['', ' ', '\\t\\n', 'a'.repeat(10000), '\u003Cscript>alert(1)\u003C\u002Fscript>',  # 10000: 10 seconds in ms\n            \"Robert'); DROP TABLE users;--\", '\\u0000null\\u0000byte'],\n  numbers: [0, -0, -1, Number.MAX_SAFE_INTEGER, NaN, Infinity, -Infinity],\n  dates: [new Date(0), new Date('2024-02-29'), new Date('9999-12-31')],  # 2024: 9999 = configured value\n};\n```\n\n## Resources\n\n- Faker.js: https:\u002F\u002Ffakerjs.dev\u002F\n- Fishery (TypeScript factories): https:\u002F\u002Fgithub.com\u002Fthoughtbot\u002Ffishery\n- factory_boy (Python): https:\u002F\u002Ffactoryboy.readthedocs.io\u002F\n- Chance.js: https:\u002F\u002Fchancejs.com\u002F\n- Test data management patterns: https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FObjectMother.html",{"name":5,"author":24,"license":15,"version":25,"description":26,"allowed-tools":27,"compatible-with":28},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Generate realistic test data including edge cases and boundary conditions.\nUse when creating realistic fixtures or edge case test data.\nTrigger with phrases like \"generate test data\", \"create fixtures\", or \"setup test database\".\n","Read, Write, Edit, Grep, Glob, Bash(test:data-*)","claude-code, codex, openclaw","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill generating-test-data",{"tool":41,"command":42},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill generating-test-data",{"tool":44,"command":45},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill generating-test-data","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fgenerating-test-data\u002FSKILL.md",true,[49,55,61,67],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002FREADME.md","ASSET","资产文件",371,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fgenerating-test-data\u002Fassets\u002FREADME.md",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002FREADME.md","REFERENCE","参考文档",63,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fgenerating-test-data\u002Freferences\u002FREADME.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fgenerate_data.py","SCRIPT","脚本",3737,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fgenerating-test-data\u002Fscripts\u002Fgenerate_data.py",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002FREADME.md",364,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fgenerating-test-data\u002Fscripts\u002FREADME.md",[72,79,86,93,100,108],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"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":104,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\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":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]