Glyphs mcp italic first pass

From thierryc/Glyphs-mcp · View interactive version

Glyphs mcp italic first pass is an AI agent skill from the GitHub repository thierryc/Glyphs-mcp. Use this skill for a guarded experimental italic or oblique construction draft from Roman glyphs, including one glyph, a selection, a named scope, or corresponding masters across a family.

How to use this skill

Skill file

Glyphs MCP italic first pass

Use this skill for a guarded Roman-to-italic first pass. Its goal is to help a

designer begin an emphasis companion to the Roman. It accelerates construction;

it does not create, replace, or claim optical completion of a designed italic.

Core rules

session review do not alter the font; materialization and acceptance require

dry run, exact targets, and explicit approval before confirmation.

Do not interpret "all masters" as one source/target pair.

master layer must therefore be an untouched Roman-compatible bootstrap copy,

not an empty layer. The candidate may change approved coordinates, anchors,

component placement, and metrics; it must not create topology.

explicitly requests the legacy Transformations-backed construction or needs

comparison with an existing Cursivy workflow. Balanced builds Raw, applies the

pure-Python conservative correction at partial strength, interpolates using

curve_strength, and then applies the independent final

stem_compensation. It never calls the Glyphs Transformations filter.

stem_compensation=1.0. Pass slant_mode="balanced" explicitly because the

tool's omitted-argument compatibility default remains Cursivy.

layers, accepted 135/102/102 stem pairs, and passed because every

non-commuting component construction was blocked before application.

cycles, unreadable transforms, or component-master mismatches, stop after

review and ask the designer to inspect or rebuild the construction. Do not

silently omit it or claim that the generated direction is safe.

and recursive component analysis. If the user explicitly approves a smaller

safe scope, rerun with skip_glyphs.

automatic exclusions or transformations. Report affected glyphs and ask the

designer whether to include, exclude, or defer them.

Approval is required only before mutation or before explicitly omitting a

diagnosed glyph from the final pass.

accept_outline_candidate_session with dry_run=true and the exact review

token before any mutating call.

fingerprint-bound token.

Re-review exact edits and accept with the newly issued token. Never recreate

or delete candidate layers through arbitrary code or LLM memory.

Workflow

  1. Read context:
  1. Resolve the master-pair plan:

coordinate

for approval

target master shells and untouched copies of their corresponding Roman

layers; append a master before setting font-dependent properties

generic code

target is empty, mismatched, or not Roman-compatible

  1. Resolve scope:
  1. Resolve Unicode values for the scoped glyphs:
  1. Verify every target master italic angle:

approval before confirming the exact batch

  1. If using Cursivy, call review_master_stem_metrics for all targets:
  1. Call preview_italic_first_pass_candidate once per resolved master pair,

always passing slant_mode explicitly and keeping construction parameters

identical unless the designer approved pair-specific differences.

  1. If a preview blocks without useful glyph details, diagnose with existing

tools instead of requesting a new public tool:

glyph_names scope until each failing glyph is isolated

set_outline_candidate_overlay

get_glyph_components in the source and target masters

evidence; never infer an unreported safety verdict

topology are identical, classify it as a candidate-adapter serialization

regression; stop and report it instead of skipping a valid glyph

  1. Summarize the returned candidate sessions and diagnosed blockers:

blocking reason

  1. If the final batch is blocked, ask whether to rebuild, explicitly exclude,

or defer each diagnosed glyph. Only after that decision, regenerate the

complete approved scope with the exact skip_glyphs list.

  1. Ask the designer to inspect View > Show Glyphs MCP Candidate. If manual

editing is requested, dry-run and confirm

materialize_outline_candidate_session, then wait for those edits.

  1. Call review_outline_candidate_session for every final session. Stop on

stale source, topology, component, off-grid, or operation-external changes.

  1. Call accept_outline_candidate_session with dry_run=true and each exact

review token. Summarize the complete master/session change set and ask for

approval.

  1. After approval, confirm the reviewed sessions sequentially with their same

valid tokens. This is not an atomic multi-master transaction; on any

failure, stop immediately and report which sessions were already accepted.

  1. Re-read every target master, verify candidate cleanup and backup

preservation, and list glyphs that still need manual optical work.

Defaults

Use these defaults unless the user says otherwise:

{
  "scope": "selected_glyphs",
  "angle": 12.0,
  "slant_mode": "balanced",
  "curve_strength": 0.75,
  "stem_compensation": 1.0,
  "stem_policy": "require_existing",
  "compatibility_mode": "preserve_if_possible",
  "copy_options": {
    "paths": true,
    "components": true,
    "anchors": true,
    "metrics": true
  },
  "origin": 3
}

Symbol slant policy

Use these tiers to prompt review before a mechanical slant. Match glyphs by

Unicode value, not by Glyphs glyph name. Unicode identity is evidence for

review, not a design verdict.

U+00B0 °, and U+212E ℮. The smaller-coverage sample also supports

U+2190 ←, U+2191 ↑, U+2192 →, U+2193 ↓, and U+25A0 ■.

U+003C–U+003E <=>, U+00AC ¬, U+00B1 ±, U+00D7 ×, U+00F7 ÷,

U+220F ∏, U+2211 ∑, U+2212 −, U+221A √, U+221E ∞, U+222B ∫,

U+2248 ≈, U+2260 ≠, and U+2264–U+2265 ≤≥. Traditional math

typography favors upright operators, but most popular Google text-font

italics in the reviewed sample slant them.

U+007E ~, U+2022 •, and U+2122 ™. Inspect these visually. For @,

review the enclosure and the internal letter separately.

For every matched glyph, show the tier and ask whether to:

  1. include it in the reviewed mechanical slant;
  2. exclude it explicitly from that pass; or
  3. defer it for manual drawing.

Do not silently add listed glyphs to skip_glyphs, change

protected_glyphs, preserve Roman outlines, or apply a zero-angle workaround.

The italic master keeps its real italicAngle; any upright construction is a

separate, designer-approved drawing decision.

Component Position Handling

When copy_options.components=true, preserve components as live components. Do not decompose them and do not skew their outlines, scale, rotation, or internal transform, because component glyphs are expected to have their own italic master drawings.

However, component placement must follow the same slant geometry as paths. After copying a component, adjust only its x translation according to its y translation:

new_x = old_x + tan(angle) * old_y

Use the Glyphs source angle convention from this skill. If old_y == 0, leave the x position unchanged.

This keeps baseline components unmoved while shifting components placed above or below the baseline so they align with the slanted path geometry.

Balanced mode additionally shears copied anchors around the selected origin.

It recursively checks whether each component transform commutes with the

requested shear within 1e-6. Translation and commuting linear transforms

such as uniform scale are permitted. Reflection, rotation, non-uniform scale,

cycles, unreadable transforms, and an explicit component master that does not

resolve to the target master block that glyph. Raw and Cursivy retain their

legacy component and anchor behavior.

Manual review reminders

Warn that the output is a construction draft, not the italic design. The

designer still owns optical form, rhythm, spacing, kerning, alternates,

interpolation, and proofing. Mechanically transformed glyphs need review,

especially a, e, f, g, k, v, w, x, y, punctuation,

brackets, braces, quotes, and symbols.

Kerning replacement is not part of this v1 skill. If the user wants kerning copied from roman to italic, treat it as a separate follow-up workflow.

Deeper references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.