Update docs

From NVIDIA/OpenShell · View interactive version

Update docs is an AI agent skill from the GitHub repository NVIDIA/OpenShell. 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

How to use this skill

Skill file

Update Docs from Commits

Scan recent git history for commits that affect user-facing behavior and draft documentation updates for each.

Prerequisites

When to Use

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:

  1. Commit type: feat, fix, refactor, perf commits often change behavior. docs commits are already doc changes. chore, ci, test commits rarely need doc updates.
  2. Files changed: Changes to crates/openshell-cli/, python/, proto/, deploy/, gateway config parsing, driver config structs, or policy-related code are high-signal.
  3. 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:

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:

When updating an existing page:

When creating a new page:

Step 6: Present the Results

After drafting all updates, present a summary to the user:

## Doc Updates from Commits

### Updated pages
- `docs/how-it-works/gateways/overview.mdx`: Added `--gpu` flag documentation (from commit abc1234).
- `docs/how-it-works/policies/schema.mdx`: Updated network policy schema for new `tls_inspect` field (from commit def5678).

### New pages needed
- None (or list any new pages created).

### Commits with no doc impact
- `chore(deps): bump tokio` (abc1234) — internal dependency, no user-facing change.
- `test(e2e): add gateway timeout test` (def5678) — test-only change.

Step 7: Build and Verify

After making changes, validate the Fern docs locally:

mise run docs

If a human needs to inspect rendering while iterating, they can also run:

mise run docs:serve

Check for:

Tips

Example Usage

User says: "Catch up the docs for everything merged since v0.2.0."

  1. Run git log v0.2.0..HEAD --oneline --no-merges --name-only.
  2. Filter to feat, fix, refactor, perf commits touching user-facing code.
  3. Map each to a doc page.
  4. Read the commit diffs and current doc pages.
  5. Draft updates following the style guide.
  6. Present the summary.
  7. Run mise run docs to verify.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.