Tooluck logoTooluck
SKILL.md

code-documentation

Agent skill fromMoizIbnYousaf/ai-agent-skills

Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.

How to install code-documentation

install code-documentation
# install the ai-agent-skills pack with the skills CLI
npx skills add MoizIbnYousaf/ai-agent-skills

# or add only this skill to Claude Code: copy the folder

skills/code-documentation/

# into

~/.claude/skills/code-documentation/ (all projects)

.claude/skills/code-documentation/ (one project)

skills/code-documentation/SKILL.md

MITFull file
1# Code Documentation
2
3## README Structure
4
5### Standard README Template
6```markdown
7# Project Name
8
9Brief description of what this project does.
10
11## Quick Start
12
13\`\`\`bash
14npm install
15npm run dev
16\`\`\`
17
18## Installation
19
20Detailed installation instructions...
21
22## Usage
23
24\`\`\`typescript
25import { something } from 'project';
26
27// Example usage
28const result = something.doThing();
29\`\`\`
30
31## API Reference
32
33### `functionName(param: Type): ReturnType`
34
35Description of what the function does.
36
37**Parameters:**
38- `param` - Description of parameter
39
40**Returns:** Description of return value
41
42**Example:**
43\`\`\`typescript
44const result = functionName('value');
45\`\`\`
46
47## Configuration
48
49| Option | Type | Default | Description |
50|--------|------|---------|-------------|
51| `option1` | `string` | `'default'` | What it does |
52
53## Contributing
54
55How to contribute...
56
57## License
58
59MIT
60```
61
62## API Documentation
63
64### JSDoc/TSDoc Style
65```typescript
66/**
67 * Creates a new user account.
68 *
69 * @param userData - The user data for account creation
70 * @param options - Optional configuration
71 * @returns The created user object
72 * @throws {ValidationError} If email is invalid
73 * @example
74 * ```ts
75 * const user = await createUser({
76 * email: 'user@example.com',
77 * name: 'John'
78 * });
79 * ```
80 */
81async function createUser(
82 userData: UserInput,
83 options?: CreateOptions
84): Promise<User> {
85 // Implementation
86}
87
88/**
89 * Configuration options for the API client.
90 */
91interface ClientConfig {
92…

Excerpt shown under the repository's MIT license.

More skills in ai-agent-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates