一键导入
codemode-synthetic-eval-datasets
Use when designing, generating, validating, or importing synthetic evaluation datasets for CodeMode.swift eval scenarios.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when designing, generating, validating, or importing synthetic evaluation datasets for CodeMode.swift eval scenarios.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codemode-synthetic-eval-datasets |
| description | Use when designing, generating, validating, or importing synthetic evaluation datasets for CodeMode.swift eval scenarios. |
| metadata | {"short-description":"Build CodeMode synthetic eval data"} |
Use this skill when the user asks to generate, expand, validate, rebalance, or import synthetic evaluation data for CodeMode.swift.
The output should usually become typed Swift scenarios in Sources/CodeModeEvaluation/EvalScenarios.swift, plus tests in Tests/CodeModeEvalTests, not an unreviewed blob of generated data.
Follow these dataset design rules:
Represent synthetic output in CodeMode terms:
id: stable dotted id, grouped by domain, for example fs.synthetic.long-path-read.title: short human-readable title.task: model-facing instruction that can be evaluated.searchCode: catalog lookup the agent should perform, if discovery is part of the behavior.executeCode or executeSteps: expected tool-side behavior for deterministic replay.allowedCapabilities: exact minimum capability set.seedFiles: deterministic fixtures under tmp:, documents:, or caches:.permissions: explicit permission status and request behavior.catalogPlatform: platform override when testing platform-specific availability.expectation: measurable checks on tool order, capabilities, output, errors, diagnostics, and code fragments.Do not import generated examples directly if expected outputs are ambiguous. Turn them into deterministic scenarios with explicit expected JSON or explicit failure expectations.
CodeModeEvalScenario declarations.CodeModeEvalScenarios.all or to a new grouped collection if the set is large.For each generated candidate, answer:
requiredExecuteCodeAlternativeFragments allow legitimate API aliases without allowing unrelated implementations?Discard or rewrite candidates that fail these checks.
When asking a model to draft candidates, keep the prompt constrained:
Generate CodeMode evaluation scenario candidates for <feature area>.
Category: <golden|edge|adversarial|known-failure|permission|platform>.
Each candidate must include: id, title, task, seedFiles, allowedCapabilities,
expectedOutput or expectedErrorCode, and rationale.
Do not include cases that require live network, clock time, user contacts,
real calendars, Photos library contents, or host filesystem state.
Vary phrasing, input length, and difficulty. Keep expected outputs deterministic.
Then convert accepted candidates to Swift manually or with a small script, preserving the local formatting style.
From the repo root:
swift test --filter CodeModeEvalTests
From Tools/CodeModeEval:
swift run codemode-eval run <scenario-id> --show-code
swift run codemode-eval plan --suite core
For LLM-backed validation after deterministic checks pass:
swift run codemode-eval llm <scenario-id> --repeat 3 --output /tmp/codemode-synthetic-smoke.json
swift run codemode-eval report /tmp/codemode-synthetic-smoke.json --all-runs --include-code
Only add a direct Evaluations framework target when the user explicitly wants Apple's framework adoption and the local toolchain supports it. In that case:
ModelSample with explicit expected values.subject(from:) implementation.Evaluator checks for deterministic behavior.