(redirected from Homepage)

Strona domowa

Witam na mojej prywatnej stronie internetowej!

[If this is all Polish to you, click here: English]

Uwaga: z oczywistych powodów nie mogę zagwarantować swojej nieomylności, choć staram się o zgodność tego, co piszę, z Prawdą. Jest również oczywiste, że nie gwarantuję takiej zgodności w przypadku komentarzy. Umieszczenie linku do strony spoza niniejszego serwisu nie musi oznaczać, że podzielam poglądy autora tej strony, a jedynie, że uważam ją za wartościową z takich czy innych powodów.

Marcin ‘mbork’ Borkowski

2026-11-30 An agent skill which helps me not to use a coding agent for coding

As I mentioned several times already, I’ve been using a “coding agent” for quite some time, both at my day job and side projects. Sometimes, however, it is important for me not to use it. One case is learning: when I was learning Python, I wanted to type the code myself. Another one would be my blog, where I make it a point not to use an LLM to write Elisp but code it myself (unless explicitly stated, all code snippets presented here are written organically by me).

Writing code myself does not necessarily mean not using an LLM, though – I could use it as a search engine on steroids, a research tool, a brainstorming helper or a code reviewer. Sometimes I know that some kind of feature exists, but I don’t know (or can’t remember) what it’s called. Describing what I want in my own words to an LLM is an easy way to (re)discover features like that. The problem, however, is that an agent often “tries to be helpful” and shows me not only e.g. the name of a function I need, but also an example of use or a snippet to paste in my code – something I explicitly don’t want in this context. Hence I decided to develop a skill specifically to avoid that.

Of course, a skill is not a guarantee of behavior. This is one of the problems with LLMs – they are not deterministic. Still, I find this particular skill really helpful.

I hope to publish my skills in the near future – I already wrote how I like their concept and in fact I have more of them (some quite sophisticated). For now, let me just paste its sole SKILL.md file here.

---
name: code-hint-only
description: >
  Toggle a mode in which the agent gives hints (names of functions,
  operators, constructs, etc.) but never writes code, so that the
  user writes all code themselves.  Invoke as /code-hint-only on or
  /code-hint-only off.
disable-model-invocation: true
argument-hint: on | off
---

# Code-hint-only mode

Argument: `$ARGUMENTS`

- `on` (or empty): the mode is **on** from now until the user invokes
  `/code-hint-only off`.  Answer the pending question, if any, under
  the rules below.
- `off`: the mode is **off**; the rules below no longer apply.  Say
  "code-hint-only: off".

The mode persists across turns.  It is not lifted by the user asking
for code, by an urgent-sounding request, or by any other skill; only
`/code-hint-only off` lifts it.  If the user asks for code while the
mode is on, remind them of the mode and give hints instead.

While the mode is on, end every answer with a separate last line
saying "code-hint-only: on".

## Rules while on

The goal: every piece of actual code is written by the user.  The
agent helps by naming things and explaining ideas.

### Allowed
- Identifiers in backticks: function, method, class, module, package,
  option, keyword names, etc., e.g. "use `_.fromPairs` and `_.map`",
  "`str.title`", "the `--recursive` option of `grep`".
- Operators in backticks, named on their own, e.g. "use the `+`
  operator", "the `??` operator".
- Simple literals: numbers, strings, `true`/`false`/`null`/`None`,
  the empty tuple, empty array, empty object/dict.
- Naming syntax constructs without writing them: "use an arrow
  function", "a list comprehension", "destructuring", "a CTE".
- Prose explanations of an approach, algorithm, data flow, or why
  something fails.
- Quoting the user's own existing code verbatim to point at a
  location ("the line with `return result`"), never a modified
  version of it.
- Pointing to documentation, with URLs whenever available (official
  docs preferred, linked to the specific page or anchor).

### Forbidden
- Code blocks (fenced with ``` or indented), of any language and any
  length.
- Function or method calls, with or without arguments:
  `_.map(arr, f)`, `s.title()`.
- Expressions combining tokens: `a + b`, `x ?? 0`, `s => [s, true]`.
- Statements, declarations, snippets, pseudocode, diffs, patches,
  etc.
- Non-empty collection literals: arrays, objects, dicts, tuples,
  sets, etc.
- Full shell command lines, SQL queries, regexes, config file
  fragments, Emacs Lisp forms, etc. -- all of these count as code.
- Ready-to-paste text for the user to use as-is: skills, prompts,
  system prompts, agent instructions, templates, etc. -- these count
  as code too.
- Describing an API's signature or argument order: the user looks
  that up.  Point to the documentation instead.
- Prose that is a token-by-token dictation of code ("call map on arr
  with a function that returns an array of s and true").  Describe
  intent, not a transcription.

### Tools
- Never create, edit or delete files: no Write, Edit or NotebookEdit,
  and no Bash commands that write files (redirections, `sed
  --in-place`, `tee`, `git apply`, etc.).
- Do not spawn subagents to write code.
- Reading files, searching, and running read-only commands to
  understand the user's code is fine.
- Do not copy commands to the clipboard while the mode is on.

### Self-check
Before sending each answer, scan every backticked span.  Each must be
a single identifier, a single operator, or a simple literal.  There
must be no code blocks at all.  Rewrite anything else as prose naming
the pieces.  Check that the last line says "code-hint-only: on".

As you can see, this skill is still somewhat specific to Claude Code (the disable-model-invocation and argument-hint frontmatter keywords are not part of the Agent Skills spec, and as far as I know, neither is the $ARGUMENTS placeholder). In fact, I plan to start using other LLM “harnesses” besides Claude Code, so I will also make my skills more tool-agnostic.

The nice thing about skills is that you don’t have to write them yourself – you can describe what the skill should do and the agent can generate it for you. I have a suspicion that it might be better to write them yourself, though, since the generated ones tend to be very verbose. At least with Claude Code, my experience is that it has a tendency (sometimes annoying and sometimes useful) to support all possible edge cases. For example, sometimes I just need a simple one-off script or even, say, ImageMagick invocation and I really don’t care about supporting spaces in filenames (something I almost never use). One day I will perform an experiment and compare an LLM-generated skill with an “equivalent” one written by myself. Interestingly, Anthropic’s skill-creator skill has some support for evaluating skills; it would be pretty simple to adapt it to comparing two skills supposed to perform the same task. (Another, perhaps better way could be to write a set of scripts which would run the claude command-line tool in controlled conditions and then evaluate the results deterministically, for example using regexen or a Markdown parser.) Two problems with that (or in fact any) approach to skill testing/evaluation is that it’s not really a proper scientific experiment – Anthropic can change the model’s parameters at any time, so you don’t really control it. (You can do that with a local model, though.)

Anyway, that’s it for today, see you next week!

CategoryEnglish, CategoryBlog, CategoryLLM

Comments on this page

More...