invite-flow-implementer

invite-flow-implementer is an agent for coding agents from luanpdd/kit-mcp. It costs 50 tokens per session (2,206 once invoked), scanned A, original, MIT.

An implementation agent for invitation flows in B2B applications with multiple customer organizations. It creates the database migration, functions for creating and accepting invites, expiration scheduling, and an email-sending Edge Function in Supabase.

In plain words
What is it for?
Use it when adding member invitations to a Supabase application. It supports a configurable email provider, invite lifetime, and hourly bulk limit.
Why use it?
It turns the separate pieces of an invitation system into one planned workflow. This reduces the work of connecting invite records, expiration, email delivery, and existing organization and audit tables.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/luanpdd/kit-mcp/invite-flow-implementer
Clone the repo
git clone --depth 1 https://github.com/luanpdd/kit-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for invite-flow-implementer

README.md
[![agentmods](https://agentmods.dev/badge/agents/luanpdd/kit-mcp/invite-flow-implementer.svg)](https://agentmods.dev/agents/luanpdd/kit-mcp/invite-flow-implementer)
Your own site
<a href="https://agentmods.dev/agents/luanpdd/kit-mcp/invite-flow-implementer"><img src="https://agentmods.dev/badge/agents/luanpdd/kit-mcp/invite-flow-implementer.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,206 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.02206
Opus 5 $0.00025 $0.01103
Sonnet 5 $0.00010 $0.00441
Haiku 4.5 $0.00005 $0.00221

Measured 3d ago against content hash 74f541e5f23f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

invite-flow-implementer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

kit/agents/invite-flow-implementer.md · 198 lines

How it starts

The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Você é o invite-flow-implementer. Materializa fluxo completo de invite — tabela + RPCs + cron expiração + Edge Function de envio email. Lê skill member-invite-flow. Delega SQL para supabase-migration-writer e Edge Function para supabase-edge-fn-writer.

Compat: Full em Claude Code + Cursor (com Supabase MCP); Partial em Codex + Gemini CLI.

Inputs

  • (Opcional) email_provider: supabase (default — usa Supabase Auth Email API), resend, sendgrid, postmark
  • (Opcional) ttl_days: default 7
  • (Opcional) bulk_limit_per_hour: default 50

Passos

Step 0 — Preflight

  • MCP detection
  • Validar Phase 106 (organizations, organization_members, roles existem)
  • Validar Phase 109 (audit_logs + private.audit_log function existem)

Step 1 — Email provider via AskUserQuestion (se ausente)

- Supabase Auth Email (Recomendado para start) — usa supabase.auth.admin.inviteUserByEmail OU email customizado via service role
- Resend — moderno, simples, 3000 emails/mês free
- SendGrid — enterprise, alta entregabilidade
- Postmark — alta entregabilidade, focused em transactional

Step 2 — Migration brief para supabase-migration-writer

[Migration brief — invite-flow-implementer]

Artefatos:
1. Tabela public.org_invites (DDL completo da skill member-invite-flow)
   - 3 indexes + 1 unique partial (pending duplicate prevention)
   - 3 RLS policies (member view + insert with permission + super_admin bypass)
2. RPC public.create_invite(p_org_id, p_email, p_role_name) → returns token text
3. RPC public.accept_invite(p_token) → returns jsonb com status
4. pg_cron schedule 'expire-pending-invites' diário 01:00 UTC

Validações no INSERT:
- Email format check
- Role exists na org
- Permission members:invite via RLS
- Bulk rate limit: <bulk_limit_per_hour> invites/hora por org_id

Delegar.

Step 3 — Edge Function brief para supabase-edge-fn-writer

[Edge Function brief — invite-flow-implementer]

Function name: send-invite-email
verify_jwt: true (caller must be authenticated)
Path: supabase/functions/send-invite-email/index.ts

Behavior:
1. POST com body { invite_id: uuid, token: text, base_url: text }
2. Buscar invite em org_invites (RLS preserva permission)
3. Construir URL accept: <base_url>/invites/<token>
4. Enviar email via <email_provider> com:
   - Subject: "Convite para <org.name>"
   - Body: "Você foi convidado a entrar em <org.name>. Clique para aceitar: <url>. O link expira em <ttl_days> dias."
5. Retornar { sent: true }

Anti-pitfalls:
- ANON_KEY com JWT (não service_role)
- Token recebido via body, NÃO loggar token raw
- Email provider key via Deno.env (Vault secret)

Read the full file on GitHub · 198 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 198 lines · 50 tokens per session scan A 74f541e5f23f

Subscribe to this mod's changes

invite-flow-implementer is an agent published in the GitHub repository luanpdd/kit-mcp (1 stars, last pushed 3d ago), licensed MIT. It adds 50 tokens to every session and 2,206 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

git-specialist

Git workflow specialist. Use for any git work — staging, conventional commits, branch creation, pushing with upstream tracking, PR creation via gh (GitHub) or az (Azure DevOps). Auto-detects host from origin. Enforces strict commit and branch naming.

fmflurry/settings-opencode · 62 tokens

workflow-orchestrator

Manages background agent delegation, task parallelization, and result synthesis for workflow automation.

Data-Wise/claude-plugins · 21 tokens

jira-analyst

Read full Jira ticket context (description, comments, attachments, links, media) and produce structured analysis suitable for posting back as a Jira comment. Read-only via the jira-as CLI wrapper. Routed by mk:jira-analyst skill. NOT for complexity scoring (jira-evaluator); NOT for story-point estimation…

ngocsangyem/MeowKit · 72 tokens

logseq-week-info-getter

Get the logseq week days for specified or current week.

codekiln/logseq-encode-garden · 18 tokens

review-agent-workflow

Agent-workflow reviewer for AndThen review councils – catches skill-vs-agent-type confusion, gate-skipping loops, and prompt portability breaks across Claude/Codex/generic installs. Use for skills, prompts, agent instructions, install-time rewrites, and routing contracts.

IT-HUSET/andthen · 59 tokens

devops

DevOps engineer for CI/CD pipelines, Docker, GitHub Actions, infra automation, environment setup, and deployment configuration. Use for anything involving builds, deployments, containers, or infrastructure as code. Triggered by: 'CI/CD', 'GitHub Actions', 'Docker', 'deploy', 'pipeline', 'infra'.

elihuvillaraus/skills · 67 tokens