testcase-generator
Analysis
The skill is purpose-aligned, but it deserves review because it uses application MySQL/Redis credentials and real data, then may generate database/cache-changing tests.
Findings (6)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Checks for instructions or behavior that redirect the agent, misuse tools, execute unexpected code, cascade across systems, exploit user trust, or continue outside the intended task.
sql = f"SELECT * FROM {table_name}"
if where:
sql += f" WHERE {where}"SQL is constructed directly from method arguments without allowlisting or parameterization; the same file also includes a raw execute_query(sql) helper.
| setup | 前置条件-MySQL/Redis数据准备 | INSERT/UPDATE/SET | | teardown | 后置条件-数据清理 | DELETE/DEL |
Generated test cases are expected to include database and Redis mutation steps, and the workflow later invokes a JUnit test-generation skill after user confirmation.
安装命令: pip install pymysql
The script relies on third-party Python packages, but the skill has no install spec or pinned dependency list.
Checks whether tool use, credentials, dependencies, identity, account access, or inter-agent boundaries are broader than the stated purpose.
'user': datasource.get('username', 'root'),
'password': datasource.get('password', ''),The script extracts database account credentials from application configuration, including a root default if no username is present. This is not declared in the registry metadata as a credential or required config path.
Checks for exposed credentials, poisoned memory or context, unclear communication boundaries, or sensitive data that could leave the user's control.
数据读取 - 根据待测接口需求读取MySQL表数据及表结构和Redis缓存数据 ... LLM基于以下信息生成测试用例 ... 数据库表结构 ... 真实测试数据
The instructions explicitly put real database/cache data and schema into the LLM's working context for test generation, with no redaction, retention, or sensitive-field exclusion guidance.
测试用例生成后,需要等待用户查看并确认测试用例后,才会调用junit-test-generator这个skill去执行测试用例。
The skill discloses a handoff to another skill after user confirmation; generated test cases may contain database-derived values.
