Logo Octocode Documentation

Octocode Documentation

Cộng đồng
bgauryy
octocode-documentation

Dùng khi tài liệu bị thiếu, sai, lỗi thời hoặc viết kém, hoặc cần biên tập theo hướng dẫn phong cách của Google: README, tài liệu tham khảo API, runbook, CONTRIBUTING, changelog, hướng dẫn bắt đầu, AGENTS.md/CLAUDE.md, ADR, hướng dẫn di chuyển, Diátaxis hoặc tái cấu trúc toàn bộ mã nguồn, docstring, văn bản thay thế, kiểm tra văn xuôi. Không dùng cho mã, commit hoặc nội dung tiếp thị. Điều tra mã → octocode-research; thư mục SKILL.md → octocode-skills.

Add to TypingMind

Tổng quan

Nhà phát hànhbgauryy
Kho mãoctocode
Tên kỹ năngoctocode-documentation
Sao
950
Bản fork
78
Tệp đi kèm
34
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ộ.

  • 34 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 bgauryy 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 Octocode Documentation 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/bgauryy/octocode/tree/main/skills/octocode-documentation
  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/bgauryy/octocode.git /tmp/octocode
mkdir -p .claude/skills
cp -r /tmp/octocode/skills/octocode-documentation .claude/skills/octocode-documentation
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 Octocode Documentation 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 Octocode Documentation 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 Octocode Documentation 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.

Octocode Documentation

Evidence-backed docs for humans and agents, written to the Google developer documentation style guide. Classify first. Gate writes. Prefer durable cross-refs over code dumps.

Flow

UNDERSTAND → RESEARCH → CLASSIFY → OUTLINE GATE → WRITE → STYLE → VERIFY

UNDERSTAND names the deliverable, audience, and target paths. Compress when the request already names targets and type. Expand when claims need verification. A copyedit request starts at STYLE. Answer a single-term question ("is allows you to okay?") straight from assets/google-word-list.tsv — quote the guidance and stop.

Rules

  • Verify claims in the repository before asserting them. Invented commands, paths, APIs, and env vars are the one unrecoverable failure — omit or mark "Not verified in repository" instead.
  • Pick one mode and load its routes before writing.
  • Gate creates and overwrites unless the requester approved the targets this turn; a copyedit of a named file carries its own approval. Touch only the files they named — propose the rest.
  • Apply the style defaults in references/style-index.md to every line you write or edit, and name the rule when you change someone else's wording.
  • The style references are a snapshot of Google's guide, and every one links the pages it restates. IF someone disputes a rule, the pack doesn't carry it, or the wording carries risk (trademark, product name, legal claim, security claim) → THEN open the live page with a web tool, quote it with its URL, and fix the reference when it disagrees; say so when no fetch was possible.
  • A style pass changes wording, not claims; a fact change goes back to RESEARCH.
  • AGENTS.md is an index of links and non-obvious rules, not a content dump.
  • Prefer durable pointers (module path, contract name, doc link) over line numbers and pasted code.
  • One Diátaxis type per page; link siblings instead of mixing.
  • IF the project documents its own style guide, or the repository already applies a convention consistently → THEN follow it and report the conflict instead of adding a second scheme.

Stop when: outline gate awaits answer; write+style+verify finishes; a word-list lookup answered the question; a missing fact makes the doc dishonest to write (otherwise mark "Not verified in repository" and continue); conventions conflict; user cancels.

Workflows — the mode fixes the route order

ModeDeliverableRoute order
agent-docsAGENTS.md, nested agent instructions, CLAUDE.md symlinkmodes.md → evidence-research.md → agents-md.md → agent-readable.md → write-verify.md → style-lint.mjs
human-docsREADME, tutorial, how-to, reference, explanation, runbookmodes.md → evidence-research.md → diataxis.md → agent-readable.md → write-verify.md → style-lint.mjs
adrArchitecture decision recordmodes.md → evidence-research.md → adr.md → write-verify.md → style-lint.mjs
codebase-packMulti-file docs setmodes.md → plan the file set → gate once → per file: diataxis.md → write-verify.md → style-lint.mjs
style-passEdited text, or a style review reportstyle-index.md → the owning style-*.md → style-lint.mjs → style-review.md for a report someone else acts on

Routes — workflow references

PhaseWhenRead
CLASSIFYChoosing mode or audiencereferences/modes.md
RESEARCHGathering or verifying repository factsreferences/evidence-research.md
CLASSIFYChoosing the Diátaxis type for human-docs, or reviewing onereferences/diataxis.md
WRITEWriting or updating agent instruction filesreferences/agents-md.md
WRITERecording a decisionreferences/adr.md
WRITECross-refs, density, durability — read before the first linereferences/agent-readable.md
OUTLINE GATE, WRITE, VERIFYOutline gate, write steps, style pass, verify checklistreferences/write-verify.md
STYLEAny wording, formatting, or terminology question — maps every guide topic to its ownerreferences/style-index.md

Routes — style pack, grouped; references/style-index.md owns the per-topic map

AskRead
Which reference owns this topic — every guide topic, one row eachreferences/style-index.md
Prose: tone, person, voice, tense, grammar, one specific word, abbreviations, jargon, translation, inclusive termsreferences/style-voice.md, references/style-grammar.md, references/style-words.md, references/style-abbreviations.md, references/style-global.md, references/style-inclusive.md
Page shape: headings, lists, numbered steps, notices, tables, footnotes, figures, alt textreferences/style-structure.md, references/style-procedures.md, references/style-blocks.md, references/style-images.md
Mechanics: bold/italic/code choice, capitalization, filenames, markup, punctuation, numbers, dates, unitsreferences/style-format.md, references/style-punctuation.md, references/style-numbers.md
Technical text: code font, samples, command syntax, placeholders, example values, UI wording, link textreferences/style-code.md, references/style-cli.md, references/style-examples.md, references/style-ui.md, references/style-links.md
Claims and reference text: time words, superlatives, product names, trademarks, third-party text, docstringsreferences/style-claims.md, references/style-api.md
Producing a review someone else acts on, or checking a rule against the live guidereferences/style-review.md, references/style-sources.md

Scripts and assets — what to run, when, and how

RunWhenHow it behaves
scripts/style-lint.mjs <paths>At STYLE, before hand-reading proseMarkdown only. ERROR gates, WARN is mechanical, INFO needs judgment. One finding per rule per line; --max-per-rule caps per file (default 20); --only/--skip select rules; --json for machine output. Exit 1 on ERROR, or on WARN with --strict; 2 on bad usage
scripts/style-lint.mjs --self-testAfter editing any ruleLints built-in good/bad fixtures so a gate cannot go inert
scripts/refresh-word-list.mjs --dry-runWhen the word list looks staleRebuilds assets/google-word-list.tsv from developers.google.com; it fetches even with --dry-run, and refuses to write a short parse
assets/google-word-list.tsvAnswering a single-term question597 guide entries with verdict and guidance; quote it and stop
assets/google-style-pages.tsvFinding which reference owns a guide page, or its URLAll 69 pages as slug, title, owner, url; grep -P "^tables\t" answers ownership, and the URL is what you fetch to verify

Suppression: <!-- style-lint: ignore-file --> skips a file found by recursion, <!-- style-lint: ignore-line rule-id --> mutes named rules on one line. Both are inert inside a code span, so a page can document them. Docstrings, HTML, and UI strings stay hand-checked.

Related

  • Pure code or repository evidence with no docs deliverable → octocode-research; authoring a SKILL.md → octocode-skills.
  • Full multi-file pack → plan the file set, gate it once, then work file by file.
  • Unclear mode → ask once: agent-docs / human-docs / adr / codebase-pack / style-pass. No Octocode → host search tools.
  • Measuring whether this skill triggers and holds its routes → octocode-graph-eval; the runnable sensors here are scripts/style-lint.mjs --self-test (rules still fire) and scripts/refresh-word-list.mjs --dry-run (word-list drift).

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 Octocode Documentation làm được gì?

Dùng khi tài liệu bị thiếu, sai, lỗi thời hoặc viết kém, hoặc cần biên tập theo hướng dẫn phong cách của Google: README, tài liệu tham khảo API, runbook, CONTRIBUTING, changelog, hướng dẫn bắt đầu, AGENTS.md/CLAUDE.md, ADR, hướng dẫn di chuyển, Diátaxis hoặc tái cấu trúc toàn bộ mã nguồn, docstring, văn bản thay thế, kiểm tra văn xuôi. Không dùng cho mã, commit hoặc nội dung tiếp thị. Điều tra mã → octocode-research; thư mục SKILL.md → octocode-skills.

Vì sao nên dùng Octocode Documentation 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. Octocode Documentation 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 Octocode Documentation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/bgauryy/octocode/tree/main/skills/octocode-documentation. 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 Octocode Documentation?

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 Octocode Documentation 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 Octocode Documentation 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 Octocode Documentation có miễn phí không?

Có. Kỹ năng này được bgauryy 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 👇