Agent skill · writing content · kochetkov-ma

rules

Syncs KNOWLEDGE.jsonl or session learnings to project rules. Triggers: rules, knowledge sync, extract rules.

Why this skill is useful

Adds specific commands and workflows for managing project rules that the AI wouldn't reliably generate on its own.

What it needs

About 7k tokens when loaded. Last updated 2026-08-06. 29 stars on the source repository.

What this skill does

rules Skill TARGET: Project .claude/rules/ only. NEVER ~/.claude/rules/ <instructions> Prompt contract Position 1 of $ARGUMENTS is a free-form prompt (RU/EN) — modes and flags are optional and may follow in any order. Nobody types keys: resolve mode + scope FROM the prompt. 1. Strip flags. An explicit mode token anywhere wins outright, no scoring. 2. Else score modes by distinct whole-word keyword hits (table below). Highest unique score wins. Tie with a destructive mode -> AskUserQuestion; tie with status -> status; tie of two mutating modes -> the keyword appearing first; all zero -> status. 3. Empty arguments -> status; ask ONE scoping AskUserQuestion only when the answer changes what gets written. A read-only run asks nothing. 4. Outcome-changing ambiguity -> ONE AskUserQuestion (max 4 questions) BEFORE any work. 5. Prose that is not a mode/id/path is still input: extract the id, path or target from it. Then print this block ONCE, before the first action: Labels are literal; values follow the conversation language. Constants Const Value ------- ------- ARTIFACT rules SPECIALIST brewcode:bc-rules-organizer LISTCMD bash "${CLAUDESKILLDIR}/scripts/rules.sh" list Step 1 — Input gate Treat the entire user input ($ARGUMENTS) as ONE free-form natural-language prompt — no keyword grammar, no argument parser (argument-hint is only a loose example). …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills kochetkov-ma/rules--14947f

View the source on GitHub

Browse the @skills marketplace