android-viewsystem-foundations

android-viewsystem-foundations is a skill for Codex from krutikJain/android-agent-skills. It costs 30 tokens per session (890 once invoked), scanned A, original, MIT.

A skill for building Android screens with XML layouts and the classic Android View system, including fragments, lists, and view binding. It covers lifecycle details, which describe how screens and their resources are created and destroyed.

In plain words
What is it for?
Fixing ConstraintLayout and RecyclerView issues, managing fragment views, and handling ViewBinding or DataBinding safely.
Why use it?
It helps avoid layout bugs, stale references, and crashes when Android recreates screens or users change font size or language direction.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Fixing ConstraintLayout and RecyclerView issues, managing fragment views, and handling ViewBinding or DataBinding safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/krutikjain/android-agent-skills/android-viewsystem-foundations
Install

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.

Any agent
npx skills add krutikJain/android-agent-skills --skill android-viewsystem-foundations
Clone the repo
git clone --depth 1 https://github.com/krutikJain/android-agent-skills

Made for: Codex.

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 android-viewsystem-foundations

README.md
[![agentmods](https://agentmods.dev/badge/skills/krutikjain/android-agent-skills/android-viewsystem-foundations/github.svg)](https://agentmods.dev/skills/krutikjain/android-agent-skills/android-viewsystem-foundations)
Your own site
<a href="https://agentmods.dev/skills/krutikjain/android-agent-skills/android-viewsystem-foundations"><img src="https://agentmods.dev/badge/skills/krutikjain/android-agent-skills/android-viewsystem-foundations/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 android-viewsystem-foundations

Your own site · 80×15
<a href="https://agentmods.dev/skills/krutikjain/android-agent-skills/android-viewsystem-foundations"><img src="https://agentmods.dev/badge/skills/krutikjain/android-agent-skills/android-viewsystem-foundations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 890 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 original No closer match found 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.00030 $0.00890
Opus 5 $0.00015 $0.00445
Sonnet 5 $0.00006 $0.00178
Haiku 4.5 $0.00003 $0.00089

Measured 7d ago against content hash e26a28939c20, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

android-viewsystem-foundations 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_examples.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.github/skills/android-viewsystem-foundations/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Android ViewSystem Foundations

When To Use

  • Use this skill when the request is about: xml layout android issue, fragment lifecycle android, constraintlayout cleanup.
  • Primary outcome: Handle XML layouts, ConstraintLayout, Fragments, ViewBinding, DataBinding, and classic Android UI lifecycle patterns.
  • Reach for this skill when the main surface is XML, Fragment, RecyclerView, or binding lifecycle work rather than Compose-first UI.
  • Handoff skills when the scope expands:
  • android-compose-xml-interoperability
  • android-testing-ui

Workflow

  1. Identify whether the target surface is Fragment, Activity, custom view, RecyclerView, or a mixed Compose/View interoperability screen.
  2. Anchor ownership correctly: view bindings to the view lifecycle, adapters to explicit item models, and navigation/transactions outside leaf views.
  3. Fix layout and rendering issues with classic View tools first: ConstraintLayout, RecyclerView diffing, window insets, and binding-safe updates.
  4. Exercise Fragment recreation, long text, font scaling, RTL, and process-lifecycle edges before considering the change complete.
  5. Hand off Compose interoperability or UI test depth only after the View-system ownership model is stable.

Guardrails

  • Optimize for stable state and predictable rendering before adding animation or abstraction.
  • Respect accessibility semantics, contrast, focus order, and touch target guidance by default.
  • Do not mix Compose and View system ownership without an explicit interoperability boundary.
  • Prefer measured performance work over premature micro-optimizations.
  • Clear ViewBinding references when the Fragment view is destroyed; do not keep view references alive past the view lifecycle.

Anti-Patterns

  • Embedding navigation or business logic directly in leaf UI components.
  • Using fixed dimensions that break on localization or dynamic text.
  • Ignoring semantics and announcing only visual changes.
  • Porting XML patterns directly into Compose without adapting the mental model.
  • Holding Fragment view state in stale bindings, view references, or adapters across view recreation.

Read the full file on GitHub · 69 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 69 lines · 30 tokens per session scan A e26a28939c20

Subscribe to this mod's changes

android-viewsystem-foundations is a skill published in the GitHub repository krutikJain/android-agent-skills (14 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 890 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

cometchat-flutter-v6-messages

Use when implementing the messages screen with CometChat Flutter UIKit v6. Covers CometChatMessageList, CometChatMessageComposer, CometChatMessageHeader, MessageListBloc, MessageComposerBloc, SliverSpacing, keyboard-aware spacing, rich text toolbar, CometChatTextBubble, CometChatImageBubble, CometChatVideoBubble…

cometchat/cometchat-skills · 190 tokens

android-views-xml

Expert guidance on authoring modern Android XML layouts with ConstraintLayout, the Material 3 style/theme system, and proper resource organisation. Use this when creating or reviewing layout, dimens, colors, or themes XML.

almasumdev/awesome-java-android-agent-skills · 48 tokens

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

e2e-testing

AI-powered E2E testing for any app — Flutter, React Native, iOS, Android, Electron, Tauri, KMP, .NET MAUI. Connects via MCP to running apps so the agent can take screenshots, tap elements, enter text, scroll, inspect UI trees, and verify state with natural language. Use when the user wants to test an app's UI…

ai-dashboad/flutter-skill · 107 tokens

mobile-ux-optimizer

Mobile-first UX optimization for touch interfaces, responsive layouts, and performance. Use for viewport handling, touch targets, gestures, mobile navigation. Activate on mobile, touch, responsive, dvh, viewport, safe area, hamburger menu. NOT for native app development (use React Native skills), desktop-only…

curiositech/some_claude_skills · 76 tokens