Repository navigation
feat: add uno-toolkit-flexpanel agent skill - #146
Merged
Merged
Conversation
Add a skill for the Toolkit FlexPanel control, built from the AutoLayout skill as a template and grounded in the FlexPanel documentation added in unoplatform/uno.toolkit.ui#1639. The skill is sized closer to uno-toolkit-card than to uno-toolkit-autolayout: the docs PR is not merged yet, so the uno_platform_docs_fetch calls will 404 until it lands. The fetch steps follow the house convention and start working on merge, but until then the "Key Principles (Stable)" section carries the whole surface rather than acting as a fallback. Contents: the container and per-child attached property tables with their CSS equivalents, the critical rules (Basis beats Width on the main axis, Grow="1" is not flex: 1 1 0, automatic minimum size, FlexMinWidth is not FrameworkElement.MinWidth, the LayoutDirection double-mirror hazard, Visibility="Collapsed" eating the gap slot), the enum members that silently do nothing, a "members that do NOT exist" list mirroring AutoLayout's, and the FlexPanel vs AutoLayout comparison. Every property name, type and default is verified against FlexPanel.Properties.cs rather than ported from the prose alone. The FlexPositionType row also lists Static, which the reference page omits; it is passed straight through to the layout engine, and the table sits under a "do not invent member names" instruction. Also cross-link the two controls: uno-toolkit-autolayout gains a disambiguation line and a related-skill entry, since the when_to_use fields are what decide which of the two loads for a layout request. Both skill trees stay byte-identical, as skills/README.md requires. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Kunal22shah
approved these changes
Sep 21, 2026
|
Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue. |
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

GitHub Issue (If applicable): https://github.com/unoplatform/uno-private/issues/2179
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The plugin ships a skill for every Toolkit control it covers, including
uno-toolkit-autolayout, but there is nothing forFlexPanel— the CSS Flexbox panel added in unoplatform/uno.toolkit.ui#1639.Without it, an agent asked for a flexbox layout has only
AutoLayoutto reach for.AutoLayoutcannot wrap onto multiple lines at all, and its property names (PrimaryAxisAlignment,CounterAlignment,Spacing) have no relationship to the CSS vocabulary the request is phrased in — so the likely outcome is either the wrong control or invented member names.What is the new behavior?
Adds
uno-toolkit-flexpanelto both skill trees, and cross-links it withuno-toolkit-autolayout.Built from the AutoLayout skill as a template — same frontmatter shape, same
Workflow→ docs-search/fetch steps →Key Principles (Stable)→Related Skillsstructure.Sized closer to
uno-toolkit-cardthan touno-toolkit-autolayout(171 lines vs 63), on purpose. The docs PR is not merged yet, souno_platform_docs_fetch(sourcePath="external/uno.toolkit.ui/doc/controls/FlexPanel.md")will 404 until it lands. The fetch steps follow the house convention and start working on merge, but until thenKey Principles (Stable)has to carry the whole surface rather than act as a fallback.Contents:
BasisbeatsWidthon the main axis,Grow="1"is notflex: 1 1 0, the automatic minimum size (rows overflow rather than fit),FlexMinWidthis notFrameworkElement.MinWidth, theLayoutDirectiondouble-mirror hazard,Visibility="Collapsed"eating the gap slot,Directiondefaulting toRowdespiteColumn = 0;FlexAlign/FlexJustifymembers that are shared with the engine and silently do nothing;uno-toolkit-autolayoutgains a disambiguation line and a[[uno-toolkit-flexpanel]]related-skill entry (version2.3→2.4). The twowhen_to_usefields are what decide which skill loads for a layout request, so both were written to steer explicitly: CSS vocabulary and wrapping toFlexPanel, Figma auto-layout frames toAutoLayout.PR Checklist
Additional Information
Verified against source, not only the prose. A complete enumeration of
PropertyMetadatainFlexPanel.Properties.csreturns exactly 20 dependency properties — 9 container, 11 attached — matching the 20 rows in the two tables. That makes the "members that do NOT exist" list (Gap,Flex,Order,FlexMaxWidth/FlexMaxHeight,AspectRatio,Overflow,BoxSizing) provable from the DP surface rather than inferred from the doc's Limitations section. Every default matches the metadata, andFlexDirection.Column = 0confirms the enum-numbering note.One deliberate departure from the reference page: the
FlexPositionTyperow also listsStatic. The doc gives onlyRelative/Absolute, butStaticis a real enum member andPositionis passed straight through to the layout engine — and the table sits under a "do not invent member names" instruction, so an agent reading a two-member list could wrongly reject valid code.The "no
BorderBrushorCornerRadius, wrap it in aBorder" limitation is qualified as a plain visual border, not a card-like surface, pointing atuno-toolkit-card. That skill flagsBorder+CornerRadius+Backgroundas anti-patternGRD1102, and both skills can be loaded at once.Both trees are byte-identical, as
skills/README.mdrequires —diff -rq skills plugins/uno-platform-studio/skillsreports only its ownREADME.md. No manifest enumerates skills ("skills": "./skills"), so nothing else needed updating.🤖 Generated with Claude Code