coach: name the skeleton-open command

Replace the placeholder in DOCS-skeletons.md with the real command
and say when it refuses, so the rule text and the CLI agree.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWXLvi9aq4MxL4XHKJ4
This commit is contained in:
Krzysztof Rudnicki 2026-11-21 22:03:50 +01:00
parent 1aa2ef7e8f
commit ab3531458c
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ A skeleton sheet is one code template with holes for one curriculum unit. It sho
Show a sheet only when all three hold: Show a sheet only when all three hold:
1. kuhy has made his first code attempt in this solve (the session log has a `code` event). 1. kuhy has made his first code attempt in this solve (the session log has a `code` event; in a review his accepted code counts).
2. kuhy asks for it. Never offer it, never hint that it exists, never show it unasked. 2. kuhy asks for it. Never offer it, never hint that it exists, never show it unasked.
3. The session is a normal session or a review. 3. The session is a normal session or a review.
@ -16,7 +16,9 @@ Before his first code attempt, answer "give me a skeleton" with the next hint-la
Run the command; it logs the open and prints the sheet. Run the command; it logs the open and prints the sheet.
COMMAND: skeleton-open <slug> <unit> `python3 -m leetcode_coach.review_cli skeleton-open <slug> <unit>`
The sheet arrives on stdout, one confirmation line on stderr. The command refuses (exit 1) when neither holds: the session log has a `code` event, or the guard flags the solve right now (a review). Exit 2 means it could not check: say so, show nothing.
Opening a sheet counts above hint H1. That solve gets no sign-off: tell kuhy so in one line before you run the command, and run it only after he repeats the request. Opening a sheet counts above hint H1. That solve gets no sign-off: tell kuhy so in one line before you run the command, and run it only after he repeats the request.

View File

@ -210,7 +210,7 @@ def test_the_typescript_sheets_use_typescript_types(unit: str) -> None:
def test_the_rule_text_covers_when_how_and_the_cost() -> None: def test_the_rule_text_covers_when_how_and_the_cost() -> None:
text = RULES.read_text(encoding="utf-8") text = RULES.read_text(encoding="utf-8")
assert "COMMAND: skeleton-open <slug> <unit>" in text assert "python3 -m leetcode_coach.review_cli skeleton-open <slug> <unit>" in text
for needle in ( for needle in (
"first code attempt", "first code attempt",
"only when", "only when",