agentleFS
taxueseektaxueseek/session-digger/skills/deep-analysis/SKILL.md

deep-analysis

Skill34 starsChanged 4 months agoISCView on GitHub

会话深度分析子技能:错误根因提取 + 用户意图分类。 从 JSONL 原文中提取具体错误消息并归类根因, 对用户第一条消息做意图路由。 触发:deep-analysis、错误根因、错误分类、意图分类、 error root cause、intent classify、analyze session errors、 这次为啥失败、根因是什么、用户到底想干嘛

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use community-led-growth, ph-community-outreach and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • xfstudioSkill

    micro-saas-launcher

    Expert in launching small, focused SaaS products fast - the indie hacker approach to building profitable software. Covers idea validation, MVP development, pricing, launch strategies, and growing to sustainable revenue. Ship in weeks, not months. Use when: micro saas, indie hacker, small saas, side project, saas mvp.

    Also in 5 projects that use this

  • mastepanoskiSkill

    ux-audit-rethink

    Comprehensive UX audit using IxDF's 7 factors, 5 usability characteristics, and 5 interaction dimensions. Holistic evaluation with redesign proposals based on user-centered design principles.

    Also in 5 projects that use this

  • ncklrsSkill

    seo-content-strategist

    Expert SEO content strategy for SaaS and B2B sites. Use when doing keyword research, planning content clusters, creating pillar pages, optimizing on-page SEO, fixing technical SEO issues, building links, refreshing content, implementing programmatic SEO, mapping search intent, optimizing for SERP features, or measuring content performance. Use for SEO audits, content gap analysis, and organic growth strategy.

    Also in 5 projects that use this

  • hieutrtrSkill

    code-review-security

    Security-focused code review checklist and automated scanning patterns. Use when reviewing pull requests for security issues, auditing authentication/authorization code, checking for OWASP Top 10 vulnerabilities, or validating input sanitization. Covers SQL injection prevention, XSS protection, CSRF tokens, authentication flow review, secrets detection, dependency vulnerability scanning, and secure coding patterns for Python (FastAPI) and React. Does NOT cover deployment security (use docker-best-practices) or incident handling (use incident-response).

    Also in 5 projects that use this

  • +6 more from nicepkg

The file

Files
SKILL.md

deep-analysis

分析层专精:不解析全库、不写记忆。优先消费 digger index.db 定位会话。

在 digger 架构中的位置

层本技能
L0 PARSE不替代 echolib / jsonl-core
L1 INDEX只读 jsonl_path 定位文件
L2–L3错误分类 + 意图标签(给 experience-synthesis / optimize 用)

功能

脚本输入输出
scripts/error-root-cause.pysession_id / jsonl 路径错误根因 JSON 数组
scripts/intent-classify.pysession_id / jsonl / 文本意图分类 JSON

意图类型

类型关键词示例
ANALYSIS评估、分析、看看、怎么样、诊断
COMPARISON对比、区别、优劣、优缺点、哪个
OPTIMIZATION优化、改进、提升、修复、提高
DEVELOPMENT开发、创建、增加、实现、构建
DEBUGGING为什么、报错、失败、问题、错误
REFLECTION回顾、总结、关键词、趋势、统计

调用方式

SD_ROOT="${SESSION_DIGGER_ROOT:-$HOME/.agents/skills/session-digger}"
# 建议先有索引:python3 "$SD_ROOT/scripts/index-builder.py" build

# 错误根因(--session 优先走 index.db)
python3 "$SD_ROOT/skills/deep-analysis/scripts/error-root-cause.py" --session <session_id>
python3 "$SD_ROOT/skills/deep-analysis/scripts/error-root-cause.py" --jsonl <path>

# 意图分类
python3 "$SD_ROOT/skills/deep-analysis/scripts/intent-classify.py" --session <session_id>
python3 "$SD_ROOT/skills/deep-analysis/scripts/intent-classify.py" --jsonl <path>
python3 "$SD_ROOT/skills/deep-analysis/scripts/intent-classify.py" --text "分析这个项目的性能问题"

路径解析见 skills/common_paths.py:SESSION_DIGGER_DATA_DIR → index.db → 目录扫描降级。

错误类型映射

error_type匹配规则
COMMAND_NOT_FOUNDcommand not found / not recognized
PERMISSION_DENIEDPermission denied / EACCES
TIMEOUTtimeout / deadline exceeded
EISDIREISDIR / is a directory
FILE_NOT_FOUNDFile does not exist / ENOENT
RATE_LIMITrate limit / 429
UNKNOWN其他

调度优先级(优于泛化 /analyze 空转)

当用户明确要「根因 / 意图 / 这次为什么失败」时:先跑本技能,再决定是否 /analyze 全文或 experience-synthesis。

下游协作

发现推荐
错误根因明确,需固化规则/apply(人审)或 /optimize
意图 DEBUGGING 且错误密experience-synthesis + /lessons
意图 REFLECTION 跨会话experience-synthesis + /trend
环境配置类错误扎堆env-doctor / native-diag
找不到 jsonl先 /index,再查 session id

DO NOT

  • 不替代 jsonl-core / echolib 的解析入库
  • 不修改用户 JSONL / 不写 MEMORY.md
  • 不输出表情符号
  • 不在无索引且 session 无法解析时假装有结果——返回空数组或明确错误

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.