Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Add SDK reference documentation for contributors

Sushmithamallesh85625c38a755
diff --git a/fumadocs/CLAUDE.md b/fumadocs/CLAUDE.md
index 0b6b92ea7..a6bd9a64b 100644
--- a/fumadocs/CLAUDE.md
+++ b/fumadocs/CLAUDE.md
@@ -16,6 +16,16 @@ This is the Composio documentation site built with Fumadocs (Next.js-based docs
- `--font-sans: 'Inter'` - Body text
- `--font-mono: 'IBM Plex Mono'` - Code blocks
+## SDK Reference Docs
+Auto-generated TypeScript SDK documentation from `@composio/core` source code.
+
+- **Source**: `ts/packages/core/src/models/*.ts` (JSDoc comments)
+- **Generator**: `ts/packages/core/scripts/generate-docs.ts`
+- **Output**: `content/reference/sdk-reference/typescript/`
+- **Regenerate**: `pnpm --filter @composio/core generate:docs`
+
+CI auto-generates on changes to `ts/packages/core/src/**` via `.github/workflows/generate-sdk-docs.yml`.
+
## Common Gotchas
1. **CSS variables**: Use `var(--composio-orange)` not `var(--orange)`. Check `global.css` for defined variables.
2. **Date format**: Changelog dates must be YYYY-MM-DD format (validated in schema and runtime)
diff --git a/ts/packages/core/scripts/README.md b/ts/packages/core/scripts/README.md
new file mode 100644
index 000000000..9b92649af
--- /dev/null
+++ b/ts/packages/core/scripts/README.md
@@ -0,0 +1,25 @@
+# SDK Documentation Generator
+
+Generates MDX reference docs from TypeScript source using TypeDoc.
+
+## Usage
+
+```bash
+pnpm generate:docs
+```
+
+## How it works
+
+1. TypeDoc extracts JSDoc from `src/models/*.ts` → JSON AST
+2. `generate-docs.ts` transforms AST → MDX files
+3. Output written to `fumadocs/content/reference/sdk-reference/typescript/`
+
+## Configuration
+
+- **Entry points**: Auto-discovered from `src/models/*.ts`
+- **Excluded classes**: `INTERNAL_CLASSES` set in script
+- **User-instantiated classes**: `USER_INSTANTIATED_CLASSES` (shows constructor)
+
+## CI
+
+`.github/workflows/generate-sdk-docs.yml` triggers on changes to `ts/packages/core/src/**` and opens a PR with updated docs.