64 questionsQuestion · Short answer
Eval, Testing, and Debugging
Run baseline and candidate on the same governed test cases, data snapshot, evaluator versions, and comparable operating conditions. Record the model ID, prompt, context selection, feature settings, schemas, code, and tool versions for…
Eval, Testing, and Debugging
Preserve the failing case and locate the first point where trace evidence departs from the success criterion. Check the evaluator and expected result, then reproduce under the recorded code, model, prompt, context, API, and tool…
Tools and MCPs
Give each Claude client tool a stable, descriptive name, a description explaining when to use it and what it changes, and a narrow input_schema . Register it to a reviewed handler in the application. Combine closely related operations…
Prompt and Context Engineering
Define the task, permitted inputs, expected evidence, output format, and missing-data behavior before drafting the prompt. In Claude's Messages API, put stable guidance in the top-level system field and the current request and approved…
Model Selection and Optimization
Use the Claude API token counting endpoint to estimate input size before sending a request, then reconcile the estimate with the message's actual usage and the current price schedule for the exact model and provider. Count the…
Model Selection and Optimization
Claude prompt caching can reduce total cost when a sufficiently long, eligible prefix is reused enough times before expiration. Keep stable instructions, tool definitions, or shared reference materials ahead of request-specific content.…
Prompt and Context Engineering
Record the current prompt template and rendered failing case, identify the ambiguous instruction or example, and change one suspected component where possible. Compare the candidate and baseline on the same accepted inputs, model…
Security and Safety
Treat user input and external content as untrusted, and limit what the model can access or cause even if it follows an embedded instruction. Authenticate and authorize the task, minimize data and visible tools, label sources in the…
Security and Safety
Authenticate the caller, authorize the task and records, and remove unnecessary fields before building the Claude request. Verify the retention and processing terms for the exact account, model, feature, and provider, especially when…
Security and Safety
Monitor the chain from authenticated request and selected data through validation, approval, execution, and confirmed effects. Keep the versioned policy, identities, safe correlation IDs, and outcome evidence needed to reconstruct a…
Security and Safety
Keep static Claude API keys in a controlled server-side secret system and provide them only to the workload authorized to call the configured service. Use the authentication mechanism supported by your provider and deployment, and…
Tools and MCPs
Reserve an application operation record for the approved business action before dispatch, and check the tool's authoritative downstream state if a timeout leaves the outcome uncertain. Retry only when you can safely resume or deduplicate…