Update Docs Command
Description
When the user runs `/update-docs [module] [doc_type] [include_examples]`, execute the following:
Installation
claude install-skill https://github.com/ruvnet/QuDAG README
Update Docs Command
When the user runs `/update-docs [module] [doc_type] [include_examples]`, execute the following:
Parameters
- undefined
Execution Steps
Step 1: Analyze Module and Documentation Needs
- undefined
Step 2: Generate Documentation Based on Type
For API Documentation:
Create or update `docs/${module}/api.md`:
# ${module_name} API Documentation
## Overview
${module_description}
## Core Types
### Primary Structures
```rust
// Document main types with their purposes
pub struct ${TypeName} {
// Document each field's purpose and constraints
}
impl ${TypeName} {
// Document key methods
}
Traits and Interfaces
pub trait ${TraitName} {
// Document trait purpose and implementors
}
Public API Reference
Initialization Functions
/// Creates a new instance of ${module}
///
/// # Arguments
/// * `config` - Configuration parameters for initialization
///
/// # Returns
/// * `Result<${Module}, ${Error}>` - Initialized module or error
///
/// # Example
/// ```rust
/// let config = Config::default();
/// let module = ${Module}::new(config)?;
/// ```
pub fn new(config: Config) -> Result<${Module}, ${Error}>
Core Operations
[Document each public function with rustdoc format]
Usage Examples
Basic Usage
use qudag_${module}::*;
// Example: ${common_use_case}
fn example_basic_usage() -> Result<(), Error> {
let module = ${Module}::new(Config::default())?;
// Perform operations
let result = module.operation()?;
Ok(())
}
Advanced Patterns
// Example: ${advanced_use_case}
async fn example_advanced_usage() -> Result<(), Error> {
// Show complex integration patterns
}
Error Handling
Error Types
- undefined
Recovery Strategies
match module.operation() {
Ok(result) => process_result(result),
Err(${Error}::InvalidInput(e)) => {
// Handle validation errors
},
Err(${Error}::OperationFailed(e)) => {
// Retry or fallback logic
},
Err(e) => {
// Generic error handling
}
}
Performance Considerations
Time Complexity
- undefined
Related Skills
next.js
| The React Framework | 138360 | 1503 | 1 |
Development community sharing-skills
skill for guidance.
Development community root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development community Template Skill
Minimal skeleton for a new skill project structure.
Development community Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THIS PRODUCT. ---
Development official Claude API
When code imports anthropic/@anthropic-ai/sdk/claude_agent_sdk, or user asks to use Claude APIBuild apps with the Claude API or Anthropic SDK
Development official Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Key exports from each phase
for summary in .planning/phases/*/*-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null done