Agent skill

Create Rule

by NeoLabHQ in NeoLabHQ/context-engineering-kit

A skill your agent uses when found gap or repetative issue, that produced by you or implemenataion agent.

GPL-3.0Auto-check passedAgent Workflows

Install Create Rule

skills CLI
$ npx skills add NeoLabHQ/context-engineering-kit --skill create-rule -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NeoLabHQ/context-engineering-kit create-rule --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NeoLabHQ/context-engineering-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/create-rule .claude/skills/create-rule && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-rule
GitHub stars
1.7k
Token cost
~5.4k tokens
SKILL.md length
2,068 words
Files
1
Skills in repo
57
Repo updated
First seen
Licence
GPL-3.0

At a glance

A skill your agent uses when found gap or repetative issue, that produced by you or implemenataion agent.

  • Works in 7 steps: Identify the Behavioral Gap → Determine Rule Scope → Write Contrastive Examples → …
  • Repetative issue
  • SKILL.md covers Overview, About Rules, When to Create a Rule and Rule Types, plus 7 more sections
  • Reaches blog.codinghorror.com

What it does

Create Rule is an agent skill from NeoLabHQ/context-engineering-kit. Use when found gap or repetative issue, that produced by you or implemenataion agent. Esentially use it each time when you say "You absolutly right, I should have done it differently." - need create rule for this issue so it not appears again.

Its SKILL.md is about 5.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: Hand-crafted Claude Code Skills focused on improving agent results quality. Compatible with OpenCode, Cursor, Antigravity, Gemini CLI, and others. Includes CodeRabbit open-source… The licence is GPL-3.0.

When your agent uses it

  • Repetative issue
  • That produced by you
  • Implemenataion agent

Example prompts

  • “You absolutly right, I should have done it differently.”
  • “/create-rule”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Identify the Behavioral Gap
  2. Determine Rule Scope
  3. Write Contrastive Examples
  4. Write the Rule Description
  5. Assemble the Rule File
  6. Validate the Rule
  7. Iterate Based on Feedback or Observations

What it can do on your machine

Read from SKILL.md and the folder at commit 23e2428. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • blog.codinghorror.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Rule loads about 5.4k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 2,068 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~5.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NeoLabHQ/context-engineering-kit at commit 23e2428, republished under its GPL-3.0 licence (© NeoLabHQ). 2,068 words, ~5,448 tokens.

Download SKILL.mdSave it as .claude/skills/create-rule/SKILL.md (or your agent's skills folder).
name
create-rule
description
Use when found gap or repetative issue, that produced by you or implemenataion agent. Esentially use it each time when you say "You absolutly right, I should have done it differently." -> need create rule for this issue so it not appears again.

Create Rule

Guide for creating effective .claude/rules files with contrastive examples that improve agent accuracy.

Overview

Core principle: Effective rules use contrastive examples (Incorrect vs Correct) to eliminate ambiguity.

REQUIRED BACKGROUND: Rules are behavioral guardrails, that load into every session and shapes how agents behave across all tasks. Skills load on-demand. If guidance is task-specific, create a skill instead.

About Rules

Rules are modular, always-loaded instructions placed in .claude/rules/ that enforce consistent behavior. They act as "standing orders" — every agent session inherits them automatically.

What Rules Provide
  1. Behavioral constraints — What to do and what NOT to do
  2. Code standards — Formatting, patterns, architecture decisions
  3. Quality gates — Conditions that must be met before proceeding
  4. Domain conventions — Project-specific terminology and practices
Rules vs Skills vs CLAUDE.md
AspectRules (.claude/rules/)Skills (skills/)CLAUDE.md
LoadingEvery session (or path-scoped)On-demand when triggeredEvery session
PurposeBehavioral constraintsProcedural knowledgeProject overview
ScopeNarrow, focused topicsComplete workflowsBroad project context
SizeSmall (50-200 words each)Medium (200-2000 words)Medium (project summary)
FormatContrastive examplesStep-by-step guidesKey-value / bullet points

When to Create a Rule

Create when:

  • A behavior must apply to ALL agent sessions, not just specific tasks
  • Agents repeatedly make the same mistake despite corrections
  • A convention has clear right/wrong patterns (contrastive examples possible)
  • Path-specific guidance is needed for certain file types

Do NOT create for:

  • Task-specific workflows (use a skill instead)
  • One-time instructions (put in the prompt)
  • Broad project context (put in CLAUDE.md)
  • Guidance that requires multi-step procedures (use a skill)

Rule Types

Global Rules (no paths frontmatter)

Load every session. Use for universal constraints.

markdown
# Error Handling

All error handlers must log the error before rethrowing.
Never silently swallow exceptions.
Path-Scoped Rules (paths frontmatter)

Load only when agent works with matching files. Use for file-type-specific guidance.

markdown
---
paths:
  - "src/api/**/*.ts"
---

# API Development Rules

All API endpoints must include input validation.
Use the standard error response format.
Priority Rules (evaluator/judge guidance)

Explicit high-level rules that set evaluation priorities.

markdown
# Evaluation Priorities

Prioritize correctness over style.
Do not reward hallucinated detail.
Penalize confident wrong answers more than uncertain correct ones.

Rule Structure: The Contrastive Pattern

Every rule MUST follow the Description-Incorrect-Correct template. This structure eliminates ambiguity by showing both what NOT to do and what TO do.

Required Sections
markdown
---
title: Short Rule Name
paths:                          # Optional but preferable: when it is possible to define, use it!
  - "src/**/*.ts"
---

# Rule Name

[1-2 sentence description of what the rule enforces and WHY it matters.]

## Incorrect

[Description of what is wrong with this pattern.]

\`\`\`language
// Anti-pattern code or behavior example
\`\`\`

## Correct

[Description of why this pattern is better.]

\`\`\`language
// Recommended code or behavior example
\`\`\`

## Reference

[Optional: links to documentation, papers, or related rules.]
Why Contrastive Examples Work

Researches shows that rules with both positive and negative examples are significantly more discriminative than rules with only positive guidance. The Incorrect/Correct pairing:

  1. Eliminates ambiguity — the agent sees the exact boundary between acceptable and unacceptable
  2. Prevents rationalization — harder to argue "this is close enough" when the wrong pattern is explicitly shown
  3. Enables self-correction — agents can compare their output against both patterns

Writing Effective Rules

Rule Description Principles

Explicit, high-level guidance:

PrincipleExample
Prioritize correctness over style"A functionally correct but ugly solution is better than an elegant but broken one"
Do not reward hallucinated detail"Extra information not grounded in the codebase should be penalized, not rewarded"
Penalize confident errors"A confidently stated wrong answer is worse than an uncertain correct one"
Be specific, not vague"Functions must not exceed 50 lines" not "Keep functions short"
State the WHY"Use early returns to reduce nesting — deeply nested code increases cognitive load"
Incorrect Examples: What to Show

The Incorrect section must show a pattern the agent would plausibly produce. Abstract or contrived bad examples provide no value.

Effective Incorrect examples:

  • Show the most common mistake agents make for this scenario
  • Include the rationalization an agent might use ("this is simpler")
  • Mirror real code patterns found in the codebase

Ineffective Incorrect examples:

  • Obviously broken code no agent would produce
  • Syntax errors (agents already avoid these)
  • Patterns unrelated to the rule's concern
Correct Examples: What to Show

The Correct section must show the minimal change needed to fix the Incorrect pattern. Large rewrites obscure the actual lesson.

Effective Correct examples:

  • Show the same scenario as Incorrect, fixed
  • Highlight the specific change that matters
  • Include a brief comment explaining WHY this is better

Ineffective Correct examples:

  • Completely different code from the Incorrect example
  • Over-engineered solutions that add unnecessary complexity
  • Patterns that require additional context not shown
Token Efficiency

Rules load every session. Every token counts.

  • Target: 50-200 words per rule file (excluding code examples)
  • One rule per file — do not bundle unrelated constraints
  • Use path scoping to avoid loading irrelevant rules
  • Code examples: Keep under 20 lines each (Incorrect and Correct)

Directory Structure

.claude/
├── CLAUDE.md                    # Project overview (broad)
└── rules/
    ├── code-style.md            # Global: code formatting rules
    ├── error-handling.md        # Global: error handling patterns
    ├── testing.md               # Global: testing conventions
    ├── security.md              # Global: security requirements
    ├── evaluation-priorities.md # Global: judge/evaluator priorities
    ├── frontend/
    │   ├── components.md        # Path-scoped: React component rules
    │   └── state-management.md  # Path-scoped: state management rules
    └── backend/
        ├── api-design.md        # Path-scoped: API patterns
        └── database.md          # Path-scoped: database conventions

Naming conventions:

  • Use lowercase with hyphens: error-handling.md, not ErrorHandling.md
  • Name by the concern, not the solution: error-handling.md, not try-catch-patterns.md
  • One topic per file for modularity
  • Use subdirectories to group related rules by domain

Rule Creation Process

Follow these steps in order, skipping only when a step is clearly not applicable.

Step 1: Identify the Behavioral Gap

Before writing any rule, identify the specific agent behavior that needs correction. This understanding can come from:

  • Observed failures — the agent repeatedly makes a specific mistake
  • Codebase analysis — the project has conventions not obvious from code alone
  • Evaluation findings — a judge/meta-judge identified a quality gap
  • User feedback — explicit correction of agent behavior

Document the gap as a concrete statement: "The agent does X, but should do Y."

Conclude this step when there is a clear, specific behavior to correct.

Step 2: Determine Rule Scope

Decide whether this rule should be:

  1. Global (no paths frontmatter) — applies to all work in the project
  2. Path-scoped (paths frontmatter with glob patterns) — applies only when working with matching files
  3. User-level (~/.claude/rules/) — applies across all projects for personal preferences

Decision guide:

Is this project-specific?
  No  → User-level rule (~/.claude/rules/)
  Yes → Is it relevant to ALL files?
    Yes → Global rule (.claude/rules/rule-name.md)
    No  → Path-scoped rule (.claude/rules/rule-name.md with paths: frontmatter)
Step 3: Write Contrastive Examples

This is the most critical step. Write the Incorrect and Correct examples BEFORE writing the description.

  1. Start with the Incorrect pattern — write the exact code or behavior the agent produces that needs correction
  2. Write the Correct pattern — show the minimal fix that addresses the issue
  3. Verify contrast is clear — the difference between Incorrect and Correct must be obvious and focused on exactly one concept

Quality check for contrastive examples:

CheckPass Criteria
PlausibilityWould an agent actually produce the Incorrect pattern?
MinimalityDoes the Correct pattern change only what is necessary?
ClarityCan a reader identify the difference in under 5 seconds?
SpecificityDoes each example demonstrate exactly one concept?
GroundednessAre the examples drawn from real codebase patterns?
Step 4: Write the Rule Description

Now write the 1-2 sentence description that connects the contrastive examples. The description must:

  • State WHAT the rule enforces
  • State WHY it matters (the impact or consequence)
  • Use imperative form ("Use early returns" not "You should use early returns")
Step 5: Assemble the Rule File

Create the rule file following the structure template:

  1. Add YAML frontmatter with title, impact, tags, and optionally paths
  2. Write the heading and description
  3. Add the Incorrect section with description and code
  4. Add the Correct section with description and code
  5. Optionally add a Reference section with links

Place the file in .claude/rules/ with a descriptive filename.

Step 6: Validate the Rule

Before finishing, verify:

  1. File location — rule exists at .claude/rules/<rule-name>.md
  2. Frontmatter — contains at minimum title and impact
  3. Contrastive examples — both Incorrect and Correct sections present with code blocks
  4. Token budget — description is 50-200 words (excluding code)
  5. Path scoping — if paths is set, glob patterns match intended files
  6. No overlap — rule does not duplicate guidance in CLAUDE.md or other rules
Step 7: Iterate Based on Feedback or Observations

After a rule is written, apply a Decompose → Filter → Reweight refinement cycle before finalizing:

7.1 Decompose Check

Consider splitting complex rules into multiple focused rules.

For rules that your written, ask yourself: "Is this rule trying to cover more than one concept?"

  • If YES, split it into multiple focused rules, each addressing exactly one concept
  • If the Incorrect example shows multiple distinct anti-patterns, create separate rules for each
Show full SKILL.md (823 more words)Show less
7.2 Misalignment Filter

For rules that your written, ask yourself: "Could this rule penalize acceptable variations or reward behaviors the prompt does not ask for?"

  • If YES, narrow the scope or rewrite the contrastive examples
  • Verify: would an agent actually produce the Incorrect pattern? (If not, the rule is contrived)
7.3 Redundancy Filter

Check all existing .claude/rules/ files for overlap:

  • If already exists a rule that covers the same concept, update the existing rule instead and remove the duplicate rule that you just created
  • If two rules substantially overlap (enforcing the same behavioral boundary), merge them
  • Use: ls -R .claude/rules/ and grep -r "relevant-keyword" to find potential overlaps
7.4 Impact Reweight

Assign or reassign the impact frontmatter field based on:

  • CRITICAL: Anti-pattern causes data loss, security vulnerabilities, or system failures
  • HIGH: Anti-pattern causes broken functionality, incorrect behavior, or hard-to-debug issues
  • MEDIUM: Anti-pattern degrades quality, readability, or maintainability
  • LOW: Anti-pattern is a minor style or convention issue
7.5 Iterate Based on Feedback

After the refinement cycle, ask the user for feedback on the rule.

  • If the user says that the rule is good, you can stop the refinement cycle.
  • If the user says that the rule is bad, you should update the rule to close gaps.

You should continue to iterate until the rule is good.

Complete Rule Example

markdown
---
title: Use Early Returns to Reduce Nesting
paths:
  - "**/*.ts"
---

# Use Early Returns to Reduce Nesting

Handle error conditions and edge cases at the top of functions using early returns. Deeply nested code increases cognitive load and makes logic harder to follow.

## Incorrect

Guard clauses are buried inside nested conditionals, making the happy path hard to find.

\`\`\`typescript
function processOrder(order: Order) {
  if (order) {
    if (order.items.length > 0) {
      if (order.status === 'pending') {
        // actual logic buried 3 levels deep
        const total = calculateTotal(order.items)
        return submitOrder(order, total)
      } else {
        throw new Error('Order not pending')
      }
    } else {
      throw new Error('No items')
    }
  } else {
    throw new Error('No order')
  }
}
\`\`\`

## Correct

Error conditions are handled first with early returns, keeping the happy path at the top level.

\`\`\`typescript
function processOrder(order: Order) {
  if (!order) 
    throw new Error('No order')
  if (order.items.length === 0) 
    throw new Error('No items')
  if (order.status !== 'pending') 
    throw new Error('Order not pending')

  const total = calculateTotal(order.items)
  return submitOrder(order, total)
}
\`\`\`

## Reference

- [Flattening Arrow Code](https://blog.codinghorror.com/flattening-arrow-code/)

Complete Path-Scoped Rule Example

markdown
---
title: API Endpoints Must Validate Input
paths:
  - "src/api/**/*.ts"
  - "src/routes/**/*.ts"
---

# API Endpoints Must Validate Input

Every API endpoint must validate request input before processing. Unvalidated input leads to runtime errors, security vulnerabilities, and data corruption.

## Incorrect

The handler trusts the request body without validation, allowing malformed data through.

\`\`\`typescript
export async function POST(req: Request) {
  const body = await req.json()
  const user = await db.users.create({
    email: body.email,
    name: body.name,
  })
  return Response.json(user)
}
\`\`\`

## Correct

Input is validated with a schema before use. Invalid requests receive a 400 response.

\`\`\`typescript
import { z } from 'zod'

const CreateUserSchema = z.object({
  email: z.string().email(),
  name: z.string().min(1).max(100),
})

export async function POST(req: Request) {
  const parsed = CreateUserSchema.safeParse(await req.json())
  if (!parsed.success) {
    return Response.json({ error: parsed.error.flatten() }, { status: 400 })
  }
  const user = await db.users.create(parsed.data)
  return Response.json(user)
}
\`\`\`

Anti-Patterns

Vague Rules Without Examples
markdown
# Bad: No contrastive examples, too vague
Keep functions short and readable.
Use meaningful variable names.

Why bad: No concrete boundary. "Short" means different things to different agents. No Incorrect/Correct to calibrate behavior.

Rules That Should Be Skills
markdown
# Bad: Multi-step procedure in a rule
When deploying to production:
1. Run all tests
2. Check coverage thresholds
3. Build the project
4. Run integration tests
5. Deploy to staging first
...

Why bad: Rules should be constraints, not workflows. This belongs in a skill.

Duplicate Rules
markdown
# Bad: Same guidance in two places
# .claude/rules/formatting.md says "use 2-space indent"
# CLAUDE.md also says "use 2-space indent"

Why bad: When guidance conflicts, the agent cannot determine which takes precedence. Keep each piece of guidance in exactly one location.

Overly Broad Path Scoping
markdown
---
paths:
  - "**/*"
---

Why bad: Equivalent to a global rule but with the overhead of path matching. Remove the paths field entirely for global rules.

Rule Creation Checklist

  • Behavioral gap identified with concrete "does X, should do Y" statement
  • Rule type determined: global, path-scoped, or user-level
  • Contrastive examples written: Incorrect shows plausible agent mistake
  • Contrastive examples written: Correct shows minimal fix
  • Description states WHAT the rule enforces and WHY
  • Frontmatter includes title and impact
  • Token budget: 50-200 words (excluding code examples)
  • One topic per rule file
  • No overlap with CLAUDE.md or other rule files
  • Path scoping uses correct glob patterns (if applicable)
  • File placed in .claude/rules/ with descriptive hyphenated name

The Bottom Line

Effective rules show, they do not just tell. The Incorrect/Correct contrastive pattern eliminates ambiguity that prose descriptions leave open. When an agent can see both what to avoid and what to produce, compliance improves dramatically.

Every rule should answer three questions:

  1. What behavior does this enforce?
  2. Why does it matter?
  3. How does right differ from wrong? (shown through contrastive examples)

Claude Code Official Rules Guidlines

For larger projects, you can organize instructions into multiple files using the .claude/rules/ directory. This keeps instructions modular and easier for teams to maintain. Rules can also be scoped to specific file paths, so they only load into context when Claude works with matching files, reducing noise and saving context space.

<Note>
  Rules load into context every session or when matching files are opened. For task-specific instructions that don't need to be in context all the time, use [skills](/en/skills) instead, which only load when you invoke them or when Claude determines they're relevant to your prompt.
</Note>
Set up rules

Place markdown files in your project's .claude/rules/ directory. Each file should cover one topic, with a descriptive filename like testing.md or api-design.md. All .md files are discovered recursively, so you can organize rules into subdirectories like frontend/ or backend/:

text
your-project/
├── .claude/
│   ├── CLAUDE.md           # Main project instructions
│   └── rules/
│       ├── code-style.md   # Code style guidelines
│       ├── testing.md      # Testing conventions
│       └── security.md     # Security requirements

Rules without paths frontmatter are loaded at launch with the same priority as .claude/CLAUDE.md.

Path-specific rules

Rules can be scoped to specific files using YAML frontmatter with the paths field. These conditional rules only apply when Claude is working with files matching the specified patterns.

markdown
---
paths:
  - "src/api/**/*.ts"
---

# API Development Rules

- All API endpoints must include input validation
- Use the standard error response format
- Include OpenAPI documentation comments

Rules without a paths field are loaded unconditionally and apply to all files. Path-scoped rules trigger when Claude reads files matching the pattern, not on every tool use.

Use glob patterns in the paths field to match files by extension, directory, or any combination:

PatternMatches
**/*.tsAll TypeScript files in any directory
src/**/*All files under src/ directory
*.mdMarkdown files in the project root
src/components/*.tsxReact components in a specific directory

You can specify multiple patterns and use brace expansion to match multiple extensions in one pattern:

markdown
---
paths:
  - "src/**/*.{ts,tsx}"
  - "lib/**/*.ts"
  - "tests/**/*.test.ts"
---

The .claude/rules/ directory supports symlinks, so you can maintain a shared set of rules and link them into multiple projects. Symlinks are resolved and loaded normally, and circular symlinks are detected and handled gracefully.

This example links both a shared directory and an individual file:

bash
ln -s ~/shared-claude-rules .claude/rules/shared
ln -s ~/company-standards/security.md .claude/rules/security.md
User-level rules

Personal rules in ~/.claude/rules/ apply to every project on your machine. Use them for preferences that aren't project-specific:

text
~/.claude/rules/
├── preferences.md    # Your personal coding preferences
└── workflows.md      # Your preferred workflows

User-level rules are loaded before project rules, giving project rules higher priority.

© NeoLabHQ, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/create-rule of NeoLabHQ/context-engineering-kit.

Open the folder on GitHubat commit 23e2428

Compare with similar skills

Create Rule next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Rule compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Rule this skillNeoLabHQ/context-engineering-kit1.7k—~5.4kAutomated safety check: PassGPL-3.0
Using Agent Skillsaddyosmani/agent-skills103k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.7k2 repos~627Automated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k18 repos~2.7kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~12kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    103k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.7k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 18 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~12k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed

More from NeoLabHQ/context-engineering-kit

All 57 skills in this repo
  • Git Notes

    NeoLabHQ/context-engineering-kit

    A skill your agent uses when adding metadata to commits without changing history, tracking review status, test results, code quality annotations, or supplementing commit messages post-hoc - provides…

    1.7k GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Load PR Comments

    NeoLabHQ/context-engineering-kit

    A skill your agent uses to load open/unresolved PR review comments then aggregate them as tasks in .specs/comments/.md for parallel agents to fix.

    1.7k GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Prompt Engineering

    NeoLabHQ/context-engineering-kit

    A skill your agent uses when you writing commands, hooks, skills for Agent, or prompts for sub agents or any other LLM interaction, including optimizing prompts, improving LLM outputs, or designing…

    1.7k GitHub stars~4.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Multi Agent Patterns

    NeoLabHQ/context-engineering-kit

    Design multi-agent architectures for complex tasks. An agent skill from NeoLabHQ/context-engineering-kit.

    1.7k GitHub starsUsed in 6 repos~6k tokens
    Auto-check passed
  • Review PR

    NeoLabHQ/context-engineering-kit

    Review an existing GitHub pull request and post inline review comments on its diff.

    1.7k GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Subagent Driven Development

    NeoLabHQ/context-engineering-kit

    A skill your agent uses when executing implementation plans with independent tasks in the current session or facing 3+ independent issues that can be investigated without shared state or…

    1.7k GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Create Rule

What does Create Rule do?

A skill your agent uses when found gap or repetative issue, that produced by you or implemenataion agent. Create Rule is an agent skill from NeoLabHQ/context-engineering-kit. Use when found gap or repetative issue, that produced by you or implemenataion agent.

When should I use Create Rule?

Create Rule fits situations like: repetative issue; that produced by you; implemenataion agent.

How do I install Create Rule in Claude Code?

Run `npx skills add NeoLabHQ/context-engineering-kit --skill create-rule -a claude-code`. Or copy the skill folder (skills/create-rule in NeoLabHQ/context-engineering-kit) into .claude/skills/create-rule in your project. Claude Code loads it when a task matches its description.

How do I install Create Rule in Codex?

Run `npx skills add NeoLabHQ/context-engineering-kit --skill create-rule -a codex`. Or copy the skill folder (skills/create-rule in NeoLabHQ/context-engineering-kit) into .agents/skills/create-rule in your project. Codex loads it when a task matches its description.

Can I use Create Rule in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NeoLabHQ/context-engineering-kit --skill create-rule -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-rule, .gemini/skills/create-rule, .github/skills/create-rule and .opencode/skills/create-rule in your project.

What does Create Rule need to run?

SKILL.md names no scripts, command-line tools or credentials: Create Rule is instructions for the agent only.

Does Create Rule access the network?

SKILL.md names 1 domain. In commands or code: blog.codinghorror.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Create Rule safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Rule use?

Create Rule is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Rule use?

About 5.4k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Rule?

Skills that share tags, products or a category with Create Rule: Using Agent Skills (addyosmani/agent-skills, 103k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.7k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars) and Writing For Agents (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Rule?

NeoLabHQ (a GitHub organization) maintains it in NeoLabHQ/context-engineering-kit, which has 1,749 GitHub stars. The repository holds 57 skills in this directory. The repository was last updated on August 26, 2026.

Source: NeoLabHQ/context-engineering-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.