ali-mcp: Instructions file for Claude Code

CLAUDE.md

ali-mcp CLAUDE.md is an instructions file for Claude Code from Tsinglung-Tseng/ali-mcp. It costs 703 tokens per session, scanned A, original, MIT.

A project-guidelines file for ali-mcp, a Go project that uses browser automation and connects to Alibaba-related services. It records local development rules, security boundaries, configuration requirements, and testing practices.

In plain words
What is it for?
Use it when developing or reviewing ali-mcp code, especially browser actions, cookies, environment configuration, error handling, formatting, and Go tests.
Why use it?
It prevents unsafe defaults, leaked credentials, cross-site login-state problems, endless retries, and inconsistent Go changes.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to Tsinglung-Tseng/ali-mcp. 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/Tsinglung-Tseng/ali-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Tsinglung-Tseng/ali-mcp

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 ali-mcp CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tsinglung-tseng/ali-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/tsinglung-tseng/ali-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 703 This file is loaded in full into every session.
When invoked 703 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.00703 $0.00703
Opus 5 $0.00351 $0.00351
Sonnet 5 $0.00141 $0.00141
Haiku 4.5 $0.00070 $0.00070

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

Security

Grade A, and why

ali-mcp 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 · 37 lines

What it actually says

ali-mcp Project Guidelines

本地开发规范

  • 格式化:每次修改完 Go 源码后自动 gofmt -w / goimports -w
  • 测试/构建中间产物:用完即删,不留残渣。
  • 分支开发:所有 feature 变更走分支;未经明确同意不得推送远程。
  • Review 流程:本地 review → PR review → 合并。
  • 代码风格:不过度设计,保持简洁易读;中文注释简洁明了,专业名词可用英文。

项目专属原则(来自参考项目 xiaohongshu-mcp)

  • 优先 go-rod,慎用 JS 注入:PR 中若出现大量 JS 注入,检查是否可用 go-rod 原生 API 替代;不能替代再注入,并注释理由。
  • 登录态按域隔离:淘宝/闲鱼账号共用阿里系,但 cookie 按域分文件存放(cookies/taobao.jsoncookies/xianyu.json),避免 scope 污染。
  • 电商风控:默认提供 --headless=false 选项;headless 模式下务必启用 go-rod/stealth
  • 反模式警告:所有"检查不到元素就重试 N 次"的逻辑,必须带超时和 stop 信号,不允许死循环。

配置读取铁律(来自 user global rules)

  • 禁止硬编码:API Key / Token、服务地址端口(含内网 IP)、用户路径(/Users/<name>/...)、数据库连接串一律从 env 或 config 读取,缺失即 fail loud,不静默降级。
  • No fallback on config & field reads:读取 env / config / dict / struct 字段时,禁止 or default / .get(k, default) / try/except 静默兜底。字段缺失直接 panic,让 bug 立即暴露,不允许下游才爆。
  • 例外:用户输入校验、明确文档化的可选字段、外部系统兼容层 —— 就地注释说明为何可容忍缺失。

Go 工具链

  • 模块代理GOPROXY=https://goproxy.cn,direct(国内网络,走七牛镜像)
  • 依赖:只添加真实使用的依赖;定期 go mod tidy
  • 测试:关键 action 写 *_test.go,跑 go test ./... 需 pass。

文档结构(dev-framework 管理)

  • docs/project/dev-plan.md — 开发计划(活文档)
  • docs/project/CHANGELOG.md — 变更时间线
  • docs/modules/<module>.md — 模块活文档(真相来源)
  • docs/decisions/NNN-<desc>.md — 架构决策记录(只增不改)
  • docs/debug/YYYYMMDD-<desc>.md — 调试记录(一次性)
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 · 37 lines · 703 tokens per session scan A b187495a1c68

Subscribe to this mod's changes

ali-mcp CLAUDE.md is an instructions file published in the GitHub repository Tsinglung-Tseng/ali-mcp (4 stars, last pushed 4mo ago), licensed MIT. It adds 703 tokens to every session, about $0.0035 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-31.

Related

Other instructions, from other repositories

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

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens