ワンクリックで
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 職業分類に基づく
| 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 resolvedImplement 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.