/codely-skills:create-rule [convention]from codely-skills
Turns a convention into a deterministic linter rule, custom lint rule, or test that fails in seconds. When no rule can check it exactly, writes a minimal doc explaining why.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A written convention holds only if an agent loads it, reads it the way the team does, and a reviewer catches the miss. A rule fails in seconds and tells the agent what to do instead, so the agent corrects itself. This skill takes one convention and makes it a rule when it can. When it cannot, it documents the convention in a few lines, with the reason no rule checks it.
To enforce the conventions that a repository already has, use deterministify instead.
/create-rule [convention]
Done when you can state, in one sentence each:
Ask only if the convention can be read in two ways, or its scope is unclear. Ask once, with every question together.
Read the lint, format, test, hook and CI configuration. Done when you can state:
Take the first rung that covers the whole convention with no guess. Check that the installed version of the tool has the rule before you choose it.
references/new-tool.md.If a rule already enforces part of the convention, extend it. If it exists but stays green on a violation, repair it. If a generic rule is already set for the same files and its options replace instead of merge, go one rung down.
A new dependency (rungs 4 and 6) needs the user's yes. If they decline, go one rung down to a tool already installed.
Done when the convention has a mechanism, or no rung covers it exactly. Then go to step 6.
Convention: <path of the doc>). If the rule takes no custom message, put that line as a comment next to the rule.Under the real configuration of the repository:
Keep both cases as rule tests where step 2 found them, or create that place with the test runner the repository has, while the whole suite runs in seconds. Keep the red case out of the real lint, the formatter and every other check. With no test runner, prove red with a temporary file and delete it.
The check command of step 2 must run the rule, and CI too. If a hook lints the changed files before a commit, it runs the rule as well.
Done when the rule has gone red and the check command is green on the repository.
Write it where the repository keeps its conventions, usually docs/, in the folder that fits the topic. With no such place, create docs/.
With a rule:
# <title>
<what it is, in one sentence>
**Why**: <the reason, if known>
Enforced by: <tool> · <rule>
Without a rule:
# <title>
<what it is, in one sentence>
**Why**: <the reason, if known>
**Not enforced**: <why no rule can check it exactly, in one sentence>
## Examples
<the shortest good example and bad example, a few lines each>
The why is optional: if nobody said it, show the title and the sentence you would write and ask for the why in one line. With no answer, write the doc without it.
Add the doc to the docs index of AGENTS.md, if it has one.
One commit with the rule, its rule tests, its baseline and the doc, with the convention of the repository for commit messages. Without a rule, the commit holds only the doc. Push nothing and open no pull request.
Answer in a few lines:
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.Other plugins' skills for the same job