بنقرة واحدة
docs-writing
// Write and maintain SDK documentation in packages/docs/content/. Use when adding new doc pages, updating existing docs, or modifying the documentation structure. Ensures frontmatter, meta.json, and LLM index stay in sync.
// Write and maintain SDK documentation in packages/docs/content/. Use when adding new doc pages, updating existing docs, or modifying the documentation structure. Ensures frontmatter, meta.json, and LLM index stay in sync.
| name | docs-writing |
| description | Write and maintain SDK documentation in packages/docs/content/. Use when adding new doc pages, updating existing docs, or modifying the documentation structure. Ensures frontmatter, meta.json, and LLM index stay in sync. |
Write documentation for the Sui TypeScript SDK ecosystem in packages/docs/content/. All docs are MDX files organized by package, rendered by fumadocs, and exported as flat markdown for LLM consumption.
meta.json to understand the section structure..mdx file in the appropriate content/ subdirectory.title and description (required):---
title: My New Feature
description: Short one-line description under 120 characters
---
Content goes here...
meta.json pages array in the correct order.meta.json with title and pages.pnpm --filter @mysten/docs build:docspnpm --filter @mysten/docs validate-docsWhen a new SDK package needs documentation:
packages/docs/content/<package-name>/ with meta.json (root: true) and index.mdx"build:docs": "tsx ../docs/scripts/build-docs.ts" to the package's package.json scripts"docs" to the package's files array in package.json (so docs are published to npm)packages/docs/package.jsondescription frontmatter accurate after changes.pnpm --filter @mysten/docs build:docs
pnpm --filter @mysten/docs validate-docs
title and description — CI validates this.@mysten/sui/transactions, not internal paths.tsx or typescript language tag.meta.json pages array — or it won't appear in navigation.dist/ and docs/ are generated at build time — not committed to git. Run build:docs to verify output locally.build:docs script and docs in files — or docs won't be published to npm.meta.json → Page won't appear in navigation or indexdescription in frontmatter → CI validation will failmeta.json → Pages won't be indexedAlways validate before committing doc changes:
pnpm --filter @mysten/docs validate-docs
This checks frontmatter completeness and orphan detection. Fix any errors before committing.
# Generate all docs (combined dist/ + per-section indices)
pnpm --filter @mysten/docs build:docs
# Generate docs for a single package (run from package dir)
pnpm --filter @mysten/sui build:docs
# Build everything (includes build:docs automatically via turbo)
pnpm turbo build
# Validate frontmatter + orphan detection
pnpm --filter @mysten/docs validate-docs
# Full site build (Next.js)
pnpm --filter @mysten/docs build
Fix pnpm audit vulnerabilities. Upgrades packages, adds overrides, handles minimumReleaseAge restrictions, and cleans up stale overrides.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
Fix bugs or add features in the @mysten/sui client layer (gRPC, JSON-RPC, GraphQL). Ensures all three transport implementations stay in sync.