Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/abap2ui5/samples/view-chain-layoutnpx skills add abap2UI5/samples --skill view-chain-layoutgit clone --depth 1 https://github.com/abap2UI5/samplesWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00125 | $0.02590 |
| Opus 5 | $0.00063 | $0.01295 |
| Sonnet 5 | $0.00025 | $0.00518 |
| Haiku 4.5 | $0.00013 | $0.00259 |
Grade A, and why
view-chain-layout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to view-chain-layout — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The layout of a view-builder chain
A chain is read far more often than it is written, and its layout is the only thing that makes it legible as the XML tree it stands for. Treat the indent as load-bearing, not as taste: it is the one place a reader can see where in the tree a line sits, so it has to be true.
These rules are identical in all three repositories — abap2UI5,
abap2UI5/samples, abap2UI5/samples-controls. They were unified in one pass
after a survey found the two sample corpora following opposite conventions for
the same builder.
The seven rules
-
One call per line. Every
ele( ),tag( ),a( )andend( )opens its own line with)->. A control never shares its line with its own attributes, nor with the container it opens. -
Four spaces per level, everywhere. A child sits one level in from its container, a control's attributes one level in from the control. The same step in every file.
-
The closing paren rides with the arrow. Never a
)alone at a line end — carry it to the start of the next segment so it always reads)->. The whole view ends in a single)., not) ).. -
end( )stands alone in the column of theele( )it closes. That is what makes an ascent over several levels visible instead of hidden. -
One attribute per line,
v =/b =column aligned across a control's attribute block. -
stringify( )is a standalone final statement —client->view_display( view->stringify( ) )., never nested in the chain. -
A wrapped
t_arglist hangs under its FIRST element. When a_event( )/follow_up_action( )argument table runs over several lines, every continuation line starts in the column of the first( … )— not under the#ofVALUE #(, which is three columns to its left and the drift this rule exists to stop:)->a( n = `close` v = client->follow_up_action( val = client->cs_event-control_by_id t_arg = VALUE #( ( `notificationList` ) ( `removeItem` ) ( `$event.oSource.getId()` ) ) )
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 195 lines · 125 tokens per session scan A 677bc4741ea0
view-chain-layout is a skill published in the GitHub repository abap2UI5/samples (56 stars, last pushed 3d ago), licensed MIT. It adds 125 tokens to every session and 2,590 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to view-chain-layout, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
abap-check
The catalogue of ABAP problems a green CI does not catch - abapGit round-trip and import failures (BOM, line endings, trailing whitespace, EOF newline, 255-character lines, metadata sidecars for CLAS and for DDLS/BDEF/TABL), activation errors abaplint does not model (classconstructor visibility, LOCAL FRIENDS, generic…
ui5-check
The catalogue of UI5 problems a green CI does not catch - names that do not exist in the oldest supported release (icons, controls, properties, aggregations, enum values, modules, themes), layout that only works from a newer release on, views that fail to load rather than to render, and CSP/runtime traps. Also the…
view-chain-layout
The layout rules for a z2ui5clui5viewbuilder chain - one call per line, four spaces per tree level, the end( ) column, which factory( ) shape goes with which chain shape, blank lines, and the linter rule that checks them. Identical in abap2UI5, abap2UI5/samples, abap2UI5/samples-controls and abap2UI5/samples-stack.…
build-an-app
How to build an application WITH abap2UI5 (as opposed to changing the framework) - app class template, lifecycle, view building via z2ui5clui5viewbuilder, data binding, events, popups, navigation, validation tooling. Use when writing or reviewing a z2ui5ifapp class, demo app, sample or any consumer application code.
ui5-best-practices-accessibility
This skill should be used when the user asks to audit, fix, check, review, or improve accessibility, a11y, ARIA, WCAG compliance, landmarks, labeling, heading levels, focus handling, keyboard navigation, keyboard shortcuts, screen reader support, invisible messaging, reading order, or touch / target size in UI5…
css-expert
CSS expert for flexbox, grid, animations, responsive design, and modern layout techniques.