ワンクリックで
review-parser-update
Review a parser.js update PR to check if parser.d.ts, key-descriptions.ts, or arrayKeys need changes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Review a parser.js update PR to check if parser.d.ts, key-descriptions.ts, or arrayKeys need changes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | review-parser-update |
| description | Review a parser.js update PR to check if parser.d.ts, key-descriptions.ts, or arrayKeys need changes |
| argument-hint | [PR number or URL] |
When support/parser.js is updated from the mint repo, several other files may need corresponding changes. This skill walks through each check.
support/parser.jsBefore doing any analysis, check out the PR branch so that all local tooling runs against the new parser.js. Use gh pr checkout <number> if you're not already on the branch. All subsequent steps assume you are on the PR branch.
Get the diff of support/parser.js from the PR. Focus on structural changes, not cosmetic ones (variable renaming, number suffix changes, etc.). Identify:
parseStringableNoExpression → parseStringableTemplate)support/parser.d.tsThis file provides TypeScript type definitions for the compiled parser.js. Compare the types exported by the new parser against the current .d.ts file.
Things to check:
parser.d.tsPartialBaseLayer, PartialRunDefinition, CommandTaskDefinition, etc.)To verify: after any changes, run npx tsc --noEmit to confirm type compatibility.
src/key-descriptions.tsThis file maps dotted YAML key paths to human-readable descriptions shown on hover. If the parser now accepts new YAML keys, they should have descriptions added here.
Start by running npm run check-key-descriptions. This script automatically parses parser.js to extract all accepted keys and compares them against key-descriptions.ts. It will report:
MISSING: keys the parser accepts but that have no entry in key-descriptions.tsSTALE: keys in key-descriptions.ts that the parser no longer acceptsFor any MISSING keys, add entries using the dotted path format (e.g., "tasks[].new-key", "base.new-key", "on.github.push.new-key"). The script output includes the parser key set and best-matching parent path to help you determine the correct dotted path.
Each entry is either a plain string description or a KeyDescriptionEntry object with description, documented, and autocomplete fields.
arrayKeys set in src/server.tsThe arrayKeys set (search for const arrayKeys = new Set) identifies which YAML keys represent arrays. This is used when building dotted key paths for completions and hover — array parents get [] appended to their path segment.
Things to check:
arrayKeysarrayKeysRun the following to confirm everything is consistent:
npx tsc --noEmit
npm test
Summarize your findings for each step:
parser.d.ts needs updates (and what)key-descriptions.ts needs updates (and what)arrayKeys needs updates (and what)If no changes are needed for a step, say so explicitly.