agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/macrobenchmark-baseline-profiles/SKILL.md

macrobenchmark-baseline-profiles

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Android Macrobenchmark, Baseline Profile generation, startup measurement, scroll/jank benchmarks and release performance validation.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create or update macrobenchmark module.

    line 30
  2. Distinctive:

    Run release/profileable benchmarks.

    line 31
  3. Distinctive:

    Do not measure only debug builds.

    line 37
  4. Distinctive:

    Do not optimize without baseline numbers.

    line 38
  5. Distinctive:

    Do not benchmark unrealistic flows.

    line 39
  6. Distinctive:

    Keep benchmark code separate from production code.

    line 40
  7. Distinctive:

    Do not assume these companion skills are installed.

    line 54
  8. Distinctive:

    Use $super-android-kotlin-firebase to add startup macrobenchmarks.

    line 93
  9. Distinctive:

    Use $super-android-kotlin-firebase to generate a Baseline Profile for this Compose app.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Purpose

Measure real release-like performance and create Baseline Profiles for user-critical journeys.

When to use

  • Improving startup time.
  • Measuring scroll jank or Compose performance in release.
  • Adding a macrobenchmark module.
  • Generating or validating Baseline Profiles.
  • Comparing before/after performance changes.

Inputs to inspect

  • settings.gradle.kts
  • Benchmark module setup
  • App build types and profileable config
  • baseline-prof.txt
  • Startup path and critical screens
  • CI benchmark workflow

Required workflow

  1. Identify a real user journey to measure.
  2. Create or update macrobenchmark module.
  3. Run release/profileable benchmarks.
  4. Generate Baseline Profile for startup and critical paths.
  5. Report results and tradeoffs clearly.

Rules

  • Do not measure only debug builds.
  • Do not optimize without baseline numbers.
  • Do not benchmark unrealistic flows.
  • Keep benchmark code separate from production code.
  • Explain device and build conditions.

Related existing skills

Local skills to invoke

  • compose-performance
  • gradle-build
  • play-store-release
  • testing

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • skydoves/android-testing-skills — use for deeper Android or Compose UI testing, semantics, assertions or test workflow guidance.
  • skydoves/compose-performance-skills — use for deeper Compose performance, recomposition, stability or release-mode measurement guidance.

Files commonly touched

  • benchmark/build.gradle.kts
  • settings.gradle.kts
  • app/build.gradle.kts
  • baseline-prof.txt
  • *Benchmark.kt
  • BaselineProfileGenerator.kt

Commands to validate

./gradlew connectedBenchmarkAndroidTest
./gradlew generateBaselineProfile
./gradlew assembleRelease

Common mistakes to avoid

  • Running benchmarks on debug.
  • Changing multiple variables before comparison.
  • Ignoring warmup and device state.
  • Failing to commit generated profile updates.

Checklist

  • Journey chosen.
  • Release-like variant used.
  • Baseline measured.
  • Profile generated.
  • Results summarized.

Example prompts

  • Use $super-android-kotlin-firebase to add startup macrobenchmarks.
  • Use $super-android-kotlin-firebase to generate a Baseline Profile for this Compose app.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/macrobenchmark-setup.md
  • references/baseline-profile-generation.md
  • references/startup-and-scroll-benchmarks.md
  • references/release-performance-checklist.md
  • templates/macrobenchmark-module-template.md
  • templates/startup-benchmark-template.kt
  • templates/scroll-benchmark-template.kt
  • templates/baseline-profile-generator-template.kt

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.