update-docs
Updates project documentation by analyzing source code structure and dependencies.
Install
mkdir -p .claude/skills/update-docs-watany-dev && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12360" && unzip -o skill.zip -d .claude/skills/update-docs-watany-dev && rm skill.zipInstalls to .claude/skills/update-docs-watany-dev
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Lecsのドキュメント(設計書・要件定義書・README等)を一括で最新化するスキルKey capabilities
- →Read Rust source code to understand project structure
- →Identify changes in module composition and function signatures
- →Update design documents with structural changes
- →Synchronize requirements documents with implementation status
- →Verify consistency across all documentation files
How it works
The skill reads Rust source code and project configuration, then compares it against existing documentation to identify and update discrepancies.
Inputs & outputs
When to use update-docs
- →Syncing README with CLI commands
- →Updating design documents from code
- →Verifying dependency consistency
About this skill
update-docs
ソースコードの現状に基づき、すべてのドキュメントを一括で最新化するスキル。
Phase 1: ソースコードの現状把握
src/配下のRustソースコードを読み込むsrc/main.rs— エントリポイントsrc/cli/— CLIコマンド定義src/taskdef/— タスク定義パーサ・型src/docker/— Docker APIクライアントsrc/orchestrator/— コンテナライフサイクル管理src/metadata/— メタデータエンドポイントsrc/credentials/— クレデンシャルプロバイダsrc/secrets/— シークレットリゾルバ
Cargo.tomlの依存クレート一覧を確認する- 公開API・構造体・トレイトの一覧を把握する
Phase 2: 各ドキュメントの更新
2-1. 設計書 (docs/design/<feature>.md)
- 各設計書の内容をソースコードと照合する
- 以下を更新する:
- モジュール構成の変更
- 構造体・トレイトの追加・変更・削除
- 関数シグネチャの変更
- 依存クレートの変更
- 設計書が存在しない新機能がある場合、設計書の新規作成を提案する
2-2. 要件定義書 (docs/requirements.md)
- 現在の実装状況に基づき、要件の達成状況を更新する
- 新たに実装された要件を追加する
- 未実装の要件を明記する
2-3. ロードマップ (docs/ROADMAP.md)
- 完了した機能を更新する
- 進行中の機能のステータスを更新する
- 新たに計画された機能を追加する
Phase 3: README.md の更新
- プロジェクト概要が最新か確認する
- インストール・ビルド手順を確認する
cargo/makeコマンドが正しいかCargo.tomlとの整合性を確認する
- 使用方法・CLIコマンドの説明を確認する
src/cli/の実装と一致しているか
- アーキテクチャ図・モジュール構成が最新か確認する
src/main.rsのモジュール宣言と一致しているか
Phase 4: 一貫性チェック
すべてのドキュメント間で以下の一貫性を確認する:
- モジュール名・構造体名の統一
- すべてのドキュメントで同じ名前を使用しているか
- コマンド参照の統一
cargo/makeコマンドが正しく参照されているかbun/npm等の他言語コマンドが残っていないか
- ファイルパス参照の統一
src/cli/,src/main.rs等のパスが正しいか- 存在しないファイルへの参照がないか
- 依存クレート情報の統一
Cargo.tomlに記載されたクレートとドキュメントの記載が一致しているか
use文の検証- ドキュメント中のコード例で使用されている
use文が実際のクレート構成と一致しているか
- ドキュメント中のコード例で使用されている
Phase 5: 更新レポートの出力
以下の形式で更新内容をレポートする:
## ドキュメント更新レポート
### 更新したドキュメント
| ファイル | 更新内容 |
|---------|---------|
| docs/design/xxx.md | [変更概要] |
| README.md | [変更概要] |
| ... | ... |
### 新規作成を提案するドキュメント
- [ファイル名]: [理由]
### 検出した不整合
- [不整合の詳細]
記述ルール
- コード例はRustで記述すること
- README.mdは英語で記述すること
- 開発ドキュメント(設計書・要件定義書)は日本語で記述すること
- 構造体名・関数名はRustの命名規則(snake_case / PascalCase)に従うこと
When not to use it
- →When the project is not written in Rust
- →When documentation is not in Markdown format
- →When not needing to update design documents, requirements, or README
Limitations
- →Limited to Rust source code analysis
- →Requires documentation files to be in specific paths and formats
- →Requires `Cargo.toml` for dependency information
How it compares
This automates the synchronization of various documentation types with the actual codebase, unlike manual updates which can lead to inconsistencies.
Compared to similar skills
update-docs side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| update-docs (this skill) | 0 | 4mo | No flags | Intermediate |
| write-documentation | 1 | 29d | Review | Intermediate |
| rust-docs-guidelines | 7 | 5mo | No flags | Beginner |
| documenting-rust-code | 1 | 2mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
write-documentation
r3bl-org
Write and format Rust documentation correctly. Apply proactively when writing code with rustdoc comments (//! or ///). Covers voice & tone, prose style (opening lines, explicit subjects, verb tense), structure (inverted pyramid), intra-doc links (crate:: paths, reference-style), constant conventions (binary/byte literal/decimal), and formatting (cargo rustdoc-fmt). Also use retroactively via /fix-intradoc-links, /fix-comments, or /fix-md-tables commands.
rust-docs-guidelines
RediSearch
Guidelines for writing Rust documentation
documenting-rust-code
hashintel
Rust documentation practices for HASH codebase. Use when writing doc comments, documenting functions/types/traits/modules, creating error sections, using intra-doc links, or following rustdoc conventions.
review-rust-docs
RediSearch
Review the documentation of a Rust crate to ensure it meets our requirements and standards.
doc-cli-usage
BA-CalderonMorales
Use the Rust-based documentation CLI for common tasks.
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.