Skip to content
Agentmart
Submit a tool

android-detekt

Detekt static analysis gate for Kotlin Android projects including suppression discipline.

Skill by Kapil-SquareNetra

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kapil-squarenetra-android-detekt

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Detekt static analysis gate for Kotlin Android projects including suppression discipline. Use only in Detekt validation phase, not during feature UI coding.

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/android-detekt

What's inside

Skill name
android-detekt
Description
Detekt static analysis gate for Kotlin Android projects including suppression discipline. Use only in Detekt validation phase, not during feature UI coding.
License
MIT
Instructions
63 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Detekt

## Purpose

Enforce Kotlin quality before merge.

## When to load

**Detekt phase only** — after implementation slice, before or with build.

## Inputs

- Project Gradle Detekt config.

## Outputs

- Clean `detekt` run or justified fixes/suppressions.

## Rules

- [Detekt Gradle plugin](https://detekt.dev/docs/gettingstarted/gradle)

### Before the first Detekt run this session

Follow [quality-tooling.md](../android-orchestrator/references/quality-tooling.md). If there is no `detekt` task, share the **Detekt** section of [setup-guides.md](../android-orchestrator/references/setup-guides.md) when asking the user. If they skip Detekt, **do not run** `./gradlew detekt`; exit with **N/A** in status. Do not add Gradle plugins without approval.

Run `./gradlew detekt` only when the task exists and Detekt is in scope.

Checks include: complexity, smells, naming, style, bugs, long methods, large classes, nesting, unsafe patterns, duplication.

### Suppression (required process)

1. Understand the violation.
2. Change code if possible.
3. Is the rule appropriate for this code?
4. Suppress only when justified.
5. Document non-obvious suppressions.

On failure: load the **file** spoke for the violating path, fix, re-run detekt.

### Common Compose / navigation fixes (prefer refactor over suppress)

| Rule | Typical fix |
|------|-------------|
| `LongParameterList` on a `@Composable` | Bundle navigation callbacks in a small `data class` (e.g. `*Actions`, `*Callbacks`) |
| `LongMethod` on `NavHost` / graph builder | Extract `NavGraphBuilder.featureGraph(...)` per area (settings, auth, etc.) |
| `LongParameterList` on dialogs / pickers | Group related lambdas in a config/actions type |

Use `@OptIn(ExperimentalComposeUiApi::class)` only where required (e.g. `testTagsAsResourceId`).

## Dependencies

- `android-kotlin`

## Validation

- Detekt passes with no unjustified suppressions.

## Anti-patterns

- Keeping full Detekt docs in context during Compose implementation.

From Kapil-SquareNetra/android-agentic-orchestrator, MIT.

More from Kapil-SquareNetra/android-agentic-orchestrator

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 23, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Kapil-SquareNetra

Cite this page

android-detekt skill. Agent Mart. https://agentmart.dev/skills/kapil-squarenetra-android-detekt (last updated 2026-10-24)