Skip to content
Back to skills

Outsystems App Architecture

ASecurity

[Beta] Generate an interactive 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, opened in the browser. 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...

  • 50 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added October 7, 2026
ai-agentspythongoshellnodeawsgitapisecurity

Works with

  • claude code
  • claude desktop
  • cursor
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add OutSystems/outsystems-mcp --skill outsystems-app-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Outsystems App Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Outsystems App Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/outsystems-outsystems-app-architecture/badge)](https://www.skillsdirectory.com/skills/outsystems-outsystems-app-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: outsystems-app-architecture
description: "[Beta] Generate an interactive 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, opened in the browser. 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."
license: MIT
compatibility: Needs an agent that can write and search files in the user's workspace, with the OutSystems MCP server connected and signed in. No shell and no Python. Validated on Claude Code. Claude Desktop's Chat tab cannot write files and cannot run it. The user opens the result in the App Architecture viewer, a web page that reads the folder in the browser and uploads nothing; it loads its graph library from a CDN and shows a plain listing when that fails.
metadata:
  version: "2.0.0"
  maturity: beta
  author: OutSystems
---

**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.

# OutSystems App Architecture

Saves one app's tool results to a folder in the user's workspace, with a
`manifest.json` that says what each file is. The user opens that folder
in the **App Architecture viewer**, a web page:

https://outsystems.github.io/outsystems-mcp/outsystems-app-architecture/

The page reads the files in the browser (nothing is uploaded) and draws a
force-directed graph of the app's internal structure: UI flows → screens,
action groups → server, client and service actions, data layer
(entities / enums / structures, with entity → entity reference edges),
security (roles), and **dependencies** — AI model connections and
referenced libraries. OutSystems dark theme, filter-by-category sidebar,
click a node for its attributes, signature or input parameters. The
sidebar also shows where the app is deployed and its recent revisions.
"Save as HTML" in the page writes one self-contained file to share.

The page loads one thing from the network: its graph library
(vis-network 9.1.9, pinned with a Subresource Integrity hash), from a
CDN. Without it, the page shows a plain HTML listing of the same data
instead of the graph.

## Prerequisites

- The OutSystems MCP server is connected and signed in. This skill reads
  the tools named below; tool names here are the server's own, and your
  harness may show them with a prefix (in Claude Code,
  `mcp__plugin_outsystems_outsystems__app_info` for `app_info`).
- File tools: one that writes a file (Write in Claude Code), one that
  reads a small file, and one that searches a file's content for a
  pattern and can answer with a count or file names only (Grep in Claude
  Code). The skill runs no shell command and no script.
- `<workspace>` below is the folder the user is working in (your working
  directory), as an absolute path. `<app-folder>` is
  `<workspace>/outsystems-skills/outsystems-app-architecture/<APP_KEY>`.
  Values in angle brackets are placeholders you substitute.
- No file tools (Claude Desktop's Chat tab)? Stop and tell the user this
  skill needs an agent that can write files, such as Claude Code; don't
  try to draw the graph by hand.

**The core rule: keep large data off the model's context.** Tool results
go to disk, the viewer reads them from there, and the graph comes out
in the user's browser. Never read a saved result back into the
conversation.

## Procedure

### Step 0 — Scope guard

This skill produces **one app's architecture** per invocation. Read
the user's request and route:

**Branch A — One specific app** ("architecture of Banking Portal",
"show me TaskTracker")
→ Continue.

**Branch B — Multiple specific apps** ("architecture of Banking
Portal AND TaskTracker AND ...")
→ For N ≤ 3, run this skill once per app sequentially. For N > 3,
**ask the user** — it's ~10K tokens each, ~50K + ~5 min
for 5 apps. Confirm before chaining.

**Branch C — Whole tenant** ("architecture of everything", "all my
apps")
→ **Stop and route to `outsystems-tenant-architecture`.** That skill
is a single tenant-level pass at ~3-10K tokens, not 100× per-app calls.
Tell the user: *"For the tenant view, use `outsystems-tenant-architecture`
— it's one pass instead of N. After you have that, come back here for
specific apps you want to drill into."*

Chaining this skill over every app by accident ("show me all apps"
fanning out into 100+ per-app runs) is what turns minutes into an hour.

### Step 1 — Identify the app (and list environments)

There is no sign-in pre-flight: the first real call surfaces an expired
or missing sign-in. If any call fails with an authentication error, stop
and ask the user to sign in to the OutSystems MCP server again, then
start over.

Resolve the app from the user's prompt, and in the same message call
`env_list` (no arguments; Step 3 needs the environment keys):

- If the user gave an asset key (UUID), call `app_info` with
  `key: <APP_KEY>` for its name (Step 3's `env_apps` searches by name).
- Otherwise call `app_list` with `search: "<name from prompt>"`. If
  exactly one match → use it. If multiple → list the candidates and ask
  the user to pick. If zero → ask for a more specific name.

```
APP_KEY  = <asset key>
APP_NAME = <human-readable name, exactly as app_list / app_info report it>
ENV_KEYS = <key of every env_list result>
```

### Step 2 — Reuse the folder (only if it exists)

Read `<app-folder>/manifest.json` if it is there (it is small). The
folder can be reused, with no fetch at all, when all of these hold:

1. `"complete"` is `true` and `"schema"` is `1`;
2. `"revision"` equals the `revision` of a fresh `app_info` call with
   `key: <APP_KEY>` (cheap, ~500 tokens; skip the call if Step 1 already
   made it);
3. `"fetched_on"` is today's date. If you cannot tell today's date, the
   folder is not reusable.

Then go straight to Step 5. Otherwise, or when there is no manifest, go
to Step 3.

Deployment state can change without a new revision (a deploy of an
existing revision to Production), which is why a folder is reused on
the day it was written only. The page shows deployments "as of" the
time the files were saved. If the user asks where the app is deployed
"now", or says "refresh" / "fresh data" / "rebuild", skip this step.

### Step 3 — Fetch (parallel)

First write `<app-folder>/manifest.json` with exactly this content, even
when the folder is new:

```json
{"schema": 1, "skill": "outsystems-app-architecture", "complete": false}
```

Until Step 4 rewrites it, the viewer refuses the folder, so a run that
stops half-way never shows files from two runs as one.

Then make **all** of these calls in a single message so they run
concurrently. `limit: 100` is the API maximum for `context_*` (on a
harness that truncates large tool results use `limit: 25`, see Harness
notes). "Save as" is the file name inside `<app-folder>`.

| # | Tool | Arguments | Save as |
|---|---|---|---|
| 1 | `app_info` | `key: <APP_KEY>` | `app-info-raw.json` |
| 2 | `context_screens` | `app: <APP_KEY>`, `limit: 100`, `owned_only: true` | `screens-raw.json` |
| 3 | `context_actions` | `app: <APP_KEY>`, `limit: 100`, `owned_only: true` | `actions-raw.json` |
| 4 | `context_entities` | `app: <APP_KEY>`, `limit: 100`, `owned_only: false` | `entities-raw.json` |
| 5 | `context_structures` | `app: <APP_KEY>`, `limit: 100`, `owned_only: true` | `structures-raw.json` |
| 6 | `context_roles` | `app: <APP_KEY>`, `limit: 100`, `owned_only: true` | `roles-raw.json` |
| 7 | `context_connections` | `app: <APP_KEY>`, `limit: 100`, `owned_only: false` | `connections-raw.json` |
| 8 | `app_refs` | `key: <APP_KEY>` | `refs-raw.json` |
| 9 | `app_revisions` | `key: <APP_KEY>`, `limit: 10` | `revisions-raw.json` |
| 10+ | `env_apps` | `env_key: <ENV_KEY>`, `search: "<APP_NAME>"` — one call per environment | `env-apps-<ENV_KEY>.json` |

Also save the `env_list` response from Step 1 as `env-list.json` (it is
small; write it as returned).

Why the two `owned_only: false` calls:

- **Entities (#4).** Many apps (especially "thin UI" patterns) define
  their data model in a separate library module. With `owned_only: true`
  those apps return no entities and the skill would report "no
  entities" — materially misleading. The viewer partitions the rows into
  owned entities, entities inherited from user libraries (listed with
  their module) and a count of platform-module rows, and resolves foreign
  keys against all of them.
- **Connections (#7).** An AI model connection is its own asset. On a
  query scoped to the app, a connection the app uses comes back as a
  *referenced* row (`isReferenced: true`), identified by its own `key`
  and `name` (`producerAssetKey` / `producerAssetName` are not set on
  connection rows), and `owned_only: true` — the default whenever `app`
  is set — filters every such row out. An app that uses no connection
  returns an empty page, which is normal.

`app_refs` (#8) is called on every run, whatever the app's size: it
reads the context index first (the model download is only a fallback
for an app that is not indexed), so a revision number says nothing about
its cost. `env_apps` (#10+) takes no `offset` and caps its page, which
is why it is narrowed with `search`; the viewer keeps only the row whose
`applicationKey` equals `APP_KEY` (the search is a name substring, so
other apps can match too).

For **each** response, follow this rule:

- **If the response is the "Output has been saved to <path>" notice**
  (Claude Code's harness auto-save kicked in, typical for large apps):
  leave the file where it is. Do not read it, and do not copy it (a copy
  would pass the whole response through the conversation). Note the
  absolute path exactly as the notice prints it: Step 4 lists it in the
  manifest, and the viewer asks the user to add that file. **This is the
  cheapest path.**
- **If the response is inline JSON** (under Claude Code's auto-save
  line, measured between 45 and 65 KB, and every response on harnesses
  without auto-save): write the `context_*` responses in the **compact
  form** below to `<app-folder>/<file>`, keeping the top-level envelope
  keys. Write the small responses (#1, #8, #9, #10+, `env_list`) as
  returned. Use your file-write tool, one call per file.
- **If a call errors**: for `app_refs`, save
  `{"assetKey": "<APP_KEY>", "failed": true}` as `refs-raw.json` and
  continue (the graph then renders without libraries; connections still
  show). For `context_connections`, `app_revisions`, `env_list` or an
  `env_apps` call, write `{"error": "<the error message>"}` to that file
  (JSON, never the raw error text). Always write it, even on a first
  run: on a refresh the file from the previous run is still there, and
  leaving it would show that run's data as current. The viewer degrades
  only that section — AI model connections or libraries are left out of
  Dependencies, the revisions table is left out, and an environment
  whose `env_apps` call failed renders as **unknown (not fetched)**,
  never "not deployed". Do not invent an empty response instead: an
  empty `results` list would read as "not deployed". An `app_info` error
  or an error on any other `context_*` call stops the run — report it.

### Fetch every page

Every `context_*` response is one server page and carries `truncated`
and `next_offset`. While a page is truncated, call the same tool again
with the same arguments plus `offset: <next_offset>`, and save that
response by the same rule, as `<section>-raw.2.json`, `-raw.3.json` and
so on. Do not compute the number of pages from `total`: on the
`owned_only: false` calls it is a lower bound while more pages exist.

- **Inline page:** read `truncated` and `next_offset` from the response.
- **Auto-saved page:** do not open the file. Search it with your
  file-search tool for the pattern `"truncated":\s*true`, in the mode
  that returns a count or file names only — never in a mode that prints
  matching lines, because the saved file is one line holding the whole
  response. A match means the page is truncated: its `next_offset` is
  the `offset` you called it with plus the `limit`.

The viewer checks the page chain again and says so when a page is
missing (see Step 5), so a page you missed is never shown as complete.

### Compact-write field whitelist (mandatory for inline responses)

When writing an inline `context_*` response, emit ONLY these fields
(nested lists keep only the fields in braces). Compact JSON, no
whitespace inside objects.

| File | Fields to keep |
|---|---|
| `screens-raw.json`     | `data[].(key, name, description, isPublic, timestamp, ownerAppKey, isReferenced, additionalData.{uiFlowKey, uiFlowName, title, inputParameters[].{name, dataType, isRequired}})` — drop `additionalData.roles` (see Anti-patterns) |
| `actions-raw.json`     | `data[].(key, name, description, isPublic, ownerAppKey, isReferenced, additionalData.{actionType, actionTypeStr, parameters[].{name, dataType, parameterTypeStr, isMandatory, description}})` |
| `entities-raw.json`    | `data[].(key, name, description, isStatic, ownerAppKey, isReferenced, producerAssetKey, producerAssetName, additionalData.{records, attributes[].{name, dataType, isPrimaryKey, isMandatory, length, description}})` — on rows whose `producerAssetName` is a platform module (`(System)`, `OutSystemsUI`, `OutSystemsCharts`, `OutSystemsMaps`, `OutSystemsSampleData`, `OutSystemsSecurity`, `OutSystemsPipelines`, `OutSystemsServerlessAddon`) drop `additionalData` entirely: those rows are only counted, and foreign keys resolve against their names |
| `structures-raw.json`  | `data[].(key, name, description, ownerAppKey, isReferenced, additionalData.{attributes[].{name, dataType, isMandatory, length, description}})` |
| `roles-raw.json`       | `data[].(key, name, description, isPublic, ownerAppKey, isReferenced)` |
| `connections-raw.json` | `data[].(key, name, isReferenced, providerName)` |

Keep `additionalData.records` exactly as received: it is a JSON
*string* (`"[\"InStock\",\"Assigned\"]"`), and the viewer parses it.

**Token trade-off:** keeping attributes, parameters and screen inputs
costs more on the inline path. On a recorded mid-sized app (11 screens,
10 actions, 73 entity rows of which 62 from platform modules) the five
`context_*` compact writes are ~45 KB. The platform rows are 67 KB of
the 90 KB raw entities response, so keeping their `additionalData` would
more than double the write — hence the rule to drop it. Claude Code's
auto-save path is unaffected: saved files never enter the context.

**Ownership is `isReferenced`, not `ownerAppKey`.** On an app-scoped
query the server puts the visiting app's key in `ownerAppKey` (and
`assetKey`) on every row, inherited ones included, so that field cannot
tell owned from inherited. `isReferenced: false` means defined in this
app; `true` means it comes from a referenced library, named by
`producerAssetName`. The viewer partitions on `isReferenced`; when a row
has no `isReferenced` value it uses `producerAssetKey` (a producer other
than the app means inherited) and only then `ownerAppKey`. Keep all three
in the whitelist.

Wrap each file in
`{"data": [...], "total": <total>, "truncated": <truncated>, "next_offset": <next_offset>, "pagination": <pagination>}`,
copying those four top-level values from the response unchanged. The
viewer judges completeness from `pagination.offset` / `nextPageOffset`
(the page chain), because on the `owned_only: false` calls the server's
`total` is only a lower bound while more pages exist. With those keys
kept, it reads inline-written files and harness-saved files
interchangeably.

### Step 4 — Write the manifest

When every response is saved, rewrite `<app-folder>/manifest.json` with
the full manifest. This is the last file you write:

```json
{
  "schema": 1,
  "skill": "outsystems-app-architecture",
  "complete": true,
  "app_key": "<APP_KEY>",
  "app_name": "<APP_NAME>",
  "revision": 13,
  "fetched_on": "2026-09-29",
  "app_info": "app-info-raw.json",
  "screens": ["screens-raw.json"],
  "actions": ["actions-raw.json"],
  "entities": ["<absolute path the auto-save notice printed>", "entities-raw.2.json"],
  "structures": ["structures-raw.json"],
  "roles": ["roles-raw.json"],
  "connections": ["connections-raw.json"],
  "refs": "refs-raw.json",
  "revisions": "revisions-raw.json",
  "env_list": "env-list.json",
  "env_apps": {
    "<ENV_KEY_1>": "env-apps-<ENV_KEY_1>.json",
    "<ENV_KEY_2>": "env-apps-<ENV_KEY_2>.json"
  }
}
```

- `revision` is `app_info`'s `revision`, as a number, and `fetched_on`
  today's date (`YYYY-MM-DD`). The viewer refuses a folder whose
  app-info file is for another app key or another revision.
- Each `context_*` key lists that section's pages in offset order, every
  page you saved, one entry per page.
- A file you wrote is named relative to `<app-folder>` (its file name).
  A file the harness saved is named by its absolute path, exactly as the
  notice printed it.
- `env_apps` maps each environment key to its file, one entry per
  `env_apps` call.
- The six keys from `app_info` to `roles` are required. Leave out a key
  only for a call you did not make; a failed call keeps its key and its
  `{"error": ...}` file.

### Step 5 — Hand over to the user (3–6 lines)

- The folder: `<app-folder>`, as an absolute path.
- The viewer: https://outsystems.github.io/outsystems-mcp/outsystems-app-architecture/
  — the user opens it, chooses **Choose folder** and picks the
  `<APP_KEY>` folder (or drags it onto the page). The page reads the
  files in the browser; nothing is uploaded.
- When the manifest names files the harness saved outside the folder:
  the page lists them with their folder and asks the user to add them
  (**Add files**); say so, so the extra step is no surprise.
- App name, revision and asset type; any section that degraded because
  a call failed (libraries, AI model connections, revisions, an
  environment); and whether the folder was reused (written on
  `fetched_on`) or fetched now.
- The first time in a workspace that is a Git repository: the folder
  holds the app's data, so the user may want `outsystems-skills/` in
  their ignore file. Don't change it yourself.

If the page cannot build the graph, it shows a message for you and a
**Copy the message** button. When the user pastes it back:

- **`INCOMPLETE: <section> page(s) hold N rows ... offset: M`** → call
  that section's `context_*` tool again with the same arguments plus
  `offset: M`, save the response (auto-saved path or compact write, as
  in Step 3), add it after the section's other pages in the manifest,
  and check it for truncation as in "Fetch every page". For the "do not
  form a contiguous chain from offset 0" variant, re-fetch that section
  once from `offset: 0` (same limit) with fresh file names and list only
  the new pages; if the same message comes back, stop and report the
  message and the files you listed rather than fetching again. Stop and
  report, too, if the page names the same `offset` twice.
- **`BAD PAGE`** → a page was fetched without `offset`, so it repeats
  another: fix the call, do not list the same file twice.
- **`BAD INPUT`** → a saved file is not JSON, or carries a harness
  truncation marker ("Warning: truncated output",
  "…N tokens truncated…"): the response was cut before it reached you
  and rows are missing. Re-fetch that call with `limit: 25` and page
  with `offset` (one file per page). Never hand-repair the file. A
  `BAD INPUT` naming another app or another revision means the folder
  mixes two runs: run the skill again from Step 3.
- **"This folder cannot be read"** (manifest problems) → fix
  `manifest.json` as the message says, or run the skill again from
  Step 3 when it says the last run did not finish.
- **"A file is missing"** → a file the manifest names was not in what
  the user picked: if it was saved by the harness, ask the user to add
  it in the page; otherwise fetch that call again.
- **`STALE`** → the folder holds an `app-data.json` written by an older
  version of this skill: run the skill again.

## What the viewer shows

- An attribute whose type is `"<Entity> Identifier"` is a reference. Its
  target resolves by name: owned first, then user-library, then
  platform entity rows; "external" means no row of that name was in the
  saved results. The graph draws owned → owned and owned → inherited
  edges.
- A static entity shows at most 50 records and the full count. `"[]"` on
  an inherited static entity means "none recorded", not "none exist". A
  records string that is not a JSON list is reported in the page's build
  notes and treated as empty.
- Screens carry no roles: the payload's `additionalData.roles` lacks the
  screen's access mode, so the viewer leaves it out (see Anti-patterns).
- An environment is **unknown** when its `env_apps` response was not
  saved, failed, or was truncated without a row for this app key; it is
  never reported as "not deployed" without evidence. `env_apps` never
  lists **Workflow** assets (every environment renders "unknown") and
  **libraries** are not deployed on their own ("n/a"). A deployed row
  whose `revision` is null renders "revision unknown" with no drift
  claim.
- For what an `app_refs` answer covers (`indexedKinds`, `origin`, `coverage`), read the `app_refs` tool description.
- Built-in OutSystems modules are left out of Dependencies. With neither
  connections nor references available, the page hides the
  Dependencies layer and says why.
- The page's **Build notes** list each file it read, with the time it
  was saved, and any warning.

## Folder rules

- Location: `<workspace>/outsystems-skills/outsystems-app-architecture/<APP_KEY>/`,
  one folder per app. Files from a previous run stay until overwritten;
  only the files the manifest names are read.
- Reuse: same app revision and same day (Step 2). A single revision
  number is the canonical "did the app change?" signal; the day bounds
  how old the deployment view can be.
- A run starts by writing the `"complete": false` manifest (Step 3) and
  ends by writing the full one (Step 4).
- A file the harness saved outside the folder stays where the harness
  put it. If it is gone when the user opens the page (harnesses clean up
  old sessions), the page reports it missing: run the skill again.

## Token budget (estimate)

| Scenario | Mechanism | Total |
|---|---|---|
| Typical app, first run, Claude Code | 10+ calls, context_* auto-saved, one search per saved page | ~12-14K |
| Typical app, first run, inline (no auto-save) | 10+ calls, compact writes incl. attributes | ~15-20K, plus paging calls at `limit: 25` on a truncating harness |
| Reused folder | `app_info` probe + reading the manifest | ~2K |
| Opening the page again | the user re-opens the folder in the viewer | 0 |

Measured on an app with 18 screens / 42 actions / 30 entities / 6
structures / 19 enums / 1 role: ~12-13K with compact-write. `app_refs`,
`context_connections`, `app_revisions` and each `env_apps` response are
small (a few hundred bytes to ~2 KB each); the attribute-carrying compact
writes are the main cost (see the whitelist's token trade-off).

## Harness notes

- **Claude Code**: `context_*` MCP results above its size limit
  (measured between 45 and 65 KB) are auto-saved to disk by the harness
  ("Output has been saved to <path>") and never enter model context. On
  a large app this is what keeps the first-run cost down, and it's why
  the first anti-pattern below exists — don't undo the saving by reading
  the file back in. Those files sit outside the workspace, so the user
  adds them in the viewer.
- **Harnesses without auto-save** (Cursor, Kiro and others): every
  response arrives inline; compact-write the `context_*` ones as in
  Step 3 and write the rest as returned. Every file is then in the
  folder, and the user only picks the folder.
- **Harnesses that truncate large tool results** (for example Codex,
  which keeps the head and the tail, prefixes "Warning: truncated output
  (original token count: N)" and replaces the middle with "…N tokens
  truncated…"): use `limit: 25` on every `context_*` call and page with
  `offset` while a page is truncated; write each page to its own file.
  If a response still shows the marker, do not compact it — re-fetch
  with a smaller `limit`. The viewer refuses a file carrying the marker
  (`BAD INPUT`), so a cut page can never be shown as complete.
- A reused folder (Step 2) costs the same on every harness — that path
  never touches `context_*`.

## Troubleshooting

- **An MCP call fails with an authentication error** → the sign-in
  expired: ask the user to sign in to the OutSystems MCP server again,
  then start over. Don't loop.
- **The OutSystems tools are missing** → the MCP server is not connected;
  ask the user to connect it (see the main OutSystems skill's setup).
- **A file cannot be written** (no space left, no permission, or a file
  where the folder should be) → tell the user which path failed; ask
  them to free space or fix that folder, or to name another workspace
  folder, then run Step 3 again.
- **The viewer does not open** → it is a web page, so the browser needs
  network access to load it. The folder stays valid: the user opens it
  once the page loads.
- **A description or static-entity record list shows "truncated by the
  server (N bytes)"** → the server replaces any `additionalData` string
  over 2048 bytes with `{"_truncated": true, "_originalBytes": N}` (a
  large static entity's records, a long description). The page keeps
  the marker's size, never an empty value. To read the full field, use
  `context_search` with `full_fields: true` for that element.
- **App name matches multiple apps** → return the candidate list, ask
  the user to pick. Show `assetKey, name, revision, isExternal`.
- **`app_info` returns 404** → the app may have been deleted. Tell the
  user.
- **`context_*` returns `{"data":[], "pagination":...}`** with empty
  data despite `owned_only: true` → try `owned_only: false`. The viewer
  keeps only rows with `isReferenced: false` for the owned sections, so
  widening the query never leaks inherited items into them.
- **`context_connections` returns no rows** → the app uses no AI model
  connection (or the call was made with `owned_only: true`, which hides
  them — it must be `false`).
- **`app_refs` errors or times out** → save
  `{"assetKey": "<key>", "failed": true}` to `<app-folder>/refs-raw.json`.
  The page renders without libraries (connections still show).
- **An environment shows "unknown"** → its `env_apps` response was not
  saved, or was truncated without a row for this app (the tool has no
  `offset`). Re-run that call with the exact app name; it is never
  reported as "not deployed" without evidence.
- **`BAD INPUT: ... truncation marker`** → see Harness notes.

## Anti-patterns — do NOT do these

- 🔴 **Do NOT read or copy any `context_*` harness-saved file (Claude
  Code).** When a context call returns *"Output has been saved to
  <path>"*, list that path in the manifest (Step 4) and leave the file
  where it is; the viewer reads it. **Never** read it into context, and
  never copy it with a read and a write. A large app's
  `context_screens` payload alone can be 20-40 KB ≈ 5-10K tokens; across
  all context calls a large app pulls 50-150 KB = 12-35K tokens into
  context, and every later turn pays for it again. To check a saved page
  for truncation, use the count-only search of "Fetch every page".
- 🔴 **Don't dump an inline `context_*` payload back into the
  conversation or re-read the compact file (harnesses without
  auto-save).** Each response arrives inline (see Step 3) and is
  compacted straight to `<app-folder>/<section>-raw.json`. Name that
  file in the manifest — never re-print or re-load the raw payload into
  context on a later turn.
- **Don't parse the payloads yourself** (no scripts, no queries over the
  saved files) and don't draw or write the graph page yourself: the
  viewer does both, from the files the manifest names.
- **Don't iterate this skill over many apps in one go** without
  Step 0's user-confirmation gate. A "give me all my apps" request
  scaled to 100 apps = ~1M tokens / 30-60 min wall time. Always
  prefer `outsystems-tenant-architecture` for tenant-wide views; this
  skill is per-app only.
- **Never cross-product roles with screens — don't invent per-screen
  authorization.** Screen rows carry `additionalData.roles`, but it is
  filled from the model's screen roles list and does not include the
  screen's access mode (Everyone / Authenticated / selected roles). A
  screen set to "Accessible by: Everyone" can still list the app role:
  on a recorded app every screen, the template Login screen included,
  lists it. A summary built from that field once stated that every
  common-flow screen required the app's role, when in ODC Studio those
  screens were `Accessible by: Everyone`. So the viewer leaves screen
  roles out and the graph draws no screen → role edges. It lists the
  app's roles once, flat; never assign roles to screens, never infer
  them from the app's primary role, and never call a screen public or
  anonymous (`isPublic` is the element's Public property, not anonymous
  access). For who can open a screen, point the user to ODC Studio.
- **Don't fetch `context_themes`** — the response can be >150 KB on a
  real app. Out of scope; high cost, low signal.
- **Don't skip `app_refs` because the app is large or has many
  revisions.** Its cost does not depend on the revision number.
- **Don't report an environment as "not deployed" from a truncated or
  missing `env_apps` response** — the viewer says "unknown" there; keep
  that wording.

## When NOT to use

- User wants the whole tenant (use `outsystems-tenant-architecture`).
- User asks who depends on a library, agent or connection (reverse
  dependencies) → use `outsystems-dependency-impact`.
- User wants raw data only — return JSON.
- App is huge and the user wants a specific subsystem only — they're
  better served by a `context_search` follow-up.

Files in this skill

  • SKILL.md32.4 KB
  • agents/openai.yaml265 B
  • assets/template.html57.5 KB
  • scripts/build.py60.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.