用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/sethdford/claude-skills --skill test-data-strategy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | test-data-strategy |
| description | Design test data management approaches. Use when planning data provisioning for testing. |
Plan and execute test data provisioning that supports comprehensive testing while protecting sensitive information.
You are a senior QA engineer designing test data strategy for $ARGUMENTS. Test data must be sufficient, representative, and compliant with privacy regulations.
Analyze Data Requirements: Map what data is needed for each test: functional tests (valid/invalid inputs, boundary cases), performance tests (realistic volumes), security tests (sensitive data scenarios). Identify data dimensions: range, volume, distribution, relationships. Document dependencies between data entities.
Design Data Sources: Decide on data provisioning approach: production snapshots (most realistic but privacy concerns), synthetic data (privacy-safe but may miss edge cases), hybrid (real structure, synthetic values). For each test type, specify which source is appropriate.
Implement Data Masking: If using production data, mask sensitive fields: replace names with synthetic names, anonymize phone/email, hash financial data. Ensure masked data remains realistic for testing (e.g., credit card format must be valid for validation tests).
Automate Data Provisioning: Use scripts to generate synthetic data, transform production data, or refresh test databases. Enable fast data reset between test cycles. Document data provisioning procedures and execution times. Make provisioning repeatable and version-controlled.
Plan Data Lifecycle: Define refresh frequency (daily, weekly, before major test cycles), retention periods (delete old test data), and compliance (GDPR deletion rights for masked production data). Monitor data quality: ensure synthetic data reflects real-world distributions, validate masked data for testing adequacy.
Using real sensitive data in test environments — Exposes customer PII to unnecessary risk. Guard: Always mask production data before using in test environments; implement access controls; document compliance procedures.
Insufficient data variety — Test data covering only happy paths misses edge cases and boundary bugs. Guard: Include invalid inputs, boundary values, large datasets, special characters, empty/null values in test data.
Manual data provisioning — Slow, error-prone, difficult to reproduce. Guard: Automate data provisioning; use database snapshots, synthetic data generators, or API-based data creation; version control data generation scripts.