hoc-workflows
Development workflow conventions for carrying an implementation from its start to its completion. Use when starting implementation work, when the surrounding…
от openreachtech★ 17 звёзд на GitHub
Установить hoc-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Workflows
Procedural rules related to the development workflow.
How to proceed with implementation
- Before proceeding with an implementation, consult the skills it requires.
- Follow this order.
- Design the class composition of the feature as a whole
- Design the member composition of each class
- Write the tests
- Implement the class members
- Commit, in the order
/hoc-git-commit-ordersets
The existing code is not a template
A convention outranks the code already in the repository. Where a skill states how something is written and the files around it are written another way, the new code follows the skill. Those files record what the convention was before it was written down, and matching them propagates the very thing the convention exists to stop.
- The count does not change the answer. A rule broken by one file and a rule
broken by sixty are the same rule. A majority in the repository is evidence of
when the code was written, never of what is correct.
- Counting the two spellings is itself the error. A convention written after
the code exists starts at zero occurrences of the spelling it prescribes, so the
tally is guaranteed to argue against every rule on the day it is adopted.
Reaching for
grep -cto settle which spelling is right asks a question whose answer was fixed before the rule was written, and reading a count of 441 to 0 as "the repository says otherwise" inverts what the numbers mean. - The first instance is not an anomaly needing a defence. "The skill states it" is the whole justification, and 441 to 1 is what a convention looks like on its first day rather than evidence against it. The spelling that is about to be written is the one the count is missing.
- Counting the two spellings is itself the error. A convention written after
the code exists starts at zero occurrences of the spelling it prescribes, so the
tally is guaranteed to argue against every rule on the day it is adopted.
Reaching for
- Where a convention covers the point, the surroundings are not consulted. The convention has already answered, and what the files around you happen to do adds nothing to that answer.
- Where nothing is written, the surroundings inform and never authorize. They
show what has been done, which is not the same as what may be done. Code that is
worse than what you already know how to write does not become acceptable by being
nearby, and matching it writes the flaw a second time — leaving the next reader
two examples of it instead of one, and a majority where there had been an
exception. What stands in where nothing is written is the coding charter and the
QA stance the tests are held to, never the nearest file.
- The code review convention says the same from the reviewer's side. Where nothing is written it sends a reviewer to the baseline and the charter too, and it raises a departure from the surrounding code only where the departure is the worse of the two. Code written to this rule is therefore not a finding under that one.
- Only a named instruction reverses this. Being asked to match a particular file, or to leave a module's style alone, is that instruction. Being asked to add something to a file is not.
- Leave the older files alone. This governs what is being written; it is not licence to rewrite what is already there. Bringing existing files up to a convention is work of its own, and it is asked for separately.
Before committing
- Before committing, pass
npx eslint <path> <path> …, naming the files the commit touches. Every commit leaves the tree lint-clean. Lint the files, not the repository —npm run lintwalks the whole tree and is too slow to sit in front of every commit. npm testis not a gate on every commit. A test commit lands red on purpose — which commit goes first, and why, belongs to/hoc-git-commit-order— so staging the implementation alongside the tests to keep the suite green destroys the split. The suite is held to green where the branch is offered for merge, below.- Run the commit's own tests all the same —
npm test -- <path> <path> …— and read the failure: it must fail on the behavior the tests assert, not on a typo, a bad import or a missing fixture. A test commit that is red for the wrong reason is a defect; one in which nothing fails asserts nothing. Note that jest reads those arguments as regular expressions matched against the whole test path, not as literal paths, so a pattern selects every file it matches — unlike the eslint arguments above, which are paths. - Follow the git commit convention before writing a commit message, and before deciding how to split working-tree changes into commits. It resolves which message format the project uses and defines what belongs in a single commit.
Before completing implementation
- Pass
npx eslint <path> <path> …over every file the work touched, and passnpm testover the whole suite, before completing the implementation. Narrowing the run to the files just changed here would hide the tests this work broke elsewhere. Do not consider the implementation complete w
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hoc-workflows?
Development workflow conventions for carrying an implementation from its start to its completion. Use when starting implementation work, when the surrounding code disagrees with a convention, before committing, and before declaring the work complete. What a commit holds and how it is worded belongs to the git commit convention.
Как установить скилл hoc-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hoc-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…