jina-cli: Instructions file for Claude Code

CLAUDE.md

jina-cli CLAUDE.md is an instructions file for Claude Code from geekjourneyx/jina-cli. It costs 1,931 tokens per session, scanned A, original, MIT.

Project instructions for jina-cli, a Go command-line program that uses Jina AI Reader to read and search web pages and return their content as Markdown or JSON.

In plain words
What is it for?
Use them when changing jina-cli commands, its API client, configuration, output formatting, or release and continuous-integration workflows.
Why use it?
They provide the required checks and project conventions before code is submitted, including compilation, tests, static analysis, coverage, and formatting.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 jina-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/geekjourneyx/jina-cli/claude-md.svg)](https://agentmods.dev/instructions/geekjourneyx/jina-cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/geekjourneyx/jina-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/geekjourneyx/jina-cli/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,931 This file is loaded in full into every session.
When invoked 1,931 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.01931 $0.01931
Opus 5 $0.00966 $0.00966
Sonnet 5 $0.00386 $0.00386
Haiku 4.5 $0.00193 $0.00193

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

Security

Grade A, and why

jina-cli 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 6d 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 · 310 lines

How it starts

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

jina-cli - 项目记忆

项目概述

jina-cli 是一个轻量级的 CLI 工具,封装 Jina AI Reader API,为 AI Agent 提供网页内容读取和搜索能力。

项目结构

jina-cli/
├── cli/                    # CLI 源码
│   ├── main.go             # 程序入口
│   ├── read.go             # read 命令
│   ├── search.go           # search 命令
│   ├── config.go           # 配置管理命令
│   ├── pkg/                # 内部包
│   │   ├── api/            # API 客户端
│   │   ├── config/         # 配置文件管理
│   │   └── output/         # 输出格式化(JSON/Markdown)
│   └── scripts/            # 安装脚本
├── .github/
│   └── workflows/          # CI/CD 工作流
│       ├── ci.yml          # 持续集成
│       └── release.yml     # 发布流程
├── CLAUDE.md              # 本文件
└── README.md              # 项目说明(双语)

提交前工作流程

每次代码提交前,必须按顺序执行以下步骤:

1. 编译检查

cd /root/jina-cli
go build -o jina ./cli

确保编译无错误。

2. 代码检查

go test ./...
go vet ./...

确保测试通过,无 vet 警告。

3. 代码覆盖率检查

go test ./... -cover

目标覆盖率:

  • 整体: 70%+
  • 核心包 (api, config, output): 75%+

4. 代码格式化

go fmt ./...
goimports -w ./cli

确保代码格式统一。

5. golangci-lint 检查(如果可用)

golangci-lint run

修复所有 lint 问题。

6. 功能测试

手动测试核心功能:

# 测试 read 命令
./jina read --url "https://example.com"
./jina read -u "https://example.com" --output markdown

# 测试 search 命令
./jina search --query "test"

# 测试 config 命令
./jina config list
./jina config set timeout 60
./jina config get timeout

7. 版本号一致性检查

确保安装脚本版本与当前发布版本一致:

# 检查安装脚本版本
grep "VERSION=" scripts/install.sh

# 确保与 CHANGELOG.md 中最新版本一致

重要: 发版前必须更新 scripts/install.sh 中的 VERSION 变量。

8. README.md 检查

检查 README.md 符合规范:

  • 中英文双语完整
  • 示例代码可运行
  • 安装说明清晰
  • 配置项表格完整
  • 项目结构文档与实际目录结构一致

9. Git Commit 规范

提交信息格式:

<type>(<scope>): <subject>

<body>

<footer>

Type:

  • feat: 新功能
  • fix: 修复 bug
  • docs: 文档变更
  • style: 代码格式(不影响功能)
  • refactor: 重构
  • test: 测试相关
  • chore: 构建过程或辅助工具变更

Read the full file on GitHub · 310 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. 6d ago First seen · 310 lines · 1,931 tokens per session scan A e05d67ebe532

Subscribe to this mod's changes

jina-cli CLAUDE.md is an instructions file published in the GitHub repository geekjourneyx/jina-cli (310 stars, last pushed 6mo ago), licensed MIT. It adds 1,931 tokens to every session, about $0.0097 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

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,182 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

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens