> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI agents

> Onboard a repository into your real UFL account with an installable agent skill.

## Install once, use from any repository

```bash theme={null}
npx skills add outis-co/ufl --global --skill user-flow-library --yes
```

The skill guides your coding agent through account onboarding, route mapping,
rendering, organization, and sharing. Installing it does not authenticate you:
every project must belong to your real account or authorized workspace.

## Copy the setup prompt

```text theme={null}
Use the user-flow-library skill to onboard this repository into my real UFL account. If needed, install it globally with `npx skills add outis-co/ufl --global --skill user-flow-library --yes` and read its SKILL.md. Reuse an authorized connection where available. Handle onboarding steps through authorized tools, preserving identity verification and payment consent. Do not create an anonymous project or skip account or billing controls. Check the account's allowance before rendering, read real route/component/style source, ingest within that allowance, organize, and return the project and requested share URLs with coverage and render results. At the 25-screen limit, save progress, show the returned upgrade link, and poll get_account_usage. Continue the same project automatically when readyToResume is true. If verification or billing setup cannot be completed, report the exact blocker before spending.
```

## Account onboarding comes first

An already-authenticated [MCP connection](/docs/mcp-server.md) is the preferred
path. The agent should confirm the account and intended workspace before
creating a project.

In Claude Code, register the server at user scope so it is available from
other repositories too:

```bash theme={null}
claude mcp add --scope user --transport http user-flow-library https://mcp.userflowlibrary.com/mcp
```

Then use `/mcp` to authenticate. A repository-specific connection can override
the user-scoped one; inspect existing configuration before changing it.

For a new user, the agent must complete real signup/sign-in and authorization.
It can perform UI steps through authorized browser automation. If identity
verification or payment requires a step it cannot complete, it reports that
blocker instead of creating an anonymous identity.

Accountless trial issuance and AI reservations are disabled. The former guest
helper has been removed from the installable skill.

## Repository pipeline

1. Authenticate to the user's real account and confirm the intended workspace.
2. Check the account's usage allowance and applicable billing requirements.
3. Read actual routes, layouts, components, and styles. Use the framework
   recipes under **Route mapping**.
4. Create a project in the authenticated account/workspace.
5. Ingest a coherent journey within the allowance and the 40-route request cap.
6. Check `renderedCount` and `failedCount`, then organize the rendered screens.
7. Return the project URL and, when requested, a public share link.

## Guardrails

* Do not upload secrets, environment files, private customer data, or unrelated code.
* Do not fabricate source, HTML, navigation, identity verification, or payment consent.
* Stop on `401`; respect rate limits on `429`. On `402`, follow the upgrade flow
  below. Never rotate accounts to evade limits.
* If account entitlement cannot be confirmed, stop before rendering.
* Inspect existing results before repeating an uncertain write.
* For private runs on an existing project, call `revoke_project_share_link` and
  require success before ingesting. Then skip sharing. Omitting the sharing
  step alone does not invalidate an earlier public link.
* Describe rendered screens as AI reconstructions from source.

## Upgrade and resume through MCP

Call `get_account_usage` before ingestion. The 25-screen allowance belongs to the
account/workspace across repositories. Use any remaining allowance before
requesting an upgrade.

When ingestion returns `payment_required` with `AI_QUOTA_EXCEEDED`, no screens
from that rejected batch were created. Save the pending batch and show its
`upgradeUrl`. Hosted billing returns a Stripe-hosted checkout link bound to the
authenticated account/workspace. Keep the same connection and project.

While the agent stays active, poll `get_account_usage` with `wait_seconds: 20`
and `required_screens` equal to the pending batch size. Once `readyToResume`
is true, retry that batch and continue without requiring another user prompt.
The server verifies Stripe's current paid subscription on each billing check.
Signed webhooks reconcile payment records; opening checkout or returning from
it does not unlock rendering. Clerk continues to provide account identity.

The checkout upgrades the account/workspace attached to the MCP token. A
workspace billing administrator must open it, using a connection with write
permission. Connect to the intended workspace during onboarding.
`BILLING_SETUP_REQUIRED` means no
supported paid plan is configured for the scope, so a usable upgrade cannot
be promised for that connection.

The agent preserves a private checkpoint if its session ends or payment takes
longer than its polling window. Resume that checkpoint on the next run.
Uncertain network failures require inspecting the project before retrying.

Skill source: [outis-co/ufl](https://github.com/outis-co/ufl).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.