Logo Compose Project

Compose Project

Cộng đồng
Meet-Miyani
compose-project

Owns project and build-level work for Compose and Compose Multiplatform apps: bootstrapping a new project, adopting the kit in an existing project, adding or extracting a module, convention plugins in build-logic, the version catalog, and CI plus agent hooks. Use when starting a Compose Multiplatform app, adding a module, or editing settings.gradle.kts, build.gradle.kts, build-logic, libs.versions.toml, or packaging. Do NOT use for routing and architecture choices (compose-architecture), feature code (compose-feature), repositories and persistence (compose-data), composables or resources (compose-ui), or commonMain vs platform code (compose-platform).

Add to TypingMind

Tổng quan

Nhà phát hànhMeet-Miyani
Kho mãcompose-skill
Tên kỹ năngcompose-project
Sao
306
Bản fork
25
Tệp đi kèm
39
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 39 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Meet-Miyani công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Compose Project trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Meet-Miyani/compose-skill/tree/main/skills/compose-project
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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-project .claude/skills/compose-project
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Compose Project trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Compose Project ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Compose Project với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Compose Project

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.

Build files are load-bearing contracts, not scaffolding to rush past. A shortcut in a module build file replicates to every module after it. 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 plugin id, coordinate, and Gradle DSL block you write was seen in the current official docs for the versions in gradle/libs.versions.toml. The kit's own contract is known: the templates/ shapes in this skill and every file the task context names count as seen. Never call an invented plugin or task.
  2. Check the question before answering it. Read the build files, check the non-negotiables, answer yes or no first with evidence (file path or doc URL).
  3. Say no when the answer is no. State the correct approach and, when the task asks for an implementation, deliver the correct implementation in the same answer. A refusal without it is incomplete. 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. Unverifiable means say so. Say what you would need to check. Never present a guess as a fact.
  5. Fresh docs before new build code. Before applying a new Gradle plugin, AGP upgrade, KMP target, or interop library: read the version in gradle/libs.versions.toml, read the current official docs for that version, then write. Unreachable docs means marking the change unverified.

When NOT to use

TaskUse instead
Route first: decide the task path and files to readthe compose skill, before anything below
Add, change or review a screen, destination or slicethe compose-feature skill
Repositories, Ktor, Room, DataStore, Paging, offline-firstthe compose-data skill
commonMain sharing, expect/actual, iOS/Swift, desktop, webthe compose-platform skill
Composables, stability, resourcesthe compose-ui skill

Non-negotiables

Rules 1–8 are non-negotiables. Rules 9–10 are defaults: a recorded project decision in ## Project decisions wins with no argument; waiving a non-negotiable needs a recorded reason (see the compose-architecture skill, existing-projects.md item 5).

  1. Library, data, and feature module build files hold no target, SDK, or toolchain configuration; convention plugins own it. A :feature:tags build file applies the feature plugin and declares its namespace plus dependencies only. (Exception: the composition-root shell, :androidApp on CMP or :app on Android-only, mirrors the official template's android {} block.) Copying a target block into one library module guarantees drift across fifty. Prevents: per-module SDK drift (brief §12.1).
  2. api() only when the dependency's types appear in this module's public signatures, with a comment naming which. A leaked type expands every consumer's classpath and build graph. Prevents: classpath leaks through core modules (brief §12.6).
  3. No module depends on the composition root. Only the root depends on features and data modules. A feature that imports the root's NavKey or component has built a cycle. Prevents: feature-to-root cycles (brief §1.2).
  4. Every new module is registered in .composekit.conf and passes run-checks.sh. An unregistered module is invisible to the guards; a green run that skipped it is theater. Prevents: unguarded modules.
  5. Adoption is incremental. Guards start in WARN mode on an existing project and become blocking only after the baseline is clean. Never rewrite working features as a side effect of another task. Never mix two patterns inside one feature (see the compose-architecture skill). Prevents: big-bang rewrites that stall mid-flight (STANDARDS §6).
  6. No new business logic is parked in the composition root. Root slices are temporary scaffolds, deleted when the target module ships. Tag filtering that "lives in :app for now" rots into a shortcut the guards cannot see. Prevents: root-as-junk-drawer (brief §12.3).
  7. Every version is declared once in gradle/libs.versions.toml; no versions appear in module build files. A version written in two places diverges the day one of them is bumped. Prevents: version drift across modules.
  8. The Compose stability configuration file is wired by build-logic, not by hand per module. The shared config declares the domain-model packages and kotlin.collections.*. Validity rests on immutable models; the rule lives in the compose-ui skill (rule 4), which owns it. Prevents: stability fixes that silently stop applying.
  9. [Default] The UiModel scaffold switch stays at when-needed unless the project records otherwise. UI_MODEL=always in .composekit.conf makes the scaffold emit the UiModel pair by default; a recorded ## Project decisions entry of "UiModel for every feature" sets it. A chat preference applies to the current task, and the agent offers to record it.
  10. [Default] Guards run in CI on every change through the run-checks.sh registry, never around it. The CI job calls the registry; agent hooks call the registry before finishing a Compose change. The exact job shape follows the project's forge; what never changes is registry-first ordering.

Version gates: read gradle/libs.versions.toml before writing. If AGP is below 9, stop and report instead of applying the AGP 9 shape. If Kotlin is below 2.3.20, stop and report instead of applying the Koin compiler plugin. If Kotlin is above the highest version the installed SKIE supports, stop and report instead of adding SKIE.

Workflow

  • Create one todo per step below and do them in order.
  • State which of the four workflows this task is: bootstrap, adopt-existing, add-module, or CI/hooks. Follow only that checklist; the checklists link instead of repeating each other.

Bootstrap a new project

  • Pick the target shape from the decision table (CMP app vs Android-only).
  • Lay out the kit skeleton from templates/project/: root settings, root build file, gradle.properties, gradle/libs.versions.toml, build-logic/, :core:mvi and :core:error from the compose-architecture templates, :core:designsystem, :feature:notes, the composition root (:composeApp plus :androidApp on CMP, :app on Android-only). A :data:<domain> module joins only when a second feature needs the same data (see bootstrap.md).
  • Install the guards with install-guards.sh; register every module in .composekit.conf and document every key where setup is explained (see bootstrap.md). UI_MODEL stays when-needed unless the project records always.
  • Create the project's ## Project decisions section in AGENTS.md/CLAUDE.md (see bootstrap.md); add the one-line kit-activation pointer from enforcement.md.
  • Build the first feature with the compose-feature scaffold, never by hand-copying an old screen.
  • Run the Verification gates below.

Adopt the kit in an existing project

  • Run scripts/audit-project.sh and produce the gap report from adopt-existing.md. Classify the project as existing-project case 1, 2, or 3 (defined in the compose-architecture skill).
  • Say no to a full rewrite inside the change at hand when the project is coherent (case 2). Propose migration as a separate task.
  • Plan incrementally: guards first in WARN mode, then convention plugins, then the base contract for new features only.
  • Create ## Project decisions for every deviation the project keeps, with the reason stated once.
  • Run the Verification gates below.

Add or extract a module

  • Apply the owning convention plugin; the module file holds the plugin alias plus namespace plus dependencies, nothing else.
  • Declare dependencies through type-safe project accessors; use api() only per rule 2.
  • Register the module in .composekit.conf and run run-checks.sh.
  • Register the new module's Koin module in the composition root. Prevents: a compiled module with unresolved runtime bindings.
  • When extracting from the composition root, delete the root slice in the same change.

Wire CI and agent hooks

  • The CI job calls scripts/composekit/run-checks.sh (the registry), never individual checks. New checks join as one registry line.
  • Agent hooks (Claude Code / OpenCode / Cursor) run the registry before finishing a Compose change. Print the snippets with install-guards.sh; never write them into the user's config without consent.
  • Activate the kit: the one-line pointer plus the optional SessionStart hook from enforcement.md.

Decision tables

Target shape

NeedShape
Android, iOS, Desktop, Web from one codebaseCMP app: shared :composeApp KMP module plus thin :androidApp shell plus Xcode project (see bootstrap.md)
Android only, now and for the foreseeable futureAndroid-only: :app plus :core:*, :data:*, :feature:* (see bootstrap.md)

AGP plugin shape (read the AGP version first)

libs.versions.toml showsShape
AGP 9 or newerShared module uses com.android.kotlin.multiplatform.library with the kotlin { android { … } } block; the Android entry point lives in a separate :androidApp module
AGP below 9Keep com.android.library; do not apply the AGP 9 shape. Stop and report instead of migrating as a side effect

Adopt incrementally (existing-project case → plan; cases live in the compose-architecture skill)

CasePlan
Case 1 (green field or kit-shaped)The kit strictly, from the first module
Case 2 (coherent different architecture)This change follows the project's pattern; kit migration is a separate task
Case 3 (incoherent, competing patterns)New code follows the kit; name the incoherence; propose migration separately

Red flags

ThoughtReality
"I'll park the tags logic in :app for now to ship faster."No. Rule 6: the root is a temporary scaffold, never a home. Say no first, then create the feature module.
"I'll skip the guard config; we will clean it up later."No. Rule 4: unregistered means unguarded. Register before done.
"I'll do the full rewrite to the kit inside this change."No. Rule 5: incremental, WARN mode first. A coherent project keeps its pattern for this change.
"I'll copy the target block into this module; it is only one module."No. Rule 1: convention plugins own targets. One copy becomes fifty.
"I'll use api(); it compiles, so it is fine."No. Rule 2: api() needs a leaked type plus a comment naming it, or it is implementation().
"I'll pin this version in the module file; the catalog is for libraries."No. Rule 7: every version lives once in libs.versions.toml.
"I'll call one guard script from CI; that covers it."No. Rule 10: CI calls the registry. One script is a second registry that drifts.
"I'll write the hook into the user's config now; they will want it."No. Print the snippet; never write it without consent.
"This plugin id looks right; I remember it."Stop and verify now (stance item 1). An invented plugin id fails every module at sync time.

Verification

  • scripts/composekit/run-checks.sh (or the skill's scripts/run-checks.sh <project-root>) exits 0.
  • scripts/audit-project.sh <project-root> output is reviewed for bootstrap gaps and adopt-existing classification.
  • No target, SDK, or toolchain block in any library, data, or feature module build file: rg -n "compileSdk|minSdk|targetSdk|jvmTarget|jvmToolchain" --glob '*.gradle.kts' <module-dirs> is empty outside build-logic/ and the composition-root shell module.
  • No versions in module build files: every coordinate resolves through libs. accessors.
  • Every api( line carries a comment naming the leaked type.
  • Every module directory is registered in .composekit.conf; every .composekit.conf key used by the project is documented where setup is explained.
  • The project's AGENTS.md/CLAUDE.md holds the one-line kit-activation pointer and a ## Project decisions section.
  • The CI workflow calls run-checks.sh; the registry has one line per check and fails when a script is missing.
  • Touched modules sync and compile for common metadata and one platform.
  • Every plugin id and DSL block named in the change was seen in the current official docs for the versions in libs.versions.toml: yes or no.

Reference lookup

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

  • Also read module-graph.md when adding a module.

  • Also read dependency-injection.md when wiring module bindings.

  • bootstrap.md — new-project workflow: target selection, module skeleton, guard install, first feature, ## Project decisions, every .composekit.conf key.

  • adopt-existing.md — audit checklist, gap-report format, incremental order, WARN-mode guards, what never to force-migrate.

  • convention-plugins.md — plugin set, what each owns, the stability-config wiring, the AGP 9 shape.

  • dependency-rules.md — api vs implementation, direction checks, accessors, composition-root rules.

  • version-catalog.md — naming, bundles, verification habit, floors, composite builds.

  • enforcement.md — install-guards.sh, CI job, agent hooks, kit activation, stability baselines.

  • distribution.md — desktop packaging, signing and notarization, CI matrix, caches.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Compose Project làm được gì?

Owns project and build-level work for Compose and Compose Multiplatform apps: bootstrapping a new project, adopting the kit in an existing project, adding or extracting a module, convention plugins in build-logic, the version catalog, and CI plus agent hooks. Use when starting a Compose Multiplatform app, adding a module, or editing settings.gradle.kts, build.gradle.kts, build-logic, libs.versions.toml, or packaging. Do NOT use for routing and architecture choices (compose-architecture), feature code (compose-feature), repositories and persistence (compose-data), composables or resources (c...

Vì sao nên dùng Compose Project trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Compose Project là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Compose Project trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Meet-Miyani/compose-skill/tree/main/skills/compose-project. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Compose Project?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Compose Project với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Compose Project với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Compose Project có miễn phí không?

Có. Kỹ năng này được Meet-Miyani phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇