Use for Telegram homework tasks where `/codex` receives photo assignments; standardizes OCR extraction and clarification strategy for 7th-grade RU-first responses.
Use this skill when the task starts from Telegram /codex with one or more homework photos.
Convert a noisy homework screenshot into a reliable, structured assignment draft that can be solved safely.
This stage is not only "text extraction". It is the trust gate for the whole homework pipeline:
Expect:
telegramChatId, telegramUserId).Return normalized JSON draft:
{
"subject": "algebra|geometry|unknown",
"grade": 7,
"sourceLanguage": "ru",
"detectedItems": [
{
"exercise": "№ 123",
"topicHint": "линейные уравнения",
"rawLine": "Алгебра: №123(а,б)",
"statementPreview": "краткий фрагмент условия, если читается",
"confidence": 0.86
}
],
"needsClarification": false,
"clarificationQuestion": null
}
алг, геом, №, п., стр.).123, 123а, 123(а,б)).If OCR is uncertain, do not invent the assignment. Return a short RU-first clarification prompt, e.g.:
rawLine for auditability.exercise, subject, rawLine) for solver stage to produce real solved answers, not a study plan.№455,457), keep exact numbers for textbook retrieval.