AgentSkillsCN

lt-gap-grammar-check

在创建或编辑 tests/*.html 或 tests/kids/*.html 时,务必检查立陶宛语/俄语填空题的立陶宛语 HTML 测试,确保语法、语义及内容匹配等方面均无问题。通过这种方式,可对 gapFillVariants 及其译文进行审阅与修正。

SKILL.md
--- frontmatter
name: lt-gap-grammar-check
description: Check Lithuanian/Russian gap-fill sentences in Lithuanian HTML tests for grammar, sense, and mismatch issues. Use when creating or editing tests/*.html or tests/kids/*.html so the gapFillVariants and translations are reviewed and corrected.

Lt Gap Grammar Check

Overview

Scan gap-fill sentences in Lithuanian practice tests for grammar, sense, and LT/RU mismatch errors. Use this after creating or updating any test HTML file.

Workflow

1) Identify changed test files

Use git to find updated HTML tests (including kids):

  • git diff --name-only | rg "^tests/.*\.html$"
  • git diff --name-only --cached | rg "^tests/.*\.html$"

2) Run the automated scan

For each changed HTML test, run:

  • node /home/lenovo/.codex/skills/lt-gap-grammar-check/scripts/check-gap-sentences.js <path>

This flags common issues (duplicate verbs, missing question marks, odd location phrases, punctuation glitches). Treat these as potential issues that still require manual confirmation.

3) Manual review checklist (required)

For every gap sentence and its RU translation:

  • Grammar match: LT case (vardininkas/galininkas/kilmininkas) matches RU case.
  • Sense: Sentence is natural (no “odd place + ant stalo” artifacts).
  • No verb collisions: Avoid “mėgsta neturi”, “myli neturi”, “любит не имеет”, etc.
  • Questions: If LT starts with Kuri/Kuris/Kokie/Kaip/Kada/Kur, ensure both LT and RU end with ?.
  • Options: Options stay in the same case as the answer.

4) Fix, then re-check

Update sentences/translations in the HTML, bump testVersion, then re-run the scan.

Resources

scripts/

  • check-gap-sentences.js — quick scan for common grammar/sense/mismatch issues in gapFillVariants.