xiaohongshu
xiaohongshu
doc-syncer
代码变更后自动同步开发文档。支持功能文档、技术设计、决策记录的智能更新。当用户提到更新文档、同步文档、完成功能、修改数据结构或新增KPI时激活。
Full skill instructions
本 skill 会在以下情况下自动激活:
"更新文档" / "同步文档""完成了数据导入功能" / "实现了KPI看板""修改了数据结构" / "新增了KPI字段""重构了计算逻辑" / "调整了API接口"用户: "我完成了多周导入功能,请更新相关文档"
Claude (使用 doc-syncer skill):
1. 分析变更范围 → 识别到 F010_multi_week_import
2. 读取现有文档 → F010/README.md
3. 执行精准更新 → 更新技术实现和代码示例
4. 自动验证质量 → 检查链接、版本号、一致性
5. 报告完成状态 → 显示更新摘要
解决六大文档管理痛点:
目标: 自动识别代码变更并确定需要更新的文档
操作:
输出示例:
📊 变更分析结果:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
检测到: KPI计算逻辑变更 (src/domain/rules/kpi-calculator.ts)
需要更新的文档:
✅ 必须更新 (P0):
• 开发文档/03_technical_design/core_calculations.md
⚠️ 建议检查 (P1):
• 开发文档/01_features/F002_kpi_dashboard/README.md
📋 更新计划:
1. 更新KPI公式描述
2. 同步代码示例
3. 验证文档链接
是否继续执行? (输入 "yes" 或提出修改建议)
原则: 最小化读取,只获取必要的上下文
策略:
反模式(避免):
核心原则: 修改优于创建,局部优于全局
需要更新文档?
├─ 文档已存在?
│ ├─ 是 → 使用 Edit 工具(精准修改)
│ │ ├─ 只修改变更的章节
│ │ ├─ 保持现有结构
│ │ └─ 标注更新时间
│ │
│ └─ 否 → 检查是否真的需要新文档
│ ├─ 能合并到现有文档? → 使用 Edit 添加章节
│ └─ 必须新建? → 使用模板创建 (参考 templates.md)
│
└─ 否 → 跳过更新
必须遵守:
禁止:
验证清单 (参考 quality-check.md):
用户输入:
"我完成了多维雷达图功能,代码在 src/components/features/multi-dimension-radar.tsx"
Skill 执行流程:
sync-rules.md 识别出对应文档应为 F009/README.mddoc-registry.md 确认 F009 是否存在src/components/features/multi-dimension-radar.tsx 提取关键逻辑F009/README.md 的"技术实现"章节quality-check.md 中的检查项xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience