Agent Skills
› DotHarness/dotcraft
› trace-review
trace-review
GitHub用于审查 DotCraft 会话轨迹证据,评估可靠性、延迟、工具行为、Token 效率及 Prompt 缓存问题。通过解析事件文件生成包含确切事件 ID 的发现报告。
Trigger Scenarios
需要审查不可变的会话轨迹数据
分析 AI 交互的性能与稳定性问题
检查 Token 使用效率或缓存命中率
Install
npx skills add DotHarness/dotcraft --skill trace-review -g -y
SKILL.md
Frontmatter
{
"name": "trace-review",
"tools": "ReadFile, FindFiles, GrepFiles, SubmitTraceReview",
"description": "Review one immutable DotCraft Session Trace for reliability, latency, tool behavior, token efficiency, and prompt-cache issues using an Evidence Bundle."
}
DotCraft Trace Review
Review the immutable Trace evidence in the current workspace. Stay within the recorded Session and submit only conclusions supported by exact Event ids.
Evidence layout
- Start with
manifest.jsonto confirm the Session, revision, and Event count. - Search
events/index.jsonlto locate Event types, timing, model calls, tools, and correlation ids. - Each index entry points to
events/NNNNNN/event.jsonfor the complete structured Event fields. - Large fields are stored beside
event.jsonas bounded content, tool-argument, tool-result, metadata, or final-system-prompt files. ThefieldFilesobject lists their order and total character count. - Read every chunk required for a conclusion. Do not infer omitted content from one chunk.
Review workflow
- Confirm the manifest and scan the complete index before forming conclusions.
- Review
Error,ProviderError, abnormal terminal events, retries, and incomplete Turns for Reliability. - Compare Turn duration, provider attempts, tool duration, and recorded inactive intervals for Latency. Do not invent duration for point Events.
- Correlate tool start and completion by
callId. Check failures, repeated arguments, unchanged retries, and unusual call density for Tool behavior. - Compare input, fresh, cached, cache-write, output, and reasoning tokens across calls for Token efficiency.
- Inspect cache diagnostics, prompt hashes, tool-schema hashes, and changed fields for Prompt cache behavior.
- Open the exact Event details and large fields needed to verify each candidate Finding.
- Finish by calling
SubmitTraceReviewwith a concise summary and the validated Findings.
Finding rules
- Use
Majorfor an explicit failure or a high-confidence problem with material impact. - Use
Minorfor a localized problem or operational risk with observable impact. - Use
Suggestionfor a supported optimization opportunity that did not cause a current failure. - Use
Confirmedwhen the cited Events directly establish the claim. UseInferredwhen the claim is the strongest explanation but not directly recorded. - Use only these dimensions:
Reliability,Latency,Tool behavior,Token efficiency, andPrompt cache. - Every Finding must cite at least one exact Event id. A range must use chronological start and end Event ids from this revision. Omit
endEventIdfor a single-Event reference. - Do not turn missing Trace data, incomplete pairing, or unsupported assumptions into Findings.
- Do not judge whether the original user task was completed correctly.
- Do not claim access to source files, operational logs, configuration files, or the target workspace.
Version History
- 739f652 Current 2026-08-17 05:27


