GitHave: Instructions file for Claude Code

CLAUDE.md

GitHave CLAUDE.md is an instructions file for Claude Code from kinglegendzzh/GitHave. It costs 819 tokens per session, scanned A, original, Apache-2.0.

Project instructions for GitHave, an AI-assisted code-repository tool built with Electron and Vue, with a Go backend. They describe its structure, commands, architecture boundaries, and development rules.

In plain words
What is it for?
Use them when installing, developing, linting, formatting, building, packaging, or changing GitHave's Electron, Vue, Go, documentation, and specification files.
Why use it?
They give a coding agent the project-specific context needed to modify the right files and follow the repository's conventions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is kinglegendzzh/GitHave's own configuration. It tells Claude Code how to work on GitHave 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 GitHave configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kinglegendzzh/GitHave. 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/kinglegendzzh/GitHave/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/kinglegendzzh/GitHave

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 GitHave CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kinglegendzzh/githave/claude-md/github.svg)](https://agentmods.dev/instructions/kinglegendzzh/githave/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kinglegendzzh/githave/claude-md"><img src="https://agentmods.dev/badge/instructions/kinglegendzzh/githave/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 GitHave CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kinglegendzzh/githave/claude-md"><img src="https://agentmods.dev/badge/instructions/kinglegendzzh/githave/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 819 This file is loaded in full into every session.
When invoked 819 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.00819 $0.00819
Opus 5 $0.00409 $0.00409
Sonnet 5 $0.00164 $0.00164
Haiku 4.5 $0.00082 $0.00082

Measured 9d ago against content hash 03a2d10739d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

GitHave 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 9d 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 · 57 lines

What it actually says

项目:GitHave

AI 驱动的代码仓库助手。技术栈:Electron 35 + Vue 3 + electron-vite + Vuetify 3 + Ant Design Vue。 后端通过 bin/ 下的 Go 二进制(fm、fm_http、bot、app)提供服务。

构建与开发命令

  • 安装:npm install
  • 开发(启动 Electron):npm run dev
  • Lint:npm run lint
  • 格式化:npm run format
  • 构建(不打包):npm run build
  • 打包 mac(当前架构):npm run build:mac
  • 打包 mac arm:npm run build:mac:arm
  • 打包 mac x64:npm run build:mac:x64
  • 打包 win:npm run build:win

完整打包流程见 DEVELOP.md

项目结构速览

  • src/main/:Electron 主进程入口
  • src/preload/:预加载脚本(contextBridge 暴露 API)
  • src/renderer/src/views/v1 旧版页面(维护态,不新增功能)
  • src/renderer/src/views3/v2 新版页面(当前主战场)
  • src/renderer/src/service/:渲染进程业务服务
  • src/renderer/src/store/:Vuex 状态管理
  • bin/:Go 后端二进制 + 配置 + 数据库(不要直接编辑,由独立仓库生成
  • docs/:项目内部文档(API 协议、UI 指南等)
  • specs/:业务需求规范(SDD 工作流,见 .claude/rules/sdd-workflow.md

模块化规则

详细规范以模块化方式组织在 .claude/rules/,会按路径自动加载:

关键工作流

  • IMPORTANT:修改 .vue / .js 后运行 npm run lint 验证,必要时 npm run format
  • IMPORTANT:UI 改动必须在 v2(views3/)下做;v1(views/)只接受 bug 修复
  • NEVER:不要修改 bin/ 下的二进制和数据库文件(*.db*.exefmfm_http 等)
  • NEVER:不要提交 .env*、密钥、证书;安全规则见 .claude/rules/security.md
  • 业务功能开发使用 SDD 三层文档:specs/<编号>-<名称>/{spec,plan,tasks}.md

压缩指令

When compacting, preserve:

  • 当前任务正在修改的文件完整列表
  • 进行中的迁移阶段(v1 → v2 哪些页面已迁移、哪些待迁移)
  • 用户给出的具体验证命令和测试结果
  • 未完成的 TODO 列表
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. 9d ago First seen · 57 lines · 819 tokens per session scan A 03a2d10739d9

Subscribe to this mod's changes

GitHave CLAUDE.md is an instructions file published in the GitHub repository kinglegendzzh/GitHave (12 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 819 tokens to every session, about $0.0041 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.

Related

Other instructions, from other repositories

vibe-coding-prompt-template backend.instructions.md

Instructions for KhazP/vibe-coding-prompt-template: Read AGENTS.md, agentdocs/techstack.md, and agentdocs/codepatterns.md.

KhazP/vibe-coding-prompt-template · 139 tokens

vibe-coding-prompt-template tests.instructions.md

Instructions for KhazP/vibe-coding-prompt-template, a project described as: Templates and workflow for generating PRDs, Tech Designs, and MVP and more using LLMs for AI IDEs.

KhazP/vibe-coding-prompt-template · 116 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens