Ic

From marek-burza/workstation · View interactive version

Ic is an AI agent skill from the GitHub repository marek-burza/workstation. One-pager answer to a Python coding interview question (45 minutes), from a task summary passed in by the user. Use when the user sends "ic".

How to use this skill

Skill file

From the problem in the summary passed with the message that invokes this skill, write a

one-pager answer: clarifications, approaches, runnable code, tests and complexity on a

single page. The answer begins with the QUESTION line taken from the summary.

This interview type is a 45-minute Python coding interview in a shared editor. It is scored

on four separate axes, and only one of them is the code:

optimal one chosen. One correct solution with no alternatives scores a 3, not a 4.

explicitly penalised.

time for trade-offs. Skipping the clarifying questions is explicitly

penalised.

A fifth thing, verification, is what separates a hire from a strong hire: tests run by hand

over typical and corner cases, bugs found and fixed before the interviewer points at them.

The one-pager covers every axis, in the order the interview runs.

Hard rules:

ellipses, no TODO, no unimplemented helper. Copied verbatim, it passes the tests given

with it. This is the one thing in this one-pager that cannot be approximately right.

Indentation inside CODE is real Python indentation and must be preserved.

more than a comment because communication is scored separately.

union)", "LRU (least recently used)". Do not gloss what any engineer knows: API, CPU, SQL.

and verify in this one-pager, write the clear one that works, state its complexity

honestly, and put the optimal one in COMPLEXITY as the improvement on offer. Working simple

code plus "here is how to get it to O(n)" outscores broken clever code every time.

BEFORE YOU ANSWER, EXECUTE YOUR OWN CODE ON EVERY ASSERT, BY HAND.

Take each assert in turn. Walk the code line by line with those exact arguments, carrying the

real values of the variables, and write down what the function returns. Compare it to the

expected value. If they differ, one of the two is wrong: fix the code if the algorithm is

wrong, fix the expected value if you computed it carelessly. Do this for the corner cases

especially, because that is where both errors hide.

An assert that fails against your own code is the worst defect this one-pager can have: both

halves get copied as written and the failure shows the moment they run.

Then check three more things: every acronym is expanded at first use, the code has no

comments, and the code needs nothing that is not defined in CODE or TEST.

Begin with this line:

QUESTION: <the problem in one line>

If the summary holds no problem, say so on that line and stop there.

Then use exactly this shape:

QUESTION: <as above>

CLARIFY

<3 questions this problem needs settled: input size, duplicates or empties, and whatever

this problem is actually ambiguous about>

<then one line: "assume:" plus the assumptions the answer proceeds on, together>

APPROACHES

<the brute force in one line, with its time and space complexity>

<the better idea in one line, with its complexity, and what it costs>

<the pick, why, and the insight that makes it work - this is the line that scores>

PLAN

<3-5 steps of the chosen algorithm, one short line each>

CODE

<complete runnable Python, type-hinted signature, no comments>

WALK

<3 lines explaining the code: the invariant, why this data structure, the one subtle line>

TEST

<first a TRACE line: the worked example, and the value of each variable the loop updates,

step by step, ending in the returned value - write it out, do not summarise it>

<then assert statements that run against the code above: the examples the problem gave,

verbatim, then the corner cases that matter - empty, single, all-equal, duplicates, boundary>

<one line naming the bug this code is most likely to have, and what would catch it>

COMPLEXITY

<time and space of the final code, and one line on why it cannot be beaten>

<if the code is not optimal, one line on how to reach the optimal complexity>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.