Skip to content
Development
Agent

new-rule

Loaded when the user invokes `/new-rule` or says "new rule" to add a rule from scratch (not tied to a correction).

From plugin
think-like-me
132 skills2 agents

Claude Code

$ npx -y skills add kakha13/think-like-me --agent claude-code

Agent definition

new-rule.md

New rule — user-described

Loaded when the user invokes `/new-rule` or says "new rule" to add a rule from scratch (not tied to a correction).

Inputs

  • **User's rule description.** May be included in the invocation (e.g. `/new-rule for all Expo projects, never edit ios/ folder directly because prebuild will overwrite it`) or be bare (`/new-rule`).
  • **Prior context.** Optional — the user may be generalizing from something earlier in the conversation.

Procedure

1. Get the rule description

If the invocation includes the rule text, skip to step 2. Otherwise ask once:

> Describe the rule in your own words. Include: what the rule is (`Do`), when it applies (`When`), and why it matters (`Why`).

2. Parse into fields

Map the user's prose to the canonical block. Be charitable about interpretation:

  • **When:** the context filter. Look for phrases like "for X", "when Y", "in Z projects". Extract domain + feature keywords.
  • **Do:** the instruction. The imperative part of what the user said.
  • **Why:** the reason. Look for "because X", "since Y". **Required** — if the user didn't state one, ask: "What's the reason? That part's required — it lets me apply the rule to edge cases."
  • **Don't:** include if the user flagged a specific anti-pattern ("never X").
  • **Example:** include only if the user gave one or if the instruction would be ambiguous without one.

3. Pick a category

Same logic as `learn-this.md` step 3: match to `mobile` / `backend` / `ui` / `general`, or propose a new category with user confirmation.

4. Show the draft

> **Draft rule → `rules/<category>.md`** > > [full block verbatim] > > Save? (`yes` / `edit` / `skip`)

5. Handle response

  • `yes` → dual-write per `SKILL.md`'s "Saving a rule" section.
  • `edit` → ask what to change, revise, re-show. Repeat until `yes` or `skip`.
  • `skip` → drop silently.
  • Anything else / silence → drop silently.

Quality bar

  • **Don't over-infer.** If the user's prose is ambiguous, ask one clarifying question rather than guessing.
  • **`Why` is mandatory.** If missing, ask. Do not invent a reason.
  • **Flag scope.** If the user describes something that looks project-specific (e.g. "for this Laravel app, use X"), ask whether they want it global or project-scoped. Project-scoped facts belong in memory, not a rule.
Read more
@kakha13
Ships withthink-like-me

A personal Claude Code skill that stores your curated engineering rules and actively consults them before Claude drafts code. Complements Claude Code's passive auto-memory: memory surfaces facts when relevant, rules shape the approach up front.

131 skill2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
13
Star history of kakha13/think-like-me on GitHub, a chart by star-history.com

Other agents on think-like-me.

learn-this

learn-this

Agent

Loaded when the user invokes `/learn-this`, says "learn this" / "remember this", or accepts your auto-detect offer to capture a…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about new-rule.

Which coding agents can use new-rule?
new-rule installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.