write-internal-docs
БесплатноБез исполняемых скриптовНе проверенWrite a doc into the private internal-docs repo as Markdown plus a rendered HTML sibling, tidy the repo's structure and index, and open a PR to…
от browseros-ai★ 14 550 звёзд на GitHubОб этом скилле
Write Internal Docs
Write a doc for .internal-docs/ (private repo browseros-ai/internal-docs), as Markdown plus a self-contained HTML sibling, and open a PR. The subject is whatever the user names ("/write-internal-docs nightly signing") or, on a feature branch with no topic, the branch's diff. Companion to ask-internal: that skill reads internal-docs, this one writes it. Supersedes the older personal document-internal flow.
Announce at start: "I'm using the write-internal-docs skill to draft and land an internal doc."
Hard rules — never do these
- NEVER write inside the user's
.internal-docs/checkout. All writes happen in the work clone. - NEVER push to internal-docs
main. Feature branch + PR only. - NEVER touch the OSS repo's
.gitmodulesor submodule pointer. The sync workflow moves it after merge. - NEVER
git add -Aorgit add .in the work clone. Specific paths only. - NEVER run a clone-touching command without the guard
[ -d "$CLONE/.git" ]— a missing clone must fail loudly, not fall through to the OSS repo. - NEVER fabricate content for empty template sections. Empty stays empty.
- NEVER hand-edit an
.htmlsibling. The.mdis the source of truth; regenerate the HTML from it. - NEVER cite a file or line number you have not actually read.
Voice rules
Every sentence of doc output follows these. Step 4 enforces them.
- Lead with the point. First sentence answers "what is this?"
- Concrete nouns. Name files, functions, commands. Not "the system".
- Short sentences, average under 20 words. Active voice. No em dashes.
- Banned words: delve, crucial, robust, comprehensive, nuanced, multifaceted, furthermore, moreover, additionally, pivotal, landscape, tapestry, underscore, foster, showcase, intricate, vibrant, fundamental, significant, leverage, utilize.
- No filler intros ("This document describes..."). Start with the substance.
- Feature notes: body 60 lines max. Architecture and design docs have no cap.
The work clone
Shell state does not survive between Bash calls, so the clone lives at a deterministic path that every snippet re-derives — never mktemp, never a cleanup trap (it would fire when the first call exits and delete the clone mid-workflow):
CLONE="${TMPDIR:-/tmp}/internal-docs-<slug>"
Substitute the literal slug. Every later snippet starts with this line plus the guard [ -d "$CLONE/.git" ] || { echo "work clone missing: $CLONE"; exit 1; }. Cleanup is an explicit rm -rf "$CLONE" in Step 8, never automatic.
Workflow
Step 0: Pre-flight
if git submodule status .internal-docs 2>/dev/null | grep -q '^-'; then
echo "internal-docs submodule not initialized. Run: git submodule update --init .internal-docs"
exit 0
fi
[ -d .internal-docs ] && [ -n "$(ls -A .internal-docs 2>/dev/null)" ] || {
echo ".internal-docs/ missing or empty. Submodule not configured?"; exit 0; }
gh auth status >/dev/null 2>&1 || { echo "gh not authenticated. Run: gh auth login"; exit 0; }
git ls-remote [email protected]:browseros-ai/internal-docs.git HEAD >/dev/null 2>&1 || {
echo "Cannot reach internal-docs over SSH. Check your keys: ssh -T [email protected]"; exit 0; }
Done when: submodule present, gh authenticated, and SSH reaches internal-docs — or the skill stopped with the fix command.
Step 1: Scope the doc
Establish four facts. Take them from the user's invocation; derive what you can before asking.
- Subject — the specific thing the user named, or the current branch's diff (
git diff main...HEAD --statplus the PR body) when invoked from a feature branch with no topic. For a named subject, research it first: grep the codebase and.internal-docs/, read the files that own it. If a doc on it already exists, this run updates that doc instead of creating a twin. - Type and target dir —
setup/(runbook),features/(shipped feature),architecture/(cross-cutting subsystem),designs/(decision or RFC). Branch heuristics:feat/*→ features,rfc/*/design/*→ designs. Unclear → ask one question. - Filename — short kebab-case slug. Features prefix
YYYY-MM-, designs prefixYYYY-MM-DD-(matches the existing tree). - Owner — GitHub handle, default
gh api user --jq .login.
Done when: all four are stated and the target path (<dir>/<file>.md) is printed.
Step 2: Zoom out
Before drafting, go up one layer of abstraction. Map the territory the doc covers: the relevant modules, their callers, and how data flows between them, in the project's domain vocabulary. Read the real files; tie every named module to a path.
This map becomes the doc's first body section, before any detail. A reader who knows nothing about the area gets the shape first, then zooms in.
Done when: you can draw the map (ASCII or mermaid, plus 2-4 sentences) and every box in it names a real path you read.
Step 3: Draft the Markdown
Read the matching template from .internal-docs/_templates/ (`feature-note.
Установить write-internal-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGrepGlobВложенные файлы
FAQ
Что делает скилл write-internal-docs?
Write a doc into the private internal-docs repo as Markdown plus a rendered HTML sibling, tidy the repo's structure and index, and open a PR to browseros-ai/internal-docs.
Как установить скилл write-internal-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-internal-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic