agentleFS
NVIDIAKnown publisherNVIDIA/OpenShell/.agents/skills/update-docs/SKILL.md

update-docs-from-commits

Skill15k starsChanged 59 days agoApache-2.0View on GitHub

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.

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 5 mentionsApr 2026: 2 mentionsMay 2026: 3 mentionsJun 2026: 5 mentionsJul 2026: 6 mentionsAug 2026: 9 mentionsSep 2026: 9 mentionsOct 2026: 5 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/OpenShell repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/OpenShell

The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 44

Talked about on GitHub, Bluesky and Hacker News (44 times).

On GitHub · 26

21 more on GitHub

On Bluesky · 14

9 more on Bluesky

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. About 0 are common, 17 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read docs/CONTRIBUTING.mdx before writing any content.

    line 16
  2. Distinctive:

    After a batch of features or fixes has landed and docs may be stale.

    line 20
  3. Distinctive:

    Before a release, to catch any doc gaps.

    line 21
  4. Distinctive:

    When a contributor asks "what docs need updating?"

    line 22
  5. Distinctive:

    If a commit does not map to any existing page but introduces a user-visible concept, flag it as needing a new page.

    line 68
  6. Distinctive:

    Before editing, read the full target doc page to understand its current content and structure:

    line 87
  7. Distinctive:

    Include the SPDX header as YAML comments in frontmatter: if creating a new page.

    line 106
  8. Very specific:

    Match existing Fern frontmatter format: if creating a new page, including sidebar-title, keywords, and position when they are relevant.

    line 107
  9. Very specific:

    Use skip-slug: true in docs/index.yml: when a child page should live at the parent section path.

    line 110
  10. Distinctive:

    Use colons only to introduce a list: Do not use colons as general-purpose punctuation between clauses.

    line 118
  11. Distinctive:

    When updating an existing page:

    line 120
  12. Distinctive:

    Add content in the logical place within the existing structure.

    line 122
  13. Distinctive:

    Do not reorganize sections unless the change requires it.

    line 123
  14. Distinctive:

    Update any cross-references or "Next Steps" links if relevant.

    line 124
  15. Very specific:

    When moving published URLs, update fern/docs.yml redirects and run mise run test:docs-website.

    line 125
  16. Distinctive:

    When creating a new page:

    line 127
  17. Very specific:

    Follow the frontmatter template from docs/CONTRIBUTING.mdx.

    line 129
  18. Very specific:

    Add the page to the appropriate section in docs/index.yml.

    line 130
  19. Distinctive:

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

    line 134
  20. Distinctive:

    After making changes, validate the Fern docs locally:

    line 153
  21. Distinctive:

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

    line 159
  22. Distinctive:

    When in doubt about whether a commit needs a doc update, check if the commit message references a CLI flag, config option, or user-visible …

    line 173
  23. Very specific:

    If a commit is a breaking change, add a note at the top of the relevant section using a Fern <Warning> callout.

    line 175
  24. Distinctive:

    Read the commit diffs and current doc pages.

    line 185
  25. Very specific:

    Run mise run docs to verify.

    line 188

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.mdx before 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:

  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 areaLikely 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 parsingdocs/how-it-works/gateways/configuration.mdx
crates/openshell-server/src/cli.rs gateway config merge/default behaviordocs/how-it-works/gateways/configuration.mdx
crates/openshell-driver-*/ config structs or driver defaultsdocs/how-it-works/gateways/configuration.mdx, docs/how-it-works/sandboxes/runtimes.mdx
deploy/helm/openshell/templates/gateway-config.yamldocs/how-it-works/gateways/configuration.mdx, docs/how-it-works/sandboxes/runtimes.mdx, Helm docs if values change
Proxy or policy codedocs/how-it-works/policies/overview.mdx, docs/how-it-works/policies/schema.mdx
Inference codedocs/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 behaviordocs/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 shell language for copyable commands, with no $ prompt prefix.
  • Use text fences 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, including sidebar-title, keywords, and position when they are relevant. Use frontmatter slug only for folder-discovered pages or absolute URL overrides.
  • Use sidebar-title for short nav labels. For explicit navigation entries, keep relative slug values in docs/index.yml instead of page frontmatter.
  • Keep explicit page: entries in docs/index.yml. Fern still requires them. If the page defines sidebar-title, set page: to that value. Otherwise set page: to the page frontmatter title.
  • Use skip-slug: true in docs/index.yml when a child page should live at the parent section path.
  • Keep each page URL equal to its file path under docs/. Rename the file when you rename a page, add a fern/docs.yml redirect for the old URL, and set a relative slug: when the nav label does not produce the file name. mise run docs runs docs:nav, which fails otherwise.
  • Use keywords as a comma-separated string.
  • Do not add a duplicate H1. Fern renders the page title from frontmatter.
  • Always write NVIDIA in all caps. Wrong: Nvidia, nvidia.
  • Always capitalize OpenShell correctly. Wrong: openshell, Openshell, openShell.
  • Do not number section titles. Wrong: "Section 1: Deploy a Gateway" or "Step 3: Verify." Use plain descriptive titles.
  • No colons in titles. Wrong: "Gateways: Deploy and Manage." Write "Deploy and Manage Gateways" instead.
  • Use colons only to introduce a list. Do not use colons as general-purpose punctuation between clauses.

When updating an existing page:

  • Add content in the logical place within the existing structure.
  • Do not reorganize sections unless the change requires it.
  • Update any cross-references or "Next Steps" links if relevant.
  • When moving published URLs, update fern/docs.yml redirects and run mise run test:docs-website. Redirects reach production through the owning channel's snapshot sync; changing source configuration alone does not republish existing snapshots. See fern/README.md for channel ownership and repair instructions.

When creating a new page:

  • Follow the frontmatter template from docs/CONTRIBUTING.mdx.
  • Add the page to the appropriate section in docs/index.yml.

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:

  • Validation warnings or errors.
  • Broken cross-references.
  • Correct rendering of new content in the PR preview when available.

Tips

  • When in doubt about whether a commit needs a doc update, check if the commit message references a CLI flag, config option, or user-visible behavior.
  • Group related commits that touch the same doc page into a single update rather than making multiple small edits.
  • If a commit is a breaking change, add a note at the top of the relevant section using a Fern <Warning> callout.
  • PRs that are purely internal refactors with no behavior change do not need doc updates, even if they touch high-signal directories.

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.