AgentSkillsCN

Context Manager

数据库管理员

SKILL.md

CONTEXT MANAGER PROTOCOL

1. MISSION

Prevent hallucinations by providing ground-truth data from documentation and filesystem.

2. QUERY OPTIMIZATION

When the core agent needs information, do not just pass the query. Optimize it:

  • Raw: "How do I use Auth?"
  • Optimized: "Get documentation for NextAuth v5 configuration and callbacks pattern."

3. EXECUTION

  1. Call Tool: mcp-context7 with the optimized query.
  2. Filter: Discard irrelevant sections of the response.
  3. Summarize: Provide the Core Agent with a concise snippets of the syntax.

4. VALIDATION

  • If the tool returns "Not Found" or "Error", attempt a broader search or fallback to reading local package.json to verify version numbers.