Back to directory

Asserting Bounds and Dimensions

Agent skill
1 skill

Use this skill to verify Compose layout measurements from a UI test using assertWidthIsEqualTo, assertHeightIsEqualTo, assertWidthIsAtLeast, assertHeightIsAtLeast, assertTouchWidthIsEqualTo, assertTouchHeightIsEqualTo, assertPositionInRootIsEqualTo, assertTopPositionInRootIsEqualTo, assertLeftPositionInRootIsEqualTo, plus read helpers getUnclippedBoundsInRoot, getBoundsInRoot, getAlignmentLinePosition, getFirstLinkBounds, and the underlying Dp.assertIsEqualTo(expected, subject, tolerance = Dp(.5f)). Covers the half-dp default tolerance, the unclipped vs clipped distinction, the canonical "compute padding from two unclipped rects" pattern, and minimum-touch-target assertions like assertHeightIsAtLeast(MinHeight + 1.dp). Use when the developer wants to assert sizes, padding, alignment, position in dp, or asks about getUnclippedBoundsInRoot, DpRect, touch-target size, or compares widths in pixels. If the developer is comparing layout dimensions from a test, use this skill.

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Skill stats

Skills1CategoryGeneralStars0

About this skill

Use this skill to verify Compose layout measurements from a UI test using assertWidthIsEqualTo, assertHeightIsEqualTo, assertWidthIsAtLeast, assertHeightIsAtLeast, assertTouchWidthIsEqualTo, assertTouchHeightIsEqualTo, assertPositionInRootIsEqualTo, assertTopPositionInRootIsEqualTo, assertLeftPositionInRootIsEqualTo, plus read helpers getUnclippedBoundsInRoot, getBoundsInRoot, getAlignmentLinePosition, getFirstLinkBounds, and the underlying Dp.assertIsEqualTo(expected, subject, tolerance = Dp(.5f)). Covers the half-dp default tolerance, the unclipped vs clipped distinction, the canonical "compute padding from two unclipped rects" pattern, and minimum-touch-target assertions like assertHeightIsAtLeast(MinHeight + 1.dp). Use when the developer wants to assert sizes, padding, alignment, position in dp, or asks about getUnclippedBoundsInRoot, DpRect, touch-target size, or compares widths in pixels. If the developer is comparing layout dimensions from a test, use this skill.

Quick start

  1. Copy the install prompt. Use the green button above this README.
  2. Send it to your agent. Paste it into your coding agent’s chat and send.
  3. Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
Review, license & listing details
Review the source before using this skill

This is an imported listing. We haven’t certified its safety, license, or compatibility. Skills may include executable scripts.

Automated security scan: Partial

Only SKILL.md was scanned. Supporting files and scripts were not checked. No safety grade has been assigned.

0 potential findings · Scanned 11/4/2026 · Scanner 0.2.1

Content SHA-256: 795430d3327fea42020b727a992227197e8c68fb5064f8f0bcfdae9766ae75fc

About scan coverage and limitations

About this listing

Category
General
Reported license
Apache-2.0
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.
Asserting Bounds and Dimensions | Agent Skills Atlas