update-docs-from-commits
БесплатноБез исполняемых скриптовНе проверенScan recent git commits for changes that affect user-facing behavior, then draft or update the corresponding documentation pages. Use when docs have fallen…
от ai-openshell★ 22 101 звезда на GitHubОб этом скилле
Update Docs from Commits
Scan recent git history for commits that affect user-facing behavior and draft documentation updates for each.
Prerequisites
- You must be in the OpenShell git repository.
- The published docs tree must exist under
docs/. - Read
docs/CONTRIBUTING.mdxbefore writing any content. It contains the current style guide and formatting rules.
When to Use
- After a batch of features or fixes has landed and docs may be stale.
- Before a release, to catch any doc gaps.
- When a contributor asks "what docs need updating?"
Step 1: Identify Relevant Commits
Determine the commit range. The user may provide one explicitly (e.g., "since v0.2.0" or "last 30 commits"). If not, default to commits since the head of the main branch.
# Commits since a tag
git log v0.2.0..HEAD --oneline --no-merges
# Or last 50 commits
git log -50 --oneline --no-merges
Filter to commits that are likely to affect docs. Look for these signals:
- Commit type:
feat,fix,refactor,perfcommits often change behavior.docscommits are already doc changes.chore,ci,testcommits rarely need doc updates. - Files changed: Changes to
crates/openshell-cli/,python/,proto/,deploy/, gateway config parsing, driver config structs, or policy-related code are high-signal. - Ignore: Changes limited to
tests/,e2e/,.github/,tasks/, or internal-only modules.
# Show files changed per commit to assess impact
git log v0.2.0..HEAD --oneline --no-merges --name-only
Step 2: Map Commits to Doc Pages
For each relevant commit, determine which doc page(s) it affects. Use this mapping as a starting point:
| Code area | Likely doc page(s) |
|---|---|
crates/openshell-cli/ (gateway commands) |
docs/how-it-works/gateways/overview.mdx |
crates/openshell-cli/ (sandbox commands) |
docs/how-it-works/sandboxes/overview.mdx |
crates/openshell-cli/ (provider commands) |
docs/how-it-works/providers/overview.mdx |
crates/openshell-cli/ (new top-level command) |
May need a new page or docs/reference/ entry |
crates/openshell-server/src/config_file.rs or gateway TOML parsing |
docs/how-it-works/gateways/configuration.mdx |
crates/openshell-server/src/cli.rs gateway config merge/default behavior |
docs/how-it-works/gateways/configuration.mdx |
crates/openshell-driver-*/ config structs or driver defaults |
docs/how-it-works/gateways/configuration.mdx, docs/how-it-works/sandboxes/runtimes.mdx |
deploy/helm/openshell/templates/gateway-config.yaml |
docs/how-it-works/gateways/configuration.mdx, docs/how-it-works/sandboxes/runtimes.mdx, Helm docs if values change |
| Proxy or policy code | docs/how-it-works/policies/overview.mdx, docs/how-it-works/policies/schema.mdx |
| Inference code | docs/inference/configure.mdx |
python/ (SDK changes) |
docs/reference/ or docs/get-started/quickstart.mdx |
proto/ (API changes) |
docs/reference/ |
deploy/ (Dockerfile, Helm) |
docs/how-it-works/gateways/overview.mdx, docs/about/architecture.mdx |
| Sandbox image behavior | docs/how-it-works/sandboxes/overview.mdx |
If a commit does not map to any existing page but introduces a user-visible concept, flag it as needing a new page.
Step 3: Read the Commit Details
For each commit that needs a doc update, read the full diff to understand the change:
git show <commit-hash> --stat
git show <commit-hash>
Extract:
- What changed (new flag, renamed command, changed default, new feature).
- Why it changed (from the commit message body, linked issue, or PR description).
- Any breaking changes or migration steps.
Step 4: Read the Current Doc Page
Before editing, read the full target doc page to understand its current content and structure:
# Read the file
Identify where the new content should go. Follow the page's existing structure.
Step 5: Draft the Update
Write the smallest update that tells users exactly what changed and what they need to do. Prefer updating one authoritative page and linking to it over repeating explanations across pages. Omit exhaustive internal details unless they directly affect a user decision or workflow. Follow docs/CONTRIBUTING.mdx. Key reminders:
- Active voice, present tense, second person.
- No unnecessary bold. Reserve bold for UI labels and parameter names.
- No em dashes unless used sparingly. Prefer commas or separate sentences.
- Start sections with an introductory sentence that orients the reader.
- No superlatives. Say what the feature does, not how great it is.
- Code examples use
shelllanguage for copyable commands, with no$prompt prefix. - Use
textfences for transcripts, logs, or shell sessions that should not be copied verbatim. - Include the SPDX header as YAML comments in frontmatter if creating a new page.
- Match existing Fern frontmatter format if creating a new page, inclu
Установить update-docs-from-commits в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл update-docs-from-commits?
Scan recent git commits for changes that affect user-facing behavior, then draft or update the corresponding documentation pages. Use when docs have fallen behind code changes, after a batch of features lands, or when preparing a release. Trigger keywords - update docs, draft docs, docs from commits, sync docs, catch up docs, doc debt, docs behind, docs drift.
Как установить скилл update-docs-from-commits?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл update-docs-from-commits запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic