agentleFS
superdurablesuperdurable/dex-skills/dex-app-builder/SKILL.md

dex-app-builder

Skill2 starsChanged 2 months agoMITView on GitHub

Primary entry point for designing and building Dex applications and process products with source-available Dex. Use for Dex product, application, or workflow requests, including converting an exported n8n workflow, but not standalone SDK or official connector-library work. Orchestrates business discovery, Flow and FDG modeling, the Dex Web or custom UI decision, a Go backend with released connectors, and local verification with dexcli dev.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the Dex Skills version check that the Dex SDK skill describes, once per session.

    line 20
  2. Distinctive:

    Before Stage 0 picks a stack, ask whether the application runs locally only or is imported into Dex Cloud as a Managed Dex App.

    line 57
  3. Distinctive:

    Import and publishing stay the user's steps.

    line 62
  4. Distinctive:

    Keep source readiness separate from configured real execution at every stage.

    line 64
  5. Distinctive:

    Never report compilation as provider or end-to-end success.

    line 65
  6. Distinctive:

    Dex is the default store: Use typed Flow Attributes and exactly loaded AttributeMaps.

    line 82
  7. Distinctive:

    Flow boundaries: Use parallel Steps for one lifecycle.

    line 85
  8. Very specific:

    Effects only in Execute: Put provider effects in Execute, with an idempotency identity, a bounded timeout, and recovery.

    line 91
  9. Very specific:

    Credentials stay outside: Keep them out of code, Flow state, logs, and definitions.

    line 102
  10. Distinctive:

    Use stable, granular Action permissions.

    line 109
  11. Distinctive:

    Do not mutate another repository or publish or deploy without authorization.

    line 110
  12. Distinctive:

    Use the current SDK and Connector sources as the truth for API names.

    line 119
  13. Distinctive:

    Keep the design proportional to the request.

    line 144

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dex App Builder

Build the smallest coherent Dex product that satisfies the user's request. A clear implementation request authorizes its stated UI and routine engineering choices. Ask only for missing business facts, access, or consequential choices. Do not turn discovery, design, wireframes, or source checks into repeated approval gates.

The toolchain is source-available Dex: the Dex Go SDK, dexcli (including dexcli dev and the FDG analyzer behind dexcli visualize), Dex Server (server-zd), Dex Web, and released official Connectors.

Session start and routing

Run the Dex Skills version check that the Dex SDK skill describes, once per session. It must never block the task.

Confirm a writable workspace and file and command tools before you claim implementation. Without them, provide discovery and a handoff for a repository-backed host.

  • Standalone official Connector work belongs to Connector Contributor.
  • Standalone SDK implementation, debugging, or operations belongs to Dex SDK.
  • Product work stays here. Load Dex SDK when you implement the backend.
  • A missing released Connector capability routes that contribution to Connector Contributor. The application itself stays here.
  • Honor a specialist the user invokes explicitly.
  • A missing sibling skill means an incomplete installation. Update the three-skill bundle. Do not search arbitrary caches or fall back to superseded skills.

The workflow

Each stage has one reference. Read only the sections the next decision needs. Record decisions in the application's own documentation and do not reread a reference once its facts are recorded.

StageGoalReference
0. WorkspaceClassify the repository, choose or keep the stack, install toolsWorkspace bootstrap
0'. ImportConvert an exported workflow, such as n8n JSON, before the normal stagesWorkflow import and n8n semantics
1. DiscoveryActors, roles, permissions, lifecycle, Flow boundaries, storage, Connectors, management mappingProduct discovery
2. UI decisionNo custom UI (Dex Web only) or Custom UI for a recorded gapUI workflow and Dex Web
3. BackendFlow design, Dex-first storage, Actions, Workers, API contractBackend implementation
3a. FDGSummary, Display, Actions, Start input, Step groups, diagnosticsGo FDG authoring
3b. ConnectorsCatalog discovery, Connector Steps, Triggers, llm, credentialsConnector architecture
4. Verify and hand offSource gate, local dexcli dev stack, real journeys, packaging, handoffVerification and handoff
4'. Managed Dex AppRepository rules, checks, import, and Live for Dex CloudManaged Dex App

Before Stage 0 picks a stack, ask whether the application runs locally only or is imported into Dex Cloud as a Managed Dex App. A Managed Dex App is the one exception to Go backend only: the example repository's TypeScript shape replaces Stage 0's Go bootstrap. Build it to its repository rules, and hand off with its checks and import steps instead of the local dexcli dev steps. Import and publishing stay the user's steps.

Keep source readiness separate from configured real execution at every stage. Never report compilation as provider or end-to-end success.

Essential product constraints

These App Builder rules are stricter than the Dex SDK rules. They take precedence.

  • Go backend only. This is a product decision. Strict FDG 2.0 only, and Dex Web metadata comes only from the Go analyzer. Connectors also ship for Python and TypeScript, but App Builder uses the Go packages. Exception: a Managed Dex App on the TypeScript profile (Managed Dex App).
  • Dex Web owns management. It owns Runs, Work Queue, Actions, edits, history, and diagnostics: dexcli dev locally, the standalone dex-web binary or image when deployed. Do not recreate management APIs or UI. A separate participant interaction is a valid custom UI. A backend requirement alone is not.
  • Dex is the default store. Use typed Flow Attributes and exactly loaded AttributeMaps. Justify an external store with a concrete access or scale gap and one owner per fact. No speculative database, projection, or cache.
  • Flow boundaries. Use parallel Steps for one lifecycle. Use independent top-level Flows for separate owners. Use no SubFlows unless the Dex SDK SubFlow gate passes and the user confirms. Never split work whose parts would exchange RPCs or messages on frequent events, such as every operation, callback, or poll. Each call between Flows adds to both histories and costs an engine operation, even a read.
  • Effects only in Execute. Put provider effects in Execute, with an idempotency identity, a bounded timeout, and recovery. WaitFor declares durable conditions. It performs no provider or Dex mutation.
  • Start identity. A stable Flow ID, a complete request ID, an explicit ID reuse policy, and typed error recovery govern starts. An accepted start returns its known identity without a preflight or success-path state read. Streams are best-effort observations.
  • Design before code. Define each Flow's identity, lifecycle, Steps, typed RPCs, every primitive, selective loads, locks, retention, retries, and uncertain-effect handling in the application before coding. Keep open Flow runs compatible across deploys.
  • Credentials stay outside. Keep them out of code, Flow state, logs, and definitions. Locally, Dex Web configures Connector connections. A Go application reads them through the Connector SDK's sdkgo/projectconfig. An operator or hosting platform supplies the deployed configuration. Dex hosts none.
  • Authorization at the trusted boundary. A browser permission selection grants nothing. Enforce actor permissions at the trusted server boundary. Use stable, granular Action permissions.
  • Do not mutate another repository or publish or deploy without authorization.

Source authority

Inspect the existing manifests and source before you select tools. An existing project keeps its pinned Go toolchain, Dex SDK, dexcli, Server, Connector, and frontend versions unless the user asks for an upgrade.

Use the current SDK and Connector sources as the truth for API names. Copy API shapes from runnable examples, not from memory. Discover filenames before you read module source. Batch independent read-only requests when the host supports it. Implement once the required types and lifecycle are understood. Let concrete compiler, FDG, or provider diagnostics drive further investigation.

Volatile details live in the versioned Dex Developer reference: flags, defaults, limits, configuration keys, error codes, and version differences. Find the version the project pins (the Go SDK in go.mod, dexcli version, the Server release), then open that version with the version selector in the reference sidebar.

Proportionality

Keep the design proportional to the request. Do not add application-specific tests, mocks, or framework dependencies only to satisfy a generic scaffold. Existing or requested real acceptance remains required. Generate API packages before resolving their imports. The host commit tool may own the final source gate. Use focused checks while editing, then act on its actual diagnostics instead of running the same full gate twice in a row.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.