jetxu-llm/docmason/retrieval-workflow

Claude Code and agent skill by jetxu-llm/docmason

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Retrieve ranked evidence bundles from the published DocMason knowledge base.

Install

npx vskill@latest install jetxu-llm/docmason/retrieval-workflow

SKILL.md

Retrieval Workflow

Use this skill when the task is to retrieve the strongest published evidence bundles for a question or topic.

This is an evidence-focused workflow. Use it directly for explicit evidence requests, or let ask route here automatically.

Direct public retrieve remains a legal operator evidence surface. It does not substitute for canonical ask when the user is really asking for ordinary answer completion.

Required Capabilities

  • local file access
  • shell or command execution
  • ability to inspect structured JSON output

If the agent cannot run local commands or inspect the published file-only knowledge base, stop and explain that reliable retrieval is not possible.

Procedure

  1. Confirm that the published knowledge base exists with docmason status --json when needed.
  2. Run docmason retrieve "<query>" --json --compact for host-visible inspection.
  • when full nested unit or artifact detail is genuinely required, rerun full --json to a local file and inspect it selectively instead of streaming the raw payload into the live chat context
  • keep user-native source references inside the freeform query rather than inventing internal source IDs when the user already knows a file name, path, page, slide, sheet, or heading
  • keep DocMason workspace commands sequential inside the same workspace session; do not overlap retrieve, trace, sync, status, or validate-kb while a lease-owning command is still active
  1. Inspect:
  • reference_resolution
  • ranked source bundles
  • compact bundle fields such as matched_unit_ids, matched_artifact_ids, matched_overlay_unit_ids, and collection counts
  • artifact-aware score details such as structure_context_bonus, semantic_overlay_bonus, and compare_coverage_bonus
  • when exact artifact fields such as section_path, caption_text, continuation_group_ids, procedure_hints, or semantic_labels matter, inspect a file-first full JSON capture or the published artifact sidecars rather than dumping the full raw payload into chat
  • focus_render_assets when present
  • recommended_hybrid_targets when the published artifact plan still reports a hard-artifact semantic gap
  • graph-expansion summary fields
  • render references when relevant
  • any published-evidence plan fields such as preferred channels, matched channels, and whether published artifacts already look sufficient
  • for image-only or scanned PDF questions, check whether page-image artifacts or unit semantic_gap_hints are present before assuming the KB has enough semantics already
  1. Narrow or widen the query by:
  • --document-type
  • --source-id
  • --top
  • --graph-hops
  • when reference_resolution.status is exact, expect the source filter and any exact unit targeting to have already narrowed the candidate set decisively
  • when reference_resolution.status is approximate but unit_match_status is exact, expect retrieval to narrow to the resolved source while still preserving the approximate notice
  • when reference_resolution.status is approximate or unresolved, preserve the notice boundary rather than pretending the narrowing was exact
  • for artifact-hint or compare-style questions, prefer reformulations that keep the named table, chart, diagram, caption, or compared objects explicit
  1. If the strongest results are weak or empty, say so explicitly instead of pretending the query succeeded.
  2. For compare-style retrieval, verify that more than one source survives the top support set before calling the bundle comparison-ready.
  3. Open the cited source, unit, artifact, and render assets before claiming confidence on difficult evidence judgments.
  4. When the task is moving toward a final answer or deliverable draft, return retrieval bundles to the main agent for provenance tracing, grounded-answer, or grounded-composition.
  5. If you need to export a scratch evidence note and the user did not specify a destination, place it under runtime/agent-work/.

Escalation Rules

  • If retrieval returns no results, surface that boundary directly and consider narrower or alternate queries only when they remain faithful to the user intent.
  • If render references or low-confidence extraction suggest visual confirmation is required, escalate to render inspection or provenance trace before final synthesis.
  • If the retrieval result already shows that the preferred published evidence channels are sufficient, do not jump back to original_doc/ as a first move.
  • If the retrieval result says published artifacts are insufficient because of hard-artifact semantic gaps, prefer the workflow-level hybrid enrichment path before source-level fallback.
  • If recommended_hybrid_targets is non-empty, use that packet as the narrowed governed multimodal refresh starting point rather than inventing your own source or artifact subset.
  • If a soft document alias is present but richer artifact-bearing evidence ranks elsewhere, do not assume the alias should hard-filter the query. Check the reference_resolution notice and the actual ranked artifacts together.
  • Retrieval alone is not the grounded-answer contract. Do not present retrieval output as a fully supported final answer.
  • Public retrieve now does implicit source-reference parsing, but public trace still remains ID-first in this phase.

Completion Signal

  • The workflow is complete when the main agent has either a ranked grounded evidence bundle or an explicit no-results boundary with concrete next steps.

Notes

  • Retrieval runs over knowledge_base/current/ by default.
  • Phase 4 retrieval is deterministic lexical plus metadata plus graph expansion. It does not use embeddings yet.
  • Retrieval logs are stored locally under runtime/logs/.
  • --json output always includes a structured reference_resolution block, and normal CLI output echoes the resolution status plus any best-effort notice.
  • If the strongest evidence depends on renders or low-confidence text extraction, inspect the render assets before finalizing the answer.
  • Ordinary natural questions should usually begin at ask, not by requiring the user to name this workflow ID.
  • When direct operator retrieval runs inside an active native thread without canonical ask ownership, treat the result as operator evidence only rather than as proof that ordinary ask already executed legally.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
129
Repository forks
34
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jetxu-llm/docmason/retrieval-workflow/badge)](https://verified-skill.com/skills/jetxu-llm/docmason/retrieval-workflow)

Something wrong with this skill or its page? Tell us.