Logo Docs Codebase

Docs Codebase

Cộng đồng
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.

Tổng quan

Nhà phát hànhvasilyu1983
Kho mãAI-Agents-public
Tên kỹ năngdocs-codebase
Sao
87
Bản fork
19
Tệp đi kèm
32
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 32 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được vasilyu1983 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Docs Codebase trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebase
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Docs Codebase trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Docs Codebase ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Docs Codebase với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Docs Codebase làm được gì?

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

Vì sao nên dùng Docs Codebase trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Docs Codebase là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Docs Codebase trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebase. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Docs Codebase?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Docs Codebase với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Docs Codebase với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Docs Codebase có miễn phí không?

Có. Kỹ năng này được vasilyu1983 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇