Content
71%Weight 40%Scale 1-5Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
The content is well-structured, lean, and actionable with concrete code and a clear three-step workflow. Its main weakness is progressive disclosure: the two referenced bundle files are not actually present, so the core implementation code is unavailable despite being advertised.
Suggestions
Include the advertised 'code/cogniteFunctionService.ts' and 'code/useCogniteFunction.ts' files in the bundle, or inline their essential contents and stop referencing missing paths.
Make the polling-loop validation checkpoint explicit (e.g., a numbered 'verify status is Completed; if Failed/Timeout, surface the function error and stop' step) rather than leaving it implicit.
Trim the mutation-semantics justification paragraph to the one rule that matters (non-idempotent calls → useMutation, not useQuery).
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The body is efficient and assumes Claude's competence — it does not explain what CDF, Zod, or React Query are in basic terms — but the mutation-semantics paragraph and a few explanatory asides could be trimmed. Not 5 because of those minor over-explanation instances; not 3 because most tokens earn their place. | 4 / 5 |
Actionability | Provides a concrete function signature, documented options, and copy-paste-ready code examples for the schema, hook, and external-id resolution. Not 5 because the primary service implementation lives in referenced 'code/*.ts' files that are not present in the bundle, so the core executable artifact is missing; not 3 because what is inline is concrete and runnable. | 4 / 5 |
Workflow Clarity | The three-step protocol (nonce → invoke → poll/fetch) and the 'How to use' steps are clearly sequenced, with an error-handling section covering Failed/Timeout/polling exhaustion. Not 5 because validation checkpoints in the polling loop are implicit rather than framed as an explicit validate-fix-retry loop; not 3 because sequencing and terminal-state handling are clearly present. | 4 / 5 |
Progressive Disclosure | A Files table signals one-level-deep references to 'code/cogniteFunctionService.ts' and 'code/useCogniteFunction.ts', but those files do not exist in the bundle (no references/, scripts/, assets/, or code/ directories), so the references are broken. Not 4 because the signaled references point at missing files; not 2 because structure and signaling are present even though the targets are absent. | 3 / 5 |
Total | 15 / 20 Passed |