/outsystems:outsystems-spec-driven-buildfrom OutSystems - MCP
Bootstraps an OutSystems app from a text-only structured spec using ODC Mentor. Validates the spec for completeness, then drives Mentor to generate data model and screens with guardrails against common mistakes.
Ships in OutSystems - MCP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Beta Feature. This skill is a Beta Feature: a non-final OutSystems capability provided to collect customer feedback. It can change significantly, including through breaking changes, or be discontinued. The first time you use this skill in a conversation, tell the user it's a Beta Feature and share https://www.outsystems.com/legal/beta-features-agreement.
Generate a new OutSystems app from a structured, text-only spec via ODC Mentor. The skill's job is the prep step that makes Mentor succeed on the first try: agree a complete spec with the user (roles, data model, screens and who can open each one, what is out of scope), check it, then send it to Mentor with guardrails against the mistakes Mentor commonly makes. Without that, it is just an unguided Mentor prompt.
Load the main outsystems skill before Step 1: session, polling and publish rules come from it (read the live tool catalog, one Mentor session per task, cursor polling and waiting from a fresh context where your harness offers one, the completion signals of a turn, confirm before every tenant write). This skill adds only what is specific to building from a spec; where the two seem to differ, the main skill wins.
outsystems MCP server connected and authenticated, per the main outsystems skill.scripts/build.py (standard library only). The script never calls the MCP; it handles the spec, the prompts and the report. The commands below say python3; on Windows use python or py -3 if python3 isn't found.outsystems-design-to-app.Keep the build's files in a spec-driven-build/<APP_NAME>/ folder inside the user's current workspace (create it with the file-write tool), not directly in the home folder or a configuration folder. Below, <work> is that folder and <skill> is this skill's directory.
spec.md, answers.json (interview mode), result-data.json and result-screens.json (plus one file per fix turn, such as result-seed-fix.json), build-report.md.<work> and re-read only what you need; if the harness already saved it to disk, pass that path on.Ask the user for the app name and how they want to provide the spec. When the user has no spec file, recommend the interview (Mode B), so the spec captures their own requirements. Offer the example (Mode C) only as a starting point to edit, never as the default, even when the request sounds like the example app.
Three entry modes:
Copy it to <work>/spec.md, then validate it (Step 2). If it's missing sections, either fix it with the user or fall through to Mode B's interview to fill the gaps.
python3 "<skill>/scripts/build.py" list-questions
Ask each question in turn and wait for the answer (skip one the user already answered, such as new or existing). Write the answers to <work>/answers.json (one key per question id), then assemble the spec:
python3 "<skill>/scripts/build.py" assemble-spec --answers "<work>/answers.json" --app-name "<APP_NAME>" --output "<work>/spec.md"
Copy <skill>/templates/example-spec.md to <work>/spec.md and fill it in with the user (the app name, the target app line, and every section). The blank template is <skill>/templates/spec-template.md.
python3 "<skill>/scripts/build.py" validate-spec --spec "<work>/spec.md"
It reports errors (exit code 1) and warnings (exit code 0):
(NOT PROVIDED; a placeholder from templates/spec-template.md is left; no roles, no entities or no screens are listed; a screen has no role; a screen names a role that section 2 doesn't define (Anonymous and All authenticated are always allowed).**Target app:** line.Fix every error with the user before going on. Show the warnings and let the user decide.
Before firing Mentor, show the user the final spec and get explicit confirmation. Mentor calls can be expensive; a missed requirement at this step costs a full re-run.
python3 "<skill>/scripts/build.py" show-spec --spec "<work>/spec.md"
Display the output. Ask the user a yes/no and wait for an explicit answer: "Ready to fire Mentor with this spec?" Name the target app in the question, using the Step 1 app name (a new Web app named X, created from the standard template in portfolio Y, or the existing app X) and say the build runs in two parts, the data model first and then the screens, each followed by a publish.
This go/no-go covers the Mentor edits only. Each tenant write gets its own confirmation (main outsystems skill): creating the app (Step 4) and each publish (Steps 5 and 6). Don't offer to approve those writes in advance.
Use whatever confirmation affordance your harness provides (a question tool, or asking inline). The gate is the confirmation itself, not any particular tool.
The live tool catalog decides which calls do each step; field names below follow the tool schemas. "The app name" below is the Step 1 app name.
app_key. Open one Mentor session and pass app_key in the asset references of every Mentor prompt below.outsystems skill describes: "Create a new Web application named X in portfolio Y from the standard Web application template. Do nothing else." Poll it to terminal and keep the new app's key from the run's per-app facts as app_key; pass it in the asset references of every Mentor prompt below.app_key and continue. Only if they show no app was created, ask the user to create the app in ODC Studio and publish it once there, then find it by name and use its key as app_key.Use this one session for both parts and their publishes (main outsystems skill). Its idle limit applies while you wait on the user.
The build follows the main outsystems skill's order: the data model is built and published first, so the screens are built on a saved revision and a failure in the screens part costs only that part.
python3 "<skill>/scripts/build.py" build-prompt --spec "<work>/spec.md" --part data
The output is the Mentor turn for part 1: the spec's data sections (overview, roles, data model, integrations, out of scope, acceptance criteria, notes) between <spec> and </spec>, then the data guardrails, among them:
Bootstrap<Entity> action for each non-static entity that inserts only when the entity is empty, one generated Create<Entity> call per row, all called by BootstrapData from a Timer named BootstrapTimer; each action logs inserted N rows or skipped, N present; no SQL inserts, literal dates. Skipped when the spec says to skip sample data (Section 8 or 10).Send it as one Mentor turn on the session, unchanged: don't rewrite or drop the guardrails. Then:
Poll the run to terminal and read its completion signals for app_key as the main outsystems skill describes; save the terminal result to <work>/result-data.json (one replay of the run read from cursor 0, not the poll pages, so the summary isn't counted twice). Render the report, which records whether the turn landed:
python3 "<skill>/scripts/build.py" render-report --spec "<work>/spec.md" --result "<work>/result-data.json" --label data --app-key "<app_key>" --output "<work>/build-report.md"
It accepts a saved terminal response, the list of pages read from the start of the run, or either one as the harness saved it, and shows each turn's status, whether it landed (the main skill's completion signals: status, turn error, validation errors, whether the change was applied) and Mentor's summary. Exit 1 means the last turn didn't land: don't publish it as built.
Check whether Mentor published on its own. The prompt forbids it, but a build turn can still end in a publish. Look in the turn's result and events for a publication key or a "published" message. If it did, don't publish again: tell the user Mentor published without asking, and follow that publish to its outcome.
If the turn didn't land, send one targeted fix turn on the same session (the problems with concrete values, ending with "Do NOT publish the app in this turn"), save its result next to the first one, and render the report again with one --result and --label per turn, in order. A fix turn that landed clears the earlier failure. This is the part's one fix turn, a retry after a timeout included (below). If the fix turn didn't land either, stop: don't publish, and report the Landed lines and the sessionId.
Publish part 1 (Publishing, below) once its last turn landed.
Check the sample data (skip when the spec says to skip it). BootstrapTimer runs right after the publish. Search the app's runtime logs for "Bootstrap", reading only lines written after this publish finished, and expect one line per non-static entity: Bootstrap<Entity>: inserted N rows, or skipped, N present when an earlier publish already seeded it. The timer runs asynchronously, so if nothing shows yet, wait briefly and check once more. If a line shows an error, or there is still nothing, don't start part 2:
BootstrapData exists. If it does, the fix is the wiring or the named action, not a new timer.<work>/result-seed-fix.json and render the report again with it.Only after part 1 is published. If the user declined that publish, stop here unless they explicitly ask to go on; tell them everything stays unpublished in the session until the end.
python3 "<skill>/scripts/build.py" build-prompt --spec "<work>/spec.md" --part screens
The output is the Mentor turn for part 2: the whole spec, then the screen guardrails, among them:
Send it on the same session, unchanged, and handle it as in part 1: poll, save the terminal result to <work>/result-screens.json, render the report with every build and fix turn so far, not the publish turns (--result "<work>/result-data.json" --label data --result "<work>/result-screens.json" --label screens, plus any fix turns, in order), check that Mentor didn't publish on its own, and send one fix turn if it didn't land; if that one didn't land either, stop as in Step 5, item 3. Then publish part 2.
Don't cancel a turn whose work you want: its in-flight edits may not land. If a turn fails or times out, retry in the same session as the main
outsystemsskill describes: raise the turn-time ceiling where the catalog offers one; otherwise send a follow-up turn that asks Mentor to finish only what is still missing from this part, reusing what it already built. This retry is the part's one fix turn (Step 5, item 3). If the session ended after part 1 was published, open a new session and reference the sameapp_keyin its asset references, then send part 2 there.
Publishing is a tenant write. Before each publish, restate what will be published ("publish the data model of app X to its development environment", then "publish the screens of app X") and wait for explicit confirmation; ask as soon as the part has landed, since the session ends after the server's idle limit and takes everything unpublished with it. Then:
outsystems skill describes: a Mentor turn of its own on the session that asks Mentor to publish, with a short publish note in the prompt. There is no separate publish call.outsystems skill): it succeeded, failed, timed out, or met someone else's newer revision.outsystems skill: check it by its publication key, or else through the app's revision history, before you decide. Never publish again while the outcome is unknown. A failure that names a cause gets a further Mentor turn that fixes it, not an unchanged publish. A conflict goes to the user. If neither check settles it, ask the user to check ODC Studio before any new publish.outsystems skill describes: the remedy is a further Mentor turn that completes the work, not a retried publish.If the user declines a publish, don't publish. Tell them the changes stay in the Mentor session (give the sessionId) and can still be published, but only until the session goes idle (main outsystems skill).
When the part 2 publish has landed:
outsystems skill describes, and give the user the url as a link.outsystems skill describes.app_key and the revision of each publish, with the runtime URL as a linkBootstrapData and BootstrapTimer, which runs on every publish, deployment and automatic patch in whichever stage the app is in and refills any empty sample-data table. To keep those tables empty, the timer has to be removed first: offer to do it in one Mentor turn on this app, confirmed and published like any other changebuild-report.mdsessionId, and that it must be published before the session goes idleThe main outsystems skill's rules apply. Skill-specific:
Template_* / template_* / OutSystems Sample Data are rejected by Mentor's Model API. Create a new app from the standard template instead (Step 4).outsystems-app-architecture — visualize what was built (it reads the published app).Workflow: spec-driven-build (build and publish) → app-architecture (visualize).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outsystems/outsystems-mcp --plugin outsystems7 skills in this plugin
/outsystemsOutSystems Developer Cloud (ODC) over MCP. Edit apps, publish, deploy, search tenant elements, manage external libraries. Load this skill before calling any tool from the OutSystems ODC MCP server, including read-only calls such as listing apps. Use for ANY OutSystems task on ODC. Not for OutSystems 11 (O11) modules open in Service Studio. When the Service Studio (O11) MCP server is also connected and the request names neither ODC nor O11, ask the user which platform before calling any OutSystems tool./outsystems-app-architecture[Beta] Generate an interactive HTML graph of a single OutSystems app's architecture — UI flows + screens, server/client/service actions with signatures, entities with attributes and relationships, static enums, structures, roles, AI model connections, library dependencies and where the app is deployed — with OutSystems-themed dark mode styling. ONE app per invocation — do NOT iterate over multiple apps in a single call (run the skill explicitly per-app; for more than 3 named apps, ask the user and wait for an explicit answer first). For 'every app' / 'all apps' requests and tenant-wide views, use outsystems-tenant-architecture instead: its scope guard asks before any per-app run, without listing the apps first. Use when the user asks for the architecture of a specific app, 'show me the architecture of [app]', 'explore [app]', 'what's inside [app]', 'give me an overview of [app]', or similar. Not for OutSystems 11 (O11) or Service Studio./outsystems-custom-code[Beta] Reference + workflow for building, testing, and deploying C# class-library "External Logic" libraries for OutSystems Developer Cloud (ODC). Covers SDK attributes ([OSInterface] / [OSAction] / [OSParameter] / [OSStructure] / [OSIgnore]), supported data types, optional parameters, logging via ILogger, project structure, runtime constraints (95s execution / 1 GB memory / 5.5 MB payload), unit + container integration tests, and deployment via the OutSystems MCP. Use when the user asks to "build a C# library for OutSystems", "create ODC external logic", "write custom code for ODC", "deploy an external library", "publish C# code to OutSystems", or names ODC External Logic / external library / OSInterface / OSAction directly. Not for OutSystems 11 (O11) or Service Studio./outsystems-dependency-impact[Beta] Build an interactive HTML REVERSE-dependency explorer — answers 'who depends on this library/agent/connection?' from the platform's deletion-impact analysis (read-only; nothing is deleted). One named target is one analysis: seconds, a few K tokens. A whole-tenant map is one analysis per library/agent/connection in parallel batches (estimate: ~0.5K tokens per target plus ~0.1–0.15K per dependent found). Use ONLY for reverse questions like 'who depends on [library/agent]', 'if I publish [library] who breaks', 'blast radius of [library/agent]', 'reverse dependency map', 'library impact audit', 'agent impact audit'. For forward questions about a specific app ('what does App X depend on', 'deps of App X'), use outsystems-app-architecture or the app's references directly. Not for OutSystems 11 (O11) or Service Studio./outsystems-design-to-app[Beta] Drive ODC Mentor to bootstrap an OutSystems app from a design source — Figma URL, screenshot/image, HTML mockup, or structured front-end code (TSX/React/HTML, the highest-fidelity input). EXPERIMENTAL — greenfield-from-design layers on top of Mentor (built for in-flow edits) and fidelity varies; treat results as draft scaffolds, NOT ship-ready apps. Authors the design into a styling-complete spec.json (real OS UI blocks, not fake CSS; tokens, data model, sample data, chart series), then drives Mentor in batches and publishes. For prose-only briefs with NO concrete design or code, this skill does not apply. Use when the user asks to "build this design as an OutSystems app", "implement this Figma in OutSystems", "design to model", "design to app", "generate a screen from this mockup", "build this screen", or provides a Figma URL / image path / HTML or TSX file and wants it turned into a live OutSystems app. Not for OutSystems 11 (O11) or Service Studio./outsystems-tenant-architecture[Beta] Generate an interactive HTML graph of an OutSystems Developer Cloud tenant's assets (web/mobile apps, agents and agent definitions, AI model connections, knowledge bases, libraries, integrations) with filter-by-type controls, where each asset is deployed (revision drift per environment), a 7-day Production traffic/error overlay and an AI governance view (model providers, Trial vs Customer entitlement, test/demo-named and stale agents). ONE tenant-level pass per invocation, no per-app deep dives (use outsystems-app-architecture for one app); also the entry point for 'architecture of every app' requests, which it confirms before any per-app run. First run 2-5 min; cached re-runs ~5s. Use when the user asks for a tenant overview, architecture diagram, asset inventory, 'what's in my tenant', 'show me my apps', 'what is deployed where', an AI inventory, 'audit my AI', 'which models are we using', 'show me my agents', AI governance, or similar. Not for OutSystems 11 (O11) or Service Studio.Other plugins' skills for the same job