lcd
Skill0 starsChanged 4 months agoMITView on GitHub
Suggest the lowest-cost diagnostic print or log statement for a suspected bug in a LeetCode-style or coding-interview attempt, without revealing the fix. Use when explicitly invoked on attached, pictured, or pasted code.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Read the visible problem, constraints, code, line numbers, errors, outputs, and relevant thread context.
- Distinctive: line 14
Ask one focused question only when cropped code or a missing problem rule makes the diagnostic unsafe.
- Distinctive: line 22
Prefer a single statement.
- Very specific: line 30
When a prompt names several, the least-revealing one sets the response contract, whatever order they were typed in.
- Distinctive: line 34
Do not edit, run, or submit the user's code without permission.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LCD
Identify the single cheapest observation that most sharply tests the likely broken invariant.
Inspect the attempt
- Read the visible problem, constraints, code, line numbers, errors, outputs, and relevant thread context.
- Infer the language, attempted algorithm, likely invariant, and smallest set of values that distinguishes the plausible causes.
- Ask one focused question only when cropped code or a missing problem rule makes the diagnostic unsafe.
Return only
- The exact source line, or a labeled
pasted line Norvisible line N, and whether to insert before or after the neighboring statement. - A snippet of at most three lines containing the diagnostic.
- One short sentence naming the value or pattern that would confirm the suspected bug.
Prefer a single statement. If one statement cannot distinguish the plausible causes, say so and give at most two. Do not provide the fix, rewrite logic, add a debugging framework, or run the code.
Compose
Base skills, ordered by how much of the solution they hand over:
follow-up → check → lcd → stuck → salvage → optimize → best
When a prompt names several, the least-revealing one sets the response contract, whatever order they were typed in. Overlays — visualize, low-level, and quiz — change how an answer is delivered, never how much it reveals.
Let an overlay influence what the diagnostic tests only where it fits the three-part output above. Never add a second answer block or reveal the repair.
Do not edit, run, or submit the user's code without permission. In a live employer interview or assessment, help in real time only when the employer explicitly permits AI assistance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

