seekdeep-doc-site-sync
Use when publishing, updating, moving, or removing SeekDeep Harness documentation website pages; editing website/docs.json mappings or navigation; diagnosing a page missing from the VitePress site; fixing projected documentation links; or running the docs:dev, docs:check, and doc-sync workflow after website-content changes.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- seekdeep-doc-site-sync
- description
- Use when publishing, updating, moving, or removing SeekDeep Harness documentation website pages; editing website/docs.json mappings or navigation; diagnosing a page missing from the VitePress site; fixing projected documentation links; or running the docs:dev, docs:check, and doc-sync workflow after website-content changes.
02 资源文件 1
- 参考文档agents/openai.yaml270 B
03 SKILL.md 正文
Synchronizing the SeekDeep Harness Documentation Site
Keep repository Markdown as the only editable content source. Treat the website as a tested projection: website/docs.json selects public pages, the Rust projector rewrites them into the disposable website/.generated/ tree, and VitePress builds that tree.
Repository translations follow the sibling pairing contract: English foo.md, Chinese foo.zh.md, and foo.i18n.yaml live together. Never create zh-CN/ or other locale directories for website content. The site route trees are independent of that source layout: foo.zh.md projects to the root route and foo.md projects to the matching /en/ route.
Read the owning contracts
- Read docs/AGENTS.md and use seekdeep-doc-standards when deciding where content belongs or changing product documentation prose.
- For an edited bilingual source, follow the lightweight routine path in docs/AGENTS.md and the pairing contract; never invoke the extended translation skill automatically.
- Read the current
DocsPagetype in doc_site.rs and entries in website/docs.json before changing the manifest; do not rely on a remembered field set. - Read the Rust site configuration before adding a new section, sidebar collection, locale, or top-level navigation item. .vitepress/config.mjs only connects compiled behavior to VitePress.
Classify the change
- Edit an already published page: change only its canonical Markdown source. Do not touch the manifest unless its route or navigation metadata changes.
- Publish a new page: create it in its owning
docs/tier, then add one manifest entry. - Rename, move, or remove a page: update the canonical file, manifest entry, and inbound repository links atomically. Remove stale manifest entries;
docs:checkrejects missing sources. - Publish a generated catalog: map the generated
docs/file, but change its generator or source metadata rather than editing the catalog by hand. - Change site structure: update the manifest for ordinary pages; update VitePress configuration only when the existing sidebar, section, or locale model cannot express the change.
Never edit or commit website/.generated/, website/.cache/, or website/.dist/. Except for website/AGENTS.md, never add Markdown under website/; locale and route directories such as website/zh-CN/, website/en/, and website/api/ are invalid source layouts. Keep generated catalogs under docs/, freshness-gate them there, and publish them through the manifest.
Add or update a manifest entry
Set every DocsPage field deliberately:
source: repository-relative canonical Markdown path. For a complete bilingual pair, add root and English entries naming the.zh.mdand.mdsiblings, their content locales, and counterpart aliases.route: public VitePress path including the.mdsuffix.label: sidebar label, not necessarily the document H1.sidebar: reusezh-guide,zh-develop,zh-reference,en-guide,en-develop, oren-referenceunless the information architecture needs another collection.section: reuse an existing section when possible. If adding one, also declare its per-locale placement and collapse policy in the manifest'ssectionsmap.order: stable order within the section.sourceAliases: optional additional repository paths that should resolve to this page when links are projected. It does not create another public route.
Point both locale entries at the same source only when the page intentionally falls back to one available language. Update the root entry and aliases when its Chinese counterpart is added. Keep the manifest an explicit public allowlist. Do not publish RFCs, postmortems, testing guides, AGENTS.md, or maintainer workflows merely because they exist under docs/; add internal material only when the user explicitly expands what the site publishes.
Preserve link behavior
Write normal repository-relative Markdown links in canonical docs. The projector applies these rules:
- A target present in the manifest becomes a site-relative route.
- An existing target outside the manifest becomes a GitHub source link, including supported line suffixes.
- An image is the exception: its file is copied into the generated tree and referenced from there, so the site serves it regardless of repository visibility. It must be a regular file inside the repository.
- External URLs, site-absolute URLs, email links, and fragment-only links remain unchanged.
- A missing repository-relative target fails projection instead of silently producing a broken link.
- Cross-page fragments use the English GitHub heading id as their canonical id. If an authored heading emits a different VitePress id, place an explicit
<a id="..."></a>immediately before it; add generated aliases in the owning generator.
Do not write website-specific routes into canonical Markdown just to satisfy VitePress. Use sourceAliases for directory-style repository links that should resolve to a mapped index page.
Preview and validate
Run local preview while editing:
pnpm docs:dev
The dev server watches mapped source files and reprojects them. Restart it after changing the manifest if the new source is not picked up automatically.
docs:prepare compiles the callbacks with the workspace's WASM toolchain and installs the website's locked third-party dependencies into its ignored build cache. The website importer in the root lockfile remains the version authority. Canonical declaration links generated from the oracle pass through doc_source_links.rs; their pinned source paths and line numbers must not be redirected to unrelated Rust declarations.
Run the focused website gate before treating the mapping as valid:
pnpm docs:check
If Markdown link checks pass but the site build reports a missing fragment, follow the verify-doc-site-fragments source and target paths. Preserve the English GitHub id with an explicit alias in authored Markdown or in the owning generator.
Before committing a documentation-site change, run:
pnpm run doc-sync
pnpm run lint
git diff --check
Use seekdeep-pre-push-checks before pushing. Report the canonical files changed, manifest entries added or removed, public routes affected, and the exact checks run.
Keep deployment separate
Synchronizing content into the VitePress build does not publish it to the internet. Do not add GitHub Pages permissions, deployment workflows, custom domains, or public hosting unless the user explicitly requests deployment and confirms the hosting policy.
04 同仓库更多 Skills
user-only-skill
Prove model-disabled skills stay outside the model catalog.
snapshot-skill
Exercise project skill discovery and loading in snapshot tests.
model-only-skill
Prove user-disabled skills remain available to the model.
editing-cordis-compositions
Use when creating, changing, or validating a Cordis composition for this harness — writing or editing an agent preset, adding or removing a plugin row, deciding whether something belongs to the host composition or to one session, checking whether a preset you authored actually mounts, or diagnosing a row that mounted but contributed nothing.
cordis-plugin-development
Create, modify, debug, or extend dynamic Cordis Plugins, including Host Services and Events, Client Slot and theme UI, Package-private Client-to-Host calls, dynamic Tools, version updates, approval failures, and runtime diagnostics. Use this Skill to route a user request to the correct platform and Inspect Provider, then define, run, repair, or roll back the Plugin.
seekdeep-trim-cot-leakage
Use when auditing or fixing prose that reads like a leaked reasoning transcript — dead design-session citations such as (decision N), audit item codes, or §N of uncommitted drafts; change narration such as "used to", "no longer", "this cut"; stack or review vantage ("a later PR in this stack", "rejected in review"); reviewer-addressed justifications; control-flow narration; or hedged planning residue in comments, JSDoc, docs, or Agent Notes.