Skip to content
Back to skills

Outsystems Tenant Architecture

ASecurity

[Beta] Graph an OutSystems Developer Cloud tenant's assets (web/mobile apps, agents and agent definitions, AI model connections, knowledge bases, libraries, integrations), 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). Saves a workspace folder that a hosted viewer page draws. ONE tenant-level pass per invocation, no per-app deep...

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

Works with

  • claude code
  • claude desktop
  • cursor
  • cli
  • 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-tenant-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Outsystems Tenant Architecture?

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

Security grade badge for Outsystems Tenant Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/outsystems-outsystems-tenant-architecture/badge)](https://www.skillsdirectory.com/skills/outsystems-outsystems-tenant-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-tenant-architecture
description: "[Beta] Graph an OutSystems Developer Cloud tenant's assets (web/mobile apps, agents and agent definitions, AI model connections, knowledge bases, libraries, integrations), 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). Saves a workspace folder that a hosted viewer page draws. 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; same-day re-runs reuse the folder. 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."
license: MIT
compatibility: Needs an agent that can write files in the user's workspace (Read, Write and Glob, or the harness's equivalents), with the OutSystems MCP server connected and signed in. Needs no shell and no Python. Validated on Claude Code. Claude Desktop's Chat tab cannot write the folder, so it cannot run this skill. The user opens the folder in a static viewer page that OutSystems hosts on GitHub Pages; the page reads the files in the browser and uploads nothing, but loads its graph library and fonts from public CDNs, and offline it falls back to a plain asset table.
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 Tenant Architecture

Saves what the user's ODC tenant holds to a folder in their workspace:
every asset, where each one is deployed, a 7-day Production traffic/error
overlay, and the AI governance data. The user opens that folder in the
viewer page, which draws a force-directed graph of the tenant: OutSystems
dark theme, filter-by-type, by-environment and by-health sidebar, click
for asset details, a Table view, and a Summary view. A re-run on the same
day reuses the folder.

The viewer is a static page that OutSystems hosts:

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

The user picks the folder there (or drops it on the page). The page reads
the files in the browser and sends them nowhere: its Content Security
Policy blocks every request except the graph library and the web fonts.
**Save as HTML** on the page downloads one file with the data embedded, to
mail or archive. That file, like the page, loads the graph library
(vis-network 9.1.9, pinned with Subresource Integrity, from unpkg with a
jsDelivr fallback) and the web fonts from public CDNs. With both CDNs
unreachable (offline, or blocked by a proxy) it says so and shows the
asset table with every filter and the detail panel; fonts fall back to
system fonts.

## 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_list` for `app_list`).
- Your own file tools: Write saves each page file and the manifest, Read
  opens the one small file you ever read back (`manifest.json`), and Glob
  shows what a folder holds. No shell command and no script is involved.
- `<folder>` below is this skill's output folder for the tenant:
  `outsystems-skills/outsystems-tenant-architecture/<TENANT_ID>/` inside
  the workspace (the folder you are working in). Give the file tools its
  absolute path. Values in angle brackets are placeholders you substitute.
- Cannot write files (for example in Claude Desktop's Chat tab)? Stop and
  tell the user this skill needs an agent that can, such as Claude Code;
  don't paste the data into the conversation instead.

**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 the
other side. Never read a saved result back into the conversation.

## Procedure

### Step 0 — Scope guard

This skill produces **one tenant-level visualization** per invocation,
**not per-app deep dives**. Read the user's request and pick the
matching branch:

**Branch A — Tenant-only view** ("show me my tenant", "what's in my
tenant", "tenant architecture", "show me my apps")
→ Continue the procedure as normal.

**Branch B — Tenant + per-app deep dives** ("show me everything in
detail", "architecture of every app", "deep dive on each app")
→ **Stop and ask the user for confirmation, before any MCP call.** Don't
list the apps to count them first: the question needs no count. Chaining
`outsystems-app-architecture` over every app costs ~10K tokens and
~0.5-1 min per app (100 apps = ~1M tokens and 30-60 min). Offer three
choices:

- **Tenant only (recommended):** produces the tenant graph in 2-5 min.
  Run `outsystems-app-architecture` afterwards only for the apps the user
  wants to drill into.
- **Tenant + per-app for ALL apps:** runs `outsystems-app-architecture`
  for each app, at the per-app cost above.
- **Cancel.**

If the user picks the per-app option, the tenant graph (Branch A) gives
the app count; don't fetch `app_list` just to put a number in the
question.

Default to Branch A on ambiguity. A request for "everything" usually
means the tenant view, and chaining every app by accident is what turns a
3-minute run into a 20-minute one.

### Step 0.5 — Demo prep tip

If the user is **prepping for a demo**: run this skill once **before
the demo**, open the folder in the viewer and use **Save as HTML**. During
the demo, open that file (or keep the viewer tab open). Don't run the
first-time path live in a demo: the 2-5 min wait is long on screen.

### Step 1 — Resolve the tenant

In one message, call `auth_status` and `app_list` with `limit: 1` (the
probe, ~300 tokens).

From `auth_status` read two top-level fields: `tenant_id` → `TENANT_ID`,
and `tenant_hostname` → `TENANT_HOSTNAME` (e.g. `acme.outsystems.dev`;
the graph's root node and header use its first label). Do not read
anything under `claims`: those are raw sign-in claims, not a contract.
From the probe keep `total` → `APPS_TOTAL`, the tenant's asset count.

On the remote (HTTP) server these calls only run while the sign-in is
valid. An expired or missing sign-in surfaces as an authentication error
on the first MCP call: stop and ask the user to sign in to the OutSystems
MCP server again, then start over. Don't retry in a loop.

The folder holds tenant data, so keep it out of the user's commits: if
the workspace has no `outsystems-skills/.gitignore` yet (check with
Glob), write that file with the single line `*`. Git then ignores the
whole `outsystems-skills` folder, and the user's own `.gitignore` stays
untouched.

### Step 2 — Reuse today's data (only if the folder has a manifest)

If `<folder>/manifest.json` exists (Glob), Read it: it is a few hundred
bytes, and the only saved file you ever read. Reuse the folder, and jump
to Step 5, when all of these hold:

- its `schema` is `1` and its `skill` is `outsystems-tenant-architecture`;
- its `fetched_on` is today's date (you know the date, not the time, so
  "fresh" means "fetched today");
- its `apps_total` equals the probe's `total` (`APPS_TOTAL`);
- it lists the overlays: `deployments` or `deployments_skipped`, and
  `ai_agents` or `ai_skipped`. A manifest without them was written by a
  run that did not fetch them; deployments and health change without the
  asset total changing, so refetch.

Otherwise go on to Step 3. If the user said "refresh" / "fresh data" /
"rebuild", skip this step.

### Step 3 — Fetch (two parallel rounds, then the rest of each page chain)

**Round 1** — call **all** of these in a single message so they run
concurrently:

- `env_list` — small response, ~1 KB
- `app_list` with `limit: 500` (the server's maximum page size; larger
  values are clamped to 500), or `limit: 50` on a harness that truncates
  large tool results (see Harness notes), once per page: `offset: 0`,
  then `500`, `1000` and so on while the offset is below `APPS_TOTAL`.
  A tenant of up to 500 assets is one call. The responses are envelopes
  `{results, total, displayed, truncated, next_offset, ...}`; the viewer
  reads them, you never do.

Save the env response verbatim to `<folder>/envs-raw.json`. Its rows give
you each environment's `key`, `name` and `purpose` (`Development`,
`NonProduction`, `Production`) for round 2.

**Round 2** — in a single message, call:

- `env_apps` with `env_key: <key>` for **every** environment (no `offset`
  on this first call: older servers reject unknown arguments). Deployed
  apps and agents per environment, 100 rows per response by default.
  **If the tool's input schema lists a `limit` argument**, also pass
  `limit: 500` (`limit: 50` on a harness that truncates large tool
  results): on Claude Code a large page is auto-saved to disk, so a
  large environment costs no writing at all. If the schema has no
  `limit`, don't pass one; the call would be rejected.
- `app_health` for **every `Production`-purpose environment** with
  `env_key: <key>`, `apps: ""` (every app in the stage), `hours: 168`, and
  `limit: 1000` (`limit: 50` on a truncating harness). Don't pass
  `metrics` (the default set is what the overlay shows). If the tenant
  has no Production environment, skip this call; the viewer says why.
- `context_agents` and `context_connections` (the **AI governance**
  view), each with `owned_only: false`, `limit: 100` (`25` on a
  truncating harness) and `offset: 0`. Tenant-wide, so no `app`. They
  report provider, entitlement (Trial / Customer) and dates for **Agent
  apps** and **AI model connections only**: agent definitions, knowledge
  bases and MCP / search-service / A2A / AI-native connections are not
  covered by these tools and show as "not reported" in the view.

Why a 168-hour window: this is an inventory view, so the questions are
"which apps had no traffic this week" and "which had errors this week".
`app_health`'s own description warns that wide windows average away an
incident, so the overlay is **not** an incident view and the report must
not present it as one (for a live incident, use `app_health` with its
default 24 h, or the app's logs and traces).

**Round 3 — the rest of each page chain.** Only a response that arrived
inline shows you its envelope; read just these keys of it, and make every
call of the round in one parallel message:

- `env_apps` with a numeric `next_offset` (newer servers): call it again
  for every remaining window, with the same `limit` as the first page:
  `offset: <next_offset>`, then one `limit` further, while below `total`
  (280 rows at 100 per page: offsets 100 and 200). A truncated page with
  no (or a null) `next_offset` comes from an older server that takes no
  offset: keep it, the viewer marks that environment **PARTIAL** and
  never counts it as proof that an app is not deployed. Don't retry it
  with `offset` (the call is rejected) and don't try to enumerate it
  with `search`.
- `app_health` with a `nextPageOffset` above 0: the same arguments plus
  `offset: <nextPageOffset>`, and again for each new page's value.
- `context_agents` / `context_connections` with `truncated: true`: the
  same arguments plus `offset: <next_offset>` (or the
  `pagination.nextPageOffset`).

Never fetch more than `ceil(total / limit)` pages of one set. A page
Claude Code auto-saved hides its envelope, and you must not read it: the
viewer checks every chain and, when a page is missing, names the exact
call to make (Step 6).

**Saving every response** (app_list, env_apps, app_health, context_agents,
context_connections) — inspect only the result text, never the payload:

- **If it contains** `"Output has been saved to <path>"` (Claude Code's
  harness auto-save for large results, such as a 500-row app_list page of
  ~90 KB; a 100-row env_apps page, ~31 KB, usually stays inline): that
  path is the page file. The same notice tells you to read the file in
  chunks before summarizing it: that is Claude Code's generic instruction,
  and this skill's contract
  overrides it. Put the path, exactly as printed, in the manifest; never
  read the file. It stays where the harness saved it, outside the
  workspace, and the user adds it in the viewer (Step 5).
- **If it returned an inline JSON object** (small responses on Claude
  Code; every response on a harness without auto-save): write it
  verbatim — envelope included — to `<folder>/apps-page-<N>.json`,
  `<folder>/env-apps-<ENV_KEY>-<N>.json` or `<folder>/health-<ENV_KEY>-<N>.json`
  (`<N>` counts that set's pages from 1, in offset order).
  Write the two AI governance pages in the compact form below to
  `<folder>/ai-agents-<N>.json` and `<folder>/ai-connections-<N>.json`.
  That is the page file. Write it with the Write tool, one call per file,
  never through a shell redirect.
- **If a call failed** (for example `app_health` on a tenant whose
  analytics are not enabled, or an `env_apps` error for one environment):
  a server error or timeout (5xx, 504) is retried once, every failed call
  in one parallel message; an authentication error is never retried (see
  Step 1). A call that fails again keeps its one-line error message for
  the manifest's `deployments_skipped`, `health_skipped` or `ai_skipped`
  (Step 4). A failed overlay never blocks the graph.
- **On a refresh** (the folder already holds a manifest), write no file
  until every call of the run has answered. A failed call would turn a
  section the folder has whole into "skipped": before writing anything,
  tell the user which sections would be lost and ask: write the new data
  with them skipped, or keep the folder as it is and refresh later.

**Write every response of this run.** On a refresh too, every page file
the manifest lists holds a response fetched in this run, written in
full, even when it looks identical to the page saved last time. Never
list a page file from an earlier run, never patch, splice or re-shape a
saved page (beyond the compact form below), and never `touch` one:
the viewer dates each part of the page from its page files' save times,
and warns when they span more than one fetch.

**Compact form of the AI governance pages.** The `context_agents` and
`context_connections` rows carry descriptions and empty layout objects
that the viewer never reads, about 70% of each page. When a page arrives
inline, write only these fields of each `data[]` row, in compact JSON:
`key`, `name`, `isPublic`, `timestamp`, `providerName`,
`additionalData.{revisionDateTime, providerId, entitlement}` (leave out
any that a row does not carry). Copy the envelope keys `total`,
`truncated`, `next_offset` and `pagination` unchanged: the viewer checks
the page chain from them. A page Claude Code auto-saved is listed as its
path, as is.

### Step 4 — Write the manifest

Write `<folder>/manifest.json` with the Write tool, **last**, after every
page file. It is how the folder describes itself: the viewer reads it
first and opens nothing it does not list. For example:

```json
{
  "schema": 1,
  "skill": "outsystems-tenant-architecture",
  "tenant_id": "<TENANT_ID>",
  "tenant_hostname": "<TENANT_HOSTNAME>",
  "fetched_on": "2026-12-03",
  "apps_total": 515,
  "envs": "envs-raw.json",
  "apps": ["<the path Claude Code printed for app_list offset 0>", "apps-page-2.json"],
  "deployments": {
    "<DEV_KEY>": ["env-apps-<DEV_KEY>-1.json"],
    "<TEST_KEY>": ["env-apps-<TEST_KEY>-1.json", "env-apps-<TEST_KEY>-2.json"]
  },
  "deployments_skipped": {"<PROD_KEY>": "<the failed call's one-line error>"},
  "health": {"<PROD_KEY>": ["health-<PROD_KEY>-1.json"]},
  "ai_agents": ["ai-agents-1.json"],
  "ai_connections": ["ai-connections-1.json"]
}
```

- `schema` is `1` and `skill` is `outsystems-tenant-architecture`; the
  viewer refuses any other schema with a message saying so.
- `fetched_on` is today's date, `YYYY-MM-DD`; `apps_total` is the probe's
  `total`. Step 2 reads both.
- A file entry is a name relative to `<folder>`, or the absolute path an
  auto-save notice printed, exactly as printed. Every list is in offset
  order.
- `apps`: every app_list page. `envs`: `envs-raw.json`.
- `deployments` and `health` map each environment's `key` (from
  `envs-raw.json`) to its page files. For a failed call, put the
  environment under `deployments_skipped` or `health_skipped` with the
  error instead. An environment in neither is shown as "not fetched".
- `ai_agents` and `ai_connections` list every page of each. List both or,
  when either call failed, neither, and set `ai_skipped` to the error.
- With no Production environment there is no `health` and no
  `health_skipped`; the viewer says why the overlay is absent.
- No other keys: the viewer refuses an unknown key (a key that starts
  with `_` is a note it ignores).

On a refresh the new manifest replaces the old one. Page files from an
earlier run that it no longer lists can stay; the viewer ignores them.

### Step 5 — Report (4–7 lines)

You did not read the data, so don't describe it beyond what you saw. Tell
the user:

- The folder's absolute path, and the viewer link
  https://outsystems.github.io/outsystems-mcp/outsystems-tenant-architecture/
  with what to do there: click **Choose folder** and pick that folder (or
  drop it on the page). Nothing is uploaded; the browser may still call
  the folder pick an upload.
- The files outside the folder, if any page was auto-saved: their full
  paths. The viewer lists them and asks for them (**Add files…**, or
  drop them on the page); they sit in one folder that the file dialog may
  hide (on macOS, press Cmd+Shift+G in the dialog and paste the folder's
  path).
- The asset count (`APPS_TOTAL`) and the environments; any section that
  was skipped and why; an environment the server returned PARTIAL.
- That the page's **Summary** view lists the facts (asset groups,
  deployment status per environment, revision drift, the health classes,
  the AI governance flags), and that its **Copy summary** button gives
  them to you if the user wants to discuss them.
- Health: say it is a 7-day inventory view, not an incident view. Never
  call any app "healthy": `appScore` is a latency score (a zero-traffic
  app scores 100) and is not shown at all.
- AI governance: agent definitions and non-model connections are not
  covered by that source, and the flags are a name heuristic and dates.
- Data state: "fetched now" or "reused from earlier today". The page
  shows each part's fetch time; **Save as HTML** keeps a copy to share.

### Step 6 — When the viewer reports a problem

The viewer re-checks every page chain and refuses to draw a tenant while
a page is missing, repeated or stripped, so a partial page set is never
shown as "the whole tenant". It shows one line per problem and a button,
**Copy for your agent**; the user pastes those lines to you.

- `INCOMPLETE: app_list returned 500 of 515 assets ... offset: 500` (or
  the same for one environment's `env_apps`, one `app_health` page set,
  or `context_agents` / `context_connections`) → a page set has a next
  page, often because its last page was auto-saved and you could not see
  its envelope, or the tenant grew since the probe. Make every printed
  call in one parallel message (same `limit` as the first page, plus the
  printed `offset`), save each response as in Step 3, add the files to
  the manifest after that set's earlier pages, write the manifest again,
  and ask the user to pick the folder again. Stop and report instead of
  re-fetching when the same `offset` comes back twice.
- `INCOMPLETE: the ... pages listed cover N of T ... but the last page is
  not truncated` → either a page is not in the manifest, or the data
  changed between the page fetches. List every saved page; if they were
  all listed, fetch that set again from the first page.
- `BAD PAGE: ...` → a page cannot be trusted: it repeated an earlier page
  (the `offset` was not passed), it was saved without its envelope, it is
  not valid JSON, it carries a harness truncation marker
  (`Warning: truncated output` / `…N tokens truncated…`), or an
  `app_health` page is listed under the wrong environment key. Fix the
  fetch (a smaller `limit` for a truncated page); don't list the same
  files again.
- `USAGE: ...` → the manifest itself is wrong (an unknown key, an
  environment key not in `envs-raw.json`, a list where a map belongs).
  Rewrite it as the message and Step 4 say.
- "N files are still needed" → files the manifest lists are not in what
  the user picked. For auto-saved pages, repeat their full paths; for
  files in `<folder>`, check that the user picked `<folder>` itself.
- `STALE: ...` → the user picked a folder written by an older version of
  this skill. Run the skill again; it writes a new folder.

## Token budget — by tenant size

The first-run cost depends on how much of the data the harness saves to
disk for you. Claude Code saves a tool result once it passes a size limit it sets in
tokens (measured between 45 and 65 KB of JSON; a 500-row `app_list` page,
~90 KB, is saved); anything smaller arrives
inline and the model has to write it out, paying for it twice. A full
100-row `env_apps` page (~31 KB) and the AI governance pages usually stay
under that line, so each environment adds a few thousand tokens. On a
harness without auto-save every page passes through the model once and
is written out once — see Harness notes.

Measured live on Claude Code (499 assets, 3 environments, one of them
with 280 deployments on a server that pages `env_apps` in 100-row
windows only): about 5 minutes, most of it writing the 100-row
`env_apps` pages out inline (~30 KB each); the asset list was
auto-saved and the AI governance pages written in compact form. Every
further 100-row window of a large environment adds about 2.5 minutes,
which is why `limit: 500` is used whenever the server offers it.

| Tenant size | Mechanism | Tokens (first run) | Wall time |
|---|---|---|---|
| **Small** (<~150 assets) | Every response inline → model writes it to disk | ~5-10K | ~2-3 min |
| **Mid** (~150-300 assets) | Asset list inline or borderline auto-save; overlays inline | ~15-30K | ~3-7 min |
| **Large** (>~300 assets) | Asset list auto-saved (its path goes in the manifest); `env_apps` and AI pages inline | ~15-30K, mostly the overlays | ~4-7 min |
| **Same-day re-run (any size)** | Probe + one manifest read | ~2-3K | ~10 s |

**The trap:** a response just under the auto-save line costs the most,
because it is paid twice (once in the MCP result, once in the write).

**Why runs get slow:** if the model reads an auto-saved file back in,
every later turn carries the full asset list. That turns a 3-minute run
into 15-25 minutes. See the first anti-pattern below.

## What the view shows

The viewer builds the tenant view from the manifest and the page files it
lists, and checks them first: a missing, repeated or stripped page stops
it with the lines Step 6 describes. It also opens a `tenant-data.json`
that an earlier version of this skill wrote.

**AI governance semantics.** Rows join assets by key (the row `key` is the
asset key). An agent's name is its `app_list` name when it is listed (the
index carries a compact form: "TestAgent1_0" for "Test Agent 1.0"). Some
agents can be indexed for context search but absent from `app_list`; they
are kept and marked as not in the asset list. The test/demo flag is a name
heuristic: one of test, tmp, temp, demo, untitled, xxx, 123, sample,
scratch or wip as a whole word of either name, where a change of case or a
digit also breaks words ("AgenticRegressionTest" counts, "Latest" does
not). "Stale" means no update in 180+ days. Agent definitions, knowledge
bases and non-model connections are shown as "not reported by the
governance source", never hidden. A provider or entitlement a row does
not carry is "not reported", never a guess.

Known asset types (each colored distinctly):

| Hub | Types |
|---|---|
| Applications | `WebApplication`, `MobileApplication`, `Workflow` |
| AI | `Agent`, `AgentDefinition`, `AIModelConnection`, `KnowledgeBase`, `AINativeConnection` |
| Libraries | `LowCodeLibrary`, `ExtensionLibrary`, `MobileLibrary`, `ExternalLibrary`, `WidgetLibrary` |
| Integrations | `ExternalConnection`, `MCPConnection`, `SearchServiceConnection`, `A2AConnection` |

`Agent` and `AgentDefinition` are separate `app_list` asset types; the
"Agents" tile counts both and names each. Unknown types render grey
under their own **Other** hub and tile (and the Summary view lists them),
never inside a real category.

**Deployment semantics.** Drift compares the latest revision
(`app_list`) with the revision running in the highest-purpose environment
the asset is deployed in (Production > NonProduction > Development, then
`order`). "Not deployed anywhere" covers only the types `env_apps`
actually lists: libraries never get a deployment record (they
ship inside the apps that consume them) and the server drops `Workflow`
rows from `env_apps`. While any environment is partial or not fetched the
filter reads "Not in any deployment list" and says why. `env_apps` reads
the deployed inventory and `app_list` reads source control, so the two
can disagree. A deployment whose asset has no source-control record
(typically an orphaned agent definition) is kept under its `env_apps`
key, name and `assetType` (on servers that send it): it has no node, the
Table view lists it in a section of its own, and the Summary view counts
it per environment and per type. A row's `name` is the name at the
deployed revision, so a renamed asset can run under its old name; the
detail panel shows it as "deployed as".

**Health semantics** (from `app_health`'s own contract). Classes:
errors = `errors > 0`, `errorPercent > 0` or a `lastErrorOccurred` in
the window; no traffic = `requests` reads 0, or the app is deployed in
that environment and has no row in a result set the server proved
complete; no reading = `requests` unavailable, or no row in a result set
that was not proven complete; traffic = requests with no recorded
error. A metric in the `metrics` echo but absent from a row is shown as
"unavailable", never as zero. `appScore` is never carried into the view.

## Folder rules

- Location: `outsystems-skills/outsystems-tenant-architecture/<TENANT_ID>/`
  in the workspace, one folder per tenant, holding `manifest.json`,
  `envs-raw.json`, `apps-page-<N>.json`, `env-apps-<ENV_KEY>-<N>.json`,
  `health-<ENV_KEY>-<N>.json`, `ai-agents-<N>.json` and
  `ai-connections-<N>.json`. `outsystems-skills/.gitignore` keeps it out
  of commits (Step 1).
- Reuse: the same day (`fetched_on`), with the probe's `total` equal to
  `apps_total` and the overlays listed (Step 2).
- The overlays are not probed: a deployment or a traffic change during
  the day is not detected. The viewer shows each part's fetch time, and
  a "refresh" request always refetches.
- Known false-negative: if N assets were added AND N deleted between
  fetches, the count is stable and the delta is missed. Force refresh on
  user request.
- An auto-saved page is not part of the folder: it stays where the
  harness saved it, and the harness may clear it with its old session
  files. **Save as HTML** keeps a copy that lasts.
- `outsystems-dependency-impact` reads this folder through its
  `manifest.json` (`schema`, `skill`, `tenant_id`, `fetched_on`,
  `apps_total` and the `apps` list) to reuse the asset list. Keep the
  names above.

## Harness notes

- **Claude Code**: 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. The saved file is the raw JSON payload on one line,
  which is what the viewer reads. This is what makes the Large-tenant
  band in the Token budget table so cheap, and it's also why the first
  anti-pattern below exists — don't undo the saving by reading the file
  back in.
- **Harnesses without auto-save** (Cursor, Kiro and others): every
  response arrives inline. Write each one verbatim, envelope included, to
  its page file (the AI governance pages in their compact form, Step 3);
  never hand-edit or re-shape one otherwise. Expect roughly the
  Mid-band token cost or more even for large tenants.
- **Harnesses that truncate large tool results** (for example Codex,
  which keeps the head and the tail, adds a
  `Warning: truncated output (original token count: N)` header and a
  `…N tokens truncated…` marker, and drops the rows in between): page
  `app_list` and `app_health` with `limit: 50` and follow the chains
  (Step 3); `env_apps` has no `limit` on older servers (a full 100-row
  response is ~31 KB), so if it comes back truncated put that
  environment under `deployments_skipped` with "response truncated by the
  harness" and say so in the report. The viewer refuses a page that
  carries the truncation marker or is not valid JSON (`BAD PAGE`).
- A same-day re-run (Step 2) costs the same on every harness: it reads
  only the manifest.

## 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).
- **The Write tool refuses a file** (no space left, no permission on the
  workspace) → tell the user which folder could not be written, and ask
  them to free space or fix its permissions. Don't fall back to another
  location without saying so.
- **The viewer shows a line starting `INCOMPLETE`, `BAD PAGE`, `USAGE`
  or `STALE`** → Step 6.
- **The viewer asks for files that are "still needed"** → auto-saved
  pages the user has not added yet: give their full paths again (Step 5).
- **An environment shows PARTIAL** → an older server returned 100 of
  its deployments and takes no offset. Expected; report it.
- **`app_health` fails** (e.g. analytics not available) → put the
  environment under `health_skipped` with the error line; the graph and
  deployments still render and the report says the overlay was skipped
  and why.
- **The page shows "Graph library could not load"** → unpkg and jsDelivr
  are both unreachable from that browser. The table view works; open the
  page on a network that allows either CDN to see the graph.
- **No envs returned** → the viewer falls back to `region=us-east-1`,
  `hosting=oscloud`, `realm=<tenant_hostname first label, else tenant-id prefix>`.

## Anti-patterns — do NOT do these

- 🔴 **Do NOT read a harness-saved file (Claude Code).** When Claude
  Code's harness emits *"Output has been saved to <path>"*, the path goes
  **directly into the manifest**. The model must **never** read that file
  into context, not even its first lines: it is one line of JSON, and the
  Read tool returns a line whole. A 280-asset tenant's payload is
  ~50 KB ≈ 12-15K tokens; on a 1000-asset tenant it's ~150 KB ≈ 35-50K
  tokens. Once that's in context, every subsequent turn processes it —
  turning a 3-min skill into a 15-25 min skill. The contract is: data
  goes through disk → the viewer, never re-entering the model's context.
- 🔴 **Don't dump an inline payload back into the conversation or re-read
  the saved pages (harnesses without auto-save).** Once a response is
  saved verbatim to its page file (envelope intact), list that file in the
  manifest — never re-print or re-load the raw payload into context on
  a later turn. The cost is the same as above.
- **Don't parse the payloads yourself** (no hand-written scripts over the
  saved files): the viewer does the transform, and its Summary view names
  what the user asks about (flagged agents, Trial connections, deployed
  assets missing from the asset list).
- **Don't reuse, patch or `touch` a saved page on a refresh.** Comparing a
  new response with an old file by eye is how a changed revision slips
  through; write the new response (Step 3).
- **Don't state a health verdict.** No "healthy", no "all good", no
  score. Errors, traffic and missing readings are what the view shows;
  "no reading" is not "fine".
- **Don't call the 7-day overlay an incident view.** It answers "what
  had traffic / errors this week", not "what is broken now".
- **Don't chain into `outsystems-app-architecture` per-app** without
  Step 0's explicit user confirmation. A "tenant + every app" request
  has 100× the cost; gate it.
- **Don't fetch the asset list with a `limit` below 500 on Claude
  Code.** 500 is the server's page cap and one 500-row page (~90 KB) is
  auto-saved; smaller pages only add calls. Values above 500 buy nothing:
  the server clamps them and flags `truncated: true`. (On a truncating
  harness the opposite holds — use 50, see Harness notes.)
- **Don't pass `offset` to `env_apps` unless a page offered a
  `next_offset` or the viewer printed one.** Older servers reject it.
- **Don't concatenate pages by hand or merge them into one file.** List
  every saved page in the manifest; the viewer merges, de-duplicates and
  refuses to draw while a page is missing.

## When NOT to use

- User wants one app's architecture → use `outsystems-app-architecture`.
- User wants raw data only → return JSON, skip the viewer.
- User wants a non-graph layout (treemap, sunburst) → fork the viewer.
- User is chasing a live incident → use `app_health` (default 24 h),
  logs and traces directly; this overlay is a weekly inventory view.

Files in this skill

  • SKILL.md37.2 KB
  • agents/openai.yaml264 B
  • assets/template.html72.3 KB
  • scripts/build.py70.5 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.