error_context_get
Retrieve relevant wiki signals for an error, including matching runbooks, ADRs, recent flows, and similar past errors, to avoid debugging from scratch.
Instructions
DF-316 — Error-Driven Wiki Lookup. When you hit an unexpected error / exception / failing test, call this FIRST (via the devflow-error-investigator skill) to pull every wiki signal that's relevant: matching runbooks (FTS), ADRs whose affects_paths cover the error file, recent flows in the same area, related patterns, similar past errors from done-flows, plus a briefing-Markdown.
Iron Law of compounding wikis: never debug from scratch what the wiki has already seen. If no runbook matches AND the fix is non-trivial, write a runbook on the way out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| errorMessage | No | Concise error / exception string | |
| stackTrace | No | Optional stack trace | |
| filePath | No | Optional file where the error occurred (matches ADR affects_paths) | |
| recentCommits | No | Optional recent commit hashes for context |