Import alg docx

From 2017YANR02/cuberoot.me · View interactive version

Import alg docx is an AI agent skill from the GitHub repository 2017YANR02/cuberoot.me. Use when importing, migrating, or synchronizing curated 3x3 algorithm DOCX tables, especially OLL-style tables with diagrams, colored annotations, formula-type icons, or left-hand formulas. Preserve order, notation, classifications, tags, links, metrics, and right-hand derivations.

How to use this skill

Skill file

Import algorithm DOCX

Workflow

  1. Start from the repository root, inspect the scoped worktree, and create or update a task tracker under docs/ before changing data.
  2. Use the documents skill to render the DOCX and inspect every page; treat visual layout as evidence for table pairing, headings, arrows, and icon meaning.
  3. Run scripts/extract_alg_docx.py for machine-readable extraction, then reconcile its output against the rendered pages and record counts in the tracker.
  4. Ignore green text. Interpret a green -> or <- as a cross-cell scramble link, not as a formula.
  5. Map embedded formula icons through references/import-contract.md; keep unknown icons unresolved until the user or document identifies them.
  6. scripts/add_formula_setups.mts can produce diagnostic inverse states, but an algorithm solving its own inverse is not case validation. Validate every entry against the public case setup through alg_case_alignment.ts; include verified starting and finishing adjustments in the displayed sequence. Check confirmed relocations in docs/data/algorithms/alg-case-alignment-audit.md before reimporting, so source-table mistakes cannot overwrite reviewed corrections.
  7. Preserve prime marks on 180-degree turns. Put curated DOCX formulas before existing formulas and remove an existing near-duplicate only after normalizing grouping whitespace and the optional prime after 2.
  8. Keep the DOCX category and case order. Never substitute the site's previous grouping.
  9. Treat DOCX one-handed formulas as left-handed. Reuse the PLL formula-tag and partner-first left-to-right-hand derivation path to expose right-handed formulas; do not mirror the current case and do not create another mirror implementation.
  10. Reuse AlgCategoryView, AlgCaseView, CaseThumb, AlgPlayer, formula-tag helpers, and shared AlgCaseMeta; keep all formula-type badges neutral gray and the unfiltered menu option concise as All / 全部.
  11. Store ETM as the first curated formula's execution count and store ETM*, HTM*, STM*, and ATM* as optimal metrics. ATM merges simultaneous parallel-layer turns; ETM only merges combinations that a person can execute together.
  12. Run scripts/build_alg_migration.py with a state-verified mirror map; inspect the generated SQL before applying it.
  13. Apply DB data changes in the next numbered migration, preserve unrelated rows, and synchronize the /dev/schema migration ledger without overwriting parallel edits.
  14. Add parser, contract, UI, and migration regression tests; run targeted tests, client typecheck, migration validation, and desktop plus narrow-screen browser checks.
  15. Update the tracker after every completed stage with concrete evidence and unresolved decisions.

Boundaries

Resources

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.