sk-create-repo-rule

sk-create-repo-rule is a skill for Claude Code, OpenCode from MichelKerkmeester/skilled-agent-harness_spec-driven-loops. It costs 29 tokens per session (2,609 once invoked), scanned A, original, MIT.

A workflow for turning a requested behaviour or recurring failure into a documented rule for a code repository.

In plain words
What is it for?
Use it to create, revise, retire, or route repository rules and conventions that guide future work.
Why use it?
It helps decide whether a rule is genuinely needed and keeps accepted rules connected to the repository’s rule index.

Skill for Claude CodeOpenCode

Written for Claude Code and OpenCode: allowed-tools in frontmatter, but also installed under .opencode/. Also seen: mentions AGENTS.md.

Good fit Use it to create, revise, retire, or route repository rules and conventions that guide future work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MichelKerkmeester/skilled-agent-harness_spec-driven-loops --skill sk-create-repo-rule
Clone the repo
git clone --depth 1 https://github.com/MichelKerkmeester/skilled-agent-harness_spec-driven-loops

Made for: Claude Code, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sk-create-repo-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule/github.svg)](https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule)
Your own site
<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sk-create-repo-rule

Your own site · 80×15
<a href="https://agentmods.dev/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule"><img src="https://agentmods.dev/badge/skills/michelkerkmeester/skilled-agent-harness_spec-driven-loops/sk-create-repo-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.02609
Opus 5 $0.00015 $0.01305
Sonnet 5 $0.00006 $0.00522
Haiku 4.5 $0.00003 $0.00261

Measured 6d ago against content hash bca4952686ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sk-create-repo-rule scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/skills/sk-doc/sk-create-repo-rule/SKILL.md · 228 lines

How it starts

The opening of the file, as written. The whole thing — 228 lines — stays where its author put it; the contents beside it link to each section on GitHub.

create-repo-rule

create-repo-rule is the repo-rule authoring workflow packet of the sk-doc family. It turns a user's request — a behaviour they want, or a failure they keep hitting — into a file under repo-rules/, wired into that repository's REPO RULES.md router.

Most requests should not become a rule. The four decision tests in references/decision-tests.md refuse more than they admit, and running them first is the cheap order. Authoring a rule that then fails a test is the expensive one.

A repo rule supplements the harness. It sits below AGENTS.md and below a live operator instruction, it can be changed when it stops matching the work, and it can be removed when it stops earning its load. This mode owns all three.


1. WHEN TO USE

Activation Triggers

  • Someone asks for a repo rule, a project rule, or a convention that should bind before an action.
  • Someone describes a recurring failure and asks how to stop it happening again.
  • An existing rule needs changing because it no longer matches how the work is done.
  • A rule needs retiring because nothing it prevents still happens.
  • A repository needs a rule router because it has none.

Keyword triggers: create repo rule, /create:repo-rule, repo rule, project rule, REPO RULES.md, repo-rules, add a rule, retire a rule, revise a rule, trigger table, rule router.

When NOT to Use

  • It teaches how to do something. A skill is capability, a rule is constraint. Route to the skill-authoring mode.
  • It must bind on every turn. Content that holds when no trigger fires belongs in the always-loaded document, not behind a trigger. This is decision test 1 and the most common refusal.
  • It is routing. Which skill, which command, which agent, which flags. The always-loaded document and the skills it routes to own that.
  • It is one line, not a cluster. A single row is a section inside an existing rule.
  • A sibling mode already produces it. README, changelog, command, catalog, playbook and diagram all have owners.

Read the full file on GitHub · 228 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +2 lines bca4952686ee
  2. 8d ago First seen · 226 lines · 29 tokens per session scan A 68a8262c3f10

Subscribe to this mod's changes

sk-create-repo-rule is a skill published in the GitHub repository MichelKerkmeester/skilled-agent-harness_spec-driven-loops (35 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 2,609 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

recipe-create-meet-space

Create a Google Meet meeting space and share the join link.

googleworkspace/cli · 18 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

atmos-config

Atmos root configuration: atmos.yaml discovery, precedence, deep merging, basepath, imports, minimal bootstrap, and routing to narrower Atmos skills.

cloudposse/atmos · 31 tokens

story-readiness

Validate that a story file is implementation-ready. Checks for embedded GDD requirements, ADR references, engine notes, clear acceptance criteria, and no open design questions. Produces READY / NEEDS WORK / BLOCKED verdict with specific gaps. Use when user says 'is this story ready', 'can I start on this story', 'is…

Donchitos/Claude-Code-Game-Studios · 77 tokens

magpie-security-issue-import-from-md

Open one or more tracking issues from a markdown file containing a batch of security findings. Each finding becomes one tracker landing in the Needs triage board column. The file itself is the full report — there is no inbound reporter to reply to and no PR to inspect.

apache/magpie · 73 tokens

remove

Remove a deployed framework or addon from the current workspace.

jmagly/aiwg · 12 tokens