Loading...
Loading...
In-depth code problem analysis and root-cause localization. Used to analyze technical issues such as abnormal code behavior, execution-flow problems, and configuration errors. Use when the user needs to: 1) analyze code execution flow to find the root cause, 2) understand complex code logic and call chains, 3) identify the cause of abnormal behavior, or 4) troubleshoot configuration or state issues. Trigger phrases: problem localization, problem analysis, code analysis, root-cause analysis.
npx skill4agent add openharmonyinsight/openharmony-skills code-problem-analyzergrepreadisDebugAppisStartWithDebugGetBoolParamGetApplicationInfoEntry Point → Function A → Function B → Key Decision Point → Resultquestionquestion:
questions:
- question: "I found two possible causes: [Cause 1] and [Cause 2]. To confirm further, please provide:"
header: "More information needed"
options:
- label: "Check the configuration file"
description: "Check the debug field value in the application configuration file"
- label: "View the full logs"
description: "Provide the full application startup logs"
- label: "Check the pending debug list"
description: "Run the aa appdebug get command to view the pending debug status"## Problem Analysis Results
### All Possible Flows
1. **Flow 1**: [Flow description]
- File:file.cpp:line number - [Key code snippet]
- File:file.cpp:line number - [Key code snippet]
- ...
2. **Flow 2**: [Flow description]
- File:file.cpp:line number - [Key code snippet]
- ...
### Most Likely Root Cause
**Root Cause**: [Clear root-cause description]
**Explanation**:
- [Explanation 1]
- [Explanation 2]
- [Key code location]: file.cpp:line number
**Suggested Solution**:
1. [Solution 1]
2. [Solution 2]
### Further Confirmation Required
[If needed, explain what the user needs to do]## Problem Analysis Results
### Most Likely Root Cause
**Root Cause**: [Clear root-cause description]
**Reason**: [Brief explanation]
**Key Code Location**: file.cpp:line number
**Solution**: [Specific action steps]