一键导入
test-code
Test code, write tests, or validate implementation. Use when creating focused tests from the plan/spec rather than from implementation details.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test code, write tests, or validate implementation. Use when creating focused tests from the plan/spec rather than from implementation details.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when the user asks to analyze, create, or update an investment asset/company in Notion Assets / Investments. Produces professional-grade, evidence-backed asset research and then creates or updates the matching Notion asset page after confirmation.
Cartography, deep codebase map, repo map, onboarding map, or navigation index. Use for explicit codebase mapping/onboarding requests that need multiple cartography subagents and docs/indexes.
Comment code, explain functions, or add documentation comments. Use to make code understandable after implementation.
Commit, git commit message, or staged changes summary. Use by github agent only when the user explicitly requests a commit.
Medium article, long-form article, essay, or article from notes. Use when the user asks to create/write a Medium-style article using Content Vault evidence, positioning, and humanization rules.
LinkedIn post, social post, short content draft, or post from notes. Use when the user asks to write/create a LinkedIn/social post using the Content Vault voice, evidence, and anti-AI-writing rules.
| name | test-code |
| description | Test code, write tests, or validate implementation. Use when creating focused tests from the plan/spec rather than from implementation details. |
Derive tests from expected behavior.
PLAN-*.md, docs, public API/UI/CLI behavior, and existing tests.## Behavior under test
- <expected behavior from plan/spec>
## Entry point
- Public API/UI/CLI: `<path or command>`
## Test cases
| Case | Expected result | Failure mode caught |
|---|---|---|
| Success path | <expected> | <wrong implementation caught> |
| Edge case | <expected> | <wrong implementation caught> |
## Files changed
- `<test path>` — <coverage added>
## Verification command
- `<command>` — <what it proves>
Rules:
Good:
Bad:
When tests fail, classify the failure as: