Docs Codebase logo

Docs Codebase

Community
vasilyu1983
docs-codebase

Writes and reorganizes docs-as-code for software repos. Use when updating READMEs, runbooks, onboarding docs, API references, or agent instruction files.

Overview

Publishervasilyu1983
RepositoryAI-Agents-public
Skill namedocs-codebase
Stars
87
Forks
19
Bundled files
32
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 32 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by vasilyu1983 on GitHub. Read the source before you install it.

Installation

Install the Docs Codebase AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/docs-codebase .claude/skills/docs-codebase
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Docs Codebase in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Docs Codebase on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Docs Codebase is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Technical Documentation

Use this skill to write, restructure, and verify software-repo documentation: READMEs, runbooks, API references, changelogs, onboarding docs, instruction files, and canonical docs libraries for humans and coding agents.

The goal is durable docs, not document sprawl. Keep one canonical doc per subject, wire in ownership and review cadence, and verify filesystem-backed claims before publishing summary docs.

Quick Reference

Documentation TypeTemplateNotes
project READMEassets/project-management/readme-template.mdonboarding and project navigation
ADR or architecture noteassets/architecture/adr-template.mddecision record
gap analysis or migration assessmentassets/architecture/gap-analysis-template.mdarchitecture and readiness work
API referenceassets/api-reference/api-docs-template.mdREST, GraphQL, gRPC, AsyncAPI
changelogassets/project-management/changelog-template.mdrelease history
contributing guideassets/project-management/contributing-template.mdteam and OSS contribution
docs IA or consolidation planassets/docs-as-code/docs-structure-template.mdlarge doc sets
ownership and review modelassets/docs-as-code/ownership-model.mdrunbooks and critical docs
doc sync checklistassets/project-management/template-doc-sync-checklist.mdstatus and path integrity
operational runbookassets/operational/runbook-template.mdSLO, alerts → response, rollback, escalation, postmortems; use {{PLACEHOLDER}} format
CI markdownlint configassets/ci/.markdownlint.yamldrop into repo root; MD013 off, MD024 siblings_only, sensible defaults
CI Vale prose configassets/ci/.vale.iniMicrosoft style base; passive voice as suggestion; per-rule overrides documented
CI docs quality workflowassets/ci/docs-quality.ymlGitHub Actions: markdownlint + markdown-link-check + vale on docs/ PRs

When to Use This Skill

Use this skill when the main task is:

  • writing or refactoring canonical technical docs
  • consolidating messy docs/ folders
  • adding or fixing README, onboarding, runbook, changelog, or API docs
  • keeping instruction files and canonical docs aligned
  • publishing AI-readable documentation with stable navigation

Route elsewhere when the main task is:

  • auditing docs freshness or coverage rather than rewriting docs
  • deciding product requirements, specs, or PRD structure

Defaults

  • one subject, one canonical doc
  • update an existing canonical doc before creating a new Markdown file
  • owners and review cadence on critical docs
  • doc updates in the same delivery cycle as the feature or change
  • summary docs may not claim complete inventory unless counts and paths were re-verified from the repo
  • temporary reports are lifecycle-managed, not permanent sources of truth
  • thin platform entry files are better than duplicated giant instruction files

Markdown Creation Gate

Before creating any new *.md file, prove all of these:

  • no existing canonical doc owns the subject
  • the target path has a clear doc type: README/navigation, runbook, reference, explanation, ADR/spec, report, or generated context
  • the file has an owner, review cadence, and lifecycle state if it can go stale
  • the file is linked from the right index, README, nav, or context hub
  • generated outputs are under a generated artifact root such as docs/context/ and have a rebuild path

If any item fails, update an existing doc, add a small section to a canonical page, or keep the answer in chat. Do not create per-session notes, one-off summaries, or root-level Markdown reports unless the user explicitly asks for that artifact.

Docs vs Agent Operations

  • AGENTS.md / CLAUDE.md: hot execution policy, exact commands, constraints, and pointers. Not a codebase catalog, report archive, or general docs folder.
  • README.md: human and agent navigation. Not a deep handbook.
  • docs/: durable product, technical, operational, API, ADR, and onboarding docs.
  • docs/operations/ or docs/runbooks/: operational procedures with owners and verification steps.
  • docs/reports/: temporary evidence or analysis with pending-integration, integrated, or superseded status.
  • docs/context/ or context/: generated or compiled LLM context artifacts. Prefer rebuild scripts and structured inputs; do not hand-edit generated pages as canonical truth.
  • .archive/: historical material excluded from normal search and context unless explicitly requested.

Workflow

  1. Identify the document type and audience.
  2. Inspect the repo’s current conventions and existing canonical docs.
  3. Run the Markdown Creation Gate before adding a new file.
  4. Start from the closest template in assets/ only when a new or replacement doc is justified.
  5. Consolidate duplicates into one canonical page per topic.
  6. Add ownership, review cadence, and publishing expectations where the doc matters operationally.
  7. Run documentation QA and integrity checks before handoff.

ASCII Flow

text
Docs request
  |
  v
Classify document type + audience
  |-- README / onboarding ------> project-management templates
  |-- runbook / operations -----> operational templates
  |-- API reference ------------> api-reference templates
  |-- ADR / architecture -------> architecture templates
  |-- docs IA / cleanup --------> docs-as-code templates
  |
  v
Inspect existing canonical docs
  |
  v
Markdown Creation Gate
  |-- existing owner found -----> update canonical doc
  |-- no owner, justified ------> create linked doc with owner + cadence
  |-- temporary evidence -------> docs/reports with lifecycle state
  |
  v
Verify paths, links, counts, commands, and status claims
  |
  v
Publish through README / index / context hub

Revamp Mode for Large or Messy Docs Folders

Use this mode when a repo has too many overlapping or LLM-generated docs:

  1. inventory every file and classify it by doc type
  2. pick the canonical doc for each subject
  3. move durable facts into the canonical doc
  4. mark temporary reports as pending-integration, integrated, or superseded
  5. remove integrated drafts instead of preserving duplicate mirrors
  6. re-check links, counts, moved paths, and canonical references before publishing a summary

AI-Readable Documentation Rules

  • keep README.md as the navigation anchor
  • keep AGENTS.md and CLAUDE.md thin when possible, with shared guidance factored into canonical docs
  • keep LLM operational files as routers to canonical docs, not mirrors of those docs
  • publish stable URLs, stable headings, and last_verified markers for volatile pages
  • prefer concise task-oriented docs over prose-heavy essays
  • treat stale docs as execution bugs for humans and agents alike
  • keep generated context hubs rebuildable from source artifacts rather than manually patched markdown

Judgment Calls: Docs Rot, Agent Consumers, and Ownership That Sticks

Rot detection beyond "old timestamp":

  • A doc edited yesterday can still be wrong. Correlate the doc's git history against the git history of the code path it describes; a code file that moved on without a matching doc commit is a stronger rot signal than age alone.
  • Treat "the doc still reads fine" as a false negative test. Verify referenced commands, flags, paths, and dependency versions actually run or exist — prose can read smoothly while describing a system that no longer exists.
  • A doc that names people ("ask Sarah"), specific tickets, or an org chart is a rot magnet. Move time-bound references into buddy notes or dated reports, not canonical docs.
  • Treat a deprecated-but-undeleted doc as more dangerous than a missing one: readers and agents trust what they find, and a wrong doc actively misleads where a gap only leaves a question.

Agents and humans read the same doc differently; serve both:

  • Agents execute instructions literally and immediately — a stale command in AGENTS.md or CLAUDE.md gets run, not questioned, the way a human skimming a wiki might self-correct. Hold instruction files to a higher freshness bar than narrative docs.
  • Agents need stable anchors (headings, IDs, paths) they can cite and re-fetch; humans tolerate prose that moves around. Do not casually reshuffle a canonical doc's headings once tooling or agent memory links into it.
  • An agent cannot tell an example from a prescription unless the doc says so. Label illustrative code, counts, and inventories explicitly, or an unlabeled example becomes ground truth for the next agent that reads it.
  • Humans need the "why" (rationale, trade-offs, links to ADRs); agents mostly need the "what" and the exact command. Keep both, but do not let one crowd out the other in the same file — narrative belongs in docs/, execution policy belongs in the thin instruction file.

Ownership models fail in predictable ways:

  • A named team with no allocated review time is ownership theater; the doc drifts regardless of who is listed as DRI.
  • Ownership tied only to a calendar cadence misses the trigger that actually causes rot: the underlying system changed. Pair calendar review with an event trigger (schema change, deploy, incident) for anything used under pressure, such as runbooks or on-call docs.
  • When a team is renamed, merged, or a person leaves, transfer ownership explicitly and date the transfer. An orphaned doc with a listed-but-gone owner is worse than an admittedly unowned doc — it signals false confidence.

Integrity and Anti-Fluff Gates

Before merging:

  • verify file paths, moved-path references, and template paths exist
  • verify counts and complete list claims against the filesystem
  • mark examples as examples instead of presenting them as exhaustive truth
  • remove duplicate narrative, vague future-idea prose, and unsupported claims
  • keep status in one canonical source and link to it from secondary docs
  • reject new Markdown files that lack a placement, owner, lifecycle, and index link

Navigation

Core references

Craft and style

Advanced and AI-aware

Boundary: docs-codebase vs docs-ai-prd

  • docs-codebase owns technical documentation quality, structure, and canonicalization
  • docs-ai-prd owns requirements, specs, acceptance criteria, and what context an implementation agent needs

If you are writing or cleaning docs, stay here. If you are deciding feature requirements or context strategy, use docs-ai-prd.

Related Skills

Verification Gate

Before delivering output, verify:

  • every local file path and template path exists
  • any counts or inventory claims were re-checked against the filesystem
  • commands and code blocks either match repo reality or are marked as examples
  • the output matches the intended doc type and calls out any follow-up review or publishing step

Fact-Checking

  • Verify volatile external facts, platform behavior, and version-sensitive guidance before final advice.
  • Prefer primary docs over summaries.
  • If live verification is unavailable, mark external claims as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Docs Codebase AI skill do?

Writes and reorganizes docs-as-code for software repos. Use when updating READMEs, runbooks, onboarding docs, API references, or agent instruction files.

Why use Docs Codebase on TypingMind?

Because you install it once and use it with any model. Docs Codebase is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Docs Codebase in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebase. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Docs Codebase?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Docs Codebase?

As many as you like. As long as a model supports skills, you can use Docs Codebase with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Docs Codebase AI skill free?

Yes. It is published on GitHub by vasilyu1983 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇