Docs Codebaseのロゴ

Docs Codebase

コミュニティ
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.

概要

公開者vasilyu1983
リポジトリAI-Agents-public
スキル名docs-codebase
スター
87
フォーク
19
同梱ファイル
32
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 32個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    vasilyu1983がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Docs Codebase」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebase
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDocs Codebaseを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDocs Codebaseを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Docs Codebaseは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Docs Codebase」では何ができますか?

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

TypingMindでDocs Codebaseを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Docs Codebaseはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDocs Codebaseをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/docs-codebaseを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Docs Codebaseを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Docs Codebaseで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDocs Codebaseを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Docs Codebase」は無料ですか?

はい。vasilyu1983がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇