integration-generator
БесплатноБез исполняемых скриптовНе проверенGenerate new OAuth integration providers for Dafthunk with backend providers, type definitions, frontend configurations, and integration nodes
Об этом скилле
Integration Generator
Generate OAuth integration providers for Dafthunk: research provider APIs, create backend OAuth provider, add type definitions, configure frontend, and optionally create integration nodes.
Step 1: Research Provider and Register OAuth App
Research the OAuth flow:
- Use WebSearch/WebFetch to find official OAuth documentation
- Look for "OAuth 2.0", "Developer Apps", or "API Authentication" sections
- Identify authorization, token, and user info endpoints
- Note required scopes and token format (refresh support, expiration)
- Check token response structure and user info fields
Register OAuth application:
- Create a developer account on the provider's platform
- Register a new OAuth application/client
- Set redirect URI to:
http://localhost:3001/oauth/{provider-id}/connect(dev) - Note the generated Client ID and Client Secret
- Configure required scopes/permissions
Present for confirmation:
Based on {Provider} OAuth documentation:
**Provider**: {Provider Name}
**ID**: `{provider-id}` (kebab-case)
**Endpoints**:
- Authorization: https://...
- Token: https://...
- User Info: https://...
**Scopes**: scope1, scope2
**Token Refresh**: Supported/Not supported
**Token Expiration**: {expires_in seconds} / Never expires
**OAuth App Registered**:
- Client ID: {id}
- Client Secret: {secret}
- Redirect URI: http://localhost:3001/oauth/{provider-id}/connect
Ready to implement?
Step 2: Add Backend Types
File: apps/api/src/oauth/types.ts
/**
* {Provider} OAuth token response
*/
export interface {Provider}Token {
access_token: string;
refresh_token?: string;
expires_in?: number;
token_type: string;
scope?: string;
}
/**
* {Provider} user information
*/
export interface {Provider}User {
id: string | number;
email?: string;
name?: string;
// Add provider-specific fields
}
Step 3: Create Provider Class
File: apps/api/src/oauth/providers/{Provider}Provider.ts
import { OAuthProvider } from "../OAuthProvider";
import type { {Provider}Token, {Provider}User } from "../types";
export class {Provider}Provider extends OAuthProvider<{Provider}Token, {Provider}User> {
readonly name = "{provider-id}";
readonly displayName = "{Provider Name}";
readonly authorizationEndpoint = "https://...";
readonly tokenEndpoint = "https://...";
readonly userInfoEndpoint = "https://...";
readonly scopes = ["scope1", "scope2"];
readonly refreshEnabled = true; // false if no refresh support
readonly refreshEndpoint = "https://..."; // only if refreshEnabled
protected formatIntegrationName(user: {Provider}User): string {
return user.name || user.email || "User";
}
protected formatUserMetadata(user: {Provider}User): Record<string, any> {
return {
userId: user.id,
email: user.email,
name: user.name,
};
}
protected extractAccessToken(token: {Provider}Token): string {
return token.access_token;
}
protected extractRefreshToken(token: {Provider}Token): string | undefined {
return token.refresh_token;
}
protected extractExpiresAt(token: {Provider}Token): Date | undefined {
return token.expires_in
? new Date(Date.now() + token.expires_in * 1000)
: undefined;
}
}
Step 4: Register Backend Provider
File: apps/api/src/oauth/registry.ts
import { {Provider}Provider } from "./providers/{Provider}Provider";
const providers = {
// ... existing providers
"{provider-id}": new {Provider}Provider(),
} as const;
Step 5: Update Shared Types
File: packages/types/src/integration.ts
Add to IntegrationProvider union and OAUTH_PROVIDERS array:
export type IntegrationProvider =
| "existing-provider"
| "{provider-id}"
| "other-provider";
export const OAUTH_PROVIDERS: OAuthProvider[] = [
// ... existing providers
{
id: "{provider-id}",
name: "{Provider Name}",
description: "Connect your {Provider} account to...",
supportsOAuth: true,
oauthEndpoint: "/oauth/{provider-id}/connect",
},
];
Step 6: Create Frontend Provider
File: apps/web/src/integrations/providers/{provider-id}.ts
import {IconName} from "lucide-react/icons/{icon-name}";
import type { ProviderConfig } from "../types";
export const {provider}Provider: ProviderConfig = {
id: "{provider-id}",
name: "{Provider Name}",
description: "Connect your {Provider} account...",
icon: {IconName},
supportsOAuth: true,
oauthEndpoint: "/oauth/{provider-id}/connect",
successMessage: "{Provider} integration connected successfully",
};
Step 7: Register Frontend Provider
File: apps/web/src/integrations/providers/index.ts
import { {provider}Provider } from "./{provider-id}";
export const PROVIDER_REGISTRY: Record<IntegrationProvider, ProviderConfig> = {
// ... existing providers
"{provider-id}": {provider}Provider,
};
Step 8
Установить integration-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл integration-generator?
Generate new OAuth integration providers for Dafthunk with backend providers, type definitions, frontend configurations, and integration nodes
Как установить скилл integration-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл integration-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic