From nickcrew-claude-ctx-plugin
Creates exhaustive, searchable reference documentation for APIs (REST, GraphQL, gRPC), configurations, CLIs, schemas, and technical specs. Use for definitive docs from code sources.
npx claudepluginhub nickcrew/claude-cortexThis skill uses the workspace's default tool permissions.
Create exhaustive, searchable, and precisely organized technical reference documentation
Generates exhaustive technical references and API documentation including parameter listings, configuration guides, schema docs, examples, and edge cases. Use for API docs, configs, or specs.
Generates exhaustive technical references, API documentation, parameter listings, configuration guides, and searchable materials for any project.
Provides templates and patterns for API and symbol reference docs using scannable tables for parameters/returns, runnable examples, and consistent structure. Triggers on reference docs, API reference, parameters table.
Share bugs, ideas, or general feedback.
Create exhaustive, searchable, and precisely organized technical reference documentation that serves as the definitive source of truth for APIs, configurations, and system interfaces.
| Resource | Purpose | Load when |
|---|---|---|
references/documentation-patterns.md | API doc structure, glossary patterns, cross-referencing, versioned docs, parameter tables, configuration guides | Structuring any reference document |
Phase 1: Inventory → Catalog all public interfaces, parameters, and constraints
Phase 2: Author → Draft structured entries with examples and cross-links
Phase 3: Verify → Validate against implementation and tests
Phase 4: Organize → Structure for optimal retrieval and searchability
Phase 5: Maintain → Version tracking, deprecation, and update cadence
Enumerate everything that needs documentation before writing anything.
Every documented item uses a consistent structure:
### methodName
**Type**: `(param1: string, param2?: number) => Promise<Result>`
**Since**: v2.1.0
**Deprecated**: No
**Description**:
Brief explanation of purpose and behavior.
**Parameters**:
| Name | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `param1` | `string` | Yes | — | What this parameter controls |
| `param2` | `number` | No | `10` | What this parameter controls |
**Returns**: `Promise<Result>` — description of return value
**Throws**:
- `ValidationError` — when param1 is empty
- `TimeoutError` — when operation exceeds 30s
**Examples**:
Basic usage:
\`\`\`typescript
const result = await methodName("value");
\`\`\`
With options:
\`\`\`typescript
const result = await methodName("value", 20);
\`\`\`
**See Also**: [relatedMethod](#relatedmethod), [Configuration Guide](#configuration)
| What to verify | How |
|---|---|
| Method signatures | Compare against source code type definitions |
| Default values | Check source code initializers |
| Error conditions | Read implementation and test assertions |
| Examples | Run them or trace them against the code |
| Deprecated items | Check for deprecation markers in source |
1. Overview — What this API/system does, quick orientation
2. Quick Reference — Cheat sheet of common operations with examples
3. Authentication — How to authenticate (if applicable)
4. Detailed Reference — Complete documentation, grouped logically
5. Error Reference — All error codes with causes and fixes
6. Glossary — Terms specific to this system
7. Changelog — What changed in each version
**Since**: v2.1.0)**Deprecated**: v3.0 — use newMethod instead)Reference documentation must be updated when:
Always use tables for parameters — never inline lists:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
timeout | number | No | 30000 | Request timeout in milliseconds |
retries | number | No | 3 | Number of retry attempts |
| Code | Name | Description | Resolution |
|---|---|---|---|
400 | Bad Request | Invalid input parameters | Check request body against schema |
401 | Unauthorized | Missing or invalid auth token | Re-authenticate and retry |
429 | Rate Limited | Too many requests | Back off and retry after Retry-After header |
# config.yaml
server:
port: 3000 # Port to listen on (1024-65535)
host: "0.0.0.0" # Bind address
timeout: 30000 # Request timeout in ms
max_body_size: "1mb" # Maximum request body size