agentleFS
iadr-deviadr-dev/kotlin-claude-workflow/CLAUDE.md

kotlin-claude-workflow

CLAUDE.md1 starsChanged 39 days agoMITView on GitHub

Kotlin workspace that may hold Android (Compose) apps, Kotlin Multiplatform projects, and JVM backends/libraries. Detect the shape from the build files before acting (see build-and-verify). Machine-independent. Required tools: git, latest-LTS JDK (≥ 17), python3 (for gradle-run), gh, the android CLI with Android SDK platform-tools (adb); optional: kotlin-lsp on PATH, ktlint/ktfmt. Gradle is never installed globally — always ./gradlew; its shared cache is ~/.gradle. On a new machine, or whenever a tool seems missing or outdated, use the setup-environment skill (bash…

The file

We split this CLAUDE.md into the rules it gives an agent

8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Read SDK paths, devices, and AVD names from the machine (android info, adb devices -l, android emulator list) — never hard-code them.

    line 16
  2. Very specific:

    Run all Gradle through the gradle-run skill.

    line 22
  3. Very specific:

    Run on device: android run --device <serial>

    line 27
  4. Very specific:

    After any code change: build-and-verify.

    line 32
  5. Very specific:

    Before commit/PR: kotlin-reviewer agent on the diff

    line 33
  6. Distinctive:

    Every behavior change ships with tests.

    line 41
  7. Very specific:

    Run the setup-environment skill.

    line 45
  8. Very specific:

    Default vocabulary: needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “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
CLAUDE.md

Kotlin project

Kotlin workspace that may hold Android (Compose) apps, Kotlin Multiplatform projects, and JVM backends/libraries. Detect the shape from the build files before acting (see build-and-verify).

Environment

Machine-independent. Required tools: git, latest-LTS JDK (≥ 17), python3 (for gradle-run), gh, the android CLI with Android SDK platform-tools (adb); optional: kotlin-lsp on PATH, ktlint/ktfmt. Gradle is never installed globally — always ./gradlew; its shared cache is ~/.gradle.

On a new machine, or whenever a tool seems missing or outdated, use the setup-environment skill (bash .claude/skills/setup-environment/scripts/check-env.sh .). Read SDK paths, devices, and AVD names from the machine (android info, adb devices -l, android emulator list) — never hard-code them. iOS targets need macOS + Xcode; on Windows/Linux verify shared code with JVM tests.

Commands

Run all Gradle through the gradle-run skill. Typical tasks (scope to touched modules):

  • Build: ./gradlew :<module>:assembleDebug (Android) / :<module>:build (JVM)
  • Unit tests: :<module>:testDebugUnitTest (Android), :<module>:jvmTest / allTests (KMP), :<module>:test (JVM)
  • Checks: spotlessCheck, detekt, lintDebug, koverVerify, apiCheck — whichever the project applies
  • Run on device: android run --device <serial>

Workflow

  • New feature end-to-end: /new-feature <description or issue #>
  • After any code change: build-and-verify; after UI changes: run-on-device (or the android-verifier agent)
  • Before commit/PR: kotlin-reviewer agent on the diff
  • GitHub: to-plan for issues, deliver-spec to ship a spec as a PR, shepherd to follow CI/review (steps and prompts: .claude/pr-workflow.md)

Code rules

  • Architecture, modules, code standards, and metric thresholds: kotlin-architecture skill. Key rules: dependencies point inward (presentation → domain ← data), domain is pure Kotlin, internal by default, no feature→feature implementation dependencies, versions only in gradle/libs.versions.toml, shared build config in build-logic convention plugins.
  • Code-level Kotlin/Compose decisions: route through kotlin-skill-router. Any agent that writes or reviews Kotlin or Compose code, including delegated implementation workers and reviewers, loads it first and then the skill it names, before editing.
  • Android platform APIs: matching Android skill, and android docs search "<query>" (then android docs fetch kb://...) for current guidance. Answer Android platform questions from the fetched pages, not from memory or search snippets, and say which parts you could not check. Library APIs: context7.
  • Every behavior change ships with tests. Don't report work as verified unless the task actually ran.

Setup for a new machine / teammate

Run the setup-environment skill. It checks every tool against its latest version, proposes installs per OS, and covers plugins (declared in .claude/settings.json), Android skills, gh auth, and devices.

Agent skills

Issue tracker

Issues are tracked in GitHub Issues for iadr-dev/kotlin-claude-workflow, using the gh CLI. See docs/agents/issue-tracker.md.

Triage labels

Default vocabulary: needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix. See docs/agents/triage-labels.md.

Domain docs

Single-context: one GLOSSARY.md and docs/adr/ at the repo root. See docs/agents/domain.md.

GitHub Project

The GitHub Project board is configured in docs/agents/run-github-project.md.

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.