agentleFS
MicrosoftKnown publishermicrosoft/ignite26-PREL40/src/home-loan-desk/.agents/skills/app-validation/SKILL.md

app-validation

Skill3 starsChanged 29 days agoMITView on GitHub

Run focused checks while implementing and one final static, browser, and persistence validation sequence before calling a Universal App complete.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use rayfin-functions.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    rayfin-functions

    Use when writing Rayfin user-defined functions (UDFs), invoking functions from frontend code, or using functions CLI commands. Triggers: rayfin functions, udf.func, UserDataFunctions, RayfinContext, FabricContext, AppFunctionsSchema, functions init, dev functions apply, client.functions, invoke, func start, function_app.ts, types.ts, rayfin/functions/, FunctionClient, FunctionsSchema, fabric-user-data-functions, functionsBaseUrl, VITE_RAYFIN_FUNCTIONS_URL, bootstrap.ts, rayfinClient.ts

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 15 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not restart the full validation campaign after every edit.

    line 17
  2. Very specific:

    When validate:visual reports status: "incomplete" and ok: false, inspect its coverage field and counts.

    line 31
  3. Very specific:

    If zero schemas were checked, run npm run validate:visual:preview only to permit deployment for browser validation.

    line 33
  4. Distinctive:

    If some schemas were checked, the partial-coverage result already exits zero and needs no preview flag.

    line 35
  5. Distinctive:

    Do not infer browser validation from a successful build, deployment, or validator exit code.

    line 43
  6. Very specific:

    Use the preview escape hatch only when step 5 reports incomplete with zero schemas checked, never for partial coverage or failed.

    line 47
  7. Very specific:

    Keep npm run typecheck as a separate required gate.

    line 57
  8. Distinctive:

    Do not race typecheck and build because both use the TypeScript build outputs.

    line 58
  9. Distinctive:

    If a gate fails, fix the cause and rerun that gate.

    line 60
  10. Very specific:

    Keep assetAccess: protected for the default deployment.

    line 67
  11. Distinctive:

    Use the documented local path only when the installed guide and environment support it.

    line 79
  12. Very specific:

    Do not replace a required deployed check with an HTML fetch or a successful build.

    line 80
  13. Distinctive:

    Check the app's own console errors.

    line 87
  14. Distinctive:

    Check dates, currency, percentages, grids, and custom cards independently.

    line 91
  15. Very specific:

    Keep AuthGate in place for public and protected hosting.

    line 94
  16. Distinctive:

    Run the paths applicable to the configured host posture:

    line 99
  17. Distinctive:

    Write specs for utility functions, query factories, hooks, and components with logic worth protecting.

    line 121
  18. Distinctive:

    Use fixtures shaped like verified query or service results.

    line 122
  19. Distinctive:

    Do not add tests only to increase coverage.

    line 123
  20. Distinctive:

    Create a row that should pass the default filters.

    line 131
  21. Distinctive:

    Update it and confirm the returned values render safely.

    line 133
  22. Distinctive:

    Delete it and confirm it stays deleted after reload.

    line 134

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “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

Static checks and browser checks prove different things. The build can succeed while a chart is empty, a number is scaled incorrectly, a date shifts by a day, or a saved row disappears after reload.

Efficient cadence

During implementation, run the smallest check that covers the behavior you changed. Examples include one utility spec, one query invocation, one pack validator, or one focused browser path. Do not restart the full validation campaign after every edit.

At completion, run each applicable gate once and in this order:

  1. npm run typecheck
  2. npm run build
  3. npm run lint
  4. npm test
  5. Pack validators such as npm run validate:functions and npm run validate:visual
  6. Browser validation
  7. Persistence create, reload, update, and delete checks for app-owned records

Pack validators can distinguish a failure from an incomplete static check. When validate:visual reports status: "incomplete" and ok: false, inspect its coverage field and counts. If zero schemas were checked, run npm run validate:visual:preview only to permit deployment for browser validation. If some schemas were checked, the partial-coverage result already exits zero and needs no preview flag. Neither result is a completed visual-validation gate. Missing or broken Vega-Lite/AJV tooling and actual spec errors report failed and exit nonzero even through the preview script. Complete the alternate browser route only after the final report records the Fabric route or URL checked, the runtime-built charts exercised, whether their loading states settled, and whether relevant console or render errors remained. Do not infer browser validation from a successful build, deployment, or validator exit code.

For a first deployment, run steps 1 through 5 before the remote write. Use the preview escape hatch only when step 5 reports incomplete with zero schemas checked, never for partial coverage or failed. Deploy after the user confirms the target, then run steps 6 and 7 against the Fabric URL produced by that deployment. Pre-deploy runtime checks are useful only when the installed guide and current environment already support a local or deployed app. They do not replace validation of the newly deployed result.

npm run build uses tsc -b --noCheck. It produces the deployable frontend quickly, but it does not prove type safety. Keep npm run typecheck as a separate required gate. Do not race typecheck and build because both use the TypeScript build outputs.

If a gate fails, fix the cause and rerun that gate. Also rerun later gates only when the fix could invalidate their result.

Where to validate the app

Validate the deployed app through the direct static-hosting URL emitted by the Rayfin CLI, in a fresh standalone browser session. Also check the actual Fabric or external host when the app uses embedded capabilities. Keep assetAccess: protected for the default deployment. Signed-out users must not reach app content, including the welcome page, and authentication or configuration failures must remain gated.

Choose additional checks for the configured posture:

  • A public site must show its signed-out Microsoft sign-in screen in a clean browser session, then establish an authenticated app session after sign-in.
  • A protected site must restore or establish the current Fabric user's session without rendering authenticated content for a stale persisted identity.
  • An embedded site must complete the current host handoff before trusting a persisted session.

Use the documented local path only when the installed guide and environment support it. Do not replace a required deployed check with an HTML fetch or a successful build. Local autoLogin intentionally skips the public signed-out screen, so it cannot substitute for that deployed check.

Browser checks

  • Confirm every region renders and all loading states settle.
  • Check the app's own console errors. Ignore unrelated portal noise.
  • Trace one representative displayed value to its real source. For a semantic model, invoke the exact query file through the connector and explain any transformation between source and display.
  • Check dates, currency, percentages, grids, and custom cards independently.
  • Confirm keyboard access, visible focus, readable contrast, responsive layout, and reduced-motion behavior where animation exists.
  • Exercise important interactions and verify permanent auth, permission, configuration, or query failures appear as errors rather than endless loading.
  • Keep AuthGate in place for public and protected hosting. Public asset access does not weaken API, data, connector, or Functions authorization.

Authentication checks

Run the paths applicable to the configured host posture:

  1. Public standalone: start signed out, verify the sign-in screen, sign in, and confirm authenticated data loads.
  2. Protected standalone: reload with a valid stored session and confirm it is restored; repeat with a stale session and confirm the current identity wins.
  3. Fabric or external embed: load through the real host and confirm the handoff completes before authenticated content renders.
  4. Local development: confirm rayfin login state can establish a session, stop or misconfigure the backend to verify an actionable failure, then restore it and confirm recovery without weakening the gate.

Layout failures static checks miss

  • A chart title renders while the chart body is empty.
  • A chart container collapses because it has no definite height.
  • Spacing tokens resolve to zero or an invalid class.
  • Marks have insufficient contrast with their card background.
  • Axis and data-label styling differs accidentally between neighboring charts.

Specs

Write specs for utility functions, query factories, hooks, and components with logic worth protecting. Use fixtures shaped like verified query or service results. Do not add tests only to increase coverage.

Persistence checks

Skip this section when the app reads existing data and owns no records.

For an app-owned entity:

  1. Create a row that should pass the default filters.
  2. Reload the page and confirm the row remains visible.
  3. Update it and confirm the returned values render safely.
  4. Delete it and confirm it stays deleted after reload.

The reload distinguishes a backend write from optimistic React state. Static access-policy validation remains separate from this browser exercise.

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.