Know code teach
Explain architecture, decisions, and trade-offs to the human BEFORE making code edits and while coding. Use at session start, before any non-trivial implementation or refactor, when the user asks what is being built or why, after a know-code gate deny (before the quiz), or when the human is unfamiliar with the area. Does not open the gate.From its SKILL.md
npx -y skills add chtnnh/know-code --skill know-code-teachAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.5 KB, 505 tokens by cl100k_base, as published. Nobody here has run it
know-code-teach
Teach the human what is changing and why — before you edit files, then keep teaching in small increments while you code. This skill never writes a know-code gate receipt. Verification is know-code.
When to run (required)
Run this skill before you create or modify project files for any non-trivial task:
- New features, refactors, bug fixes that touch more than a one-liner
- Session start on an unfamiliar codebase / area
- After a know-code gate deny (before
know-codequiz) - After a quiz failure (re-teach weak spots)
- User asks “what are you doing?”, “why this approach?”, or “catch me up”
Skip only if the human explicitly says so (“skip teach”, “just do it”, “I know this”).
Playbook
Read references/explain-playbook.md and follow it. Defaults:
- Intent — one sentence: problem + proposed outcome
- Touch map — which areas of the codebase will change (paths/modules)
- Approach — chosen design in plain language
- Trade-offs — 1–3 alternatives and why not
- Risks — what could go wrong; what you will verify
- Checkpoint — ask if the human wants a different approach before editing
While coding, keep explanations incremental: after meaningful chunks, narrate what landed and what is next. No lectures. No wall of text.
Pairing with know-code
| Skill | Role |
|---|---|
know-code-teach | Build understanding before/during work |
know-code | Verify understanding before commit/push/PR |
Required order: teach → edit → (teach deltas) → know-code quiz → know-code commit / push.
After a gate deny: teach first, then quiz, unless the human explicitly skips teaching.
Hard rules
- Do not start non-trivial edits until you have taught (or the human skipped)
- Do not run
know-code pass - Do not quiz here (hand off to
know-code) - Prefer questions that invite the human to steer (“prefer A or B?”) over monologue
- If the human is already expert and asks to skip teaching, comply and stay brief
What ships with it: 1 file
1.6 KB alongside SKILL.md
references/
- explain-playbook.md1.6 KB