[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C66VQBPCNX89T4R2EEBA97":3,"skill-same:01M6C66VQBPCNX89T4R2EEBA97":59},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M6C66VQBPCNX89T4R2EEBA97","Forensics",null,"matt-fell-ai\u002FPAI","matt-fell-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F152656733?v=4","01M6C64DGH9YF6J94N90HWD695","01M6C64DMJWZB7H03212TCKYBD",1,"MIT","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FForensics\u002FSKILL.md",[],[17],"forensics","2026-11-10 10:12:30",false,"# Forensics Skill - Root Cause & Pattern Analysis\n\n| name | description |\n| --- | --- |\n| 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. |\n\n## The Key Insight\nDebugging is often a search problem. **Forensics** treats your `History\u002FRaw-Outputs\u002F` 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.\n\n## Usage\n\n### Analyze Last Failure\n```bash\npai run Forensics debug\n```\n\n### Trace Tool Usage Patterns\n```bash\npai run Forensics patterns\n```\n\n### Cognitive Audit\n```bash\npai run Forensics audit\n```\n\n## How it Works\nIt parses the JSONL logs in `${PAI_DIR}\u002FHistory\u002FRaw-Outputs\u002F` and cross-references them with `Execution\u002FBugs\u002F`. It looks for:\n1. **Recursion loops**: Same command failing multiple times.\n2. **Context loss**: Large gaps in tool execution or sudden shifts in file focus.\n3. **Environment drift**: Commands that used to work but now fail.\n\n## Strategic Value\n- **Self-Healing Infrastructure**: Identifies when a tool is broken and needs refactoring.\n- **Improved Prompting**: Highlights which prompts consistently lead to errors.\n- **Faster Recovery**: Skip the \"what did I just do?\" phase of debugging.\n",{},"main","f971b017ede3f7b3e18523559221099192da0149","skills\u002FForensics",0,"https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai","2025-12-20 12:05:14",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add matt-fell-ai\u002FPAI --skill Forensics",{"tool":35,"command":36},"bunx","bunx skills add matt-fell-ai\u002FPAI --skill Forensics",{"tool":38,"command":39},"pnpm","pnpm dlx skills add matt-fell-ai\u002FPAI --skill Forensics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FForensics\u002FSKILL.md",true,[43,49,53],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"agents.md","REFERENCE","参考文档",219,"https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FForensics\u002Fagents.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"tools\u002Fagents.md",85,"https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FForensics\u002Ftools\u002Fagents.md",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"tools\u002Fforensics.py","SCRIPT","脚本",2467,"https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FForensics\u002Ftools\u002Fforensics.py",[60,66,77,83,91,99],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M6C693J4FRAZ8Y28TC9G1XYQ","Wallet","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FWallet\u002FSKILL.md",[],[62],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M6C6923SD03537CSJFGM1W6N","Voice","A PAI modular skill for voice. USE WHEN you need voice capabilities.","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FVoice\u002FSKILL.md",[],[73,74,75,76],"voice","modular","capabilities","use",{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M6C690C4WSK7GJTBR61R7148","Visionary","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FVisionary\u002FSKILL.md",[],[79],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M6C68Z1F6386CTNGBW7EXGEY","Vibe","A PAI modular skill for vibe. USE WHEN you need vibe capabilities.","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FVibe\u002FSKILL.md",[],[90,74,75,76],"vibe",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M6C68XC0PJD79ENJP6P8S28Q","Vault","A PAI modular skill for vault. USE WHEN you need vault capabilities.","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FVault\u002FSKILL.md",[],[98,74,75,76],"vault",{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":18},"01M6C68VWS8Q745SBJW2Z4MHRN","UFC","https:\u002F\u002Fgithub.com\u002Fmatt-fell-ai\u002FPAI\u002Fblob\u002Fmain\u002Fskills\u002FUFC\u002FSKILL.md",[],[101]]