一键导入
idd-code-check-implementation
Check whether implementation behavior matches durable product intent in `.idd/intent/`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check whether implementation behavior matches durable product intent in `.idd/intent/`.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement behavior from current `.idd/intent/` product intent and verify the code against the relevant specification.
Update `.idd/intent/` product intent from confirmed implementation behavior.
Diagnose `.idd/intent/` product intent structure and recommend reorganizations without editing files.
Clarify real product intent before changing `.idd/intent/`, using focused customer-development questions and simplification options without editing product intent, planning implementation, or writing code.
Update current `.idd/intent/` product intent from a user-requested behavior change, preferring existing specs over new specs.
Import raw source material into structurally normalized IDD intent under `.idd/intent/`.
| name | idd-code-check-implementation |
| description | Check whether implementation behavior matches durable product intent in `.idd/intent/`. |
Use this skill to check whether the current implementation satisfies current
.idd/intent/ product intent.
This skill compares implementation evidence with current specifications and classifies differences. It does not silently change specifications or code.
The request must provide at least one concrete check focus:
Implementation focus
A code area, feature, command, UI flow, API, module, test suite, or behavior to check.
Examples:
src/AuthLoginFormGET /api/usersSpecification focus
A current specification, ADR, section, or product area to verify against.
Examples:
0003.spec-authentication.mdFailure focus
A failing test, build error, runtime problem, bug report, or observed behavior that should be checked against current intent.
Examples:
Do not run this skill if the user only asks to:
If no concrete check focus is provided, ask for one:
Please specify what implementation or specification area should be checked:
a code area, a spec, a behavior, a test failure, or an observed mismatch.
Use only current numbered documents directly under .idd/intent/ as normative
product intent.
There is no .idd/intent archive lifecycle.
Do not inspect deleted Git history unless the user explicitly asks for historical investigation.
Do not treat implementation as product intent by itself.
Do not update specifications unless the user explicitly confirms that the implementation represents current product intent.
Do not change code unless the user explicitly asks for implementation changes.
Do not classify every difference as a bug.
Do not classify every implementation behavior as a missing spec.
Preserve the distinction between:
If specification and implementation disagree, report the mismatch and propose the smallest safe next step.
If intent is unclear, ask for confirmation or recommend a spike.
If the implementation appears correct but verification is missing, recommend adding or updating tests.
If the specification is current and implementation violates it, classify the issue as an implementation mismatch.
If implementation behavior may be desired but is not specified, classify it as possible missing intent, not as current product truth.
Identify the concrete check focus from the request.
If no concrete focus is present, stop and ask for one.
Read .idd/intent/README.md, .idd/intent/INDEX.md, and relevant current numbered
documents directly under .idd/intent/.
Inspect the focused implementation evidence:
Compare observed implementation behavior with current product intent.
Classify each finding as one of:
matches-spec;implementation-mismatch;missing-verification;missing-spec;unclear-intent;possible-intent-change;non-goal-or-out-of-scope.For each mismatch, cite the relevant spec section or explain that no current spec covers the behavior.
Recommend the smallest next step:
idd-intent-change;idd-intent-new-document only when no
existing current spec owns the area;idd-code-update-intent
only after explicit confirmation;Do not apply fixes unless the user explicitly asks for them.
Run relevant verification only when it is safe and appropriate for the repository.
Use this structure:
# Implementation Check
## Scope
What implementation or specification area was checked.
## Relevant Current Intent
Current specs and sections used as normative intent.
## Findings
### 1. Finding title
Classification: `implementation-mismatch | missing-verification | missing-spec | unclear-intent | possible-intent-change | matches-spec | non-goal-or-out-of-scope`
Evidence:
- Spec evidence:
- Implementation evidence:
Explanation:
Recommended next step:
## Summary
- Matches:
- Mismatches:
- Missing verification:
- Missing or unclear intent:
- Recommended action:
matches-specUse when implementation behavior satisfies current spec.
Example:
The spec requires session expiration after 30 days. The implementation expires
sessions after 30 days.
implementation-mismatchUse when current spec is clear and implementation violates it.
Example:
The spec says mouse wheel scrolls the table. The implementation changes row
selection instead.
Recommended next step:
Fix implementation or tests. Do not update the spec unless the user confirms the
implementation is the intended behavior.
missing-verificationUse when implementation appears to satisfy spec, but there is no test or check that proves it.
Example:
The code appears to support OTP, but no test covers OTP failure retry behavior.
Recommended next step:
Add or update verification.
missing-specUse when implementation contains durable product behavior that is not described by current specs.
Example:
Password reset exists in implementation, but no current spec describes password
reset behavior.
Recommended next step:
Ask whether this behavior is intended product intent. If the user describes a
desired behavior, use idd-intent-change. If the user confirms existing implementation
as intent, use idd-code-update-intent.
unclear-intentUse when the spec is ambiguous or incomplete.
Example:
The spec says "mouse support" but does not define whether wheel changes
selection or scroll position.
Recommended next step:
Ask for product decision or create a spike.
possible-intent-changeUse when implementation differs from spec and may represent a deliberate product change, but the user has not confirmed it.
Example:
The spec says sessions expire after 30 days. Implementation uses 7 days. This
may be a security-driven product change, but it is not confirmed.
Recommended next step:
Ask for explicit confirmation before updating specs.
non-goal-or-out-of-scopeUse when the checked behavior is explicitly excluded or outside current spec scope.
Example:
The spec explicitly excludes offline mode. Missing offline behavior is not an
implementation bug.
Good request:
Use idd-code-check-implementation to verify whether console table mouse behavior
matches the current specs.
Good request:
Use idd-code-check-implementation to check the authentication implementation against
0003.spec-authentication.md.
Good request:
Use idd-code-check-implementation to classify why OTP login tests fail against the
current product intent.
Bad request:
Use idd-code-check-implementation to check the whole project.
Response:
Cannot run idd-code-check-implementation without a concrete check focus.
Specify one of:
- an implementation area;
- a current spec or behavior;
- a failing test, bug report, or observed mismatch.
Use idd-intent-change when the user describes desired future product behavior before
implementation or wants to change current behavior.
Use idd-code-implement when current specs are clear and implementation should be
changed to match them.
Use idd-intent-new-document when durable product intent needs a new spec, ADR, or
spike.
Use idd-code-update-intent only when the user explicitly confirms
that verified implementation behavior represents current product intent.
Use idd-intent-normalize-current when existing intent should be moved to a better
location without changing meaning.
Use idd-code-check-implementation before those actions when the problem is a
possible mismatch between implementation and current specs.
idd-code-implement.idd-intent-change before code
changes.idd-code-update-intent only after explicit user confirmation.idd-intent-change, not idd-intent-new-document, unless no existing spec owns the area.This skill does not: