knowns-dev/knowns/kn-doc

Claude Code and agent skill by knowns-dev/knowns

Trust tier 2
  • community
LLM review pending
Source check pending

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

Use when working with Knowns documentation - viewing, searching, creating, or updating docs

Install

npx vskill@latest install knowns-dev/knowns/kn-doc

SKILL.md

Working with Documentation

Announce: "Using kn-doc to work with documentation."

Core principle: SEARCH BEFORE CREATING - avoid duplicates.

Inputs

  • Doc path, topic, folder, or task/spec reference
  • Whether this is a create, update, or search request

Preflight

  • Search before creating
  • Prefer section edits for targeted changes
  • Preserve doc structure and metadata unless the user asked for a restructure
  • Validate refs after doc changes

Quick Reference

json
// List docs
mcp_knowns_docs({ "action": "list" })
// View doc (smart mode)
mcp_knowns_docs({ "action": "get", "path": "<path>", "smart": true })
// Search docs
mcp_knowns_search({ "action": "search", "query": "<query>", "type": "doc" })
// Create doc (MUST include description)
mcp_knowns_docs({ "action": "create", "title": "<title>",
"description": "<brief description of what this doc covers>",
"tags": ["tag1", "tag2"],
"folder": "folder"
})
// Update content
mcp_knowns_docs({ "action": "update", "path": "<path>",
"content": "content"
})
// Update metadata (title, description, tags)
mcp_knowns_docs({ "action": "update", "path": "<path>",
"title": "New Title",
"description": "Updated description",
"tags": ["new", "tags"]
})
// Update section only
mcp_knowns_docs({ "action": "update", "path": "<path>",
"section": "2",
"content": "## 2. New Content\n\n..."
})

Creating Documents

  1. Search first (avoid duplicates)
  2. Choose location:
TypeFolder
Core(root)
Guideguides
Patternpatterns
APIapi
  1. Create with title + description + tags
  2. Add content
  3. Validate after creating

CRITICAL: Always include description - validate will fail without it!

Updating Documents

Section edit is most efficient:

json
mcp_knowns_docs({ "action": "update", "path": "<path>",
"section": "3",
"content": "## 3. New Content\n\n..."
})

Validate After Changes

CRITICAL: After creating/updating docs, validate:

json
// Validate specific doc (saves tokens)
mcp_knowns_validate({ "entity": "<doc-path>" })
// Or validate all docs
mcp_knowns_validate({ "scope": "docs" })

If errors found, fix before continuing.

Shared Output Contract

All built-in skills in scope must end with the same user-facing information order: kn-init, kn-spec, kn-flow, kn-go, kn-plan, kn-research, kn-handoff, kn-implement, kn-test, kn-review, kn-debug, kn-decision, kn-verify, kn-doc, kn-template, kn-extract, and kn-commit.

Required order for the final user-facing response:

  1. Goal/result - state what doc was created, updated, inspected, or ruled out.
  2. Key details - include the most important supporting context, refs, path, warnings, or validation.
  3. Next action - recommend a concrete follow-up command only when a natural handoff exists.

Keep this concise for CLI use. Documentation-specific content may extend the key-details section, but must not replace or reorder the shared structure.

Do not manage platform-synced skill copies; this source defines the built-in workflow contract.

For kn-doc, the key details should cover:

  • whether the doc was created, updated, or only inspected
  • the canonical doc path
  • any important refs added or fixed
  • validation result

When doc work naturally leads to another action, include the best next command. If the request ends with inspection or a fully validated update, do not force a handoff.

Mermaid Diagrams

WebUI supports mermaid rendering. Use for:

  • Architecture diagrams
  • Flowcharts
  • Sequence diagrams
  • Entity relationships
`markdown

graph TD A[Start] --> B{Decision} B -->|Yes| C[Action] B -->|No| D[End]

Diagrams render automatically in WebUI preview.

Checklist

  • [ ] Searched for existing docs
  • [ ] Created with description (required!)
  • [ ] Used section editing for updates
  • [ ] Used mermaid for complex flows (optional)
  • [ ] Referenced with @doc/<path>
  • [ ] Validated after changes

Red Flags

  • Creating near-duplicate docs instead of updating an existing one
  • Replacing a full doc when only one section needed a change
  • Leaving broken refs after an edit

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

Repository stars
214
Repository forks
44
Repository npm downloads, 7 days
45
7-day trend score
40

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 19 Mar 2026, 7 months ago.

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/knowns-dev/knowns/kn-doc/badge)](https://verified-skill.com/skills/knowns-dev/knowns/kn-doc)

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