Loading...
Loading...
Compare original and translation side by side
.aigne/doc-smith/.aigne/doc-smith/.aigne/doc-smith/mkdir -p .aigne/doc-smith/{intent,planning,docs,assets,cache}cd .aigne/doc-smith && git initworkspaceVersion: "1.0"
createdAt: "2025-01-13T10:00:00Z" # ISO 8601
projectName: "my-project"
projectDesc: "项目描述"
locale: "zh" # 输出语言代码,初始化时必须向用户确认
projectLogo: ""
translateLanguages: []
sources:
- type: local-path
path: "../../" # 相对于 workspace
url: "" # 可选: git remote URL
branch: "" # 可选: 当前分支
commit: "" # 可选: 当前 commit.aigne/doc-smith/mkdir -p .aigne/doc-smith/{intent,planning,docs,assets,cache}cd .aigne/doc-smith && git initworkspaceVersion: "1.0"
createdAt: "2025-01-13T10:00:00Z" # ISO 8601
projectName: "my-project"
projectDesc: "Project description"
locale: "zh" # Output language code, must confirm with user during initialization
projectLogo: ""
translateLanguages: []
sources:
- type: local-path
path: "../../" # Relative to workspace
url: "" # Optional: git remote URL
branch: "" # Optional: current branch
commit: "" # Optional: current commitdocument-structure.yaml/doc-smith-check --structurenode skills/doc-smith-build/scripts/build.mjs --nav --workspace .aigne/doc-smith --output .aigne/doc-smith/distproject:
title: "项目名称"
description: "项目概述"
documents:
- title: "文档标题"
description: "简要摘要"
path: "/filename" # 必须以 / 开头
sourcePaths: ["src/main.py"] # 源文件路径(无 workspace: 前缀)
icon: "lucide:book-open" # 仅顶层文档必需
children: # 可选:嵌套文档
- title: "子文档"
description: "详细信息"
path: "/section/nested"
sourcePaths: ["src/utils.py"]document-structure.yaml/doc-smith-check --structurenode skills/doc-smith-build/scripts/build.mjs --nav --workspace .aigne/doc-smith --output .aigne/doc-smith/distproject:
title: "Project Name"
description: "Project Overview"
documents:
- title: "Document Title"
description: "Brief Summary"
path: "/filename" # Must start with /
sourcePaths: ["src/main.py"] # Source file path (no workspace: prefix)
icon: "lucide:book-open" # Required only for top-level documents
children: # Optional: nested documents
- title: "Sub-document"
description: "Detailed Information"
path: "/section/nested"
sourcePaths: ["src/utils.py"]docs/{path}/.meta.yamldist/{lang}/docs/{path}.htmldocs/.md/overview/doc-gen/assets/xxxdocs/{path}/.meta.yamldist/{lang}/docs/{path}.html.mddocs//overview/doc-gen/assets/xxxlsGloblsGlobdocument-structure.yamlGlob: **/*.{png,jpg,jpeg,gif,svg,mp4,webp}document-structure.yamlGlob: **/*.{png,jpg,jpeg,gif,svg,mp4,webp}/doc-smith-check --structure/doc-smith-check --contentdist/nav.js.aigne/doc-smith//doc-smith-check --structure/doc-smith-check --contentdist/nav.js.aigne/doc-smith/| 场景 | 判断条件 | 行为 |
|---|---|---|
| 首次生成 | | 完整流程:意图 → 结构 → 生成 |
| 修改已有文档 | | AI 理解修改请求,直接修改,满足约束即可 |
| Scenario | Judgment Condition | Action |
|---|---|---|
| Initial Generation | | Full process: Intent → Structure → Generation |
| Modify Existing Documents | | The AI understands the modification request, makes direct modifications, and only needs to satisfy the constraints |
.aigne/doc-smith/intent/user-intent.mdlsGlobundefined.aigne/doc-smith/intent/user-intent.mdlsGlobundefinedundefinedundefineduser-intent.mddocument-structure.yamldocument-structure.yamluser-intent.mddocument-structure.yamldocument-structure.yamlnode skills/doc-smith-build/scripts/build.mjs \
--nav --workspace .aigne/doc-smith --output .aigne/doc-smith/distnode skills/doc-smith-build/scripts/build.mjs \
--nav --workspace .aigne/doc-smith --output .aigne/doc-smith/dist你是文档内容生成代理。请先用 Read 工具读取 {CONTENT_MD_PATH} 作为你的完整工作流程,然后严格按照其中的步骤执行。
参数:
- 文档路径:{docPath}
- workspace:{WORKSPACE_PATH}
- 可链接文档列表:{LINKABLE_DOCS}
- mediaFiles:{MEDIA_FILES}
- 用户意图摘要:{INTENT_SUMMARY}
关键工具说明:
- 使用 Skill 工具调用 /doc-smith-images 生成图片(步骤 5.5)
- 使用 Skill 工具调用 /doc-smith-check 校验文档(步骤 7)
完成检查清单(必须在返回摘要前逐项确认):
□ 步骤 5 图片使用:文档中已按需添加图片引用
□ 步骤 5.5 图片生成:已扫描并处理所有 /assets/{key}/images/ 引用
□ 步骤 6.5 HTML 构建:已执行 build.mjs --doc 并确认 HTML 生成
□ 步骤 7 校验:已调用 /doc-smith-check --content --path {docPath}{CONTENT_MD_PATH}references/content.md{WORKSPACE_PATH}.aigne/doc-smith{docPath}/overview{LINKABLE_DOCS}{MEDIA_FILES}{INTENT_SUMMARY}You are a documentation content generation agent. Please first use the Read tool to read {CONTENT_MD_PATH} as your complete workflow, then strictly follow the steps outlined in it.
Parameters:
- Document Path: {docPath}
- Workspace: {WORKSPACE_PATH}
- Linkable Documents List: {LINKABLE_DOCS}
- mediaFiles: {MEDIA_FILES}
- User Intent Summary: {INTENT_SUMMARY}
Key Tool Instructions:
- Use the Skill tool to call /doc-smith-images to generate images (Step 5.5)
- Use the Skill tool to call /doc-smith-check to validate documents (Step 7)
Completion Checklist (must confirm each item before returning the summary):
□ Step 5 Image Usage: Image references have been added to the document as needed
□ Step 5.5 Image Generation: All /assets/{key}/images/ references have been scanned and processed
□ Step 6.5 HTML Build: build.mjs --doc has been executed and HTML generation confirmed
□ Step 7 Validation: /doc-smith-check --content --path {docPath} has been called{CONTENT_MD_PATH}references/content.md{WORKSPACE_PATH}.aigne/doc-smith{docPath}/overview{LINKABLE_DOCS}{MEDIA_FILES}{INTENT_SUMMARY}dist/dist/cd .aigne/doc-smith && git add . && git commit -m "docsmith: xxx"cd .aigne/doc-smith && git add . && git commit -m "docsmith: xxx"文档已生成完毕,可使用将文档发布到线上预览。/doc-smith-publish
Documentation generation is complete. You can useto publish the documentation for online preview./doc-smith-publish
.aigne/doc-smith/
├── config.yaml
├── intent/user-intent.md
├── planning/document-structure.yaml
├── docs/{path}/.meta.yaml
├── dist/
│ ├── index.html
│ ├── {lang}/docs/{path}.html
│ └── assets/nav.js, docsmith.css, theme.css
├── assets/{key}/.meta.yaml, images/{lang}.png
├── glossary.yaml # 可选
└── cache/translation-cache.yaml # 发布用.aigne/doc-smith/
├── config.yaml
├── intent/user-intent.md
├── planning/document-structure.yaml
├── docs/{path}/.meta.yaml
├── dist/
│ ├── index.html
│ ├── {lang}/docs/{path}.html
│ └── assets/nav.js, docsmith.css, theme.css
├── assets/{key}/.meta.yaml, images/{lang}.png
├── glossary.yaml # Optional
└── cache/translation-cache.yaml # For publishing