qa-test-env-data
当测试环境不稳定、环境不够用、或者需要准备测试数据时使用此技能。覆盖环境部署与配置管理、环境监控与问题排查(环境问题 vs 代码问题的快速区分)、多环境管理策略(开发/测试/预发)和日常测试数据准备。环境问题是最容易浪费测试时间的事——一个稳定的环境比一百个测试用例更有价值。输出环境健康度检查和数据准备 checklist。 ⚠️ 本技能含环境清理步骤,执行前请确认非生产环境。 触发场景:测试环境、环境搭建、环境配置、造数、测试数据、数据准备、环境部署、需要准备测试数据时。 Use when the user asks about: test environment setup and stability troubleshooting, multi-environment strategy, and day-to-day test data preparation. Skill: qa-test-env-data Owner: kokxi Summary: 当测试环境不稳定、环境不够用、或者需要准备测试数据时使用此技能。覆盖环境部署与配置管理、环境监控与问题排查(环境问题 vs 代码问题的快速区分)、多环境管理策略(开发/测试/预发)和日常测试数据准备。环境问题是最容易浪费测试时间的事——一个稳定的环境比一百个测试用例更有价值。输出环境健康度检查和数据准备 checklist。 ⚠️ 本技能含环境清理步骤,执行前请确认非生产环境。 触发场景:测试环境、环境搭建、环境配置、造数、测试数据、数据准备、环境部署、需要准备测试数据时。 Use when the user asks about: test environment setup and stability troubleshooting, multi-environment strategy, and day-to-day test da
Rank
62
Safety
84
Downloads
1.1k
Updated
Oct 11, 2026
Version
1.8.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · observed Oct 11, 2026
- Latest release
- 1.8.0release · observed Sep 29, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s170jw3s1atcj5jwhqb4r7v7eh8912kp:qa-test-env-data- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-env-data/snapshot"
Documentation
CLAWHUB
68,411 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: qa-test-env-data
description: >-
当测试环境不稳定、环境不够用、或者需要准备测试数据时使用此技能。覆盖环境部署与配置管理、环境监控与问题排查(环境问题 vs 代码问题的快速区分)、多环境管理策略(开发/测试/预发)和日常测试数据准备。环境问题是最容易浪费测试时间的事——一个稳定的环境比一百个测试用例更有价值。输出环境健康度检查和数据准备 checklist。 ⚠️ 本技能含环境清理步骤,执行前请确认非生产环境。 触发场景:测试环境、环境搭建、环境配置、造数、测试数据、数据准备、环境部署、需要准备测试数据时。 Use when the user asks about: test environment setup and stability troubleshooting, multi-environment strategy, and day-to-day test data preparation.
license: MIT
allowed-tools: Read Grep Glob Bash
metadata:
display-name: "Test Env Data"
version: "1.8.0"
when-to-use: "用户说\"测试环境\"、\"环境搭建\"、\"环境配置\"、\"造数\"、\"测试数据\"、\"数据准备\"、\"环境部署\"、需要搭建测试环境、需要准备测试数据时"
related-skills: "{\"upstream\":[\"qa-testability-advocacy\",\"qa-test-strategy-design\"],\"downstream\":[\"qa-execution-observation\",\"qa-test-data-engineering\"]}"
references: "[\"references/data-management.md\"]"
input-format: "{\"required\":[{\"name\":\"测试策略\",\"type\":\"object\",\"description\":\"来自qa-test-strategy-design的测试策略\"},{\"name\":\"环境需求\",\"type\":\"string\",\"description\":\"测试环境的配置需求\"}],\"optional\":[{\"name\":\"现有环境清单\",\"type\":\"array\",\"description\":\"现有测试环境列表\"}]}"
output-format: "{\"traceability\":[\"每套环境配置带唯一ID(ENV-XXXX)\"],\"structure\":[{\"env_requirements\":\"环境需求清单\"},{\"env_design\":\"环境设计方案\"},{\"configuration_guide\":\"配置指南\"},{\"maintenance_plan\":\"维护计划\"}]}"
error-recovery-guidance: "{\"on_failure\":\"环境部署遗漏配置项时回退到测试策略补充依赖\",\"retry_behavior\":\"补充依赖后重新部署环境\"}"
categories: "[\"Development\",\"Testing\",\"DevOps\"]"
depth-requirement: "{\"reference_value\":\"根据环境复杂度调整部署深度:简单×1/中等×2/复杂×3\",\"minimum\":\"至少完成环境搭建、配置管理、数据准备3步\"}"
---
> ⚠️ 本技能单独使用效果有限,建议配合完整技能集(12 步工作流)使用。安装:npx skills add Kokxi/qa-test-skills
# 测试环境与数据管理
## 核心原则
环境挂了、数据不对是测试最常见的阻塞——需要系统性管理。
> **⚠️ 安全警告:使用本技能前必须确认以下条件**
>
> **环境确认**: 执行任何环境变更(重启、修复、清理)前,必须先确认目标环境确切标识(名称/地址),并验证该环境为已授权的非生产环境。严禁对生产环境执行未经审批的操作。
>
> **数据备份**: 任何数据清理操作(删除、归档、重置)前,必须先备份或确认已有备份可用。建议先在低风险环境进行试运行(dry-run)。
>
> **审批要求**: 涉及数据修改、环境重启、配置变更的操作,必须获得相关团队负责人的明确审批,并记录操作日志。
>
> **爆炸半径**: 批量操作前先在小范围验证,确认不影响其他团队。涉及共享环境时需与相关团队协调时间窗口。
>
> **禁止场景**: 禁止在未确认环境身份的情况下执行变更操作、禁止在无备份的情况下执行数据清理、禁止在未通知相关团队的情况下重启共享环境。
## 测试环境管理
### 环境分层
```text
环境层级:
├─ 开发环境(DEV)
│ ├─ 用途:开发自测
│ ├─ 数据:开发造数
│ └─ 稳定性:不稳定
│
├─ 集成环境(SIT)
│ ├─ 用途:集成测试
│ ├─ 数据:测试数据
│ └─ 稳定性:较稳定
│
├─ 预发环境(UAT)
│ ├─ 用途:用户验收
│ ├─ 数据:准生产数据
│ └─ 稳定性:稳定
│
└─ 生产环境(PROD)
├─ 用途:线上运行
├─ 数据:真实数据
└─ 稳定性:高稳定
```
### 环境健康检查
```text
检查清单:
├─ 服务状态
│ ├─ 应用服务是否正常?
│ ├─ 数据库是否正常?
│ ├─ 缓存是否正常?
│ └─ 消息队列是否正常?
│
├─ 依赖服务
│ ├─ 第三方服务是否可用?
│ ├─ 内部服务是否可用?
│ └─ 网络是否通畅?
│
├─ 配置检查
│ ├─ 配置是否正确?
│ ├─ 环境变量是否设置?
│ └─ 功能开关是否正确?
│
└─ 数据检查
├─ 数据是否完整?
├─ 数据是否一致?
└─ 测试数据是否就绪?
```
### 环境问题处理
```text
常见问题:
├─ 服务不可用
│ ├─ 检查:服务日志、端口、进程
│ ├─ 处理:重启服务、检查配置
│ └─ 预防:健康检查、监控告警
│
├─ 网络不通
│ ├─ 检查:ping、telnet、防火墙
│ ├─ 处理:检查网络配置、开放端口
│ └─ 预防:网络监控、冗余设计
│
├─ 配置错误
│ ├─ 检查:配置文件、环境变量
│ ├─ 处理:修正配置、重启服务
│ └─ 预防:配置管理、版本控制
│
└─ 数据异常
├─ 检查:数据完整性、一致性
├─ _meta.json
{
"ownerId": "kn71y9b23csfx0ykgm55d5m9x5891zt8",
"slug": "qa-test-env-data",
"version": "1.8.0",
"publishedAt": 1790656163572
}references/data-management.md
# 测试数据管理详解
> 本文是 `qa-test-env-data` 的**测试数据管理详解**。准备、脱敏、清理测试数据时读本文;
其余部分留在 SKILL.md,不必读本文。
---
### 数据准备方法
```text
数据准备方法:
├─ 手动造数
│ ├─ 适用:少量数据、复杂数据
│ ├─ 工具:数据库客户端、管理后台
│ └─ 优点:灵活、精确
│
├─ 脚本造数
│ ├─ 适用:批量数据、重复数据
│ ├─ 工具:SQL脚本、Python脚本
│ └─ 优点:高效、可复用
│
├─ 数据工厂
│ ├─ 适用:标准化数据、大量数据
│ ├─ 工具:Faker、Mockaroo、自研
│ └─ 优点:标准化、可扩展
│
└─ 接口造数
├─ 适用:业务数据、流程数据
├─ 工具:Postman、自研脚本
└─ 优点:业务真实、流程完整
```
### 数据脱敏
> 📌 本节与 qa-test-data-engineering「数据脱敏」内容同步,修改时请同步更新。完整版含 Python 实现代码见 qa-test-data-engineering。
```text
脱敏规则:
├─ 个人信息
│ ├─ 手机号:138****1234
│ ├─ 身份证:110***********1234
│ ├─ 邮箱:test****@example.com
│ └─ 姓名:*三
│
├─ 敏感数据
│ ├─ 银行卡:6222****1234
│ ├─ 密码:******
│ ├─ Token:****
│ └─ 地址:北京市***
│
└─ 脱敏方法
├─ 替换法:用*替换部分字符
├─ 加密法:用加密算法处理
├─ 截断法:只保留部分字符
└─ 随机法:用随机值替换
```
### 数据清理
> 📌 本节与 qa-test-data-engineering「数据清理」内容同步,修改时请同步更新两处。
```text
清理策略:
├─ 按用例清理
│ ├─ 每个用例执行后清理
│ ├─ 优点:数据隔离好
│ └─ 缺点:效率低
│
├─ 按模块清理
│ ├─ 每个模块测试后清理
│ ├─ 优点:效率较高
│ └─ 缺点:隔离性一般
│
├─ 按批次清理
│ ├─ 每个批次测试后清理
│ ├─ 优点:效率高
│ └─ 缺点:隔离性差
│
└─ 定期清理
├─ 定期清理历史数据
├─ 优点:保持数据量可控
└─ 缺点:可能影响测试
```skill-card.md
## Description: Helps QA teams plan and troubleshoot non-production test environments, manage configurations, and prepare and maintain test data. This skill is ready for commercial/non-commercial use. ## Publisher: [kokxi](https://clawhub.ai/user/kokxi) ### License/Terms of Use: MIT-0 ## Use Case: QA engineers and developers use this skill to check test-environment health, plan environment setup and maintenance, and prepare, mask, and clean up test data. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Environment changes or test-data cleanup could disrupt shared services or remove needed data. Mitigation: Confirm the exact authorized non-production target, backup, approval, rollback path and team coordination before changes; dry-run or test on a small scope first. Risk: The optional companion-skill installation uses an unpinned npx command. Mitigation: Install only from a trusted source and pin or verify the package and version before running the command. ## Reference(s): - [Test data management reference](artifact/references/data-management.md) - [qa-test-env-data release on ClawHub](https://clawhub.ai/kokxi/skills/qa-test-env-data) ## Skill Output: **Output Type(s):** [Text, Markdown, Configuration guidance] **Output Format:** [Markdown checklists and environment-management guidance] **Output Parameters:** [1D] **Other Properties Related to Output:** [Includes environment requirements, design, configuration and maintenance plans; environment configurations use ENV-XXXX identifiers.] ## Skill Version(s): 1.8.0 (source: skill frontmatter and ClawHub release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/kokxi/skills/qa-test-env-data",
"sourceUrl": "https://clawhub.ai/kokxi/skills/qa-test-env-data",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T07:43:00.920Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-env-data/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-env-data/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T07:43:00.920Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/kokxi/qa-test-env-data",
"sourceUrl": "https://clawhub.ai/kokxi/qa-test-env-data",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T07:43:00.920Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.8.0",
"href": "https://clawhub.ai/kokxi/qa-test-env-data",
"sourceUrl": "https://clawhub.ai/kokxi/qa-test-env-data",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-29T04:29:23.572Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-env-data/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-kokxi-qa-test-env-data/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.8.0",
"description": "Version 1.8.0 - Refactored SKILL.md to condense metadata using a structured front matter format. - Split测试数据管理(detailed test data management content) out of SKILL.md, now referenced via references/data-management.md for leaner context loading. - Removed redundant skill-card.md file. - Updated metadata fields for consistency and clarity, including display name, versioning, references, and category data. - Added guidance on when to load the new reference file to avoid context bloat.",
"href": "https://clawhub.ai/kokxi/qa-test-env-data",
"sourceUrl": "https://clawhub.ai/kokxi/qa-test-env-data",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-29T04:29:23.572Z",
"isPublic": true
}
]
}Record generated Oct 11, 2026.
