mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-21 22:12:27 +01:00
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:
parent
1aa2ef7e8f
commit
ab3531458c
@ -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:
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@ -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:
|
||||
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 (
|
||||
"first code attempt",
|
||||
"only when",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user