Hoc skill updating

From openreachtech/hora-skills-ort-core · View interactive version

Hoc skill updating is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. Conventions for creating new skills (`SKILL.md`) or updating existing ones, in any of the libraries. Use before naming, placing, writing or splitting a skill, or editing its description. How prose is written in general belongs to the documentation convention.

How to use this skill

Skill file

Skill Updating

This gathers the conventions for creating new skills (SKILL.md) or updating existing ones.

Naming a skill

name: is the skill's official command name — what a user types as /name — and it is also the

skill's own folder name and the folder name it installs as. One string, three places. Choose it

for the reader who sees a flat list of skills and never sees this repository.

prefix is what tells a reader of that flat list which library a skill came from. Deciding which

library a skill belongs to and deciding the first characters of its name are one decision, taken

once — see the placement section below.

by habit: the build that produces the installable output and the repository's skill-name audit

both refuse to proceed on a mismatch.

four. A single case only.

libraries share a prefix, so no two skills across the libraries can collide.

deliberately the first time. Moving a skill to another library is a rename too — the prefix

changes with it.

After the prefix, name the subject, not the source tree:

restate the framework it is for, and a foundational skill does not carry a classifying word like

declarations, shared or members — hoc-async, hoc-accessors, hor-agent-loop.

hoc-modules-exports, hof-css-units.

hof-css-props-naming for CSS custom properties.

hoc-jest). Qualify it when sibling skills have an equal claim to the same word: CSS prohibitions

are hof-css-prohibits and hof-css-props-prohibits, not two skills both called prohibits.

settles siblings that hold a word equally; where one convention has built its own rule on the

word, a second skill carrying it leaves the word pointing at two places and naming neither. A

convention for moving dependency versions took raise rather than bump on this ground —

bump heads the publishing convention's rule about a release's own version.

The name is read as "how to do X"

A reader expands the name into an instruction. hoc-git-commit reads as how to commit,

hoc-npm-publish as how to publish, and every skill in the libraries is read the same way. So

the subject after the prefix has to be a practice, and the check on a candidate is

mechanical: expand it and read the result.

The expansion reads the words in the order they are written. Two shapes manage it: a verb

with its object behind it, and an established compound noun — hoc-code-review expands to how

to do a code review without anything being moved. What fails is a name that is neither, whose

words have to be swapped before the instruction appears. hoc-npm-deps-raise was defended as

how to raise deps, which is the name read backwards; hoc-npm-raise-deps is the same three

words in the order that reads. The swap is easy to perform without noticing, because whoever

supplies it already knows what the skill does, and a reader meeting the name in a flat list does

not.

**A name made of the thing being decided is the commonest way the test fails, and verbing that

thing is the repair.** The words are already the right words; what is missing is the one that says

a decision is being taken. A candidate naming where a package comes from, and another naming which

manifest field it lands in, both expanded into noun phrases — and both read as instructions the

moment the noun became a verb, adopt and categorize, with nothing else changed.

already about the right subject, and replacing the words instead loses whatever made the first

attempt fit.

applied to one. The test is whether the phrase is read as a thing outside this library: a code

review is, a dependency category is not.

Naming a skill after the outcome it exists to prevent inverts it. A skill written to keep a

refactor from moving a published interface was proposed as hoc-breaking-change — which expands

to how to make a breaking change, instructions for producing the very thing. The argument for

it was that a person's actual question is "is this a breaking change?", and that a name matching

the question routes best. It does not survive the expansion: the question a reader arrives with

and the instruction they leave with are not the same sentence.

to handle the CSS prohibitions, and observing them is the practice. What fails the test is a

name whose subject is a result nobody wants, not one whose subject is a set of rules about

results.

A name must not promise an extent the convention does not reach. A skill for bringing a

project's declared dependency versions up was proposed as hoc-npm-deps-latest, while the

convention it carried takes each entry only as far as its own declaration already permits and

leaves anything past that for a decision of its own. A pass that finishes under it is therefore

not at the latest of everything: the name promised the one thing the body spends a section

refusing.

bound**, so check a candidate against the rule that limits the practice, never against the

rule that describes it — the describing rule is what suggested the name in the first place.

destination. raise says which way and stops there.

Where the library already has a word for the thing, the name takes that word. The skill above

became hoc-retake-declaration, from the verb the commit convention defines: a Retake replaces

something poor or hurried with what should have been written and claims no gain beyond that,

where an Update carries an implementation forward and the gain is the point.

That name does work a descriptive one cannot. It decides membership. Asked whether a defect

found mid-work may be fixed, the name answers on its own — fixing it is a gain, a gain is an

Update, and this is a Retake. A name assembled out of fresh words has to be read alongside

the body before it settles anything, and a rule the body forgot to state is then simply absent.

defines it, and it is the same cost the vocabulary was already worth paying — **a term the

library defines and never names a skill after is a term nobody meets.**

Writing and updating the description

Keep the description under 500 characters

Directory structure

executable helpers under scripts/.

files, never more skills.

between:

kit/skills/
├── <name>/
│   ├── SKILL.md
│   ├── references/
│   └── scripts/
└── <another-name>/
    └── SKILL.md

So every skill is at kit/skills/<name>/SKILL.md, and nowhere else. There is no grouping

directory for a framework, a component family or a category: what such a directory would have

said belongs in the name instead, where the reader of an installed skill can see it. **An

installed skill has no directory above it either** — skills arrive as siblings under

.claude/skills/, so a layer the source tree keeps is a layer that does not survive shipping.

Placement of skills

A skill belongs to one library repository, and the library is what its prefix names. There is

no directory to choose: the repository is the choice, and the flat kit/skills/ below it holds

whatever that repository carries.

manual — go to the support library.

the first characters of its name are the same decision, and getting it wrong later costs a

rename.

A subject that spans two libraries is two skills, not one. One prefix cannot name two

libraries, so there is no name a single skill could take. Split it where the libraries divide,

and let each half name the other by name where a reader has to go there.

Where a skill stops

A description: that names its boundary has said where the skill stops. **It has not said when

the reader gets there**, and that missing sentence is what lets the neighbour's material back in.

Naming a boundary does not discharge it. A convention that routed advisories next door in its

opening paragraph still carried the neighbouring mechanism through its body — the reach of an

override, the test for whether a consumer survives one — in wording that was nearly the

neighbour's own. The boundary was written and the body walked past it, because nothing in the

body said at which point the reader leaves.

A rule whose reason lives in another convention is that convention's rule. The test is not

whether the rule is true, nor whether readers of this skill will meet the situation. It is

whether this convention supplies the reason the rule exists. The skill above had a row sending

a dependency the project never asked for to an override, and said nowhere why such a dependency

would move at all; the only reason the library gives for moving one is an advisory, which belongs

next door. A rule supported from outside is a rule that belongs outside.

the same words is the late symptom. The early symptom is a rule sitting in a skill that cannot

say why it is there.

Specify the handoff by what this convention could not reach. A boundary written as a subject

— advisories belong next door — leaves the reader to judge when a subject has arrived. A

boundary written as a residue does not: run the convention to its end, and whatever is left is

the neighbour's by construction. The dependency convention hands on what the audit still reports

after its pass, which is exactly what raising a declared version could not reach, and that is

also the case the neighbouring convention opens with. The two halves meet without either

restating the other.

the wrong place.

what the practice adds gets the direction backwards, and sends the reader next door for the

cases the practice was about to settle itself.

Extracting what several skills share

**Where several skills carry a heading of the same name, that is not evidence they carry the same

rule.** Measured across three skills of one family: four headings appeared in more than one of

them, and not one pair matched. Each had been written for its own reader, and the wording had

drifted with the reason.

So an extraction begins by reading every version, not by moving one of them.

which names take backticks, and each gave a different account of why — one reader deciding

whether to pick the work up with nothing else open, one reading at merge with the diff beside

them, one holding the versions they are already on. The rule goes to the new skill and the

reasons stay where they were.

belonged to that artefact alone, buried under a heading the others also used. Moving the section

whole took those tests out of the skills that needed them, and they had to be put back. **Read

to the paragraph, not to the heading.**

arrives carrying that sibling's vocabulary — section names, examples, the shape of its

particular body — and the other siblings then point at a convention that talks about somebody

else. Every term naming one artefact is replaced by what the term was standing for.

names that skill's reader and the one place the shared rule bites hardest, and nothing else. A

sibling left with only a pointer has lost the reason, which was the part that was its own.

**The extraction is finished when each sibling still answers why, and only the new skill answers

how.**

Keep skills self-contained

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.