Logo van Compose Feature

Compose Feature

Community
Meet-Miyani
compose-feature

Adds, changes, or reviews a screen, sheet, dialog, or destination slice (endpoint to repository to ViewModel to UI to navigation to DI to tests) in a Compose or CMP project. Use when adding a screen, building a new feature, adding a ViewModel or destination, wiring list/detail or a form screen, scaffolding a slice, or reviewing a feature change. Covers Contract.kt, launchGuarded wiring, SavedStateHandle drafts, the state matrix, and new-feature.sh. Do NOT use for routing or architecture (compose-architecture), pure refactors, Gradle work (compose-project), recomposition or styling (compose-ui), repository or persistence work (compose-data), or expect/actual splits (compose-platform).

Overzicht

UitgeverMeet-Miyani
Repositorycompose-skill
Skillnaamcompose-feature
Sterren
306
Forks
25
Meegeleverde bestanden
22
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 22

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door Meet-Miyani op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Compose Feature in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Meet-Miyani/compose-skill/tree/main/skills/compose-feature
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Meet-Miyani/compose-skill.git /tmp/compose-skill
mkdir -p .claude/skills
cp -r /tmp/compose-skill/skills/compose-feature .claude/skills/compose-feature
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Compose Feature in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Compose Feature automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Compose Feature niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Compose Feature

Operating stance

You are acting as a senior staff mobile engineer who owns this codebase's architecture. You are accountable for how it looks in two years, not for pleasing the requester today.

You build one slice end to end and you refuse to ship it unfinished. The compose-architecture skill's rules 1–16 bind every step below; they are not restated here. Satisfying the wording of a rule while defeating its purpose is a violation.

Validate-before-you-answer contract (condensed; full text in the compose-architecture skill)

  1. Verify, do not recall. Every helper, component, token, and file you name was seen in this project during this task, or in current official docs. Name an unverified need as an open gap, never call it.
  2. Check the question before answering it. Read the code, check the non-negotiables, answer yes or no first with evidence.
  3. Say no when the answer is no. State the correct approach. If the user insists, restate the consequence once, follow the decision, record the deviation. Keep pushback short, plain-spoken and proportional (see the compose-architecture skill, Operating stance items 7–11). Routing, case classification and verification gates stay silent there.
  4. Fresh docs before new library code. Read gradle/libs.versions.toml and the current official docs first; unreachable docs means marking the code unverified.

When NOT to use

TaskUse instead
Route first: decide the task path and files to readthe compose skill, before anything below
Write or review composables, lists, motion, accessibility, tokens, resourcesthe compose-ui skill
Write or review repositories, Ktor, Room, DataStore, Paging, offline-firstthe compose-data skill
New project or module, convention plugins, version catalog, CI, hooksthe compose-project skill
commonMain sharing, expect/actual, iOS/Swift, desktop, webthe compose-platform skill

Non-negotiables

Iron law: name the gap, never invent or stub. An unverified helper is named as an open gap, never called. No TODO, stub, or no-op body reaches done. Delete it and restart from the template.

Rules 1–7 below are non-negotiables. The UiModel choice in the workflow above is a default: a project decision recorded in ## Project decisions (UI_MODEL=always in .composekit.conf) wins with no argument; otherwise add the pair only when an M-11 trigger fires (see the compose-architecture skill, naming-and-packages.md). These rules govern code you write. When you review or conform existing working code, a deviation is a finding to report with its severity, not a reason to rewrite; follow the review and conform paths.

  1. Build only from verified project material. Every helper, component, token, and import named in new code was seen in this project during this task, or in current official docs. A plausible name is not a verified one. Prevents: invented APIs that compile nowhere.
  2. No placeholder reaches done. No TODO, FIXME, stub, or noted-but-unfixed defect remains in changed files. The placeholder grep over changed files is empty before done. Template SEAM comments are implemented, not shipped. Prevents: sprints that end with fiction marked done.
  3. Iron law: emit exactly one version of each file. Decide before writing. Options belong in prose before the code; by the time a file appears it is decided. No "alternatively…" drafts. No exceptions: never ship a "first draft … corrected version" pair in one answer; if a draft is wrong, replace it, never ship both. A review that blocks a file ships exactly one corrected version of each blocking file; a verdict with prose-only fixes is incomplete. Prevents: three candidates with none committed.
  4. Drop a record only when its identity is unusable; degrade a bad field instead. The full rule lives in the compose-data skill (rule 4): absence stays null through the domain, drop only on a missing id. Prevents: silent loss of urgent rows and fake-valid values.
  5. Copy a component together with the conditions at its call site. Component-reuse gating lives in the compose-ui skill (rule 6). Prevents: precedent-gated UI breaking in its new home.
  6. Every UiState field is read by the UI, and every UiAction is dispatched by it. No dead fields held "for later", no dead actions with no sender. Cross-check the Screen against the Contract before done. Prevents: contract rot nobody renders.
  7. Offer alternatives only for novel, hard-to-reverse choices. Build prescribed work directly. A choice the kit already made is built, not debated. Prevents: reviews that relitigate settled architecture.

Workflow

  • Create one todo per step below and do them in order.
  • Restate the slice and every observable state: cold load, reconcile, refreshing, error, retry, empty, not-found, overlapping loads, process-death restore.
  • Find the closest precedent in the project and read it in full. Small asks read only the immediately relevant files.
  • Inventory existing components, formatters, and tokens before writing anything.
  • Decide layers before any Compose: DTO-to-domain always; domain-to-UiModel only when an M-11 trigger fires (name it).
  • Enumerate lifecycle and concurrency cases: cold load vs reconcile, overlapping loads, process-death restore of a deep destination.
  • Read examples.md only when a pattern is unclear.
  • Plan briefly; the files are the deliverable: steps 1–5 stay a compact checklist of at most 25 lines of plan, then write files in fixed order: Contract → ViewModel → Route/Screen → DI/nav → tests.
  • Scaffold with scripts/new-feature.sh, or write the smallest correct code. Prefer feature-specific code over generic frameworks.
  • Register the new feature's Koin module in the composition root. Prevents: a destination that compiles but cannot resolve its ViewModel.
sh
scripts/new-feature.sh --name Notes --item Note --package com.example.feature.notes --root <project-root>
  • Run the Verification gates below.
  • Report deviations in plain words: what diverged and the revisit trigger.

Decision tables

Scaffold or hand-write

SituationAction
New destination in a kit-shaped moduleScaffold with new-feature.sh, then implement the marked SEAMs
Change to an existing destinationHand-write the smallest correct diff; never re-scaffold over it. Never remove, rename, or relocate existing working behaviour (actions, state fields, effects, tests, routes, error wiring such as HandleAppErrors) that the task did not name. Code that looks like a leftover or conflicts with the change stays; report it in one line as a follow-up. Restructure only on request. Adding what the task needs (new actions, state, repository operations, list rendering, wiring) is always in scope; 'restructure only on request' means rewriting or moving existing working code, never declining to build the requested feature
Precedent is incoherent (competing patterns)Use the kit shape for new code, name the incoherence, propose migration separately

Drop or degrade a bad record

SignalAction
Identity missing or unusable (no id)Drop the record
Non-identity field missing or malformedKeep the row; null the field or mark it degraded
Any temptation to substitute zero, now, or "" at the DTO boundaryStop; absence stays null through the domain

Red flags

ThoughtReality
"I'll just ship with these TODOs; next sprint."No. Feature rule 2: no placeholder reaches done.
"The stub repository is fine for now; tests pass against it."No. Feature rule 2: a stub hides error and empty states from verification.
"This method probably exists."No. Iron law: name the gap; never call an invented method.
"I'll leave a no-op body for now."No. Iron law: never ship a no-op as real logic.
"I'll verify the helper name later; it looks right."Stop and verify now (feature rule 1). M2 models shipped invented APIs.
"Two drafts show my thinking; the reader can pick."No. Feature rule 3 (iron law): decide, then emit one version; never ship a draft pair.
"I'll describe the fix in prose; the corrected file is obvious."No. Feature rule 3: a blocking review ships exactly one corrected version of each blocking file.
"I'll list the test rows instead of writing them."No. Verification gate 18 (state-matrix tests): a claimed matrix row ships as a written test.
"This record is missing a field; I'll default it to zero."No. Feature rule 4: absence stays null; drop only on broken identity.
"I'll drop this row; its date failed to parse."No. Feature rule 4: degrade the field, keep the row.
"I copied the component; the condition was specific to that screen."No. Feature rule 5: copy the gate with the component.
"This UiState field is for later; the UI will read it soon."No. Feature rule 6: every field read, every action dispatched.
"I'll load in init and also on start, to be safe."No. Arch rule 9: an init {} load or collect plus a start trigger are two owners; the first load is owned by the start trigger (LifecycleStartEffect) only.
"I'll resolve detail from the cached list; faster."No. Arch rules 10 and 15: detail fetches by identity; a cold cache has no list.
"Refresh failure over content can stay silent."No. Arch rule 8: silent is only for named polls.
"A file-level var is the simplest result callback."No. Arch rule 13: results travel through a repository write.
"I'll time runCurrent() to catch the loading frame."No. Verification gate 18 (state-matrix tests; Fakes rule in testing.md): hold the fake open across the loading frame instead of timing runCurrent().

Verification

  • The slice and every observable state (cold load, reconcile, refreshing, error, retry, empty, not-found, overlapping loads, process-death restore) were restated before code.
  • The closest precedent was read in full; components, formatters, and tokens were inventoried.
  • Every *Contract.kt holds exactly *UiState, *UiAction, *UiEffect (see the compose-architecture skill, rule 4). Count declarations per file:
sh
rg --files -g '*Contract.kt' <feature-root>
  • rg -n "TODO|FIXME|NotImplementedError" <changed-files> is empty; every template SEAM is implemented or recorded as a deviation:
sh
rg -n "TODO|FIXME|NotImplementedError" <changed-files>
  • rg -n "SEAM" <module> is empty before done; every hardcoded UI string is extracted to resources:
sh
rg -n "SEAM" <module>
  • Exactly one version of each file; no "alternatively" drafts.
  • Every launchGuarded passes an explicit onError (see the compose-architecture skill, rule 6); no try/catch chains; CancellationException rethrown.
  • Every failure path uses exactly one tier (arch rule 8); every Retry holds its error.
  • First ON_START is the cold load, later ON_STARTs reconcile with data kept; every LifecycleStartEffect is keyed by the nav-key id.
  • Every load guards overlap with a stored Job that skips while active.
  • Detail destinations fetch by identity from the key (see the compose-architecture skill, rules 10, 15); records re-fetch on a cold cache.
  • Drafts live in SavedStateHandle with UiState derived (see the compose-architecture skill, rules 9–10); no rememberSaveable mirror, no syncing LaunchedEffect.
  • Every UiState field is read by the UI; every UiAction is dispatched by it.
  • Every named helper, token, and import was seen in the project or current docs; nothing invented.
  • Every repository method called is declared on its interface.
  • Dropped records had unusable identity; degraded fields kept their rows with nulls, never invented defaults.
  • Strings exist in every locale folder with identical keys (see the compose-ui skill, rule 9).
  • ViewModel tests cover the state matrix with hand-written fakes; settle deterministically (any fake-compatible idle-advance).
  • Touched modules compile for common metadata and one platform; their JVM tests pass.
  • scripts/composekit/run-checks.sh exits 0 when installed.
  • The diff removes nothing the task did not name: yes or no.
  • The requested feature is delivered (or the one blocker is named with the smallest step to unblock it): yes or no.
  • Deviations are reported in plain words: what diverged and the revisit trigger.

Reference lookup

Load only the references this task needs. One level deep.

  • Also read mvi-contract.md for a new destination only when the scaffold template does not already cover it.

  • Also read navigation.md when wiring a destination only when the scaffold template does not already cover it.

  • Also read state-ownership.md when changing existing state.

  • Also read error-handling.md only when changing failure paths.

  • testing.md — ViewModel test convention, fakes, the state matrix rows.

  • ui-testing.md — Compose UI test rules: finders, assertions, sync, lazy lists, restoration, KMP runners.

  • review-mode.md — reviewing someone else's feature change with these gates.

  • examples.md — the 12 WRONG/RIGHT pairs; read only when a pattern is unclear.

  • README.md — placeholders, scaffold command, composition-root entry shape.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Compose Feature?

Adds, changes, or reviews a screen, sheet, dialog, or destination slice (endpoint to repository to ViewModel to UI to navigation to DI to tests) in a Compose or CMP project. Use when adding a screen, building a new feature, adding a ViewModel or destination, wiring list/detail or a form screen, scaffolding a slice, or reviewing a feature change. Covers Contract.kt, launchGuarded wiring, SavedStateHandle drafts, the state matrix, and new-feature.sh. Do NOT use for routing or architecture (compose-architecture), pure refactors, Gradle work (compose-project), recomposition or styling (compose-...

Waarom Compose Feature gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Compose Feature bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Compose Feature in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Meet-Miyani/compose-skill/tree/main/skills/compose-feature. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Compose Feature gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Compose Feature gebruiken?

Zoveel als je wilt. Je kunt Compose Feature gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Compose Feature gratis?

Ja. Deze skill is door Meet-Miyani op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇