Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rotemmizv0.2.0MITIn 1 marketplace
Scores Jetpack Compose code 0–100 from detekt and compose-rules findings, then has an agent fix it one rule at a time. Needs a Gradle build on JDK 17–21, since detekt fails on JDK 22 and newer.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
detekt, compose-rules, static-analysis, code-health-score, ci-gate, compose
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A deterministic health check for Android Jetpack Compose — the React Doctor idea, for Compose.
Your agent writes Compose; this scores it. compose-doctor runs detekt + compose-rules under the hood, then turns the findings into a single 0–100 health score, a structured report an agent can fix against, and a CI/PR gate.
✅ Published. The plugin is live on the Gradle Plugin Portal as
dev.composedoctor— apply it withplugins { id("dev.composedoctor") version "0.1.0" }(see Use it in your project).
The pieces exist in the Compose world but are unbundled — compose-rules/compose-lints for the
rules, scattered agent guides, and no shared score. compose-doctor's value isn't the rules (those
are battle-tested upstream); it's the bundle: one score, an agent fix-loop, and a CI gate.
score = 100 − (uniqueErrorRules × 1.5) − (uniqueWarningRules × 0.75) // clamped to [0, 100]
Translated directly from React Doctor: the unit is unique rule IDs triggered, not instance count and not normalized by code size. Fixing 49 of 50 violations of a rule does not move the score; clearing the last one removes that rule's penalty. That makes the score deterministic without calibration — and makes the agent loop ("clear one rule at a time") effective.
Labels: 75+ Great · 50–74 Needs work · <50 Critical.
Findings are grouped into display dimensions (State/Correctness, Performance, Architecture, Security, Accessibility) for the report — dimensions do not weight the overall score.
compose-doctor applies a curated policy on top of detekt + compose-rules — Compose health plus genuine bugs, with a two-tier severity (errors −1.5, warnings −0.75) and style noise disabled. See docs/RULES.md.
The repo ships a deliberately-flawed playground/ feed app, wired to the plugin from
source via a composite build. With JDK 21:
git clone [email protected]:rotemmiz/compose-doctor.git && cd compose-doctor
./gradlew -p playground composeDoctor
📖 docs/TRY-IT-PLAYGROUND.md is a guided walkthrough — run it, read the report, fix a rule, and watch the score move.
compose-doctor — health score: 72/100 [NEEDS_WORK]
unique error rules: 9
unique warning rules: 19
total findings: 34
by dimension:
ARCHITECTURE 82/100
STATE_CORRECTNESS 94/100
...
Outputs:
build/reports/compose-doctor/score.json — machine-readable score + findings (for agents/CI). Excerpt:
{
"schemaVersion": 1, "status": "ok", "score": 72, "label": "NEEDS_WORK",
"uniqueErrorRules": 9, "uniqueWarningRules": 19, "totalFindings": 34,
"dimensions": { "ARCHITECTURE": 82, "PERFORMANCE": 96, "STATE_CORRECTNESS": 94 },
"byRule": [
{ "ruleId": "CompositionLocalAllowlist", "severity": "ERROR", "count": 1,
"scoreImpactIfCleared": 1.5, "fixHint": "Avoid this CompositionLocal or add it to the allowlist." }
]
}
build/reports/detekt/detekt.sarif — findings in SARIF, with precise locations.
The plugin is on the Gradle Plugin Portal — apply it by id and pin the version (pinning keeps scores comparable across runs):
// build.gradle.kts of a module with Compose source
plugins {
id("dev.composedoctor") version "0.1.0"
}
composeDoctor {
failBelow.set(75) // fail the build below this score (optional)
// per-engine strictness — see docs/RULES.md (needs: import dev.composedoctor.plugin.EngineLevel)
// detekt = EngineLevel.ERRORS // count only detekt's genuine bugs
// compose = EngineLevel.ERRORS_AND_WARNINGS // count all Compose issues (default)
// autoConfigureDetekt.set(false) // if you already configure detekt yourself
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rotemmiz/compose-doctor --plugin compose-doctorPlugins from other owners that cover similar ground