Skill Workflows
The Vdoc Skill is an Agent runtime workflow package. It does not store data, compute diffs, or call the backend directly. It teaches Agents when they must query facts through Vdoc MCP.
Before You Start
- The Agent has configured MCP Tools, and Vdoc
tools/listsucceeds. - The target runtime supports skills or custom workflow instructions.
- You know the skill folder location required by the runtime.
- Do not put raw MCP Tokens, JWTs, DB passwords, storage secrets, or
Authorizationheader values in Skill files, examples, logs, or issues.
If Vdoc is not running yet, follow the Deployment Guide. Complete your first published document query before installing the Skill, so you know the MCP connection and document permissions work.
Installation
Install the Skill at $HOME/.agents/skills/vdoc for personal use or .agents/skills/vdoc for the current repository, with SKILL.md at the vdoc skill root. The installed commit must equal the Vdoc-skill entry in the release package's workspace.lock.json:
# Personal installation; use .agents/skills/vdoc for repository scope instead.
VDOC_SKILL_DIR="$HOME/.agents/skills/vdoc"
VDOC_SKILL_COMMIT=4a9252cc906b08984c05c4f36d29718f06480aef
test ! -e "$VDOC_SKILL_DIR"
mkdir -p "$(dirname -- "$VDOC_SKILL_DIR")"
git init "$VDOC_SKILL_DIR"
git -C "$VDOC_SKILL_DIR" remote add origin https://github.com/ChnMig/Vdoc-skill.git
git -C "$VDOC_SKILL_DIR" fetch --depth 1 origin "$VDOC_SKILL_COMMIT"
git -C "$VDOC_SKILL_DIR" checkout --detach FETCH_HEAD
test "$(git -C "$VDOC_SKILL_DIR" rev-parse HEAD)" = "$VDOC_SKILL_COMMIT"
test -f "$VDOC_SKILL_DIR/SKILL.md"If the target already exists, verify its current HEAD. Upgrade only by fetching and checking out the commit from a newer reviewed lock; do not run an unpinned git pull in an installed Skill.
The directory should contain:
SKILL.md
templates/
endpoint-integration.md
frontend-change-summary.md
examples/
endpoint-query-example.md
compare-versions-example.mdThe Skill must be paired with @vdoc/mcp. The Skill is workflow guidance; MCP is the live tool surface and source of facts.
Validate the package:
cd Vdoc-skill
npm testWhen the Agent Must Query Vdoc First
- Writing frontend or backend endpoint integration.
- Checking whether an endpoint, field, enum, response property, auth scheme, or server exists.
- Comparing two API or Markdown Versions.
- Preparing migration notes from semantic diff.
- Quoting reviewed Markdown document text.
- Creating, updating, or submitting Drafts.
Workflow 1: Endpoint Integration
- User asks to integrate an endpoint.
- Agent loads the Vdoc Skill.
- Agent calls
list_projects,list_documents, orlist_api_versionsthrough MCP to locate the target version. - Agent calls
get_endpoint_detailto read method, path, parameters, request body, response body, and auth information. - Agent writes code or explanation from the returned facts.
- Agent states that facts came from Vdoc, not guessing.
Workflow 2: Migration Analysis
- User asks about migration impact between two API versions.
- Agent resolves
from_version_idandto_version_idthrough MCP. - Agent calls
compare_api_versionsorget_change_summary. - Agent explains breaking changes, compatible changes, and migration actions only from returned results.
- If Vdoc has no matching version, Agent should ask for a Version to be published in Admin instead of inventing conclusions.
Workflow 3: Markdown Document Draft
- User asks to change a managed Markdown document.
- Agent calls
get_latest_docto read published content. - Agent prepares a revision from the user request.
- Agent uses
create_doc_draftorupdate_doc_draftto create a Draft. - Agent uses
submit_doc_draftto submit it for human review. - Admin or SuperAdmin reviews and publishes in Admin.
Good Prompt Examples
Use Vdoc first. Find the published endpoint detail for POST /orders, then update the client payload validation.Compare the current prod OpenAPI version with the previous one and summarize breaking changes before editing docs.Read the reviewed runbook Markdown from Vdoc, then answer the deployment question using only those facts.Verification
- Ask the Agent to explain request fields for an endpoint.
- Observe that the Agent calls Vdoc MCP first.
- Check that the answer uses
get_endpoint_detailor related Vdoc tool results. - Ask the Agent to publish a version and confirm it only submits a Draft, then says Admin or SuperAdmin approval is required.
Failure Signs
- Agent invents endpoint fields without a Vdoc query.
- Agent uses display names instead of stable IDs or
relative_path. - Agent says a Draft is published before Admin has a new Version.
- Agent puts MCP Tokens in CLI args, logs, or docs.
- Live E2E points at the application database instead of the disposable
VDOC_TEST_POSTGRES_DB,vdoc_e2eby default.
When this happens, reload the Skill, verify MCP availability, and restate that the Agent must query Vdoc MCP first.