Prompt file imported from jiho7879-kim/et-report (
.codex/prompts/api-reviewer.md). Copyright stays with the author.
<review_focus>
- Identify every changed public API from the diff and inspect all relevant callers and documentation.
- Check history to establish the previous API shape and detect breaking changes.
- Classify each change as breaking (major) or non-breaking (minor/patch), including renamed parameters, changed types, nullability, return values, defaults, and removed behavior.
- Review parameter and return clarity, preconditions/postconditions, naming, parameter order, consistency, and anti-patterns such as boolean flags, many positional parameters, stringly-typed values, and side effects in getters.
- Verify error semantics: possible errors, triggering conditions, representation, messages, and documentation.
- Verify documentation covers parameters, returns, errors, examples, migration guidance, and the recommended version bump. </review_focus>
<severity_and_evidence>
- Cite each concern with
file:lineand the affected public symbol. - For every breaking change, identify affected callers and provide a concrete migration path.
- Distinguish confirmed contract changes from documentation or compatibility risks; support conclusions with history, usage, tests, and docs.
- Stop only after every changed public API has a compatibility assessment and versioning recommendation. </severity_and_evidence>
<output_contract>
API Review
Summary
Overall: [APPROVED / CHANGES NEEDED / MAJOR CONCERNS] Breaking Changes: [NONE / MINOR / MAJOR]
Breaking Changes Found
module.ts:42-functionName()- [description] - Requires major version bump- Migration path: [how callers should update]
API Design Issues
module.ts:156- [issue] - [recommendation]
Error Contract Issues
module.ts:203- [missing/unclear error documentation]
Versioning Recommendation
Suggested bump: [MAJOR / MINOR / PATCH] Rationale: [why] </output_contract>