Integrate

From tinh2/skills-hub-registry · View interactive version

Integrate is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Audit my project's third-party integrations or set up multiple at once — scans for payments, auth, email, push, analytics, storage, search, and realtime, calculates a production-readiness health score, identifies gaps, and chains sub-skills to fill them

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Execute the full pipeline below

without pausing for user input. Make reasonable decisions using sensible defaults.

PURPOSE:

You are the master orchestrator for the integration category. You scan a project for

existing third-party integrations, identify gaps for production readiness, and either

route to specific sub-skills or produce a comprehensive integration audit.

INPUT:

$ARGUMENTS

The user may provide:

  1. A specific integration to set up (e.g., "stripe", "auth google github", "email sendgrid")
  2. Multiple integrations to chain (e.g., "stripe + auth + email")
  3. No arguments — triggers a full integration audit
  4. "audit" — explicitly requests the integration audit

=== PHASE 1: PROJECT DISCOVERY ===

Scan the project to build a complete picture of the tech stack and existing integrations.

Step 1.1 — Detect Framework and Language

Search for these files and extract the framework:

Record: FRAMEWORK, LANGUAGE, PACKAGE_MANAGER, PROJECT_ROOT

Step 1.2 — Scan for Existing Integrations

Check each integration category and record what is already configured:

Payments:

Authentication:

clerk, auth0, lucia, better-auth

Email:

Push Notifications:

expo-notifications, web-push, firebase_messaging (Flutter)

Analytics:

@google-analytics/data, plausible, firebase_analytics

Storage:

cloudinary, uploadthing, firebase_storage

Search:

@elastic/elasticsearch, lunr, fuse.js

Realtime:

server-sent-events patterns, firebase_database

Step 1.3 — Build Integration Map

Create a structured map:

INTEGRATION MAP:
  payments:        [installed | missing | partial]  Provider: [name or "none"]
  auth:            [installed | missing | partial]  Provider: [name or "none"]
  email:           [installed | missing | partial]  Provider: [name or "none"]
  push:            [installed | missing | partial]  Provider: [name or "none"]
  analytics:       [installed | missing | partial]  Provider: [name or "none"]
  storage:         [installed | missing | partial]  Provider: [name or "none"]
  search:          [installed | missing | partial]  Provider: [name or "none"]
  realtime:        [installed | missing | partial]  Provider: [name or "none"]

"partial" means the package is installed but env vars are missing, webhooks are not

configured, or the integration is imported but not fully wired up.

=== PHASE 2: ROUTING DECISION ===

Based on $ARGUMENTS, decide the execution path:

Path A — Specific Integration(s) Requested:

If the user specified one or more integrations (e.g., "stripe", "auth google", "email resend"):

  1. Parse the requested integrations from $ARGUMENTS.
  2. For each requested integration, route to the corresponding sub-skill:
  1. Execute each sub-skill sequentially, passing the framework context from Phase 1.
  2. After each sub-skill completes, verify the integration was wired up correctly.

Path B — Integration Audit (no args or "audit"):

If no specific integration was requested, produce the full audit in Phase 3.

=== PHASE 3: INTEGRATION AUDIT ===

Skip this phase if Path A was taken. This phase only runs for audit mode.

Step 3.1 — Production Readiness Assessment

For each integration category, assess production readiness:

Required for ANY production app:

Required based on app type:

Step 3.2 — Gap Analysis

For each missing or partial integration that is rated CRITICAL or HIGH:

  1. Explain WHY it is needed for this specific project.
  2. Recommend a specific provider based on the tech stack.
  3. Estimate integration effort (lines of code, files touched, time).

Step 3.3 — Health Score Calculation

Calculate an integration health score (0-100):

=== PHASE 4: CHAINED EXECUTION (Path A only) ===

If multiple integrations were requested, execute them in this order:

  1. Authentication (other integrations may depend on user context)
  2. Storage (email templates or push assets may need storage)
  3. Email (notifications may trigger emails)
  4. Push notifications
  5. Payments (may trigger email receipts or push notifications)
  6. Analytics (should track all other integration events)
  7. Search
  8. Realtime

After each integration completes:

=== OUTPUT ===

Print the following summary:


Integration Report

Project: [name from package.json / pubspec.yaml / etc.]

Framework: [detected framework]

Mode: [audit | single integration | chained integrations]

Integration Map

| Category | Status | Provider | Notes |

|----------|--------|----------|-------|

| Payments | [status] | [provider] | [notes] |

| Auth | [status] | [provider] | [notes] |

| Email | [status] | [provider] | [notes] |

| Push | [status] | [provider] | [notes] |

| Analytics | [status] | [provider] | [notes] |

| Storage | [status] | [provider] | [notes] |

| Search | [status] | [provider] | [notes] |

| Realtime | [status] | [provider] | [notes] |

Health Score: [N]/100

[One-sentence summary of the score]

Actions Taken

[List of integrations set up in this run, or "Audit only — no changes made"]

Recommended Next Steps

[Ordered list of integrations to add, with recommended providers]


=== NEXT STEPS ===

After the integration report:

=== DO NOT ===

============================================================

SELF-HEALING VALIDATION (max 3 iterations)

============================================================

After completing the integration, validate:

  1. Run the project's test suite to verify the integration works end-to-end.
  2. Run build/compile to confirm no breakage.
  3. Verify the integration responds correctly (health checks, test calls, smoke tests).
  4. If failures occur, diagnose from error output and apply minimal fixes.
  5. Repeat up to 3 iterations.

IF STILL FAILING after 3 iterations:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /integrate — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.