Fantasia final cleanup

From vishiri/fantasia-archive · View interactive version

Fantasia final cleanup is an AI agent skill from the GitHub repository vishiri/fantasia-archive. End-of-batch ship workflow for Fantasia Archive: run full yarn testbatch:verify (not dev scoped gate), fix failures, sync README/AGENTS/rules/skills from Git changes, update in-app changelog, split conventional commits, and git push. Use when the user says final cleanup, doing final cleanup, run fin

How to use this skill

Skill file

Final cleanup — ship the current batch

Execute in this exact order. Do not skip, merge, or reorder unless user interrupts with narrower instruction.

Final cleanup = explicit handoff: may commit and push without per-commit approval (unlike default in git-conventional-commits). Still conventional type: subject + logical splits.

Step 1 — Full verify quality gate

One terminal — full gate only here (not default after ordinary edits; see dev-scoped-verify.mdc):

yarn testbatch:verify

Step 2 — Fix issues

Step 3 — Sync maintainer docs from Git

Inspect working tree + diff (git status, git diff, git diff --staged):

| Area | When to update |

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

| README.md | New scripts, test commands, architecture, contributor workflows |

| AGENTS.md | New subsystems, rules, skills, testing expectations, repo layout |

| .cursor/rules/*.mdc | New enforced policies or rule corrections |

| .cursor/skills/**/SKILL.md | New playbooks or materially changed workflows |

| docs/database/** | .faproject schema, migrations, project IPC, electron-store persistence |

Step 4 — Changelog

Before product commit:

  1. Re-read package.json version (never auto-bump)
  2. fantasia-changelog-en-us + changelog-en-us.mdc
  3. User-facing src/components/**: Storybook aligned (storybook-stories.mdc)
  4. Prefer same commit as substantive work; user bullets only — no QA/Git meta

Mirror i18n/*/documents/changeLog.md in other locales only when user explicitly asks; default = en-US only.

Step 5 — Commit in logical batches

  1. git status + full diff review
  2. Ordered commit plan (type, subject, paths). Show plan briefly, then execute unless user objects
  3. Split: feat / fix / test / chore / refactor / docs per git-conventional-commits
  4. Typical order: chore/refactor before feat/fix; product + tests + changelog together; docs: for maintainer-only; VRT PNGs with UI change
  5. Never commit secrets; never --no-verify unless user asks
  6. After each commit: git status until clean

Step 6 — Push

When commits done + tree clean:

git push

-u origin <branch> when no upstream. Push fails → report + stop; no force-push main/master unless user asks.

Reporting

Summarize in execution order: verify gate → fixes → docs/changelog touched → each commit → push result.

Related

Types

Shared types → types/. See types-folder.mdc.

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.