DEV Community

Cover image for Make Claude Code Remember Your Standards: CLAUDE.md, Skills, and MCP
BG Kim
BG Kim

Posted on AI-assisted

Make Claude Code Remember Your Standards: CLAUDE.md, Skills, and MCP

AI fills in what you don't specify

In lesson 3, I made Omok—Gomoku (five in a row)—with a single sentence: “Make a web page for Omok.” But the result also included a computer player that I hadn’t asked for. That’s what happens when AI fills in the details you leave out. But will it remember a standard you asked it to follow in the next conversation?

The goal of this article is to help Claude Code remember my standards instead of forgetting them every time. I’ll look at how to record standards in CLAUDE.md, organize repeatable work as Skills, and connect tools with MCP.

Omok game screen from lesson 3

When you don’t like what AI creates, you can ask it to make changes. But if you explain your preferences only in chat, you may have to repeat them in a new conversation. When I use AI for development, I check not only whether the generated code works, but also whether it’s written the way I want. CLAUDE.md is a way to save the standards I discover along the way in the project.

CLAUDE.md is a project guide

CLAUDE.md is a file of instructions that Claude Code refers to while working on a project. Think of it as a work guide that a new team member reads before getting started. When you put it in a project folder, Claude Code can refer to the project’s standards in new conversations.

You don’t have to write everything from scratch in an empty file. Run Claude Code from the project folder and enter /init. It will look through the project files and create a draft CLAUDE.md.

Entering /init in Claude Code

Draft CLAUDE.md

The draft isn’t a finished answer. Read through it and edit anything that doesn’t fit the project or any standards that are missing. For this example, I’ll add a standard that says the Omok game’s on-screen text should be in Korean. You can ask Claude Code, “Add a rule to CLAUDE.md that on-screen text must be written in Korean,” or edit the file yourself.

In the video, I asked Claude Code in Korean to add the rule, but the sentence it wrote in CLAUDE.md was in English. Here it is exactly as written:

**Rule:** Write all on-screen text in Korean. That covers status messages, buttons, select options, the title, and any text drawn on the canvas. This applies to existing text you change and to any new text you add.
Enter fullscreen mode Exit fullscreen mode

CLAUDE.md with the Korean-language rule

Don’t assume the sentence Claude wrote is right for your project. Read it and check that it expresses the standard you want. After adding the rule, check the Omok game again. Writing down a rule doesn’t guarantee that the result will follow it. If you’re still not happy, make the rule more specific or ask Claude Code again.

Omok game after applying the rule

Explain why a rule matters, and put it in the right place

When you write down a standard, you can include the reason behind it as well as the desired result. For example, “Use commas and the won symbol in prices” describes a formatting rule. “Use commas and the won symbol in prices so customers see them in the same format as the menu” explains why. That reason gives Claude Code a clue to consider when applying the rule in other situations.

You don’t have to keep all your CLAUDE.md files in one place, either. You can put shared standards in the top-level folder and task-specific standards in the relevant folders. In my Union project, I split CLAUDE.md across the top-level, server, web, and Android folders. This separates standards shared by the whole project from those specific to each area.

CLAUDE.md files in the Union top-level, server, web, and Android folders

CLAUDE.md isn’t better just because it’s longer. Anthropic recommends keeping one CLAUDE.md under about 200 lines. Keeping instructions concise matters because they’re used as context while AI works, and longer instructions also affect token usage. CLAUDE.md doesn’t force AI to follow every rule, either. Important details should still be checked using another AI review or a validation program.

Three ways to find your standards

It’s difficult to write perfect rules from the start. One way to find them is to review actual results, notice what’s different, and turn those observations into standards.

Who Method Example from the video
Someone with the expertise to judge the result Review the AI’s output, explain what differs, and record any standards that should be followed consistently. Check code conventions, how functions are written, and naming standards.
Someone who can create the desired result themselves Compare your own work with the AI’s result and note the differences. Compare a video first made by AI with one edited by hand.
Someone who lacks the expertise or ability to create the result themselves Check the result in practice and fix anything you don’t like. Look for standards that could apply to future work, too. Make changes to the Omok screen and consider which standards will matter in the next program.

Comparing an AI-made video with a manually edited video

With the second method, you can ask AI to analyze the differences between two results. But you still need to check whether its analysis makes sense. The same goes for the third method. It’s important to distinguish a change needed only for this game, like the size of the Omok board, from a standard that could apply to many screens, like writing on-screen text in Korean.

Rules aren’t enough

A codebase is the existing code and structure that make up a project. I think a good codebase matters more than rules in CLAUDE.md. Rules explain how to work, while the existing code shows how the project organizes features and handles data. Good existing code can be a useful reference when adding a feature. On the other hand, if the code is poor quality, it can carry problematic patterns forward. It’s important not only to write down rules, but also to give AI a good development foundation to refer to and build on.

Organize repeatable work with Skills

A Skill is a guide that describes the steps to follow for a particular task. You can create one as a SKILL.md file inside a folder. Put standards that are always relevant to the project in CLAUDE.md, and put the steps and methods for a specific task in a Skill.

Category CLAUDE.md Skill
Purpose Standards to refer to throughout project work Steps to refer to when doing a specific task
Example Write on-screen text in Korean Steps for checking the Omok feature after making changes
Use A guide for project work Call it with / and the Skill name, or let Claude Code call it when it fits the description

SKILL.md and a list of Skills

You can turn procedures you used to paste into chat repeatedly into Skills. I call the video production Skill I use with /make-video. It handles a workflow that includes checking a script’s spelling, generating audio files, rendering video, creating and translating subtitles, and making a thumbnail.

An AI agent is a system that assesses situations and takes action to achieve a goal. For example, it could check whether subtitles have gone off-screen in a rendered video, fix their position, and render the video again. But for AI to check the actual screen, it needs the right tools.

Connect a browser with MCP

MCP is a standard protocol for connecting Claude Code to external tools and data. A Skill explains the steps for a task, while MCP connects the tools Claude Code needs to carry it out. Even if you describe the Omok checking procedure in a Skill, Claude Code still needs a browser tool to open the page and inspect it.

In the video, I connected a browser MCP, opened the Omok game, and placed stones to check it.

Claude Code placing a stone in Omok using a browser MCP

The Skill says what to check, and MCP provides the tool to check the actual screen. The fact that Claude Code says it checked something doesn’t mean verification is complete. A person still needs to decide whether the result is what they expected.

What to check when using plugins and APIs

A plugin is a bundle of features such as Skills, commands, and MCP connections. You can search for and install plugins in Claude Code by entering /plugin. A script is a command or program written to perform a set task on a computer. Skills or plugins created by other people may contain executable scripts as well as instructions, so check what they do and what they access instead of installing them based on their names alone.

An API is an interface that lets one program use the features or data of another. MCP is a way to connect Claude Code to external tools while it works. For example, you can use a browser MCP to check Omok in a browser, or use an external service’s API to add mapping or payment features to a program. MCP and APIs aren’t opposites; a tool connected through MCP may use an API internally.

Treat API keys like passwords and protect them. Don’t put them directly in code or CLAUDE.md.

Summary and something to try today

More important than memorizing the names of today’s tools is checking AI’s results, finding your own standards, and recording and improving them in CLAUDE.md. A good codebase matters, too.

Try this today:

  1. Create a CLAUDE.md file in the Omok project from lesson 3.
  2. Pick one thing you weren’t happy with and turn it into a standard to follow next time.
  3. Ask Claude Code to try again, then check whether the actual result reflects that standard.

What standard would you like to record first in your Omok project?

▶ Turn on English subtitles (CC) to watch

This article summarizes my Korean YouTube video (English subtitles available) and was translated with AI. #ABotWroteThis

Top comments (0)