Logo Analyze Symptom

Analyze Symptom

Cộng đồng
babamba2
analyze-symptom

Read-only, step-by-step root cause analysis for SAP operational errors. Reads the dump summary and failing source via MCP (known-issue web lookup only when the failure is in standard SAP code), widens to transports and where-used only when the clues call for it, narrows hypotheses with minimal user questions, and provides SAP Note search keywords. Never changes code or data.

Tổng quan

Nhà phát hànhbabamba2
Kho mãsuperclaude-for-sap
Tên kỹ nănganalyze-symptom
Sao
69
Bản fork
26
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được babamba2 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Analyze Symptom trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/babamba2/superclaude-for-sap/tree/main/skills/analyze-symptom
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/babamba2/superclaude-for-sap.git /tmp/superclaude-for-sap
mkdir -p .claude/skills
cp -r /tmp/superclaude-for-sap/skills/analyze-symptom .claude/skills/analyze-symptom
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Analyze Symptom trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Analyze Symptom ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Analyze Symptom với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

SC4SAP Analyze Symptom

Performs structured root cause analysis for SAP operational incidents by connecting to the live SAP system through MCP. Auto-collects evidence from dumps, system state, recent transports, and code call graphs before asking the user any question.

<Response_Prefix> Every response triggered by this skill MUST begin with [Model: <main-model> · Dispatched: <sub-summary>] per ../../common/model-routing-rule.md § Response Prefix Convention. </Response_Prefix> <Target_Object>The target object is looked up on the active profile's system only. Not found → stop and ask per ../../common/multi-profile-artifact-resolution.md § Target object not on the active system — never substitute a similar name, never switch profiles on your own.</Target_Object>

<Phase_Banner> Multi-phase skill. Before each Agent(...) dispatch, emit ▶ phase=<id> (<label>) · agent=<name> · model=<Opus|Sonnet|Haiku> per ../../common/model-routing-rule.md § Phase Banner Convention. Resolve the dispatch mode first per ../../common/model-dispatch-mode.md: auto (default) uses the model below/in the rule; user-defined asks the user Opus / Sonnet / Haiku (recommended one first) before each dispatch group. </Phase_Banner>

<Use_When>

  • User reports a symptom using words like "error", "dump", "failing", "broken", "not working", "timeout", "slow"
  • User has at least one clue: error message, TCode, program name, job name, or affected user/data
  • User is unsure which log or transaction to inspect (ST22, SM21, SLG1, SU53, SM13, SM58, WE02, etc.)
  • Need to classify whether the issue is custom development vs SAP standard
  • Need to trace root cause of an incident that started after a recent transport or patch </Use_When>

<Do_Not_Use_When>

  • Root cause is already identified and only a code fix is needed — use /sc4sap:create-program or direct MCP Update* calls
  • Pure static code quality review — use /sc4sap:analyze-code
  • Need to create a new ABAP object — use /sc4sap:create-object
  • Conceptual or configuration-guide question — use a module consultant agent directly </Do_Not_Use_When>

<Session_Trust_Bootstrap> MANDATORY — runs as Step 0 before any MCP call or user interaction.

Invoke /sc4sap:trust-session with parent_skill=sc4sap:analyze-symptom to pre-grant all MCP tool + file-op permissions for this session (eliminates per-tool "Allow this tool?" prompts during auto-investigation — RuntimeAnalyzeDump, ListTransports, GetWhereUsed, etc.).

  • Headless host (system prompt declares Host: sc4sap-web) → skip entirely; the host governs permissions.
  • If .sc4sap/session-trust.log already has a line within the last 24h, skip silently. Otherwise run it.

Full spec: see ../trust-session/SKILL.md. </Session_Trust_Bootstrap>

<Core_Principles>

  • Read-only, always: analysis and reading only — no SAP write tools (Create/Update/Delete/Patch/Write/Activate, RunUnitTest, RuntimeRun*/RuntimeCreate*, CreateTransport), no Edit/Write, even when the user asks for the fix. Fixes appear only as proposals.
  • Cheapest evidence first: dump metadata and termination link, then the one failing include; the ~50 KB formatted dump only when those cannot explain the error. A short web lookup (standard identifiers only — never Z*/Y* names, SID, user IDs, or data) runs only when the failure point is standard SAP code. Never re-ask what MCP can answer.
  • Evidence over assumption: Do not speculate. No "probably" statements without supporting MCP or user-provided evidence.
  • Minimal questions: At most 3 questions per round. Skip any question whose answer is already known via MCP.
  • Hypothesis narrowing: Reduce candidate causes to 2–3 from the 8-category framework; each must carry a confidence level and a confirmation path.
  • Actionable output: Every hypothesis must include the next evidence step (another MCP call, a TCode, or an escalation target).
  • Customization cache first (local, before live MCP) when a Z/Y object or customized SAP include appears in the trace**: read <CUSTOMIZATION_DIR>/<MODULE>/{enhancements,extensions}.json (the path Step 1 resolves once — never search for it) and correlate — a Z* class in a dump may be a known BAdI impl, a customized MV45AFZZ/ZXRSRU01 may be a recorded form-based exit, a failing field may be a recorded append. Follow common/customization-lookup.md. If the cache is absent, suggest /sc4sap:setup customizations but do not block the current analysis. </Core_Principles>

<Analysis_Framework> All hypotheses must map to one of these 8 root cause categories:

CategoryTypical SymptomsKey Signals
Master / Input dataOnly specific data fails, others succeedData values, related master records
AuthorizationOnly specific users failSU53, STAUTHTRACE, recent role changes
CustomizingOnly specific org units affectedSPRO values, recent customizing transports
Interface / RFC / BatchExternal integration failsSM58, SMQ1/2, SM37, WE02, BD87
Custom developmentZ*/Y* objects in call stackRecent Z* transports, GetWhereUsed
Standard SAP bugOnly standard objects in stack; right after SP upgradeSAP Note search, kernel/SP level
Performance / Locks / DBTimeouts, increased wait timesST05, SAT, SM12, SQLM
Operational procedureStep order or prerequisite violatedMonth-end, dependency job status

Every hypothesis presented to the user must declare its category explicitly. </Analysis_Framework>

<Evidence_Collection_Matrix> Evidence collection strategy — prefer MCP auto-query, fall back to manual TCode guidance:

Symptom TypeMCP Auto-QueryManual TCode
Short dump / runtime error — firstRuntimeListFeeds (dumps, time window) when no dump ID is known → RuntimeGetDumpById metadata (~7 KB, termination link) → failing include; formatted dump (~50 KB) only when neededST22
Known issue — only when the failure point is standard SAP codeWebSearch / WebFetch (SAP Notes, KBAs, SAP Community) — standard identifiers onlySAP for Me
Performance / long runtimeRuntimeListProfilerTraceFiles, RuntimeAnalyzeProfilerTrace (existing traces only — never start a run)ST05, SAT, SQLM
Suspect program/class logicGetInclude/GetProgram/GetClass/GetFunctionModule, GetAbapAST, GetAbapSemanticAnalysis, GetWhereUsedSE80, SE24, SE38
Recent change trackingListTransports, GetTransport, GetObjectInfo (Author/Changed-by)SE09, SE10, SE16 → E070
Z*/Y* object or customized SAP include in traceLocal file read (path from Step 1, no search): <CUSTOMIZATION_DIR>/<MODULE>/enhancements.json (→ badiImplementations[], smodExits[], formBasedExits[]) and <CUSTOMIZATION_DIR>/<MODULE>/extensions.json (→ appendStructures[])n/a — local cache only
Enhancement / BAdIGetEnhancements, GetEnhancementImpl, GetEnhancementSpotSE18, SE19, SMOD, CMOD
System / session infoGetSession/n (status), /o SM04
Table schema (not rows)GetTable, GetStructure, GetView, GetDataElement, GetDomainSE11
Unit test resultsGetUnitTestResult, RunUnitTestSE80 → test class
Authorization error(MCP not supported)SU53, STAUTHTRACE
Application log(MCP not supported)SLG1
System log(MCP not supported)SM21
Update error(MCP not supported)SM13
RFC / tRFC / qRFC(MCP not supported)SM58, SMQ1, SMQ2
Background job(MCP not supported)SM37
IDoc(MCP not supported)WE02, WE05, BD87
OData / Fiori(MCP not supported)/IWFND/ERROR_LOG, /IWBEP/ERROR_LOG

Rule: For any MCP-supported item, never ask the user — query it directly. </Evidence_Collection_Matrix>

<Workflow_Steps> MANDATORY: Follow the step sequence defined in workflow-steps.md.

Per-step model allocation (the main thread follows the session model — model: inherit; heavy analysis is delegated):

StepOwnerModelRole
0 Trustskill-to-skillSonnetpermission bootstrap — skipped on a headless host
1 Initial TriagemainSonnetclue parsing (a screenshot counts) + GetSession + MODE (quick-dump | full, and quick-dump is the default — see workflow-steps.md § Step 1) + customization path
2 Investigate + Narrow + Reportsap-debugger — model: "sonnet" for quick-dump, model: "opus" for fullSonnet / OpusRead-only. quick-dump: dump summary → failing source; returns BLOCKED — needs full when the dump alone is not enough, and main re-dispatches the round as full on Opus. full: dump / scoped transports / code / enhancement / customization; web lookup only for standard-code failures. Writes the user-facing report per output-format.md (hypotheses, questions, Note keywords, next steps). One dispatch per round.
3 RelaymainSonnetoutput the report verbatim; wait for answers → repeat Step 2
4 Follow-up RoutingmainSonnetpointers only when the user asks for the fix (apply the proposal in SE38/ADT outside this skill, /sc4sap:analyze-code, module consultant) — never a write call

sap-debugger's tool set already covers the dumps feed (RuntimeListFeeds), RuntimeGetDumpById, profiler, transport queries, code reads, enhancement lookup, and customization cache reads — see the agent's Investigation_Protocol for the full inventory. A quick-dump round is read-mostly work (dump → source → explanation), which common/model-routing-rule.md keeps on Sonnet (§ Tier 2 — the debugger still explains the dump, so it is not a pure Haiku fetch); full rounds need cross-file reasoning (dump × transport × source × customization) and stay on Opus. Ambiguity resolves to quick-dump, never to full: the cheap path escalates itself when it cannot finish, and the expensive one has no way back. </Workflow_Steps>

<Question_Strategy> Rule: max 3 questions per response. Never re-ask what MCP already answered.

Priority when information is missing:

  1. Exact error text + message class/number — the strongest SAP Note search key
  2. TCode / App / Program / Job where the error occurs
  3. Reproduction conditions (always vs intermittent; user/data/org specificity)

Situation-specific follow-ups:

  • Authorization suspected: Does another user succeed with the same input? Any SU53 capture?
  • Batch suspected: Does manual execution also fail? Any recent variant change?
  • Interface suspected: Does SM59 Connection Test succeed? What is the IDoc status code (51/52/53/64)?
  • Custom development suspected: (First run ListTransports + GetWhereUsed, then) Does TR candidate X match the timing of the incident?
  • Standard bug suspected: Release/SP auto-detected via GetSession. Does the same symptom reproduce on QAS/DEV?
  • Performance suspected: How much slower than usual? Which resource saturates first — DB / CPU / memory? </Question_Strategy>

<Output_Format> Per-round report template and the final-round consolidated report structure live in output-format.md. Follow it literally for both intermediate rounds and the final analysis. </Output_Format>

<MCP_Tools_Used> Main thread: GetSession only (Step 1). Everything else runs inside the sap-debugger dispatch, so dump payloads, source and transport lists never sit in the orchestrator context. The authoritative tool list and call limits live in the dispatch prompt in workflow-steps.md § Step 2: dump (RuntimeListFeeds dumps feed, RuntimeGetDumpById metadata, formatted view only when needed), one failing include (GetInclude / GetProgram / GetClass / GetFunctionModule), scoped transports (ListTransports, GetTransport, GetObjectInfo), GetWhereUsed, enhancements, existing profiler traces, DDIC schema reads. Never GetProgFullCode, GetTableContents, GetSqlQuery or any write tool. </MCP_Tools_Used>

<Common_Pitfalls_To_Avoid>

  • ❌ Asking the user for information MCP can retrieve (system info, program source, recent transports)
  • ❌ Firing 4+ questions at once
  • ❌ Diagnosing a root cause without an error message in hand
  • ❌ Skipping the dump lookup when a dump is suspected and speculating instead (RuntimeListFeeds dumps feed — RuntimeListDumps can return an empty list)
  • ❌ Changing anything — code, data, transports, activation — from this skill, even on request
  • ❌ Running the full investigation (transports, where-used) on a plain dump with no change-history signal
  • ❌ Searching the filesystem for config/caches, or rewriting the debugger's report in the main thread
  • ❌ Deflecting with "contact Basis / dev team" without a concrete checklist and evidence
  • ❌ Claiming a standard SAP bug before attempting a SAP Note search
  • ❌ Pulling the ~50 KB formatted dump before the metadata and failing include were checked, trusting the summary key facts of RuntimeAnalyzeDump / RuntimeGetDumpById (they pick the wrong chapter), or reading a whole program with GetProgFullCode
  • ❌ Blaming recent changes without inspecting transport history via ListTransports
  • ❌ Listing 4+ hypotheses (narrow to 2–3) </Common_Pitfalls_To_Avoid>

Task: $ARGUMENTS

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Analyze Symptom làm được gì?

Read-only, step-by-step root cause analysis for SAP operational errors. Reads the dump summary and failing source via MCP (known-issue web lookup only when the failure is in standard SAP code), widens to transports and where-used only when the clues call for it, narrows hypotheses with minimal user questions, and provides SAP Note search keywords. Never changes code or data.

Vì sao nên dùng Analyze Symptom trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Analyze Symptom là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Analyze Symptom trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/babamba2/superclaude-for-sap/tree/main/skills/analyze-symptom. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Analyze Symptom?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Analyze Symptom với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Analyze Symptom với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Analyze Symptom có miễn phí không?

Có. Kỹ năng này được babamba2 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇