Maestro impeccable

From catlog22/maestro-flow · View interactive version

Maestro impeccable is an AI agent skill from the GitHub repository catlog22/maestro-flow. Use when designing, reviewing, refining, fixing, or codifying frontend UI with Maestro's self-contained Impeccable core

How to use this skill

Skill file

Plan tracking: codex 无 TaskCreate/TaskUpdate/TodoWrite 任务板。进度清单用 update_plan({ explanation?, plan: [{ step, status }] }) 维护(整体提交步骤数组,status: pending | in_progress | completed),权威状态始终在 session 工件中;依赖/认领(addBlockedBy/owner)是工件字段,不是工具参数。

<required_reading>

@~/.maestro/workflows/run-mode.md

@~/.maestro/workflows/codex-run-mode.md

</required_reading>

If required reading was not expanded by the host, or is no longer in context, Read it explicitly before execution.

<deferred_reading>

Maestro Codify extension only — do not read these files for normal Impeccable work:

</deferred_reading>

<purpose>

Self-contained Maestro UI design command. The bundled Impeccable core owns design semantics, setup, routing, references, detector behavior, and bounded verification. Maestro adds the canonical Session/Run lifecycle, progress tracking, consistent status presentation, and the optional --codify extension. No separately installed impeccable Skill or npm runtime is required.

</purpose>

<embedded_contract>

The bundled core is the canonical template. Resolve its base directory in this order and Read the first existing SKILL.md:

  1. Project-local workflows/impeccable/SKILL.md (Maestro source checkout/development)
  2. Installed ~/.maestro/workflows/impeccable/SKILL.md

Retain the resolved parent as <impeccable-base> for the entire Run. Every path in the bundled Skill and references is relative to that directory; substitute the concrete path before reading a reference or running a script.

Rules:

  1. Never resolve or invoke another Skill named impeccable.
  2. Never run npx impeccable install, npx impeccable update, or depend on an external Impeccable package during execution.
  3. Load the bundled SKILL.md, then only the single command/reference file it routes to. Respect its deferred-reading rules.
  4. Run node <impeccable-base>/scripts/context.mjs once per session from the user's project cwd. Do not rerun it after init.
  5. Preserve platform routing: audit.native.md / adapt.native.md for native projects; live and the HTML detector are web-only.
  6. Preserve bounded verification: one batched inspection/fix pass and at most one confirmation pass. Do not recreate the retired open-ended refine loop.
  7. If the bundled core or a required bundled file is missing, stop with E001/E003 and repair the Maestro installation; never fetch or install another Skill as recovery.
  8. Impeccable core updates ship only through Maestro source/release updates. Never offer an upstream package update during design work.

Bundled core synchronized from upstream Impeccable Skill 4.1.3 (pbakaus/impeccable@4c5243f) and adapted for Maestro. The bundled copy remains authoritative until Maestro updates it.

</embedded_contract>

Maestro Symbol Style

Use these symbols consistently in Maestro-owned displays. Do not substitute colorful success/failure emoji.

| Meaning | Display |

|---|---|

| Current step / transition | → |

| Completed prerequisite or step | ✓ |

| Quality or confirmation gate | ◆ |

| Bounded re-check | ↺ |

| Warning / degraded mode | ⚠ |

| Failure | FAIL |

| Terminal success | Status: DONE |

| Terminal failure | Status: FAILED |

Upstream machine values and required report fields remain unchanged. For an upstream degraded critique banner, normalize only the symbol presentation to ⚠ DEGRADED: single-context (<reason>); do not weaken or omit the degraded disclosure.

Input Routing

Parse $ARGUMENTS without inventing a static workflow chain.

Apply this table top-to-bottom; specific routes override the generic command route.

| Input | Route |

|---|---|

| --codify <source-path> ... / codify <source-path> ... | Maestro Codify extension |

| hooks <action> | Run the bundled hooks control; load <impeccable-base>/reference/hooks.md |

| doctor | Run the bundled doctor; load <impeccable-base>/reference/doctor.md |

| pin <command> / unpin <command> | Run <impeccable-base>/scripts/pin.mjs |

| teach ... | Compatibility alias for init; no deprecation warning |

| craft ... | Deprecated upstream alias for ordinary new-work; display W001 once |

| Legacy Maestro preset (build, redesign, improve, enhance, launch, foundation) | Treat the full text as a general design request and let current upstream routing resolve it; display W002 once; never reconstruct the retired chain |

| One of the remaining commands below | Invoke Impeccable with the arguments unchanged |

| No arguments | Invoke current reference/routing.md; show 2–3 context-aware recommendations, then the full menu; never auto-run |

| Other UI design text | Pass as general Impeccable work; follow current upstream routing |

continue, next, and -c are not Impeccable resume commands. Run/session continuation belongs to the canonical Maestro Session/Run lifecycle in run-mode.md.

Current Impeccable Commands

This table is a routing index only. The bundled workflows/impeccable/SKILL.md and its references own the full instructions.

| Command | Category | Current meaning |

|---|---|---|

| craft [feature] | Build | Deprecated alias for ordinary new-work |

| shape [feature] | Build | Plan UX/UI before writing code |

| init | Build | Capture durable product context in PRODUCT.md |

| document | Build | Generate DESIGN.md from existing project code |

| extract [target] | Build | Pull reusable tokens and components into a design system |

| critique [target] | Evaluate | UX design review with applicable heuristic scoring |

| audit [target] | Evaluate | Technical a11y, performance, and responsive checks |

| polish [target] | Refine | Final bounded quality pass before shipping |

| bolder [target] | Refine | Amplify a safe or bland design |

| quieter [target] | Refine | Reduce aggressive or overstimulating design |

| distill [target] | Refine | Remove complexity and strip to essence |

| harden [target] | Refine | Cover errors, i18n, edge cases, and production states |

| onboard [target] | Refine | Improve first-run, empty-state, and activation flows |

| animate [target] | Enhance | Add purposeful motion |

| colorize [target] | Enhance | Add strategic color |

| typeset [target] | Enhance | Improve typography hierarchy and fonts |

| layout [target] | Enhance | Fix spacing, rhythm, alignment, and hierarchy |

| delight [target] | Enhance | Add personality and memorable details |

| overdrive [target] | Enhance | Push past conventional visual limits |

| clarify [target] | Fix | Improve UX copy, labels, and error messages |

| adapt [target] | Fix | Adapt across devices and screen sizes |

| optimize [target] | Fix | Diagnose and fix UI performance |

| live | Iterate | Web-only browser variant mode |

Normal Execution

  1. Attach the canonical Run
  1. Resolve bundled core
  1. Run bundled setup
  1. Resolve route
  1. Display Maestro execution panel

```text

── Impeccable: {command|general} ──────────────

Target: {target|project context}

Mode: {Persuade|Operate|Read|Experience}

Platform: {web|ios|android|adaptive|unknown}

Reference: {relative reference path}

──────────────────────────────────────────────

→ Setup

```

If platform is unknown, do not default to web. Resolve platform from project evidence or run init before platform-sensitive routing; never run live or the HTML detector on an unconfirmed native target.

  1. Track major phases

```text

→ [impeccable:{command}] {phase}

✓ [impeccable:{command}] {phase}

⚠ [impeccable:{command}] {phase} — W###: {reason}

FAIL [impeccable:{command}] {phase} — E###: {reason}

```

  1. Execute bundled reference
  1. Bounded verification

```text

◆ {gate}: {actual evidence} — PASS|FAIL

↺ confirmation pass 1/1

```

  1. Finish the Run

```text

=== IMPECCABLE RESULT ===

Command: {command|general}

Target: {target}

Evidence: {checks, snapshots, detector output, or files}

Warnings: {none|<warning-code> ...}

--- STATUS ---

Status: DONE | FAILED

```

Suggest only the next step supported by the loaded bundled reference or current findings.

Maestro Codify Extension

<codify_mode>

Codify remains a Maestro-owned extension; it is not an upstream Impeccable command. Load ui-codify.md for its phase algorithm; the normal Impeccable Skill/reference route does not apply inside this mode. The Run-governance rules in this section override stale persistence wording or incomplete command examples in the referenced Codify workflows.

Arguments:

--codify <source-path> [--package-name <name>] [--output-dir <path>] [--overwrite]

Boundaries:

  1. Discovered source inputs are strictly read-only. Canonicalize and snapshot the source file list before creating workspaces; exclude --output-dir, .workflow/codify-temp-*, {run_dir}, and other generated directories from discovery, even when they are nested beneath source_path. Never edit a discovered source file.
  2. User-facing package writes stay under --output-dir (default .workflow/reference_style/). Maestro runtime writes may also use the exact {run_dir}/report.md, {run_dir}/outputs|evidence|work, and the phase-scoped .workflow/codify-temp-* directory required by the referenced workflows.
  3. Governed knowledge/spec corpus files are never written directly. Phase 4 may create the manifest and stage candidates with explicit --run {run_id}; review/promotion occurs after sealing under run-mode.md.
  4. Load each deferred workflow only when its phase starts.
  5. Never overwrite an existing package without --overwrite. With --overwrite, clear the validated target package before generation or build in a fresh temporary package and replace it; artifact checks must prove current-Run provenance and must not pass on stale files.
  6. Phase 2 runs Style, Animation, and Layout extraction in parallel as ui-codify.md specifies; do not invent a token-first dependency.
  7. Ask the user before knowhow candidate generation.
  8. Verify the requested artifact scope and candidate stage receipts before terminal status.
  9. Always clean the phase temporary directory on success, failure, or preview-only exit.

Display:

── Impeccable: codify ─────────────────────
Source: {source-path}
Output: {output-dir}
───────────────────────────────────────────
→ Phase 1: Validate + workspace setup
◆ GATE 1: source and output policy valid
→ Phase 2: Parallel extraction (Style + Animation + Layout)
◆ GATE 2: extraction artifacts satisfy ui-codify.md
→ Phase 3: Reference package
◆ GATE 3: current-Run preview and required token/layout artifacts exist
→ Phase 4: Manifest + governed candidate staging (confirmation required)
◆ GATE 4: knowhow-manifest.json + stage receipts recorded

At the Phase 3 → 4 gate, request_user_input:

Codify diagnostics originate in the referenced workflows. Translate them for Maestro-owned output so they do not collide with normal-mode codes:

Follow the referenced workflows for all other phase instructions and recovery. For every Phase 4 stage command, this adapter additionally requires explicit --run {run_id}, a defined valid --category (never undefined), and a captured candidate receipt. Stage only; never write or promote governed corpus files during the active Run.

</codify_mode>

<error_codes>

| Code | Severity | Condition | Recovery |

|---|---|---|---|

| E001 | error | Bundled Impeccable core could not be resolved from either Maestro path | Repair/reinstall Maestro workflows, then retry |

| E002 | error | Explicit normal-mode target/path does not exist | Correct the target and retry |

| E003 | error | Required bundled reference/script is missing | Update or reinstall Maestro, then retry |

| C001 | error | Codify source argument is missing | Provide --codify <source-path> |

| C002 | error | Codify source is missing or not a directory | Correct the source path |

| C003 | error | Codify package exists without --overwrite | Use a new package/output path or explicitly pass --overwrite |

| CW001 | warning | Optional Codify animation tokens are missing | Continue without animation tokens and report reduced motion coverage |

| W001 | warning | Deprecated craft alias used | Route as ordinary new-work and suggest a general request next time |

| W002 | warning | Retired Maestro chain preset used | Route the full request through current upstream semantics; do not recreate the old chain |

| W003 | warning | Upstream execution is degraded | Preserve the required degraded disclosure and evidence limitations |

</error_codes>

<success_criteria>

Normal mode:

Codify mode:

</success_criteria>

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.