View sourcecached

Skill flags

Every --flag accepted by the d2c skills. This page reads the ## Arguments section from each upstream SKILL.md at request time, so it stays in sync without a doc rewrite every time upstream adds a flag. Defaults are what the skill uses when the flag is omitted.

d2c-init

d2c-init/SKILL.md

FlagDefaultDescription
--forceSkip incremental update detection and force a full scan (Steps 0-8). Useful if the design-tokens.json is out of sync and incremental detection fails.

d2c-build

d2c-build/SKILL.md

FlagDefaultDescription
--threshold <number>95Pixel-diff match percentage required to pass the visual verification gate. Must be between 50 and 100. Example: `--threshold 90` accepts 90% match.
--max-rounds <number>4Maximum number of visual verification rounds before stopping. Must be between 1 and 10. Example: `--max-rounds 6` allows up to 6 fix iterations.

d2c-build-flow

d2c-build-flow/SKILL.md

FlagDefaultDescription
--threshold <number>95per-page pixel-diff threshold; forwarded to each page's `/d2c-build` Phase 4. Clamped to `[50, 100]`.
--max-rounds <number>4per-page max auto-fix rounds; forwarded to each page's Phase 4. Clamped to `[1, 10]`.
--shared-component-threshold <number>2`import_count` cutoff at which a component entry in `design-tokens.components[]` flips from *mutable* to *immutable* for this flow (rule 12). Any entry with `import_count >= threshold` is treated as shared. Clamped to `[2, 50]`. Lowering to `2` is the safe default; raising it is only useful in monorepos where an internal design system sits in the same `design-tokens.json` and every token-layer component naturally has `import_count ≥ 3`.
--yesskip the Phase 1 confirm-or-edit gate; proceed immediately once parsing succeeds. Use for scripted/CI runs.

d2c-audit

d2c-audit/SKILL.md

FlagDefaultDescription
--fixAfter reporting, auto-fix hardcoded values that have an exact token match (labeled `definite` in Audit 1). Only fixes exact matches — `undocumented` values are reported but not touched. Show a summary of fixes applied after the report. When combined with `--dry-run`, shows a preview of proposed fixes instead of applying them (see below).
--dry-runRun the full audit and generate the report, but do NOT apply any changes. Behavior depends on whether `--fix` is also provided: - **`--dry-run` alone** (without `--fix`): Runs the audit as read-only and generates the report. This is the same as the default behavior but makes the read-only intent explicit. - **`--dry-run` with `--fix`**: Runs the full audit, identifies all fixable issues, but instead of auto-fixing, presents each proposed fix as a diff-style preview: ``` --- src/components/Header.tsx (current) +++ src/components/Header.tsx (proposed) @@ line 42 @@ - color: #3B82F6 + color: theme.colors.primary ``` After showing all proposed fixes, ask the user how to proceed: - **"Apply all"** — Apply every proposed fix. - **"Review individually"** — Step through each fix one by one. For each, the user can approve or skip. - **"Skip all"** — Discard all proposed fixes and end the audit. Group fixes by file for easier review. Show the total count: "Found X fixable issues across Y files."

d2c-guard

d2c-guard/SKILL.md

No flags — this skill is hook-triggered, not invocable.

d2c-pr-review

d2c-pr-review/SKILL.mdcached

No flags — this skill is hook-triggered, not invocable.


See the token schema for the contract these flags operate on, or the per-skill page on the sidebar for the full SKILL.md.