agentleFS
Microsoft AzureKnown publisherAzure/FederalAVD/.github/skills/federalavd-ui-form-maintenance/SKILL.md

federalavd-ui-form-maintenance

Skill18 starsChanged 3 months agoMITView on GitHub

Create, modify, review, and validate FederalAVD uiFormDefinition.json files and Azure Portal Form View behavior. Use when changing form elements, visibility, constraints, EditableGrid columns, defaults, expressions, API controls, or output-to-Bicep parameter mappings.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this workflow for uiFormDefinition.json files under deployments/.

    line 9
  2. Very specific:

    Start from the affected form control and its corresponding output under view.outputs.parameters.

    line 17
  3. Distinctive:

    Read the current Microsoft reference for the exact element type.

    line 19
  4. Distinctive:

    Keep every form output aligned with an entry-template parameter name and compatible type.

    line 26
  5. Very specific:

    Use only supported column controls: TextBox, OptionsGroup, and DropDown.

    line 30
  6. Very specific:

    Use $rowIndex only in supported child expressions.

    line 31
  7. Very specific:

    Do not rely on column defaultValue to populate a newly added row.

    line 33
  8. Distinctive:

    Keep the grid column IDs aligned with every property expected by the Bicep input object.

    line 35
  9. Very specific:

    Prefer literal TextBlock.options.text.

    line 36
  10. Distinctive:

    Keep dependent API controls, transforms, visibility expressions, and defaults gated together so asynchronous values do not evaluate before …

    line 38
  11. Distinctive:

    After editing, run the narrowest available checks:

    line 40
  12. Distinctive:

    Check schema and editor diagnostics.

    line 42
  13. Distinctive:

    Verify every output maps to an ARM/Bicep parameter.

    line 43
  14. Distinctive:

    Verify grid column IDs match the corresponding typed input object.

    line 44
  15. Distinctive:

    Run git diff --check on the changed form.

    line 45
  16. Distinctive:

    All outputs map to entry-template parameters with compatible types.

    line 56

≈ “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

FederalAVD UI Form Maintenance

Use this workflow for uiFormDefinition.json files under deployments/. Read the current Microsoft Form View documentation and the element-specific reference before changing a control.

For Bicep parameters, generated ARM JSON, resource definitions, or template synchronization, also use the federalavd-bicep-maintenance skill.

Procedure

  1. Start from the affected form control and its corresponding output under view.outputs.parameters. Trace that output to the entry Bicep parameter before editing.
  2. Read the current Microsoft reference for the exact element type. Start with the Form View overview and use the element reference linked from that documentation.
  3. Validate the form against https://schema.management.azure.com/schemas/2021-09-09/uiFormDefinition.schema.json.
  4. Preserve the established step, section, visibility, and naming structure. Make the smallest change that corrects the behavior.
  5. Keep every form output aligned with an entry-template parameter name and compatible type. Remove stale outputs when their parameters are removed.
  6. For dropdowns, set defaultValue to the display label rather than the submitted value.
  7. For Microsoft.Common.EditableGrid:
    • Use only supported column controls: TextBox, OptionsGroup, and DropDown.
    • Use $rowIndex only in supported child expressions. Read the current row with last(take(<grid-reference>, $rowIndex)).
    • Do not rely on column defaultValue to populate a newly added row. Use placeholders for guidance and normalize intentionally omitted values in Bicep when the field is conditional.
    • Keep the grid column IDs aligned with every property expected by the Bicep input object.
  8. Prefer literal TextBlock.options.text. For conditional explanatory text, use separate blocks with visibility conditions instead of a complex expression-valued string.
  9. Keep dependent API controls, transforms, visibility expressions, and defaults gated together so asynchronous values do not evaluate before their dependencies exist.
  10. After editing, run the narrowest available checks:
    • Parse the JSON.
    • Check schema and editor diagnostics.
    • Verify every output maps to an ARM/Bicep parameter.
    • Verify grid column IDs match the corresponding typed input object.
    • Run git diff --check on the changed form.

See UI form rules for repository-specific failure modes.

Completion Checklist

  • The form parses as JSON.
  • Element properties match the current Microsoft reference.
  • Dropdown defaults use labels.
  • Conditional fields have correct visibility and requiredness.
  • Editable Grid rows do not depend on unsupported defaults.
  • All outputs map to entry-template parameters with compatible types.
  • Related Bicep and generated ARM templates are synchronized when their contract changed.

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.