agentleFS
mikezamayiasmikezamayias/agent-skills/skills/launch-readiness/SKILL.md

launch-readiness

Skill1 starsChanged 27 days agoBSD-3-ClauseView on GitHub

Runs launch readiness checks on Flutter, Swift and Kotlin apps before store or Mac release, scored SHIP, HOLD or BLOCK. Covers store compliance, privacy, legal, data safety, assets, metadata, testing, security, accessibility, performance. Use for /launch-readiness or a public release preflight.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use experiment-designer and stakeholder-update.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Dokkabei97Skill

    experiment-designer

    Designs A/B tests and product experiments with hypothesis structuring, sample size calculation, duration estimation, and result interpretation. Unified framework for both product and marketing experiments.

    Also in 3 projects that use this

  • AnthropicSkill

    stakeholder-update

    Generate a stakeholder update tailored to audience and cadence. Use when writing a weekly or monthly status for leadership, announcing a launch, escalating a risk or blocker, or translating the same progress into exec-brief, engineering-detail, or customer-facing versions.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 20 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 20

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read these sources in parallel:

    line 39
  2. Distinctive:

    Run each phase once per detected project and label findings with the project.

    line 45
  3. Distinctive:

    Every phase file has a "Native Swift and Kotlin projects" section with the native equivalent of its Flutter checks.

    line 55
  4. Distinctive:

    If a CLAUDE.md exists at the project root (or any parent), extract:

    line 95
  5. Distinctive:

    No overlay (generic checks only)

    line 110
  6. Distinctive:

    If multiple overlays could match, ask the user.

    line 112
  7. Distinctive:

    If a phase subagent fails (timeout, crash, malformed output):

    line 168
  8. Distinctive:

    If retry fails: mark the phase as INCONCLUSIVE

    line 171
  9. Distinctive:

    After all phases in a tier complete:

    line 178
  10. Distinctive:

    If any critical findings → STOP.

    line 180
  11. Distinctive:

    If high findings in T2 → present each and ask for acknowledgment:

    line 181
  12. Very specific:

    If --auto mode: all highs are unacknowledged (no interactive prompt)

    line 191
  13. Distinctive:

    If tier clears → proceed to next tier

    line 192
  14. Distinctive:

    After all tiers complete (or short-circuit), generate the report.

    line 204
  15. Very specific:

    Use the template in references/scorecard-template.md.

    line 225
  16. Distinctive:

    After presenting the scorecard:

    line 229
  17. Very specific:

    If --fix flag: skip prompt, fix immediately

    line 233
  18. Distinctive:

    After fixing: re-run only affected phases to verify

    line 235
  19. Distinctive:

    After every run, perform learning extraction.

    line 240
  20. Distinctive:

    Check refinements (broader scope than current check)

    line 247
  21. Distinctive:

    Remove entries older than 90 days not promoted to a phase/overlay

    line 264
  22. Very specific:

    When invoked with --auto (from a UserPromptSubmit hook):

    line 281
  23. Distinctive:

    Run T1 only, scoped to changed files

    line 283
  24. Distinctive:

    No interactive prompts (highs are unacknowledged)

    line 294

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Launch Readiness

A library-agnostic launch readiness skill for Flutter, native iOS and Mac (Swift, SwiftUI), and native Android (Kotlin, Jetpack Compose) projects. Auto-detects project type and stack, runs tiered parallel quality checks, produces a scored go/no-go report, offers auto-fixes, and improves itself after each run.

Invocation

/launch-readiness              # Full 3-tier sweep, entire codebase
/launch-readiness --changed    # Full 3-tier sweep, changed files only
/launch-readiness --tier 1     # Only T1 (testing + security + store compliance)
/launch-readiness --tier 2     # T1 + T2
/launch-readiness --overlay X  # Use specific overlay file
/launch-readiness --fix        # Run + auto-fix without asking
/launch-readiness --auto       # Hook mode: condensed output, no prompts

Orchestrator Flow

1. DISCOVER  → Detect project type, read manifests (pubspec.yaml, project.yml, Package.swift, Gradle files), CLAUDE.md, overlay → emit stack profile
2. SCOPE     → Determine file scope (--changed or full)
3. DISPATCH  → Launch tier phases as parallel subagents
4. GATE      → Collect results, enforce tier gates
5. SCORECARD → Aggregate into unified report
6. FIX OFFER → "N issues auto-fixable. Fix now?"
7. LEARN     → Mine new patterns, propose phase updates

Step 1: Stack Discovery

Read these sources in parallel:

1-pre. Project type

Detect every project type present before reading manifests. One repository can hold several, for example a SwiftUI iPhone, Watch and Mac app next to a Kotlin Android app. Run each phase once per detected project and label findings with the project.

TypeDetected by
Flutterpubspec.yaml with a flutter: key
Native Apple (Swift)project.yml (XcodeGen), *.xcodeproj, *.xcworkspace or Package.swift
Native Android (Kotlin)settings.gradle.kts or settings.gradle with gradlew and an AndroidManifest.xml

For Flutter, continue with 1a. For native projects, read references/native-projects.md for detection and the command map, then continue with 1a-native. Every phase file has a "Native Swift and Kotlin projects" section with the native equivalent of its Flutter checks.

1a. pubspec.yaml (Flutter)

Detect dependencies to build a stack profile:

ConcernPackages to detect
State managementflutter_bloc / riverpod / provider / get / mobx
Analyticsposthog_flutter / firebase_analytics / amplitude_flutter / mixpanel_flutter
Crash reportingsentry_flutter / firebase_crashlytics
Subscriptionspurchases_flutter / in_app_purchase / none
UI frameworkshadcn_ui / material (default) / cupertino / mixed
Navigationgo_router / auto_route / navigator (default)
DIget_it / riverpod / provider / none
Localizationintl / easy_localization / slang / none
Testingvery_good_cli (check dev_dependencies) / flutter_test (default)

See references/stack-detectors.md for detailed detection rules.

1a-native. Native Swift and Kotlin manifests

Detect the stack from these files instead of pubspec.yaml:

ConcernSwift (iOS, Watch, Mac)Kotlin (Android)
Targets, schemesproject.yml targets and schemes, or xcodebuild -listsettings.gradle.kts include(...), app/build.gradle.kts
DependenciesPackage.swift, Package.resolved, project.yml packagesgradle/libs.versions.toml, dependencies {} blocks
UISwiftUI (import SwiftUI), UIKit, AppKitJetpack Compose (androidx.compose), XML views
AnalyticsPostHog, Firebase Analytics, TelemetryDeck, or noneSame SDKs on Android, or none
Crash reportingSentry, Firebase Crashlytics, or none (MetricKit and App Store Connect reports)Sentry, Firebase Crashlytics, or none (Play Console Android vitals)
SubscriptionsStoreKit 2 (import StoreKit), RevenueCat purchases-ios, or noneGoogle Play Billing (billing-ktx), RevenueCat purchases-android, or none
Localization*.xcstrings String Catalogs, Localizable.stringsres/values-*/strings.xml
Test runnerSwift Testing (import Testing), XCTestJUnit 4 or 5, Compose UI tests, Espresso

Zero third-party dependencies is a valid result. Record it in the profile and skip the checks that need an SDK.

1b. CLAUDE.md

If a CLAUDE.md exists at the project root (or any parent), extract:

  • Banned imports (e.g., a banned UI package)
  • Theme constant rules (e.g., "use spacing tokens, not raw values")
  • Naming conventions
  • Coverage thresholds
  • Code quality rules

1c. Overlay

Resolve overlay using this priority:

  1. --overlay <name> flag (explicit)
  2. name field from pubspec.yaml (e.g., name: my_app matches overlays/my_app.md), or for native projects the top-level name: in project.yml or rootProject.name in settings.gradle.kts
  3. Git repository root directory name
  4. No overlay (generic checks only)

If multiple overlays could match, ask the user.

Stack Profile Output

Emit a profile object that every phase subagent receives:

Stack Profile:
- state: {detected state management}
- analytics: {detected analytics}
- crash: {detected crash reporting}
- subs: {detected subscriptions}
- ui: {detected UI framework}
- nav: {detected navigation}
- di: {detected DI}
- l10n: {detected localization}
- test_runner: {detected test runner}
- project_type: {flutter | apple-native | android-native, one entry per detected project}
- commands: {resolved build, test, lint and archive commands per project, see references/native-projects.md}
- rules: [extracted from CLAUDE.md]
- overlay: {matched overlay name or "none"}

Step 2: Scope Resolution

Determine which files to check:

  • Full codebase (default, or --changed not specified): Flutter: all .dart files under lib/. Native Apple: all .swift files outside build/, .build/ and DerivedData. Native Android: all .kt files under src/main and src/test, plus AndroidManifest.xml and Gradle files
  • Changed files (--changed or auto-hook mode): git diff --name-only $(git merge-base HEAD <target-branch>)..HEAD
  • Target branch detection: From PR target (gh pr view), from branch naming (feature branches target the integration branch, hotfix branches target the production branch), or default to the integration branch. Branch roles are integration, release candidate, and production (for example develop, release, main).
  • Import expansion (release-candidate and production targets only): For each changed file, resolve direct importers via grep to catch ripple effects

Step 3: Dispatch Tier Phases

Tier Structure

TierPurposePhasesGate
T1 — Ship BlockersMust passTesting, Security, Store ComplianceCritical = STOP
T2 — Quality GatesShould passHardening, Accessibility, Responsive, LocalizationCritical = STOP, High = warn + acknowledge
T3 — Polish & VerifyNice to passAnalytics, Performance, PolishAdvisory only

Launch all phases within a tier as parallel subagents using the Agent tool. Each subagent receives:

  • The stack profile from Step 1
  • The file scope from Step 2
  • The phase instructions from phases/{phase}.md
  • Any overlay additions from overlays/{overlay}.md for that phase

Phase File Location

Phase prompts live in phases/ directory relative to this skill file. Read the phase file and pass its content as the subagent prompt, prepending the stack profile and scope.

Subagent Error Handling

If a phase subagent fails (timeout, crash, malformed output):

  1. Retry once with the same inputs
  2. If retry fails: mark the phase as INCONCLUSIVE
  3. Inconclusive in T1/T2 → treated as critical (fail-closed)
  4. Inconclusive in T3 → treated as warning (advisory tier)
  5. Include error details in the report

Step 4: Gate Enforcement

After all phases in a tier complete:

  • If any critical findings → STOP. Present findings, offer to fix. Do NOT proceed to next tier.
  • If high findings in T2 → present each and ask for acknowledgment:

    [phase] file:line — description
    Acknowledge? (y = accept risk / n = will fix) [y/n]:
    • y: marked acknowledged, doesn't count toward HOLD
    • n: remains unacknowledged, counts toward HOLD
  • If --auto mode: all highs are unacknowledged (no interactive prompt)
  • If tier clears → proceed to next tier

Auto-Hook Gate by Branch

TargetT1 ScopeOn Failure
Integration (for example develop)Changed filesWarn, allow override
Release candidate (for example release)Changed + importersBlock
Production (for example main)Full codebaseBlock

Step 5: Scorecard Generation

After all tiers complete (or short-circuit), generate the report.

Verdict Logic

VerdictCondition
BLOCK1+ critical findings
HOLD0 criticals, 3+ unacknowledged highs
SHIP0 criticals, all highs acknowledged or 0 highs

Severity Definitions

SeverityMeaningGate Impact
CriticalApp is broken, insecure, or will be rejectedBlocks tier
HighSignificant UX/quality degradationAccumulates toward HOLD
MediumSuboptimal but functionalInformational
LowStyle nit, minor inconsistencyInformational

Report Template

Use the template in references/scorecard-template.md. Write the report to docs/launch-readiness-report.md in the project root.

Step 6: Fix Offer

After presenting the scorecard:

  1. Count auto-fixable issues (those with fix_action in phase output)
  2. Present: "N issues can be fixed automatically. Fix now?"
  3. If --fix flag: skip prompt, fix immediately
  4. On approval: apply fixes grouped by phase
  5. After fixing: re-run only affected phases to verify
  6. Present updated scorecard with delta

Step 7: Self-Improvement

After every run, perform learning extraction.

Pattern Mining

Scan findings for recurring patterns not already in phase check lists:

  • New code patterns that should be checked
  • Check refinements (broader scope than current check)
  • Project-specific discoveries

Learning Persistence

Append to references/learnings.md:

## {date} — {project} run
- NEW CHECK ({phase}): {description}
- REFINEMENT ({phase}): {description}

Pruning

On each run, scan learnings.md and:

  • Remove entries older than 90 days not promoted to a phase/overlay
  • Deduplicate identical check descriptions
  • Cap at 100 entries (oldest unpromoted pruned first)

Phase Update Proposals

Present at end of report:

"I discovered N patterns not covered by current checks. Update phase files?"

On approval:

  • Generic patterns → update phases/{phase}.md
  • Project-specific patterns → update overlays/{project}.md

Auto-Hook Mode

When invoked with --auto (from a UserPromptSubmit hook):

  • Run T1 only, scoped to changed files
  • Condensed output:

    Launch Readiness (T1):
      Testing:  PASS (N tests, 0 failures)
      Security: PASS (0 criticals)
      Store Compliance: PASS (0 criticals)
      → Proceeding.
  • No interactive prompts (highs are unacknowledged)
  • On failure: print findings and block

Hook Setup

See hooks/pre-push.md for configuration instructions.

Sources

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.