agentleFS
iadr-deviadr-dev/kotlin-claude-workflow/.claude/skills/build-and-verify/SKILL.md

build-and-verify

Skill1 starsChanged 40 days agoMITView on GitHub

Use after changing Kotlin code, or when asked to build, test, lint, or check the project. Detects whether this is an Android app, Kotlin Multiplatform, or JVM backend/library build, picks the narrowest Gradle tasks that prove the change, runs them through gradle-run, and reports a compact pass/fail summary.

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use app-brief, design-from-app and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • StijnusSkill

    app-brief

    One-page brief (docs/BRIEF.md) for a new macOS app, written before any code. Use when the user has an app idea, wants to replace an app they pay for, or the research and clone skills are done.

    Also in 3 projects that use this

  • StijnusSkill

    design-from-app

    Rebuild the look of an app the user likes as a native SwiftUI design kit, by measuring its screenshots (sizes, spacing, type, colors, icons), building its parts, and comparing pixel by pixel until they match. Use when the user names an app whose look they want, shares screenshots of one, or says "make it look like X".

    Also in 3 projects that use this

  • launchapp-devSkill

    layout-grid

    Define responsive layout grid systems with columns, gutters, margins, and breakpoint behavior.

    Also in 3 projects that use this

  • MohamedAbdallah-14Skill

    app-icon

    Generate an app icon from a single 1024² master and fan out to iOS (AppIcon.appiconset with squircle-ready 1024 opaque), Android (adaptive foreground + background + Android 13 monochrome), PWA (192/512 + 512 maskable with 80% safe zone), and visionOS (3-layer parallax).

    Also in 3 projects that use this

  • CrystalPlatformsSkill

    agent-cli

    Design and audit CLIs that AI agents (Claude Code, Codex, automated pipelines) consume. Applies ten agent-native principles in two tiers — Tier 1 table stakes (non-interactive default, structured output, errors that enumerate, safe retries, bounded responses) and Tier 2 compounding (cross-CLI vocabulary, three-layer introspection, async-aware execution, persistent profiles, two-way I/O) — with a Blocker / Friction / Optimization severity rubric across six command classes (read, mutate, stream, bootstrap, async, config). Use when building, reviewing, or specifying a CLI for agent invocation, mentions argparse, click, cobra, clap, commander, yargs, oclif, thor, agent-friendly or agent-native CLI design, --json output, exit codes, idempotent commands, --wait flags, agent-context introspection, persistent profiles, --deliver routing, --force bypass, vocabulary consistency, or repos with cli.py, main.go, src/cli.rs, bin/<tool>. Skip general shell scripting and human-only TUIs.

    Also in 3 projects that use this

  • bborok1234Skill

    design-kit

    새 프로젝트/화면의 디자인 시스템을 프로덕션급으로 빠르게 세우고(부트스트랩), 이미 만든 UI의 퀄이 안 잡힐 때 진단→교정하고, AI 슬롭 없이 폴리싱하는 개인 디자인 게이트. "디자인 시스템 잡아줘", "랜딩/UI 만들어", "슬롭 잡아줘", "이 화면 폴리싱", "퀄리티가 안 잡혀/디자인 고쳐줘/왜 싸구려 같지", 새 프론트엔드 시작 시 적용. 미학(팔레트·폰트·정체성)은 인터뷰로 함께 설계하고, 시스템 구성법·판단룰·안티슬롭·진단교정·빌드루프는 프로젝트 무관하게 재사용.

    Also in 3 projects that use this

  • +1 more from Stijnus

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read settings.gradle.kts and the build files of the modules you touched (cache the answer for the session.

    line 13
  2. Very specific:

    Run every Gradle command through the gradle-run skill.

    line 53
  3. Very specific:

    Use ./gradlew — never a global gradle.

    line 56
  4. Very specific:

    Run from the directory that contains gradlew (it may be a subfolder of the workspace.

    line 59
  5. Distinctive:

    Do not paste full logs. Do not claim success for a task you did not run.

    line 75

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Build and verify

Prove a change compiles, passes tests, and passes static checks with the smallest set of Gradle tasks that covers it.

1. Detect the project shape

Read settings.gradle.kts and the build files of the modules you touched (cache the answer for the session; re-read only if build files change).

Signal in build filesShape
com.android.application / com.android.library, no kotlin("multiplatform")Android
kotlin("multiplatform") / org.jetbrains.kotlin.multiplatformKMP (note its targets: androidTarget, jvm/desktop, ios*, js/wasmJs)
kotlin("jvm"), application, Ktor, Spring BootJVM

Also note which checkers are applied: spotless, ktlint (jlleitschuh or pinterest), detekt, Android lint, Metalava/binary-compatibility-validator.

2. Choose tasks (narrowest first)

Scope tasks to the touched modules (:feature:login:...), not the root, unless a shared build file or version catalog changed.

ShapeCompileUnit testsStatic checks
Android:m:compileDebugKotlin:m:testDebugUnitTest:m:lintDebug (only for resource/manifest/UI changes)
KMP:m:compileKotlinJvm / :m:compileDebugKotlinAndroid:m:jvmTest or :m:allTests (iOS tests cannot run on Windows; skip and say so)per configured checker
JVM:m:compileKotlin:m:test (--tests 'pkg.ClassTest' when focused)per configured checker

Formatting/lint: run spotlessCheck, ktlintCheck, or detekt only if the project applies them. If a format check fails, run the matching *Apply / *Format task once, then re-check.

Quality gates (thresholds in kotlin-architecture §4): run detekt when configured, and koverVerify for modules whose logic changed. If neither is configured, say so in the report rather than skipping silently.

Public API changed in a library module? Also run apiCheck (BCV) or metalavaCheckCompatibility if configured.

Instrumented tests (connectedDebugAndroidTest) need a device: hand off to the run-on-device skill's device selection first, and only run them when the change touches instrumented code or the user asks.

3. Execute

Run every Gradle command through the gradle-run skill. It needs python3; if that or the JDK is missing, run setup-environment instead of working around it. Use ./gradlew — never a global gradle. Gradle distributions and caches are shared in ~/.gradle; don't delete or relocate them.

Run from the directory that contains gradlew (it may be a subfolder of the workspace; settings.gradle.kts marks the root). If there is no gradlew yet, stop and say so; do not install Gradle.

4. Report

One short block:

Shape: Android | KMP(android,jvm,ios) | JVM
Ran:   :app:compileDebugKotlin ✅  :app:testDebugUnitTest ❌ (2 failed)  :app:lintDebug —skipped (no UI change)
Failures:
  - LoginViewModelTest.emitsErrorOnTimeout — expected Error, got Loading (LoginViewModel.kt:57)
Next: <fix you will make, or the question you need answered>

Do not paste full logs. Do not claim success for a task you did not run.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.