chat_edit: Instructions file for Claude Code

CLAUDE.md

chat_edit CLAUDE.md is an instructions file for Claude Code from tt-a1i/chat_edit. It costs 3,512 tokens per session, scanned A, original, MIT.

A repository instruction file for a Vue, TypeScript, and Vite application with chat and AI text-editing screens. It also records the project's language preference, background, tools, and development commands.

In plain words
What is it for?
Use it when changing the chat interface, rich-text editor, AI features, Vue code, documentation, tests, builds, or code reviews.
Why use it?
It gives coding agents the project context and tells them which language and supporting skills to use for different tasks.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is tt-a1i/chat_edit's own configuration. It tells Claude Code how to work on chat_edit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything chat_edit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tt-a1i/chat_edit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tt-a1i/chat_edit/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/tt-a1i/chat_edit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chat_edit CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tt-a1i/chat_edit/claude-md/github.svg)](https://agentmods.dev/instructions/tt-a1i/chat_edit/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tt-a1i/chat_edit/claude-md"><img src="https://agentmods.dev/badge/instructions/tt-a1i/chat_edit/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chat_edit CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tt-a1i/chat_edit/claude-md"><img src="https://agentmods.dev/badge/instructions/tt-a1i/chat_edit/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,512 This file is loaded in full into every session.
When invoked 3,512 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03512 $0.03512
Opus 5.5 $0.01405 $0.01405
Sonnet 5.5 $0.00702 $0.00702
Haiku 4.5 $0.00351 $0.00351

Measured 2mo ago against content hash 36b9e3db6876, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chat_edit CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 417 lines

How it starts

The opening of the file, as written. The whole thing — 417 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Language Preference

请使用中文回复所有对话和代码注释。 All responses, explanations, and code comments should be in Chinese (Simplified).

Project Background

当前状态: 这是一个处于持续开发阶段的项目,代码库正在进行重构和优化。

Skill 使用规范

  • 页面开发或 UI 修改时:使用 frontend-design skill
  • 代码审查时:使用 code-review-excellence skill

Project Overview

A dual-mode AI application combining:

  • Chat Scene: Traditional conversational AI interface with streaming responses
  • AI Editing Scene: Rich text editor (Quill) with AI-powered text manipulation features

Built with Vue 3 + TypeScript + Vite, using Moonshot AI API for LLM capabilities.

Development Commands

# Development server
bun dev

# Build (includes TypeScript type checking)
bun build

# Preview production build
bun preview

# Linting
bun lint
bun lint:fix

# Type checking
bun typecheck

# Testing
bun test              # Unit tests (watch mode)
bun test:run          # Unit tests (single run)
bun test:coverage     # Unit tests with coverage
bun test:ui           # Vitest UI
bun test:e2e          # E2E tests
bun test:e2e:ui       # Playwright UI
bun test:all          # Run all tests

Package Manager: This project uses bun (version 1.2.14 specified in package.json).

Testing: 详见 TESTING.md 查看完整测试指南。

Architecture

Scene Management

The app operates in two distinct scenes controlled by services/appConfig.ts:

SCENES.CHAT // Traditional chat interface
SCENES.AI_EDITING // Rich text editor with AI features

Scene switching happens through switchScene() which updates currentScene.value and manages panel visibility.

Data Flow Architecture

Chat Scene Flow:

  1. User input → addUserMessage() in services/chat.ts
  2. Empty AI message created with isStreaming: true
  3. useAI.generate() → useApi.generateChat() → SSE stream processing
  4. Incremental updates via handleAiPartialResponse()
  5. Completion via handleAiCompletion() sets isStreaming: false

Read the full file on GitHub · 417 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 417 lines · 3,512 tokens per session scan A 36b9e3db6876

Subscribe to this mod's changes

chat_edit CLAUDE.md is an instructions file published in the GitHub repository tt-a1i/chat_edit (23 stars, last pushed 8mo ago), licensed MIT. It adds 3,512 tokens to every session, about $0.0140 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

chat_edit CLAUDE.md compared with instructions from other repositories

chat_edit CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chat_edit CLAUDE.mdtt-a1i/chat_editInstructions file238mo agoMITA3,512Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode