Document Sync logo

Document Sync

Organization
devcodex-labs
document-sync

文档同步规范 — 代码变更后同步必查与条件文档

Overview

Publisherdevcodex-labs
Repositorydevcodex
Skill namedocument-sync
Stars
433
Forks
44
Bundled files
1
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by devcodex-labs on GitHub. Read the source before you install it.

Installation

Install the Document Sync AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/devcodex-labs/devcodex/tree/main/content/skills/document-sync
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/devcodex-labs/devcodex.git /tmp/devcodex
mkdir -p .claude/skills
cp -r /tmp/devcodex/content/skills/document-sync .claude/skills/document-sync
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Document Sync in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Document Sync on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Document Sync is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Document Sync Skill

职责

在 dev/fix 工作流执行完成后,确保以下核心文档与代码变更保持同步:

文档同步级别同步内容
changelogs/unreleased.md🔴 必查用户未明确要求发版时的未发布实现变更记录
changelogs/README.md🟡 条件changelog 目录结构或发布归档路径变化时同步说明
CHANGELOG.md🟡 条件仅正式发版时更新已发布版本索引
README.md🔴 必查安装/使用/API 说明与代码一致
05-实施进度.md🟡 条件多批次、预计 ≥10 文件、跨轮次、阻塞或用户要求持续跟踪的任务必须更新当前批次状态
.env.example🟡 条件用户 / 项目明确选择共享环境变量方案,或已有共享环境变量发生新增/修改/删除时同步更新示例文件;未指定 env 时不得主动把明文或硬编码改成 .env.example、.env.local、.env.test.local、*Env、secretRef 或 secret manager
.devcodex/profile/README.md / 01-项目信息.md / 02-架构约束.md / 03-代码风格.md🟡 条件命中 ProfileImpactCheck 时同步;包括技术栈、框架/SDK、依赖管理、目录/模块边界、脚本/测试/发布路线、分发面、配置项、长期连接、config.local.json schema 或当前阶段变化
RULES.md🟡 条件当入口路由、工作流说明、当前可用状态或使用方式变更时同步
website/docs/guide/*.md🟡 条件当面向使用者的流程指南变更时同步(audience=public-user)
website/docs/**/contributing* / docs/dev/** / maintainer 分区🟡 条件当维护者开发/贡献/发版文档变更时同步(audience=maintainer-dev)
website/docs/specs/*.md🟡 条件当永久规范页中的当前行为、流程图、规则说明变更时同步
website sidebar/nav / README 索引 / 目录页🟡 条件当正文定义阅读顺序、审查顺序、实施顺序或“先看什么”时,同批校验导航、sidebar 与索引页是否按同一顺序呈现;跨受众导航变更须两边各验
DocsConsumerSweep🟡 条件文档新增/调整命令、配置项、字段、状态、路径、能力承诺、阅读顺序或用户路径时,扫描 README / website / Profile / prompts / templates / examples / nav/sidebar / validate probes / 部署副本与代码消费位置
website/docs/versions/v1/<active-version>/requirements/**🟡 条件当正式需求入口、模板职责边界或活动版本 requirement 口径变更时同步
TASK-INDEX.md🟡 条件项目存在任务索引时更新任务状态
STATUS.md🟡 条件项目存在状态看板时同步当前版本状态/功能完成度

触发时机

所有 dev/fix 工作流在执行阶段完成后自动触发文档同步检查。

audience-aware consumerMap

建立或更新 Concept Sync Map / consumerMap 时,每项建议带:

字段说明
audiencepublic-user | maintainer-dev | shared
docsSurfaceguide/readme/reference/maintainer/…(可选)
path消费者路径
  • 用户站变更默认扫描 public-user 消费者(README 主路径、guide、用户向 examples)。
  • 维护者站变更默认扫描 maintainer-dev 消费者(CONTRIBUTING、dev 分区、发版 runbook)。
  • shared(如版本号)两边都可列,但不得用维护者 checklist 覆盖用户主路径同步结论。

执行流程

步骤动作
1读取本次变更内容(diff 或变更摘要),必要时先建立 Concept Sync Map(含 audience)
2区分当前消费者与历史镜像,确认本轮必须同步的当前文档与可保留的历史归档
3逐一检查必查文档,并确认条件文档是否存在/启用
4更新需要同步的文档
5确认文档与代码一致(版本号/API/配置项)

文档即产品仓库的附加检查

当仓库自身以 profile、规则页和文档站作为正式产品入口时,除通用必查项外,还应补查:

  • profile 真相源:.devcodex/profile/01-项目信息.md / 02-架构约束.md
  • 入口说明:RULES.md
  • 使用者指南:website/docs/guide/*.md
  • 永久规范页:website/docs/specs/*.md
  • 当前活跃版本 requirement:website/docs/versions/v1/<active-version>/requirements/**

当前消费者 vs 历史镜像

  • 当前消费者:仍以“当前行为”口吻描述现状,或会被 validate / 部署副本 / 模板继续消费;本轮必须同步。
  • 历史镜像:只保留基线、归档或历史阶段事实;只有明确标注历史性质时,才允许暂不改动。
  • 控制面任务建议先调用 source-consumer-sync,把 Concept Sync Map 写清后再执行文档同步。
  • README 作为当前用户入口发生变化时,由 readme-authoring 收口写作路径;需要专项复审时联动 audit-readme,不得用通用文档同步检查替代其用户路径与消费链证据。

同步规则

未明确发版时(默认):

markdown
## YYYY-MM-DD
- **[主题]** 未发布变更摘要
  • 每完成一个已验证的语义变更批次,默认更新 changelogs/unreleased.md
  • 在完成上述记录后,默认建议执行本地 commit 作为回滚锚点,但不默认 push
  • commit 不按“问题个数”切分,遵循 01-common 的语义批次提交边界

正式发版时:

  1. 先将 changelogs/unreleased.md 中待发布条目归档到 changelogs/releases/vX.Y.Z.md
  2. 再更新根 CHANGELOG.md

CHANGELOG.md 格式:

markdown
## [版本号] - YYYY-MM-DD
### Added / Changed / Fixed / Breaking Changes
- 变更描述

README.md 检查点:

  • 版本号标注
  • 安装步骤(依赖版本)
  • API 示例代码(与实现匹配)
  • 配置项说明(完整且准确)
  • 目标用户 / 使用者是否明确
  • 快速开始与常见用法是否仍能形成最短成功路径
  • 开发 / 贡献信息是否仍后置,没有抢占主叙事

DevCodex 类仓库检查点:

  • 读取 ../spec-governance/gate-registry.json,按本次适用 gateGroup 建立 Concept Sync Map;具体 Gate 字段和验证路线由 registry 指向的 Owner Skill 定义。
  • 核对规范真相源、Owner Skill、Prompt/template、TestRoute/report schema、validate/targeted tests、README/website/Profile/changelog、plugin/portfolio 与部署副本。
  • README、用户手册和站点文档继续验证首次成功路径、受众、导航/正文顺序、配置/错误/恢复以及维护者内容边界。
  • Profile、runtime、宿主、package/release、用户文档、外部消费者、派生消费者或多批次证据发生变化时,按适用 Owner 追加专属证据,不在本文件复制版本专属 Gate 总表。
  • 历史 Vxx、CrossProject 与 A1~A10 名称只通过 registry legacyAnchors 检索;找不到等强度承接方时标记 legacy-index-retained,不得直接删除或继续扩展长清单。
  • 文档定义阅读/审查/实施顺序时,Concept Sync Map 必须对账正文、导航/sidebar 与 README/索引顺序;故意不同须说明理由。
  • 宿主契约和多批次任务分别保留 HostContractRoute 证据与最新 05-实施进度.md。
  • 用户可见输出契约变化时,把 ArtifactDeliveryManifestV1 → UserFacingArtifactSetV1 → PostCompletionActionSetV1 → EntryCheckModelV3 → DevCodexVisibleEnvelopeV3 → ArtifactDeliveryResolver → HostLinkCapabilityDecisionV2 + ArtifactDeliveryAttemptV1 同步到 instructions、report/memory/compliance/TestRoute、precheck/progress/delivery/report prompts、visible Hook、README、website、Profile、plugin/portfolio、package 与 validate probes;DevCodexVisibleEnvelopeV1/V2 与 LinkCapabilityDecisionV1 保留给兼容读取。历史归档可保留旧表述,但当前消费者不得按宿主名、renderer label 推定可点击/已打开,强制单一路径表示或把 internal-only 文件默认列给用户。

ProfileImpactCheck

dev/fix 执行完成后必须显式判定 ProfileImpactCheck:

触发项同步目标证据
技术栈、框架、SDK、依赖管理器变化01-项目信息.md 技术栈 / 依赖 / 验证路线diff + report
目录结构、模块边界、分发面、宿主能力变化02-架构约束.md 目录 / 模块职责 / 分发边界diff + ConceptSyncMap
代码风格、脚本、测试、构建、发布命令变化03-代码风格.md 或 01-项目信息.mdpackage/script diff + TestRoute
共享配置、环境变量、长期连接、config.local.json schema 或 extensions.<namespace> 变化Profile README / 01-项目信息.md / config 说明config diff + S02 用户 / 项目策略检查
当前阶段、活跃版本、任务现实、发布状态变化01-项目信息.md 当前开发重点release / task report
  • 若无需同步,报告必须写 ProfileImpactCheck: N/A 与 skipReason,例如“仅修正文案 typo,不影响技术栈/目录/配置/验证路线”。
  • Profile Freshness Check 是 audit 的事后审查;不能替代 dev/fix 中的 ProfileImpactCheck 主动判定。

豁免

  • dev-docs 子类型(文档本身就是产物,不触发文档同步)
  • analyze / audit 工作流(只读,不触发)
  • chat 意图(豁免所有后置处理)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Document Sync AI skill do?

文档同步规范 — 代码变更后同步必查与条件文档

Why use Document Sync on TypingMind?

Because you install it once and use it with any model. Document Sync is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Document Sync in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/devcodex-labs/devcodex/tree/main/content/skills/document-sync. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Document Sync?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Document Sync?

As many as you like. As long as a model supports skills, you can use Document Sync with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Document Sync AI skill free?

Yes. It is published on GitHub by devcodex-labs under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇