AgentSkillsCN

Aria Context Debug

Aria上下文调试

SKILL.md

Aria Context Debugger

Use when Aria gives wrong or empty answers.

Trace the full data chain:

  1. What does the frontend send to /api/aria/chat? (message, channel, context object with threadPhone?)
  2. Does the /chat endpoint (routes/aria.js) build a ThreadContextPack or BusinessContextPack?
  3. What data is in that context pack? Read the actual queries in lib/services/aria/AriaThreadContext.js.
  4. If Aria uses a tool call instead, which tool? Does it have .catch() on each query?
  5. What does the tool return? Is it { success: false }?
  6. What does Aria say to the user and why?

Key files:

  • routes/aria.js — /chat endpoint, context injection
  • lib/services/aria/AriaThreadContext.js — buildThreadContextPack, buildBusinessContextPack
  • lib/services/aria/AriaCore.js — processMessage, tool execution
  • lib/services/aria/AriaActionsV3.js — tool implementations (get_operations_overview, etc.)