figcraft-typography
Skill0 starsChanged 5 days agoMITView on GitHub
Chooses and installs the right typeface for a FigCraft document, including downloading free families from the Google Fonts store through font.download, and verifies that no text renders in a silent fallback.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/skill-authoring/tools/AGENTS.mdAGENTS.md
- aes-docsSkill
- aes-fixSkill
- aes-layerSkill
- aes-migrationSkill
- android-emulator-linux-gpsSkill
- computer-useSkill
- flatpak-chromium-automationSkill
- qwen-webSkill
- grok-buildSkill
- hermes-agentSkill
- omnirouteSkill
- orcaSkill
- account-managerSkill
- brave-setupSkill
- password-managerSkill
- codegraphSkill
- deep-cleanSkill
- dogfoodSkill
- reviewSkill
- systematic-debuggingSkill
- blender-arwakySkill
- comfyuiSkill
- llm-writingSkill
- vision-arwakySkill
- playwright-toolingSkill
- setup-ci-quality-gatesSkill
- statuslineSkill
- systemd-headless-serviceSkill
- xdg-spec-complianceSkill
- figcraft-builderSkill
- figcraft-iconsSkill
- figcraft-motionSkill
- figcraft-prototyperSkill
- figcraft-reviewSkill
- figcraftSkill
- figcraft-svgSkill
- github-authSkill
- issue-makerSkill
- issue-workerSkill
- mergifySkill
- pr-babysitSkill
- releasingSkill
- repo-managerSkill
- ascii-artSkill
- ascii-videoSkill
- gif-searchSkill
- media-acquisitionSkill
- docxSkill
- emailSkill
- google-workspaceSkill
- notionSkill
- pdfSkill
- pptxSkill
- xlsxSkill
- competitor-news-monitorSkill
- product-price-monitorSkill
- weekly-review-planningSkill
- arxivSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Check first with font.downloads, which returns allowed plus this session's download states.
- Very specific: line 42
If allowed is false, tell the user the exact switch to turn on, or agree on an installed family instead.
- Very specific: line 43
If true, font.download {family}, then poll until state is installed.
- Distinctive: line 69
Every text layer belongs to a role in the scale.
- Distinctive: line 74
Do not enable font downloading yourself, and do not claim a family is installed when the call was refused.
- Distinctive: line 75
Do not silently swap a requested family for a lookalike.
- Distinctive: line 76
Do not bundle or redistribute font files into the user's repository.
- Distinctive: line 77
Do not claim to have identified the reference's exact typeface from an image.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
FigCraft Typography
Type carries most of a reference's character. A rounded playful reference set in the default sans immediately looks wrong. This skill decides which family to use, gets it onto the machine when allowed, and proves no text fell back silently.
Load the figcraft coordinator for intake and scope rules.
1. Read the Reference, Then Propose
Describe what you actually observe: skeleton, weight range, contrast, terminals, roundness, width, and whether letterforms are geometric, grotesque, humanist, rounded, or hand-drawn. Note display versus body usage separately.
You cannot identify a typeface with certainty from an image. Do not claim you can. Offer two or three candidates with the reason each fits, and say which you will use unless told otherwise. When the user names a font, use it.
Common mappings for a rounded, friendly interface: Nunito, Quicksand, Baloo 2, Fredoka, Comfortaa, or the system SF Pro Rounded on macOS. For hand-lettered accents: Chalkboard SE locally, or Patrick Hand and Gloria Hallelujah from the store.
2. Check What Is Already Installed
text.fonts lists every family available to the session. Search it before downloading anything; the right family, or a close system equivalent, is often already present.
file.fontReport inspects the fonts a document names. text.missingFonts returns the families the document references that are not installed, and for each one a source, which names the font store it can be fetched from, or null when it cannot.
Apply a family with fontFamily and a face with fontStyle through node.set or set_properties. A fontStyle draws in the family's nearest available face, and warnings reports when that face differs in weight or slant from the name you asked for. Read those warnings; they are how you catch a Bold that is really a Regular.
3. Downloading From the Font Store
font.download {family} fetches a missing family from the font store, which is Google Fonts and Noto, as pinned and checksum-verified files installed into the shared Craft font folder. It runs on its own thread; call it again to read progress. Once installed it refits the open document's text to the real family.
Two constraints you must respect:
- Downloading can be switched off, and only the user can switch it on, in Text ▸ Missing fonts. When it is off the call is refused.
- Check first with
font.downloads, which returnsallowedplus this session's download states. Verified on a stock install:{"allowed": false, "downloads": []}.
So the correct sequence is:
font.downloads→ readallowed.- If
allowedis false, tell the user the exact switch to turn on, or agree on an installed family instead. Do not keep retrying. - If true,
font.download {family}, then poll untilstateisinstalled. - Re-run
text.missingFontsand confirm the family is gone from the list.
Only Google Fonts and Noto families are reachable this way. A commercial or custom typeface is not. For those, ask the user for the font file and add it with text.loadFont {path | data}, which registers the file for the session without installing it, and refits auto-sizing text. Session-only means a later session will report it missing again; tell the user that.
4. Build a Small Type Scale
Define the roles the reference actually uses rather than one size per text layer:
- display or screen title;
- section heading;
- card or list title;
- body;
- caption, metadata, and pill labels.
Record size, face, line height, and letter spacing per role, and reuse them. Create text styles when the document will be maintained, so a change propagates. Keep the same role at the same size across screens unless the reference clearly differs.
For hand-lettered moments, use a separate display family for that element only, and keep interface text in the primary family.
5. Verify No Silent Fallback
Before handing off:
text.missingFontsreturns an empty list, or every remaining entry is reported to the user with a reason.warningsfrom font-setting calls are resolved or reported, so no face is quietly substituted.- A render shows the intended letterforms. A fallback often looks plausible in isolation and obvious beside the reference.
- Every text layer belongs to a role in the scale.
- Line height and wrapping are intentional, with no clipped or truncated copy.
6. Boundaries
- Do not enable font downloading yourself, and do not claim a family is installed when the call was refused.
- Do not silently swap a requested family for a lookalike. Name the substitution.
- Do not bundle or redistribute font files into the user's repository.
- Do not claim to have identified the reference's exact typeface from an image.
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
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.

