instinct-export

instinct-export is a command for coding agents from xu-xiang/everything-claude-code-zh. It costs 12 tokens per session (534 once invoked), scanned A, original, MIT.

A command for exporting learned coding instincts, meaning reusable rules about how work should be handled, from a continuous-learning system. It saves them as a shareable JSON file.

In plain words
What is it for?
Use it to export all instincts or filter them by confidence or category, choose an output path, and include details such as confidence, usage counts, source, and export metadata.
Why use it?
It makes useful project or personal working rules easier to back up, filter, and share with other developers or projects.

Command

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,927 stars · on GitHub

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 commands/xu-xiang/everything-claude-code-zh/instinct-export
Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

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 instinct-export

README.md
[![agentmods](https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/instinct-export.svg)](https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/instinct-export)
Your own site
<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/instinct-export"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/instinct-export.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 534 The whole file, excluding the scripts and references it only reads on demand.
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 $0.00012 $0.00534
Opus 5 $0.00006 $0.00267
Sonnet 5 $0.00002 $0.00107
Haiku 4.5 $0.00001 $0.00053

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

Security

Grade A, and why

instinct-export 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.

.opencode/commands/instinct-export.md · 94 lines

What it actually says

直觉导出命令 (Instinct Export Command)

导出直觉以便与他人共享:$ARGUMENTS

任务 (Your Task)

从 continuous-learning-v2 系统中导出直觉(Instincts)。

导出选项 (Export Options)

导出全部 (Export All)

/instinct-export

仅导出高置信度内容 (Export High Confidence Only)

/instinct-export --min-confidence 0.8

按类别导出 (Export by Category)

/instinct-export --category coding

导出到特定路径 (Export to Specific Path)

/instinct-export --output ./my-instincts.json

导出格式 (Export Format)

{
  "instincts": [
    {
      "id": "instinct-123",
      "trigger": "[情境描述]",
      "action": "[推荐操作]",
      "confidence": 0.85,
      "category": "coding",
      "applications": 10,
      "successes": 9,
      "source": "session-observation"
    }
  ],
  "metadata": {
    "version": "1.0",
    "exported": "2025-01-15T10:00:00Z",
    "author": "username",
    "total": 25,
    "filter": "confidence >= 0.8"
  }
}

导出报告 (Export Report)

导出摘要 (Export Summary)
==============
输出:./instincts-export.json
直觉总数:X
已过滤:Y
已导出:Z

类别 (Categories):
- coding: N
- testing: N
- security: N
- git: N

顶级直觉(按置信度排序):
1. [触发器] (0.XX)
2. [触发器] (0.XX)
3. [触发器] (0.XX)

共享 (Sharing)

导出后:

  • 直接分享 JSON 文件
  • 上传到团队仓库
  • 发布到直觉注册表 (Instinct Registry)

提示 (TIP):导出高置信度(>0.8)的直觉(Instincts)以获得更高质量的分享内容。

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 · 94 lines · 12 tokens per session scan A 9cb219a9afcc

Subscribe to this mod's changes

instinct-export is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,927 stars, last pushed 6mo ago), licensed MIT. It adds 12 tokens to every session and 534 once invoked, about $0.0001 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.