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.
In this repository9 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- avd-alert-kql-validationSkill
- federalavd-air-gapped-readinessSkill
- federalavd-artifact-authoringSkill
- federalavd-bicep-maintenanceSkill
- federalavd-compliance-reviewSkill
- federalavd-deployment-dependency-reviewSkill
- federalavd-policy-authoringSkill
- federalavd-windows-policy-validationSkill
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
- Very specific: line 9
Use this workflow for uiFormDefinition.json files under deployments/.
- Very specific: line 17
Start from the affected form control and its corresponding output under view.outputs.parameters.
- Distinctive: line 19
Read the current Microsoft reference for the exact element type.
- Distinctive: line 26
Keep every form output aligned with an entry-template parameter name and compatible type.
- Very specific: line 30
Use only supported column controls: TextBox, OptionsGroup, and DropDown.
- Very specific: line 31
Use $rowIndex only in supported child expressions.
- Very specific: line 33
Do not rely on column defaultValue to populate a newly added row.
- Distinctive: line 35
Keep the grid column IDs aligned with every property expected by the Bicep input object.
- Very specific: line 36
Prefer literal TextBlock.options.text.
- Distinctive: line 38
Keep dependent API controls, transforms, visibility expressions, and defaults gated together so asynchronous values do not evaluate before …
- Distinctive: line 40
After editing, run the narrowest available checks:
- Distinctive: line 42
Check schema and editor diagnostics.
- Distinctive: line 43
Verify every output maps to an ARM/Bicep parameter.
- Distinctive: line 44
Verify grid column IDs match the corresponding typed input object.
- Distinctive: line 45
Run git diff --check on the changed form.
- Distinctive: line 56
All outputs map to entry-template parameters with compatible types.
≈ “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.
Files
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
- Start from the affected form control and its corresponding output under
view.outputs.parameters. Trace that output to the entry Bicep parameter before editing. - 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.
- Validate the form against
https://schema.management.azure.com/schemas/2021-09-09/uiFormDefinition.schema.json. - Preserve the established step, section, visibility, and naming structure. Make the smallest change that corrects the behavior.
- Keep every form output aligned with an entry-template parameter name and compatible type. Remove stale outputs when their parameters are removed.
- For dropdowns, set
defaultValueto the display label rather than the submitted value. - For
Microsoft.Common.EditableGrid:- Use only supported column controls:
TextBox,OptionsGroup, andDropDown. - Use
$rowIndexonly in supported child expressions. Read the current row withlast(take(<grid-reference>, $rowIndex)). - Do not rely on column
defaultValueto 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.
- Use only supported column controls:
- Prefer literal
TextBlock.options.text. For conditional explanatory text, use separate blocks with visibility conditions instead of a complex expression-valued string. - Keep dependent API controls, transforms, visibility expressions, and defaults gated together so asynchronous values do not evaluate before their dependencies exist.
- 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 --checkon 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.
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
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.

