Skip to content

docs: single-source starter prompt in Markdown#6894

Merged
cv merged 12 commits into
mainfrom
codex/docs-starter-prompt-markdown
Jul 15, 2026
Merged

docs: single-source starter prompt in Markdown#6894
cv merged 12 commits into
mainfrom
codex/docs-starter-prompt-markdown

Conversation

@miyoungc

@miyoungc miyoungc commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Moves the Starter Prompt from a custom React component into a canonical Markdown file that downstream Brev launchables and playbooks can pin by commit SHA. Fern now generates a reusable native Prompt component with a visible preview and copy control from that single source.

Changes

  • Added docs/resources/starter-prompt.md as the canonical downstream-consumable prompt.
  • Added a build-time generator for docs/_build/StarterPrompt.generated.mdx and wired it into docs checks and variant generation.
  • Added shared docs:prepare and docs:validate commands, and wired them into local builds plus Fern preview, staging, and public publish workflows.
  • Added workflow path filters so changes to the Starter Prompt generator trigger preview and staging docs builds.
  • Replaced the custom Starter Prompt React components with Fern's native reusable Prompt component across the home, quickstart, and agent-skills pages.
  • Added regression coverage for generated MDX syntax, source consistency, and the Markdown-safe prompt body.
  • Documented commit-SHA raw URL consumption for downstream repositories.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification:
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run check:diff passed when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — Starter Prompt and credential-helper integration tests (43 passed); staging workflow contract tests (2 passed)
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — not applicable to this focused docs-generation change
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only) — passed with 0 errors and 1 pre-existing contrast warning
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only) — the canonical prompt has SPDX but intentionally omits frontmatter so the raw SHA URL is directly usable as a prompt

Signed-off-by: Miyoung Choi miyoungc@nvidia.com

Summary by CodeRabbit

  • New Features
    • Added an embedded, generated “Starter Prompt” across onboarding/quickstart pages and related resources.
  • Documentation
    • Updated quickstarts, resources, and the docs index to use the generated include (removing the prior copy-to-clipboard UI).
    • Refreshed starter prompt guidance for secure token handling and improved setup instructions; updated several “AI Agent Docs” labels to “Use NemoClaw Docs with Your Coding Agents.”
  • Bug Fixes
    • Standardized docs preview/publish pipelines to run preparation + validation before Fern steps.
  • Tests / Chores
    • Strengthened starter-prompt generation/validation checks, updated related tests, and adjusted supporting workflow/tooling behavior.

@miyoungc miyoungc added the area: docs Documentation, examples, guides, or docs build label Jul 14, 2026
@miyoungc miyoungc self-assigned this Jul 14, 2026
@copy-pr-bot

copy-pr-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 7a75cce9-2bcf-4b49-9f5c-c847081e33a7

📥 Commits

Reviewing files that changed from the base of the PR and between 3bf0a58 and f201e1b.

📒 Files selected for processing (8)
  • docs/about/overview.mdx
  • docs/about/release-notes.mdx
  • docs/get-started/prerequisites.mdx
  • docs/get-started/quickstart-hermes.mdx
  • docs/get-started/quickstart-langchain-deepagents-code.mdx
  • docs/get-started/quickstart.mdx
  • docs/index.yml
  • docs/resources/agent-skills.mdx
🚧 Files skipped from review as they are similar to previous changes (4)
  • docs/get-started/quickstart.mdx
  • docs/resources/agent-skills.mdx
  • docs/get-started/quickstart-langchain-deepagents-code.mdx
  • docs/get-started/quickstart-hermes.mdx

📝 Walkthrough

Walkthrough

The PR makes docs/resources/starter-prompt.md the canonical source, generates an MDX artifact, updates documentation pages and tests, centralizes docs preparation and validation, and migrates credential checks and workflows to the new pipeline.

Changes

Starter Prompt Documentation

Layer / File(s) Summary
Canonical prompt generator
docs/resources/starter-prompt.md, scripts/generate-starter-prompt.ts, test/starter-prompt-docs.test.ts, docs/CONTRIBUTING.md, ci/source-shape-test-budget.json
The starter prompt is revised in Markdown, validated and rendered into generated MDX, checked for freshness, and documented for contributors.
Documentation preparation and validation
package.json, .github/workflows/*, .pre-commit-config.yaml
Preparation and validation scripts are wired into docs preview and publishing workflows, with generator changes added to relevant triggers.
Generated prompt documentation embeds
docs/get-started/*.mdx, docs/index.mdx, docs/resources/agent-skills.mdx, docs/_components/StarterPromptButton.tsx
Documentation replaces component-based prompt UI with generated Markdown embeds and updated setup links; the obsolete button component is removed.
Credential checker source migration
scripts/checks/local-credential-helper-pin.ts, test/local-credential-helper-pin.test.ts
Credential checks now extract prompt content from the shared Markdown source, and obsolete component-extraction tests are removed.
Documentation navigation and terminology
docs/about/*.mdx, docs/get-started/prerequisites.mdx, docs/get-started/quickstart.mdx, docs/index.yml
Agent documentation links and navigation labels are renamed across the affected documentation pages.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Suggested labels: area: ci

Sequence Diagram(s)

sequenceDiagram
  participant Source as starter-prompt.md
  participant Generator as generate-starter-prompt.ts
  participant Docs as Documentation workflows
  participant Fern as Fern validation
  Source->>Generator: read and validate Markdown
  Generator->>Docs: write generated MDX
  Docs->>Fern: run docs:validate
  Fern-->>Docs: validation result
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the main change: moving the starter prompt to a single canonical Markdown source.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/docs-starter-prompt-markdown

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage remains at 96%, unchanged from the main branch.

TypeScript / code-coverage/cli

The overall coverage in the codex/docs-starter-p... branch remains at 79%, unchanged from the main branch.

Show a code coverage summary of the most impacted files.
File main 8599fc7 codex/docs-starter-p... f201e1b +/-
src/lib/adapter...ocker/volume.ts 85% 70% -15%
src/lib/agent/dashboard-ui.ts 91% 85% -6%
src/lib/shields/audit.ts 97% 92% -5%
src/lib/state/config-io.ts 95% 92% -3%
src/lib/security/redact-url.ts 97% 99% +2%
src/lib/messagi.../persistence.ts 86% 89% +3%
src/lib/adapter.../docker/pull.ts 83% 86% +3%
src/lib/adapter...shell/client.ts 85% 88% +3%
src/lib/messagi...n-validation.ts 96% 100% +4%
src/lib/messagi...nes/template.ts 95% 100% +5%

Updated July 15, 2026 03:10 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor — Informational

Advisor assessment: Informational / high confidence
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions
Status: No actionable findings remain in the canonical review ledger.

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Model comparison: normalized findings match; normalized E2E selections match; severity counts match.

Nemotron output stays in workflow artifacts and does not change the assessment above.

E2E guidance

Advisory only. E2E / PR Gate selects and runs jobs independently.

Recommended E2E: cloud-onboard, credential-sanitization, security-posture

1 optional E2E recommendation
  • docs-validation

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

@miyoungc
miyoungc marked this pull request as ready for review July 15, 2026 00:38
@miyoungc miyoungc added area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: skills Skills, agent behaviors, prompts, or skill packaging v0.0.83 Release target v0.0.84 Release target and removed v0.0.83 Release target labels Jul 15, 2026
Comment thread test/starter-prompt-docs.test.ts Fixed
Comment thread test/starter-prompt-docs.test.ts Fixed
Comment thread test/starter-prompt-docs.test.ts Fixed

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/CONTRIBUTING.md`:
- Around line 116-117: Update the documentation text around the
downstream-consumer raw URL so each sentence occupies one Markdown line and ends
with a period. Keep the URL example intact, either placing the entire sentence
on one line or making the URL introduction a separate complete sentence.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: e4cad1ef-7fbc-48dc-bc06-02a08eeb6bdb

📥 Commits

Reviewing files that changed from the base of the PR and between ebd1ed0 and c8bb85f.

📒 Files selected for processing (17)
  • .github/workflows/docs-preview-pr.yaml
  • .github/workflows/docs-publish-public.yaml
  • .github/workflows/docs-publish-staging.yaml
  • .pre-commit-config.yaml
  • docs/CONTRIBUTING.md
  • docs/_components/StarterPromptButton.tsx
  • docs/get-started/quickstart-hermes.mdx
  • docs/get-started/quickstart-langchain-deepagents-code.mdx
  • docs/get-started/quickstart.mdx
  • docs/index.mdx
  • docs/resources/agent-skills.mdx
  • docs/resources/starter-prompt.md
  • package.json
  • scripts/checks/local-credential-helper-pin.ts
  • scripts/generate-starter-prompt.ts
  • test/local-credential-helper-pin.test.ts
  • test/starter-prompt-docs.test.ts
💤 Files with no reviewable changes (2)
  • docs/_components/StarterPromptButton.tsx
  • test/local-credential-helper-pin.test.ts

Comment thread docs/CONTRIBUTING.md
Comment on lines +116 to +117
Downstream consumers can pin the source with a raw URL such as
`https://raw.githubusercontent.com/NVIDIA/NemoClaw/<commit-sha>/docs/resources/starter-prompt.md`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep one sentence per Markdown line.

Lines 116-117 split one sentence across two lines. Keep the sentence on one line or introduce the URL as a separate sentence.

As per coding guidelines, Markdown documentation must use one sentence per line and end every sentence with a period.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/CONTRIBUTING.md` around lines 116 - 117, Update the documentation text
around the downstream-consumer raw URL so each sentence occupies one Markdown
line and ends with a period. Keep the URL example intact, either placing the
entire sentence on one line or making the URL introduction a separate complete
sentence.

Source: Coding guidelines

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
test/starter-prompt-docs.test.ts (1)

143-149: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Avoid using the production extractor as the sole test oracle.

readStarterPrompt() derives expected content through the same parsing path used by generation. If that parser regresses, the generator and these assertions can remain mutually consistent while producing the wrong prompt. Add fixed, behavior-level assertions for stable generated MDX and credential-helper content independently of extractStarterPromptMarkdown.

As per path instructions, tests should validate observable behavior rather than implementation-derived output.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/starter-prompt-docs.test.ts` around lines 143 - 149, Update
readStarterPrompt and its tests so expected starter-prompt content is not
derived solely through extractStarterPromptMarkdown. Add fixed behavior-level
assertions for stable generated MDX and credential-helper content, while
retaining assertions that validate the observable output independently of the
production extractor.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@test/starter-prompt-docs.test.ts`:
- Around line 143-149: Update readStarterPrompt and its tests so expected
starter-prompt content is not derived solely through
extractStarterPromptMarkdown. Add fixed behavior-level assertions for stable
generated MDX and credential-helper content, while retaining assertions that
validate the observable output independently of the production extractor.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: b5dfc55b-1957-4e47-8490-bc3fdb1c85fa

📥 Commits

Reviewing files that changed from the base of the PR and between c8bb85f and 4afcd5c.

📒 Files selected for processing (1)
  • test/starter-prompt-docs.test.ts

@cv
cv merged commit 4fd288c into main Jul 15, 2026
82 of 83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: skills Skills, agent behaviors, prompts, or skill packaging v0.0.84 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants