Skip to content

Documentation Update Principles

Languages: English · 中文

Agently public technical documentation uses the main repository docs/ as the shared source of truth. The website can own visual design, navigation, homepage, customer presentation, and marketing pages, but technical body content, version facts, recommended usage, code examples, deprecation notes, and release explanations should land in the main repository first.

The benefit is simple: when a framework version changes, code, examples, compatibility metadata, Agently-Skills, and the website do not drift into separate stories.

Source Ownership

LocationOwnsDoes not own
Main repo docs/cn, docs/enTechnical source: capability docs, usage guidance, code examples, scenario playbooks, release notes, deprecation/version notesWebsite visuals, homepage animation, customer showcase, static marketing pages
Website VitePressPresentation of main-repo docs: navigation, sidebar, SEO, dual-domain routing, search, styles, link checksA private second copy of technical facts
Website homepage and marketing pagesProduct positioning, value narrative, customer cases, careers, trademark/license statementReplacing main-repo technical docs
Agently-SkillsCurrent recommended path, project structure, and validation guidance for coding agentsThe only runtime API documentation source

The website may organize navigation by reader path, but technical body content should be synchronized from the main repository. If a technical page needs website-style rewriting, rewrite it in the main repository, then sync.

After Each Release

Change typeMust check
New API / capabilityCapability page, quickstart or playbook, examples, release notes, capability map
Recommended usage changeGetting-started path, snippets, Agently-Skills, migration guidance
Behavior changeUsage notes, boundary cases, error semantics, compatibility notes, tests or example output
Deprecation or downgraded pathDeprecation note, migration path, whether old API is removed from new-user route
Provider / model config changeModel setup, quickstart, compatible protocol notes, example config
Runtime / streaming / observability changeModel Response, TriggerFlow, DevTools, service docs

Before merging docs, confirm:

  1. Code and examples show the same usage that the docs recommend.
  2. Release notes explain the version fact and migration impact.
  3. Website sync has no broken links, duplicate pages, or stale entrypoints.

Writing Principles

Public docs are not API dictionaries. Readers usually arrive with a business problem, then look for the API.

PrincipleWriting shape
Open with a scenario, not a definitionStart from the problem the reader faces, then show which engineering chain Agently fills
Problem before solutionShow concrete costs such as drifting output, uncontrolled tools, unrecoverable workflows
Reader-benefit framingExplain what the reader gains or avoids; avoid moralizing rules
Judgment-based headings"When to use TriggerFlow" is more useful than "TriggerFlow introduction"
Facts firstPrefer code, examples, release notes, and project evidence over generic promotion
Downgrade old pathsCompatibility APIs may remain, but should not be the first path for new users

Avoid:

  • Dramatic closing lines such as "this is the real value of X".
  • Condescending commands such as "this is engineering discipline, not advice".
  • Abstract value claims without showing how the reader benefits.
  • Long uninterrupted concept dumps without tables, diagrams, tips, code, or checklists.

Combining Diagrams, Tables, Tips, and Code

Core pages should usually include more than prose.

Content typeGood for
TablesCapability boundaries, selection decisions, version differences, mistakes and fixes, launch checks
Diagrams / MermaidRequest chain, TriggerFlow lifecycle, service topology, state transitions
Tips / warningsKey mistakes, compatibility notes, safety boundaries, launch reminders
Code blocksRecommended API shape, minimal runnable snippet, before/after migration
ChecklistsRelease review, pre-launch acceptance, playbook implementation

Code blocks must reflect real usage. Do not include snippets that cannot run, are simplified into a misleading shape, or exist only to show syntax. Examples that claim model-owned behavior should use real DeepSeek or local Ollama when feasible; if an external system is mocked, state that boundary.

Page Structure

Capability pages should usually follow:

  1. Scenario problem: when to read this page.
  2. Minimal recommended usage: code or flow.
  3. Capability boundary: what it owns and does not own.
  4. Upgrade path: when to add Actions, Workspace, TriggerFlow, Dynamic Task.
  5. Common misuse: wrong pattern, consequence, correction.
  6. Version and compatibility notes.
  7. Next reading based on the reader's next task.

Playbook pages should usually follow:

  1. Business scenario and deliverable.
  2. Recommended architecture or flow.
  3. Structured output or state contract.
  4. Agently capabilities involved.
  5. UI / service / workflow / evidence integration.
  6. Acceptance checklist.
  7. Continue reading.

Bilingual Sync

The main repository should maintain real docs/cn and docs/en source documents. English pages should not be only Chinese mirrors. If only Chinese can be finished first, mark the English page as pending translation instead of presenting it as complete English content.

Update order:

  1. Complete Chinese facts and structure.
  2. Write English with the same facts, boundaries, code, and version notes; it does not need to be word-for-word translation.
  3. Sync the website from the main repository; do not edit technical body copy only in the website repo.

Completion Check

CheckPassing standard
Fact sourceTraceable to code, examples, release notes, spec, or project evidence
Recommended pathNew-user routes do not recommend deprecated or compatibility APIs
Code exampleMatches current API and is run or points to a validated example when needed
Scenario framingReader knows what problem the page solves
PresentationUses tables, flow, tips, code, or checklists instead of only long prose
BilingualChinese and English facts match; links work
Website syncVitePress build, link check, and sitemap generation pass