---
title: "`core` rules"
description: "Whenever a new protocol message is added to the `protocol/` directory, check the following:"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/rules-1
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:46:17.800Z
license: CC-BY-4.0
attribution: "`core` rules — Claudary (https://claudary.paisolsolutions.com/skills/rules-1)"
---

# `core` rules
Whenever a new protocol message is added to the `protocol/` directory, check the following:

## Overview

# `core` rules

Whenever a new protocol message is added to the `protocol/` directory, check the following:

- It's type is defined correctly
- If it is a message from webview to core or vice versa:
  - It has been added to `core/protocol/passThrough.ts`
  - It has been added to `extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt`
- It is implemented in either `core/core.ts` (for messages to the core), in a `useWebviewListener` (for messages to the gui), or in `VsCodeMessenger.ts` for VS Code or `IdeProtocolClient.kt` for JetBriains (for messages to the IDE).
- It does not duplicate functionality from another message type that already exists.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/rules-1) · https://claudary.paisolsolutions.com
