/codely-skills:deterministify [docs | conventions] [path …]from codely-skills
Turns repository conventions into deterministic lint rules and tests that fail in seconds. Mines patterns from code and enforces written conventions automatically.
Ships in codely-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A convention holds only if an agent loads it, reads it the way the team does, and a reviewer catches the miss. Where the code does one job in two ways, an agent copies whichever it reads first. This skill turns each convention that code can check into a rule that fails in seconds, so the agent corrects itself.
/deterministify [docs | conventions] [path …]
Both are optional. The first word is a mode only when it is exactly docs, conventions or patterns. The last two are the same mode, patterns. Anything else is a path: write ./docs for a folder of that name.
| Mode | Conventions it enforces | It asks before enforcing |
|---|---|---|
| (none) | Written first, then the ones only the code shows | Once, and only where the evidence is weak |
docs | Written: docs, AGENTS.md, ADRs, guidelines | Nothing, except the two cases of step 4 |
patterns | Mined: jobs the code does in more than one way | Which way is current, where in doubt |
conventions is an alias of patterns: wherever this skill says mode patterns, it means either of them.
A path narrows the run, and alone it chooses the mode by what it holds:
docs over those documents only. This is how to enforce one convention, or one set.Without a path, process the whole repository.
Read the lint, format, test, hook and CI configuration. Done when you can state:
references/docs.md. Skip it in mode patterns.references/patterns.md. Skip it in mode docs.With both, the written pass is evidence for the mined one: a job is out of scope when a rule already enforces it or a convertible statement decides it, whatever the recent code does. A job that a held pair of statements decides gets no card of its own: the card of the pair settles it. And a statement that names the current way of a job is intent for that job, even if the written pass skipped it.
Done when the completion criterion of each file you followed holds. With nothing to enforce, say so in one line, name the jobs with no clear winner, and end.
Give each convention that no working rule enforces yet the first rung that covers it. Check that the installed version of the tool has the rule before you choose it. Install nothing yet. A convention whose rule exists but is broken keeps that rule as its mechanism: repair it, and add no second rule.
references/new-tool.md.Each convention gets its own rule, with its own message and its own baseline. If a generic rule is already set for the same files, by the repository or by another convention of this run, and its options replace instead of merge (step 1), go one rung down.
Done when every convention has a rung, a dependency to propose, or a skip.
Three things need the user: a dependency to install, two convertible statements that contradict each other, and a mined job whose evidence leaves doubt (references/patterns.md says which). Each one becomes a card. Conventions that hang on no card do not wait, and the user does not vote on them: take them through steps 5 to 7 first.
Then send the one message of references/ask.md. With no card, send no question: say what you enforced and continue.
Done when the user has answered, or at once when you sent no question. Take what they accepted, and only that, through steps 5 to 7. A card where they chose an alternative goes through step 3 first, with the tools already installed or approved. From here to step 8, ask nothing more:
For each convention that has not gone through this step yet:
Convention: <path of the document>, or the path of the canonical example). If the rule takes no custom message, put that line as a comment next to the rule.For each rule, built-in or custom, under the real configuration of the repository:
Keep both cases as rule tests while the whole suite of them runs in seconds: a tool upgrade can break a rule, and a broken rule looks the same as a rule that everybody follows. Use the place step 1 found, or create it with the test runner the repository has. Run them in the CI job where the tests of the repository run. Keep the red cases out of the real lint, the formatter and every other check. With no test runner, or a suite that takes longer, prove red with a temporary file and delete it.
The check command of step 1 must run every rule, and CI the whole of it. If a hook lints the changed files before a commit, it runs the new rules and tools too.
Done when every rule has gone red and the check command is green on the repository.
One commit per convention, with the convention of the repository for commit messages: the rule, its rule tests, its baseline and, for a written statement, the line Enforced by: <tool> · <rule> next to it, naming only what the rule checks. When the rule covers less than the scope of the statement, as in a run over one area, the line says where: Enforced by: <tool> · <rule> (only in <area>). Shared tooling goes first, in its own commit. Push nothing and open no pull request.
Answer with one bullet per rule, grouped by mechanism (configuration, custom rules, new dependencies): the convention in a few words, written or mined, the rule, and the size of its baseline. Past fifteen rules, group them by area and give counts. Say where you enforced less than the sentence states, and name the jobs with no clear winner. Close with how to migrate a file of a baseline: change the code, remove it from the baseline.
Then send the offer of references/document.md.
With dozens of conventions, build the shared pieces first (the place for rule tests, the baseline mechanism and its check). Then split steps 5 to 7 by area into subagents that own their files: one configuration file per area, one rule file and one baseline per rule.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codelytv/agent-harness --plugin codely-skills13 skills in this plugin
/create-docDeprecated: use create-rule instead. Create new documentation based on the current conversation context./create-planCreate a plan for the specified task./create-plan-githubCreate a plan for the specified task and store it as GitHub issues in the repository of the current working directory. Given the URL of a GitHub issue, it turns that issue into the parent "plan" issue (Goal, Context and a checklist of phases) and creates one child issue per phase, linking every phase as a native GitHub sub-issue of the parent. Stops for user approval before creating any issue. After creation, the plan is meant to be implemented with the implement-plan-phase-github skill./create-plan-gitlabCreate a plan for the specified task and store it as GitLab issues in the repository of the current working directory. Given the URL of a GitLab issue, it turns that issue into the parent "plan" issue (Goal, Context and a checklist of phases) and creates one child issue per phase, linking every phase to the parent with GitLab related-issue links. Stops for user approval before creating any issue. After creation, the plan is meant to be implemented with the implement-plan-phase-gitlab skill./create-plan-subagentsCreate a plan for the specified task./create-pull-requestWrite the title and the description of a pull request following the team template, with before/after evidence of the change (screenshots, videos, outputs and architecture diagrams). Use before you create or edit a pull request, and after you push new commits to a branch with an open pull request.Other plugins' skills for the same job