samples: Skill for Claude Code

.claude/skills/view-chain-layout/SKILL.md

view-chain-layout is a skill for Claude Code from abap2UI5/samples. It costs 125 tokens per session (2,610 once invoked), scanned A, a copy of view-chain-layout, MIT.

A set of formatting rules for z2ui5clui5viewbuilder chains, which are code calls that describe a user-interface view as a tree. It defines indentation, line breaks, closing syntax, factory shapes, and the linter rule for checking them.

In plain words
What is it for?
Use it when writing or reviewing view-builder chains in the listed abap2UI5 repositories. It helps apply the same style and check it with a linter.
Why use it?
It removes guesswork when reading or writing these chains. Consistent layout makes the code show the same structure as the interface it creates.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is abap2UI5/samples's own configuration. It tells Claude Code how to work on samples itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything samples configures →

Reuse

Borrowing it

Nothing to install: this file belongs to abap2UI5/samples. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/abap2UI5/samples/main/.claude/skills/view-chain-layout/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/abap2UI5/samples

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for view-chain-layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/abap2ui5/samples/view-chain-layout/github.svg)](https://agentmods.dev/skills/abap2ui5/samples/view-chain-layout)
Your own site
<a href="https://agentmods.dev/skills/abap2ui5/samples/view-chain-layout"><img src="https://agentmods.dev/badge/skills/abap2ui5/samples/view-chain-layout/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for view-chain-layout

Your own site · 80×15
<a href="https://agentmods.dev/skills/abap2ui5/samples/view-chain-layout"><img src="https://agentmods.dev/badge/skills/abap2ui5/samples/view-chain-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00125 $0.02610
Opus 5.5 $0.00050 $0.01044
Sonnet 5.5 $0.00025 $0.00522
Haiku 4.5 $0.00013 $0.00261

Measured 15d ago against content hash a1c03dcbde79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 15d 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.

Origin

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.

.claude/skills/view-chain-layout/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 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

  1. One call per line. Every ele( ), tag( ), a( ) and end( ) opens its own line with )->. A control never shares its line with its own attributes, nor with the container it opens.

  2. 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.

  3. 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 ) )..

  4. end( ) stands alone in the column of the ele( ) it closes. That is what makes an ascent over several levels visible instead of hidden.

  5. One attribute per line, v = / b = column aligned across a control's attribute block.

  6. stringify( ) is a standalone final statement — client->view_display( view->stringify( ) )., never nested in the chain.

  7. A wrapped t_arg list 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 # of VALUE #(, 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()` ) ) )
    

Read the full file on GitHub · 197 lines

Changes

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.

  1. 15d ago Changed · +1 lines a1c03dcbde79
  2. 23d ago Changed · +1 lines b93fe7d0b64d
  3. 2mo ago First seen · 195 lines · 125 tokens per session scan A 677bc4741ea0

Subscribe to this mod's changes

view-chain-layout is a skill published in the GitHub repository abap2UI5/samples (57 stars, last pushed 3d ago), licensed MIT. It adds 125 tokens to every session and 2,610 once invoked, about $0.0005 per session on Opus 5.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.

Related

view-chain-layout compared with skills from other repositories

view-chain-layout next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
view-chain-layoutabap2UI5/samplesSkill573d agoMITA125Claude Code
fix-xml-globalsUI5/plugins-coding-agentsSkill45yesterdayApache-2.0A231Claude Code, Codex
fix-cyclic-depsUI5/plugins-coding-agentsSkill45yesterdayApache-2.0A165Claude Code, Codex
fix-js-globalsUI5/plugins-coding-agentsSkill45yesterdayApache-2.0A243Claude Code, Codex
fix-linter-blind-spotsUI5/plugins-coding-agentsSkill45yesterdayApache-2.0A234Claude Code, Codex
modernize-flp-sandboxUI5/plugins-coding-agentsSkill45yesterdayApache-2.0A58Claude Code, Codex
fix-control-rendererUI5/plugins-coding-agentsSkill45yesterdayApache-2.0A196Claude Code, Codex