Skill站外收录 @skilllib/skill-2117939930272416749
updating-noridocs
根据代码变更自动生成并更新系统文档,确保各模块的架构设计、交互关系与实现逻辑得到准确记录,通过子代理完成文档同步后验证其完整性,适用于代码演进过程中的知识沉淀与团队协作维护。
文档处理 AI 技能
Skills.MD
# Updating Noridocs
## Overview
Noridocs are docs.md files throughout the codebase that document each folder's purpose, architecture, and implementation. Update them after code changes using the nori-change-documenter subagent.
**Core principle:** Provide context → Dispatch subagent → Verify updates.
**Announce at start:** "I'm using the Updating Noridocs skill to update documentation."
## The Process
### Step 1: Gather Context
**Prepare information for the subagent:**
- [ ] What changed? (feature added, bug fixed, refactor, etc.)
- [ ] Why was it changed? (motivation, problem being solved)
- [ ] Which folders/files were modified?
- [ ] Any architectural changes or new patterns?
### Step 2: Dispatch nori-change-documenter Subagent
**Use Task tool with nori-change-documenter type:**
```bash
Task(subagent_type: nori-change-documenter)
```
**In the prompt, provide:**
- Clear description of what changed and why
- File paths that were modified
- Relevant context from PR/commits
- Any architectural implications
- Any out of date documentation that you noticed that is not directly related to your change
### Step 3: Verify Updates
**Check that documentation was updated:**
- [ ] Run `git status` to see which docs.md files changed
- [ ] Review the diffs to ensure updates are accurate
- [ ] Verify updates focus on system architecture, not minutiae
### Step 4: Sync Remote docs.md Files
- Check if the 'nori-sync-docs' skill exists at `{{skills_dir}}/nori-sync-docs/SKILL.md`.
- If it does not exist, skip this step.
- Ask the user if they want to sync all docs.md files to the remote server.
- If the user declines, skip this step.
- Read and follow `{{skills_dir}}/nori-sync-docs/SKILL.md` to sync all noridocs to the remote server.
## Noridocs Format
Each docs.md follows this structure:
```
# Noridoc: [Folder Name]
Path: [Path to the folder from the repository root. Always start with @. For
example, @/src/endpoints or @/docs ]
### Overview
[2-3 bullet summary of the folder]
### How it fits into the larger codebase
[2-10 bullet description of how the folder interacts with and fits into other
parts of the codebase. Focus on system invariants, architecture, internal
depenencies, places that call into this folder, and places that this folder
calls out to]
### Core Implementation
[2-10 bullet description of entry points, data paths, key architectural
details, state management]
### Things to Know
[2-10 bullet description of tricky implementation details, system invariants,
or likely error surfaces]
Created and maintained by Nori.
```
Noridocs should NOT list files, maintain counts, or track line numbers. These
are brittle documentation patterns that will break very quickly.
## Common Mistakes
**Providing vague context**
- **Problem:** Subagent can't understand what changed
- **Fix:** Be specific about what/why/where
**Skipping verification**
- **Problem:** Inaccurate or missing documentation updates
- **Fix:** Always check git diff after subagent runs
**Documenting trivial changes**
- **Problem:** Noise in documentation, wasted effort
- **Fix:** Only update docs for significant architectural changes
## Red Flags
**Never:**
- Skip providing context to the subagent
- Assume docs were updated without verifying
- Update docs manually instead of using the subagent
**Always:**
- Provide detailed context about what changed and why
- Verify the subagent updated appropriate docs.md files
- Focus on architectural/system-level changes
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「updating-noridocs」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次