원클릭으로
engine-refactor
Refactor and extend the deterministic calculation engine while preserving correctness and explicit domain boundaries.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Refactor and extend the deterministic calculation engine while preserving correctness and explicit domain boundaries.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Implement or improve tray, quick popup, global shortcut, single-instance, and restore behavior for the Windows-first Tauri 2 app.
Use this skill for React + TypeScript implementation, refactoring, and review tasks involving components, hooks, props typing, children typing, refs, effects, context, reducers, events, forms, utility functions, async UI state, generic components, type modeling, module/export conventions, and React architecture decisions. Trigger this skill when creating or refactoring React TypeScript code and when choosing the right abstraction boundary for maintainable React applications.
Use this skill for any UI work in numpad — shadcn components, theming, shell layout, feature UI, settings dialogs, inspector panels, or Windows 11-like desktop productivity styling.
Implement or extend optional, review-first AI infrastructure for numpad without compromising deterministic engine authority.
Align docs/ with the real implementation — remove stale claims, add missing details, correct wrong file names, and update contracts.
Audit the numpad repository — implementation state, docs drift, architecture health, and next priorities.
| name | engine-refactor |
| description | Refactor and extend the deterministic calculation engine while preserving correctness and explicit domain boundaries. |
Use this skill for any work in src/engine/ — tokenizer, parser, AST, resolver, evaluator, formatter, conversions, table system, timezone handling, or diagnostics.
.codex/skills/engine-refactor/engine-file-map.md — every engine file with its role and key exports.codex/skills/engine-refactor/engine-patterns.md — concrete code patterns, type conventions, anti-patternsThe deterministic engine is the source of truth for all final results. Never move arithmetic, conversion, date math, or validation logic into AI, UI, or Tauri layers.
raw text line
→ tokenizer (tokenizer.ts)
→ parser (parser.ts facade → parser.expression-tree.ts)
→ AST (ast.types.ts)
→ resolver (resolver.ts) — variable references
→ evaluator (evaluator.ts facade → evaluator.*.ts sub-modules)
→ formatter (formatter.ts) — value → display string
→ CalculationLine (line.types.ts) — per-line result for UI
For table blocks, the orchestration path is:
raw text block
→ document-scanner.ts (classify @table lines)
→ table-orchestrator.ts (full table evaluation)
→ table-parser-helpers.ts (row/cell parsing)
→ evaluator sub-modules (cell expressions via EvalContext)
→ TableBlockAnalysis (table.types.ts) — result for UI + export
src/engine/ imports nothing from src/features/, src/app/, or src-tauri/.invoke, no window.*.src/engine/index.ts — analyzeDocument() and createEvalContext().engine-file-map.md to locate the right file before editing.engine-patterns.md for the expected code patterns.ValueKind and EngineErrorCode values — removing them is a breaking change.src/engine/types.ts — never use raw string literals for errors.npm run typecheck && npm run build.docs/ENGINE_SPEC.md for any behavior or API change.eval or Function constructor.analyzeDocument() public API signature without updating all callers.EngineErrorCode from src/engine/types.ts.EvalContext mutation (variable bindings, aggregates) happens only in eval-context.ts.docs/ENGINE_SPEC.md — for any behavior, API, or error-code changesdocs/ARCHITECTURE.md — for structural/boundary changesdocs/SYNTAX_REFERENCE.md — for language syntax changesdocs/STATUS_GAP_ANALYSIS.md — when gaps are resolved