一键导入
speckit-discovery-codebase-api-imp
Explain an implemented API or interface from repository facts for implementation understanding and defect localization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Explain an implemented API or interface from repository facts for implementation understanding and defect localization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Wrap core analysis with behavior-first vertical consistency checks.
Apply approved architecture refactors by updating plan and task artifacts directly.
Perform a framework-agnostic architecture review validating implementation against spec.md, plan.md, tasks.md, and the governance and architecture constitutions.
Perform an architecture-aware verification gate validating implementation against spec.md, plan.md, tasks.md, and the Architecture Constitution.
Run a single architecture workflow that prefers memory-first context and can incorporate security review when available.
Run implementation with memory context, then review the produced implementation against security and architecture constraints.
| name | speckit-discovery-codebase-api-imp |
| description | Explain an implemented API or interface from repository facts for implementation understanding and defect localization. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"discovery:commands/codebase-api-imp.md"} |
$ARGUMENTS
The user may provide:
Infer optional fields only from repository context and conversation, and label inferred values as assumptions. If the interface target is absent or too ambiguous to identify candidate entrances, inspect repository structure and search likely entrances before asking one concise clarifying question.
1. Establish the interface target: - Normalize the target name, route/address/topic/command/method, functional description, known concern, and source scope. - Treat the current repository as the default analysis scope. - If multiple candidate entrances match, list up to five candidates with evidence and choose the strongest source-backed match before writing the final overview. - If a downstream repository or external system is mentioned but source is unavailable, document it only as an external dependency, runtime-dependent boundary, or unknown.Gather repository facts:
Build the defect-localization hierarchy:
Create or update codebase-api-imp.md by rendering .specify/templates/codebase-api-imp.md. Prefer the active feature directory when it exists. Otherwise create it under discovery/<short-name>/codebase-api-imp.md. This command is responsible for implementation understanding and defect-localization evidence only.
Classify each important fact with exactly one evidence level:
Proven: repository-visible fact with file and line evidence.Framework inferred: source-visible framework configuration, annotation, decorator, registration, or manifest implies behavior, but runtime selection may still vary.Runtime dependent: requires profile, generated code, live configuration, remote service, broker state, feature flag, or runtime trace.Unknown: repository evidence is missing, ambiguous, or conflicting.