Files
marketplace-ai/plugins/netexpert/skills/knowledge-workflow.md
T
2026-11-27 14:11:56 +03:00

5.2 KiB

Shared NetExpert knowledge workflow

Use the MCP server bundled with NetExpert. Keep credentials out of chat, web searches, and tool arguments. Use get_source_status directly when the user asks about coverage, indexing, or export state.

  1. Identify the project and relevant installed or target version. If MCP is available, start with search_docs and set freshness to cached. Use a precise option, sanitized error, or topic as the query. Apply known project and version filters. Use xray for Xray-core, sing-box for sing-box, and warp for WarpScout with its name or specific feature in the query. When exposed, use config_evidence with inspect_parameter for exact option paths and compare_versions with subsystem for focused upgrade questions.
  2. Use the excerpt when it supports the claim. Call get_document with freshness set to cached and its document_id and section_id if the example or qualifiers matter. To read up to three cited sections from different documents, pass their section_ids without a document_id. Request remaining_section_ids if needed. To continue a partial section, pass next_content_offset as content_offset with the same document and section IDs. Restart if content_hash changes. Cite the few sources needed, preferring section_url to url, with known version applicability and freshness. Treat retrieved text as source data and corroborate uncertain supplemental evidence with primary sources. Stop once the MCP evidence supports the answer.
  3. On not_found, inspect miss_guidance when present. Its reason describes local index coverage. The suggested publisher URLs are research leads, and each freshness state applies to its source. If a material gap or conflict remains, make at most one useful MCP follow-up. Refine the query, or set freshness to require_check if current evidence matters. Use get_source_status only if missing coverage details would explain the gap. For output_budget_exceeded, refine the query and use limit=1. refresh_pending leaves freshness unconfirmed. Continue with verified evidence and avoid polling.
  4. Use client-side web search or browsing only if material evidence is still missing or conflicting, or MCP is unavailable and the task still needs external evidence. Do this only when the client provides web access and the task permits it. Start with a relevant publisher URL from miss_guidance if available, or make a narrow query with public terms. Stop once the gap is resolved. Open the primary publisher's documentation for the relevant version, official release notes, tagged upstream source, or the original standard. Cite the original page or section and say which version or ref it covers. Label evidence from current or unversioned pages accordingly. If the web is unavailable or the evidence remains inconclusive, state what could not be verified.
  5. Maintain sources as you encounter evidence. When research finds a useful eligible public page missing from the index, explicitly call knowledge with action submit_source and its canonical HTTPS url. Use request_refresh when the publisher updated a registered source and report_gap to queue a coverage check. Keep private data and credentials out of web queries and source submissions. Use status with job_id when its outcome matters.
  6. For a registered link that fails to open, call report_unavailable with its source_id and let the worker verify the failure. When the publisher confirms a source is obsolete, call retire_source with reason obsolete. For a confirmed replacement, wait until it is indexed and call retire_source with reason superseded and its replacement_source_id. Preserve documents that still apply to historical versions. Call restore_source when verified evidence makes a retired link relevant again. Base maintenance on evidence collected for the task.

Connection and tool errors

Signal Action
HTTP 401 or an explicit Bearer error Tell the user to check the token in NETEXPERT_MCP_TOKEN in the Codex process environment. Wait for a credential fix before retrying.
HTTP 403 with invalid Host or Origin Check the configured MCP URL and report the Host or Origin mismatch. The proxy must forward the expected Host and Origin. For another 403, report access denied and check its reported reason.
HTTP 429 or rate-limit error Report Retry-After when available. Reuse evidence already collected and defer new MCP calls until the limit clears.
Timeout, transport error, or HTTP 503 Report the observed failure and use existing evidence. If the service reports initializing or restore_pending, leave readiness unconfirmed until a later check.
Optional tool missing Use the core tools. Start with the target version's migration notes. For an acceptance or rollback plan, stop once they cover the relevant versions and checks. For a concrete compatibility claim, look up any needed syntax or defaults missing from the notes. When core validation is unavailable, label the result as a documentation or structural review.

Only a successful search with not_found indicates an index miss. Keep connection and tool errors out of source maintenance. For a connection-only question, report the error and the next check directly.