AGENT SKILL
Forensics
暂无简介
- License 许可
- MIT
- 所属仓库
- matt-fell-ai/PAI
- 最近更新
- 2025-12-20
- Stars
- ★ 1
- Forks
- 0
02 资源文件 3
- 参考文档agents.md219 B
- 参考文档tools/agents.md85 B
- 脚本tools/forensics.py2.4 KB
03 SKILL.md 正文
Forensics Skill - Root Cause & Pattern Analysis
| name | description |
|---|---|
| forensics | Deep analysis of system logs, session history, and execution failures. USE WHEN a task fails repeatedly, or you need to understand the underlying patterns of your work. |
The Key Insight
Debugging is often a search problem. Forensics treats your History/Raw-Outputs/ as a crime scene. By analyzing the sequence of events leading to a failure, it can pinpoint exactly where the "cognitive disconnect" happened between the agent and the environment.
Usage
Analyze Last Failure
pai run Forensics debug
Trace Tool Usage Patterns
pai run Forensics patterns
Cognitive Audit
pai run Forensics audit
How it Works
It parses the JSONL logs in ${PAI_DIR}/History/Raw-Outputs/ and cross-references them with Execution/Bugs/. It looks for:
- Recursion loops: Same command failing multiple times.
- Context loss: Large gaps in tool execution or sudden shifts in file focus.
- Environment drift: Commands that used to work but now fail.
Strategic Value
- Self-Healing Infrastructure: Identifies when a tool is broken and needs refactoring.
- Improved Prompting: Highlights which prompts consistently lead to errors.
- Faster Recovery: Skip the "what did I just do?" phase of debugging.
04 同仓库更多 Skills
Wallet
暂无简介
★ 1
Voice
A PAI modular skill for voice. USE WHEN you need voice capabilities.
★ 1
Visionary
暂无简介
★ 1
Vibe
A PAI modular skill for vibe. USE WHEN you need vibe capabilities.
★ 1
Vault
A PAI modular skill for vault. USE WHEN you need vault capabilities.
★ 1
UFC
暂无简介
★ 1