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…
In this repository34 other files it gives its agents.
- android-benchmark-comparisonSkill
- build-and-verifySkill
- compose-animationsSkill
- compose-component-designSkill
- compose-focus-navigationSkill
- compose-performanceSkill
- compose-state-and-effectsSkill
- compose-ui-testing-patternsSkill
- deliver-specSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- gradle-runSkill
- grillingSkill
- grounded-writingSkill
- implement-with-subagentsSkill
- kotlin-api-designSkill
- kotlin-architectureSkill
- kotlin-concurrency-and-flowSkill
- kotlin-control-flowSkill
- kotlin-skill-routerSkill
- new-featureSkill
- prototypeSkill
- release-kotlin-librarySkill
- researchSkill
- review-prSkill
- run-github-projectSkill
- run-on-deviceSkill
- setup-environmentSkill
- setup-issue-trackerSkill
- shepherdSkill
- tddSkill
- to-planSkill
- triageSkill
- wayfinderSkill
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
- Very specific: line 16
Read SDK paths, devices, and AVD names from the machine (android info, adb devices -l, android emulator list) — never hard-code them.
- Very specific: line 22
Run all Gradle through the gradle-run skill.
- Very specific: line 27
Run on device: android run --device <serial>
- Very specific: line 32
After any code change: build-and-verify.
- Very specific: line 33
Before commit/PR: kotlin-reviewer agent on the diff
- Distinctive: line 41
Every behavior change ships with tests.
- Very specific: line 45
Run the setup-environment skill.
- Very specific: line 57
Default vocabulary: needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix.
≈ “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.
Files
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 theandroid-verifieragent) - Before commit/PR:
kotlin-revieweragent on the diff - GitHub:
to-planfor issues,deliver-specto ship a spec as a PR,shepherdto follow CI/review (steps and prompts:.claude/pr-workflow.md)
Code rules
- Architecture, modules, code standards, and metric thresholds:
kotlin-architectureskill. Key rules: dependencies point inward (presentation → domain ← data), domain is pure Kotlin,internalby default, no feature→feature implementation dependencies, versions only ingradle/libs.versions.toml, shared build config inbuild-logicconvention 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>"(thenandroid 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.
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
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.

