agentleFS
MicrosoftKnown publishermicrosoft/fabric-org-app-template/.agents/skills/app-validation/SKILL.md

app-validation

Skill1 starsChanged 6 months agoMITView on GitHub

Validate that a migrated Org App template builds, type-checks, and runs locally before declaring migration complete. Use as the last step after org-app-fetch / org-app-parsing / org-app-theming have updated the codebase.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. microsoft/fabric-apps-analytic-templates★ 26same name
    2. khadinakbarlabs/shopify-app-builder★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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 after every migration as the final acceptance gate.

    line 10
  2. Distinctive:

    Must exit 0. Common failures:

    line 26
  3. Very specific:

    Must exit 0 and produce dist/.

    line 39
  4. Distinctive:

    Should be clean. Non-blocking if only the org-app-* skills added unused imports — fix manually.

    line 47
  5. Distinctive:

    Must match. Stop the dev server when done.

    line 61
  6. Very specific:

    Read src/config/orgAppManifest.ts and confirm:

    line 65
  7. Distinctive:

    Use the playwright-cli skill to:

    line 81
  8. Distinctive:

    When all checks pass, tell the user:

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

app-validation

When to use this skill

Run after every migration as the final acceptance gate. Catches:

  • Manifest values that broke TypeScript types
  • Theme hex strings that broke CSS parsing
  • Missing report IDs
  • Auth env vars not set
  • Embed URL mismatches

Required checks (run in order)

1. Type-check

pnpm tsc --noEmit

Must exit 0. Common failures:

ErrorCauseFix
Type 'string' is not assignable to type 'OrgAppReport[]'reports field is missing or malformed in src/config/orgAppManifest.tsRe-run org-app-parsing
Property 'tenantId' is missingOld manifest written before tenantId was addedAdd tenantId to the manifest

2. Build

pnpm build

Must exit 0 and produce dist/.

3. Lint

pnpm lint

Should be clean. Non-blocking if only the org-app-* skills added unused imports — fix manually.

4. Dev server runs

pnpm dev

In another terminal:

curl.exe -s http://localhost:5173 | Select-String "<div id=`"root`""

Must match. Stop the dev server when done.

5. Manifest sanity

Read src/config/orgAppManifest.ts and confirm:

  • workspaceId is a non-empty GUID
  • orgAppId is a non-empty GUID
  • tenantId is a non-empty GUID
  • displayName is non-empty
  • reports.length > 0 (or warn user the Org App had no reports)
  • Every reports[i].itemId is a GUID
  • theme.background starts with # and is 7 chars

6. Theme tokens patched

Select-String -Path src/global.css -Pattern "--color-app-background:" must show the value from the manifest, not the default Fabric blue (#0f6cbd) unless the source Org App genuinely had no theme.

7. End-to-end (optional, recommended)

Use the playwright-cli skill to:

  1. Open http://localhost:5173
  2. Sign in via Fabric SSO
  3. Confirm sidebar shows all reports
  4. Click one report → confirm iframe loads with no console errors

What this skill does NOT validate

  • Whether the user actually has access to the workspace / report (caught at iframe render time)
  • Whether the Power BI report itself works (caller's responsibility)
  • Whether npx rayfin up populated .env.local (caught at runtime by getRayfinClient)

Sign-off

When all checks pass, tell the user:

✅ Migration validated. Run pnpm dev and visit http://localhost:5173 to use your Org App.

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.