architect
Architectural design session - analyze requirements, propose architecture, create design docs
Generate documentation (API docs, READMEs, guides)
$ npx -y skills add cloudai-x/opencode-workflow --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/docsContext preview
What this command does when you run it.
Generate documentation (API docs, READMEs, guides)
description: Generate documentation (API docs, READMEs, guides) agent: docs-writer subtask: true
Generate comprehensive documentation using the docs-writer subagent. Creates API documentation, READMEs, and developer guides.
Determine documentation needs:
1. If `$ARGUMENTS` specifies type (api, readme, guide), focus on that 2. Otherwise, analyze project to identify documentation gaps:
Collect information for documentation:
# API Reference
## Module: [module_name]
### `functionName(param1, param2)`
Brief description of what this function does.
**Parameters:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| param1 | string | Yes | Description |
| param2 | Options | No | Configuration options |
**Returns:** `ReturnType` - Description of return value
**Throws:**
- `ErrorType` - When condition occurs
**Example:**
\`\`\`typescript
const result = functionName('value', { option: true });
\`\`\`
**See Also:** [Related Function](#related)# Project Name
Brief description of what this project does.
## Features
- Feature 1
- Feature 2
## Installation
\`\`\`bash
npm install package-name
\`\`\`
## Quick Start
\`\`\`typescript
import { something } from 'package-name';
// Basic usage example
\`\`\`
## Configuration
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| option1 | string | 'default' | What it does |
## API Reference
[Link to full API docs]
## Contributing
[Contributing guidelines]
## License
[License info]# How to [Accomplish Task] ## Overview What this guide covers and who it's for. ## Prerequisites - Requirement 1 - Requirement 2 ## Step 1: [First Step] Detailed instructions... \`\`\`bash # Example command \`\`\` ## Step 2: [Second Step] ... ## Troubleshooting ### Common Issue 1 Solution... ### Common Issue 2 Solution... ## Next Steps - [Related Guide 1] - [Related Guide 2]
Before outputting documentation:
1. **Accuracy**: Verify code examples compile/run 2. **Completeness**: All public APIs documented 3. **Consistency**: Terminology and formatting uniform 4. **Freshness**: No references to deprecated features
Present documentation with:
Documentation Generated ======================= Type: [API / README / Guide] Target: [file or feature] [Generated documentation content] --- Suggestions: - [Additional documentation that might be helpful] - [Related updates needed]
/docs api src/auth/ /docs readme /docs guide "setting up development environment" /docs src/utils/helpers.ts
1. **Be concise** - Developers skim documentation 2. **Show, don't tell** - Include code examples 3. **Progressive disclosure** - Simple first, details later 4. **Keep updated** - Outdated docs are worse than none 5. **Consider the audience** - Adjust technical depth
A universal OpenCode workflow setup with specialized agents, skills, commands, and plugins for any software project.
Architectural design session - analyze requirements, propose architecture, create design docs
Learning and teaching mode - explains decisions, provides context, educational approach
Demonstrate parallel execution by launching multiple agents simultaneously