Copy-in templates and a skill for shared quality gates by language pack: JS/TS (Biome, tsc -b, rev-dep, complexity ratchet, husky/CI), optional Python (uvx), Dart/Flutter (format, analyze, Betterleaks, dependency_validator, lefthook/CI), Kotlin/Android Jetpack Compose (ktfmt, detekt + compose-rules, Lint, Robolectric + Roborazzi screenshot tests, Kover, dependency-analysis, lefthook/CI), with Rust reserved.
pnpm install
pnpm run audit -- --target ~/mycode/<repo>
pnpm apply -- --target ~/mycode/<repo>
pnpm apply -- --target ~/mycode/<repo> --packs js-ts,python
pnpm apply -- --target ~/mycode/<repo> --packs dart
pnpm apply -- --target ~/mycode/<repo> --packs kotlin-android
pnpm run upgrade -- --target ~/mycode/<repo> [--dry-run]upgrade replaces owned files left untouched since apply with the current templates and lists customized ones to merge by hand. Run it (and audit) via pnpm run: pnpm upgrade and pnpm audit are pnpm builtins that shadow the scripts.
Packs are detected from the target, or set with --packs. --python force-adds the python Pack (Host alone, or Fragment onto js-ts).
js-ts detection ignores stub package.json files with no dependencies (common in Flutter repos). Python detection ignores helper-script dirs (tool/, scripts/, …) so Flutter tool/*.py does not pull the Fragment; use --packs dart for Dart hosts. Override with --packs when needed.
Agent skill: SKILL.md (quality-gates, user-invoked). Bare invoke → audit, then ask before adopt.
The skill is installed by symlinking this repo, so edits here are live everywhere. Keep both installs:
ln -sfn ~/mycode/quality-kit ~/.agents/skills/quality-gates # Cursor / agents
ln -sfn ~/mycode/quality-kit ~/.claude/skills/quality-gates # Claude CodeWhen adding or renaming the skill, or moving the repo, update both links. Shared reference: REFERENCE.md. Pack modules: languages/*/MODULE.md.
languages/<pack>/templates/— filesapplycopies into a target repolanguages/<pack>/MODULE.md— pack tools, pins, post-apply stepslanguages/shared/— Shared layer every Host Pack composes (Betterleaks config, wrapper, checksum-pinned installer); not a Packlanguages/kotlin-android/templates/build-logic/quality/— Gradle convention plugins (quality-kit.root,quality-kit.android) copied into the Targetscripts/packs/— Pack adapters (detect + Contribution)scripts/desired-state.ts— Desired state build + diffscripts/audit.ts/scripts/apply.ts/scripts/upgrade.ts— thin adapters over Desired statescripts/lint-templates.ts—pnpm lint:templates: shellcheck + actionlint over templates (kit CI; see REFERENCE.md "Kit CI")GLOSSARY.md— domain terms (Pack, Desired state, Target, …)