Skip to content
Agentmart
Submit a tool

flutter-bundle-google-fonts

Replaces the google_fonts package in a Flutter app with fonts bundled in the app, using the gentlemans-stack scripts/flutter/bundle-fonts.mjs to scan usages…

Skill by ersanyamarya

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ersanyamarya-flutter-bundle-google-fonts

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Replaces the google_fonts package in a Flutter app with fonts bundled in the app, using the gentlemans-stack scripts/flutter/bundle-fonts.mjs to scan usages, download static TTFs and verify. Use when the user asks to "remove google_fonts", "bundle fonts", "stop downloading fonts at runtime", "make fonts work offline", or wants Google Fonts to ship inside the app.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/flutter-bundle-google-fonts

What's inside

Skill name
flutter-bundle-google-fonts
Description
Replaces the google_fonts package in a Flutter app with fonts bundled in the app, using the gentlemans-stack scripts/flutter/bundle-fonts.mjs to scan usages, download static TTFs and verify. Use when the user asks to "remove google_fonts", "bundle fonts", "stop downloading fonts at runtime", "make fonts work offline", or wants Google Fonts to ship inside the app.
License
MIT
Instructions
27 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • files: referenced but missing: scripts/flutter/bundle-fonts.mjs

Files (3)

  • SKILL.md
  • evals.json · evals/
  • rewrite-rules.md · references/

SKILL.md (first lines)

# Bundle Google Fonts into a Flutter app

`scripts/flutter/bundle-fonts.mjs` (stack) does the scan, download and verify; this skill covers the judgment and the Dart/pubspec edits. Fonts declared in the design tokens are not handled here: `pnpm nx run design-tokens:generate` copies them into every app. Run from the repo root; `[app]` is the folder under `apps/` (default `todo-mobile`). When the script is missing, the repo has not synced the stack's `scripts/flutter/`; say so and stop.

1. **Scan**
   - `node scripts/flutter/bundle-fonts.mjs scan <app>`. Read `families` (dir, weights, italic, `unresolvedWeights`), `textThemeCalls`, `dynamicUsages`, `otherFilesMentioning`.
   - Ask the user before continuing when `dynamicUsages` has `getFont` or `getTextTheme`: the family names come from runtime values.
   - Read the app's `CLAUDE.md` for comment, logging and localization rules that affect the edits.

2. **Settle the weights**
   - Read `references/rewrite-rules.md` section "Weights the scan cannot see". Resolve every unresolved weight and every `.copyWith(fontWeight: ...)` by reading call sites. Tell the user families, weights and rough size (130 KB to 650 KB per file) before downloading.

3. **Download**
   - Per family: `node scripts/flutter/bundle-fonts.mjs fetch <app> --family <dir> --weights <w,w> [--italic]`. It writes `apps/<app>/assets/fonts/` and `LICENSES.txt` and prints the `pubspecFontsBlock`.
   - Exit code 2 means a variable-only family needs `fonttools`; ask the user, then re-run with `--allow-install`. Never fetch fonts from anywhere but Google Fonts; stop and ask when a family is not there. `--dry-run` prints the plan without downloading.

4. **Rewrite**
   - Apply `references/rewrite-rules.md` (Dart call sites and imports, pubspec `fonts:` block, license asset, license registration in `main()`, docs). Change only what the scan reported.

5. **Verify**
   - `flutter pub get`, then `pnpm nx run <app>:format`, `:analyze`, `:test`. Then `node scripts/flutter/bundle-fonts.mjs verify <app>` must exit 0 (`remainingReferences: 0`, no `missingAssets`).
   - Never launch the app unless asked; say text appearance is unchecked.

6. **Report**
   - Families and weights bundled, files added with total size, files edited, verify result, what stays unverified (on-device rendering, weights to confirm). Do not commit unless asked.

From ersanyamarya/agentry-labs, MIT.

More from ersanyamarya/agentry-labs

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 19, 2026 (10 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ersanyamarya

Cite this page

flutter-bundle-google-fonts skill. Agent Mart. https://agentmart.dev/skills/ersanyamarya-flutter-bundle-google-fonts (last updated 2026-10-24)