agentleFS
converge-ai-labsconverge-ai-labs/agent-foundation/.agents/skills/docs-writing/SKILL.md

docs-writing

Skill1.8k starsChanged 5 days agoApache-2.0View on GitHub

Author, rewrite, translate, or reorganize user documentation under docs/ with audience-specific structure, anti-defensive prose, idiomatic Simplified Chinese, and SEO metadata. Use when creating or updating documentation pages, navigation, or docs site metadata.

19 other projects use a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about converge-ai-labs/agent-foundation

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

See all 50

Talked about on GitHub (50 times).

On GitHub · 50

45 more on GitHub

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Read the owning specification under spec/, the live implementation or Pydantic schema, and existing pages in the target section before …

    line 12
  2. Distinctive:

    Push advanced options and edge cases to the bottom: Put specialized modes (custom transports, recovery retries, low-level tuning) and …

    line 27
  3. Distinctive:

    Keep paragraphs concise (2–4 sentences).

    line 30
  4. Very specific:

    Skip defensive disclaimers and hyperbolic absolutes: Do not negotiate with an imagined critic ("X alone does not prove Y") or pepper …

    line 48
  5. Very specific:

    Keep docs/a13n-harness-ui/ strictly plain .md (never .mdx), as pages are bundled verbatim into the built-in configuration Skill.

    line 63
  6. Very specific:

    Keep all relative links in .zh-CN.md pointing to the canonical English file path and English anchor slug (for example, 模型配置).

    line 67
  7. Distinctive:

    Run the checks proportional to the documentation surfaces changed:

    line 71

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “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

Documentation Authoring

Maintain docs/ as user-centric, technically accurate bilingual documentation. Follow AGENTS.md, Documentation Changes, and Repository Model.

1. Ground in Code and Accepted Contracts

Read the owning specification under spec/, the live implementation or Pydantic schema, and existing pages in the target section before drafting or refactoring:

  • Verify every symbol and key against code: Never invent or guess Python imports, method signatures, CLI flags, or YAML/TOML/JSON keys. Check Python imports against installed workspace modules (a13n_harness, a13n_service, a13n_envd_client, a13n_stream_protocol), Harness UI YAML blocks against a13n_harness_ui.configuration (HarnessUiDocument, ModelResource, AgentResource, McpServerResource, ProjectResource), and Service TOML blocks against a13n_service.settings.Settings.
  • Preserve incoming anchors and reference tables: Grep docs/ for incoming #anchor links before renaming headings (or preserve legacy targets via empty <span id="..."></span> outside docs/a13n-harness-ui/, which must stay plain .md). Do not hand-edit generated reference pages (configuration-reference.md) or strip exhaustive reference tables (command-reference.md, python-client.md, a13n-logging/index.md).
  • Check regression suites: Inspect assertions in scripts/tests/test_docs.py, packages/a13n-harness-ui/tests/test_builtin_skills.py, and packages/a13n-service/tests/test_documentation.py.

2. Write for Users, Not as an Implementation Spec

Documentation exists to help users understand concepts and accomplish tasks—not to mirror internal state machines or edge-case invariants from spec/.

Apply four structural rules to every narrative page:

  1. Shallow to deep, big to small:
    • Lead with the mental model and fast path: Open with what the feature does in 1–3 sentences, followed immediately by the shortest working example or numbered procedure.
    • Expand core workflows next: Cover the 80% tasks users actually perform using concise tables, runnable snippets, or a clean Mermaid diagram where relationships matter.
    • Push advanced options and edge cases to the bottom: Put specialized modes (custom transports, recovery retries, low-level tuning) and troubleshooting at the end, never before the main workflow.
  2. Cut implementation details that do not change user action:
    • Omit internal storage layouts, background garbage-collection mechanics, internal queue plumbing, and repetitive negative disclaimers unless the user must configure or act on them.
    • Keep paragraphs concise (2–4 sentences). Prefer a compact table or bulleted list over a dense wall of prose.
  3. Separate task guides from under-the-hood deep dives:
    • Task guides stay concise and workflow-focused while keeping runnable code/CLI/YAML/TOML examples, essential parameter/status tables, and copy-pasteable recipes—never compress them into hollow stubs, and never clutter them with internal plumbing.
    • Architecture deep dives (architecture.md) explain how the system works beneath the surface (state machines, wire framing, hybrid storage, lease fencing, prompt-cache preservation, and multi-layer crash recovery) using Mermaid diagrams and concise invariants grounded in spec/. Link to them for curious engineers rather than repeating internals across task pages.
  4. Target the audience for each surface (defined in Documentation Changes):
SurfaceTarget audiencePrimary focus
docs/a13n-harness/, docs/a13n-stream-protocol/Python developersCore mental model (AgentSpec / RunBindings / HarnessState), runnable Python examples, tools, subagents, CodeAct, and event streams
docs/a13n-harness-ui/Terminal/WebUI users & DIY buildersQuick setup, TUI/WebUI workflows, Live voice, Host Browser, Bot, Coordinator, YAML recipes, Markdown subagents, SKILL.md, and Content Plugins
docs/a13n-service/Platform engineers, team admins & app teamsDeployment, RBAC & credentials, Agents, Environments, Memory, MCP & tools, Schedules, SDK/HTTP integration, and day-2 operations
docs/environments/, docs/a13n-envd/, docs/a13n-logging/Infrastructure & sandbox integratorsNative vs. Envd execution, OS sandboxing, egress policies, computer use, and provider configuration

3. Write Plain, Factual, Anti-Defensive Prose

State what the system does, how to use it, and how to verify the result in calm, plain language:

  • Default to direct statements of fact over contrastive negation: Avoid habitual "X, not Y", "X rather than Y", "Instead of X, you do Y", and Chinese "不是……而是……" / "而非" / "并非" / "不等于" / "不代表" formulations when a straightforward positive sentence conveys the exact contract. Reserve contrastive syntax strictly for genuine traps where two adjacent options or look-alike fields are routinely confused in practice.
  • Skip defensive disclaimers and hyperbolic absolutes: Do not negotiate with an imagined critic ("X alone does not prove Y") or pepper architectural prose with emphatic "never" / "绝不" / "从不" claims; describe the concrete scope, mechanism, or verification step directly.
Avoid (defensive disclaimers or overused contrastive syntax)Prefer (plain, factual prose)
"Saving configuration alone does not test connectivity or prove model entitlement.""After saving the configuration, send a short test prompt to verify end-to-end model connectivity."
"A cancellation receipt is not proof that cleanup has finished.""Query the current execution status after requesting cancellation to confirm cleanup completed."
"Use the base URL rather than /eip/control." / "使用基础 URL,而非 /eip/control。""Set ENVD_ENDPOINT to the daemon root origin (such as https://sandbox.example:8080; the client appends /eip/control)."
"Pass feature clients on RunBindings fields rather than RunBindings.capabilities.""Pass feature clients (such as web and task_state) on their dedicated typed RunBindings fields."
"Instead of writing complex JSON specifications manually, you describe the agent in prose.""Describe the agent's responsibilities, tools, and guidelines in plain language; Composer drafts a complete revision for you."
"A Skill read records access; it does not establish that the Agent followed the instructions.""The trace span records when SKILL.md is read; inspect subsequent tool calls to review how the Agent applied the workflow."

4. Author English First, Then Idiomatic Chinese

  1. Finalize the English page (.md or .mdx):
    • Craft search-intent-driven title and description front matter (plus optional sidebarTitle). Quote any YAML value containing : . Do not add a # (h1) heading in the body.
    • Keep docs/a13n-harness-ui/ strictly plain .md (never .mdx), as pages are bundled verbatim into the built-in configuration Skill.
  2. Synchronize Simplified Chinese (.zh-CN.md / .zh-CN.mdx and meta.zh-CN.json):
    • Translate into natural, idiomatic technical Chinese written for native engineers; avoid stiff clause-by-clause calques or stacked passive constructions.
    • Preserve exact heading count, order, and depth (##, ###, ####)—plus any <span id="..."></span> anchors—so remark-translation-headings assigns canonical English heading IDs to every Chinese section.
    • Keep all relative links in .zh-CN.md pointing to the canonical English file path and English anchor slug (for example, [模型配置](models.md#model-selection)).

5. Validate and Update Bundled Consumers

Run the checks proportional to the documentation surfaces changed:

# Format changed Markdown files:
uv run --locked pre-commit run mdformat --files <changed-md-files>

# If docs/a13n-harness-ui/** changed, refresh and test the bundled configuration Skill:
make a13n-harness-ui-skills
uv run --locked pytest packages/a13n-harness-ui/tests/test_builtin_skills.py

# If docs/a13n-service/** changed, refresh the bundled search index and test it:
uv sync --locked --all-packages
uv run --locked pytest packages/a13n-service/tests/test_documentation.py

# If Service settings or Environment provider models changed, refresh generated references:
uv run --locked python scripts/docs/references.py

# Run documentation source & schema regression tests:
uv run --locked pytest scripts/tests/test_docs.py

# Build the bilingual documentation site and verify 0 broken links/anchors and passing export/search tests:
make docs-build

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.