Komut#cc-toolkit
0
Doc gen
Belirtilen kapsam için kod tabanından belgeler oluşturun.
yazan kuscubasiece·8 Eylül 2026
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
Belirtilen kapsam için kod tabanından belgeler oluşturun.
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/doc-gen/raw -o .claude/commands/doc-gen.mdHedef dosya: .claude/commands/doc-gen.md
Generate documentation from the codebase for the specified scope.
For each public function/method:
### functionName(param1: Type, param2: Type): ReturnType
Brief description of what it does.
**Parameters:**
- `param1` - Description and constraints.
- `param2` - Description and defaults.
**Returns:** Description of return value.
**Throws:** Error conditions.
**Example:**
```code
const result = functionName("value", { option: true });
### 4. Generate README Sections
- **Installation**: How to install and configure.
- **Quick Start**: Minimal example to get started.
- **Configuration**: Available options with defaults.
- **API Reference**: Link to or inline the API docs.
### 5. Add Inline Documentation
For complex logic (non-obvious algorithms, business rules, workarounds):
- Add a brief comment explaining **why**, not what.
- Document preconditions and postconditions for critical functions.
- Note any gotchas or non-obvious behavior.
## Rules
- Document behavior, not implementation. Describe what a function does, not how.
- Use concrete examples, not abstract descriptions.
- Keep docs close to code: inline comments for complex logic, JSDoc/docstrings for public APIs.
- Do not document obvious code (getters, setters, simple wrappers).
- If a function is too complex to document clearly, that is a signal to refactor it.
- Update existing documentation rather than creating duplicate files.