chat_edit CLAUDE.md

chat_edit CLAUDE.md is an instructions file for coding agents 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/tt-a1i/chat_edit/claude-md
Clone the repo
git clone --depth 1 https://github.com/tt-a1i/chat_edit

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.01756 $0.01756
Sonnet 5 $0.00702 $0.00702
Haiku 4.5 $0.00351 $0.00351

Measured 5d ago against content hash 36b9e3db6876, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 (21 stars, last pushed 6mo ago), licensed MIT. It adds 3,512 tokens to every session, about $0.0176 per session on Opus 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.