ns-docs-writer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDocs Writer
文档撰写者
Author clear, maintainable project documentation under and README files.
docs/撰写清晰、易维护的项目文档,存放于目录和README文件中。
docs/Session boot
会话启动
See .
../../ns-harness/references/session-boot.md详见。
../../ns-harness/references/session-boot.mdScope
适用范围
| In scope | Out of scope |
|---|---|
| Inline |
| |
| Runbooks, install guides, architecture overviews for humans | Living specs in |
| Changelog entries when requested | Marketing copy outside repo |
| 包含范围 | 排除范围 |
|---|---|
产品或仓库根目录下的 | 行内 |
| |
| 面向用户的运行手册、安装指南、架构概述 | |
| 按需编写的变更日志条目 | 仓库外的营销文案 |
When to use
使用场景
- New feature needs user or developer documentation
- README is stale after structural changes
- Onboarding guide for contributors
- Consolidating scattered notes into
docs/
- 新功能需要用户或开发者文档
- 结构变更后README已过时
- 贡献者入门指南
- 将零散笔记整合到中
docs/
Workflow
工作流程
- Discover — list existing , README, and
docs/links; avoid duplicating harness/brownfield artifacts (link instead).AGENTS.md - Audience — confirm developer vs operator vs end-user (default: developer).
- Outline — short TOC before drafting long guides.
- Draft — follow .
references/style-guide.md - Link — prefer relative links; point to canonical rules in when relevant.
.nextstage-harness/rules/
- 调研——列出现有、README和
docs/的链接;避免重复已有工件(改为链接)。AGENTS.md - 受众确认——确认受众是开发者、运维人员还是终端用户(默认:开发者)。
- 大纲——撰写长篇指南前先制作简短目录。
- 撰写——遵循。
references/style-guide.md - 链接——优先使用相对链接;相关时指向中的规范规则。
.nextstage-harness/rules/
Layout (stack-agnostic)
布局(与技术栈无关)
Do not assume monorepo layout. Infer from:
packages/- layout table
AGENTS.md architecture-rules.md- Existing structure
docs/
Create subfolders only when they match project convention.
不要假设单仓库布局。从以下文件推断:
packages/- 中的布局表
AGENTS.md architecture-rules.md- 现有结构
docs/
仅当符合项目惯例时才创建子文件夹。
Integration
集成
When called from , document delivered behavior — do not invent requirements.
ns-spec-driven当被调用时,记录已交付的功能——不要凭空创造需求。
ns-spec-drivenForbidden
禁止事项
- Copying full bodies of or
brownfield-map.mdinto new docs (link them)system-reverse-spec.md - English violations when project mandates English docs
- Auto-generating docs for code that does not exist yet
- 将或
brownfield-map.md的完整内容复制到新文档中(改为链接)system-reverse-spec.md - 若项目要求文档使用英文,则违反英文规范
- 为尚未存在的代码自动生成文档