instinct-import

instinct-import is a command for Claude Code, OpenCode from xu-xiang/everything-claude-code-zh. It costs 13 tokens per session (542 once invoked), scanned A, original, MIT.

A command for importing instincts, meaning small learned rules about how coding work should be handled, into a continuous-learning system. It accepts instincts from a file, URL, or teammate source.

In plain words
What is it for?
Use it to validate an instincts JSON file, import new rules, reduce their initial confidence, resolve duplicates, and show an import summary.
Why use it?
It avoids adding each learned rule manually and skips duplicates while combining imported rules with the local collection.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: agent in frontmatter.

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,929 stars · on GitHub · oneskill.one

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

Made for: Claude Code, OpenCode.

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-import

README.md
[![agentmods](https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/instinct-import.svg)](https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/instinct-import)
Your own site
<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/instinct-import"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/instinct-import.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 542 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.1 $0.00013 $0.00542
Opus 5 $0.00006 $0.00271
Sonnet 5 $0.00003 $0.00108
Haiku 4.5 $0.00001 $0.00054

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

Security

Grade A, and why

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

.opencode/commands/instinct-import.md · 89 lines

What it actually says

直觉导入命令(Instinct Import Command)

从文件或 URL 导入直觉(Instincts):$ARGUMENTS

你的任务(Your Task)

将直觉导入到持续学习系统(continuous-learning-v2)中。

导入源(Import Sources)

文件导入

/instinct-import path/to/instincts.json

URL 导入

/instinct-import https://example.com/instincts.json

团队共享导入

/instinct-import @teammate/instincts

导入格式(Import Format)

预期的 JSON 结构:

{
  "instincts": [
    {
      "trigger": "[场景描述]",
      "action": "[建议的操作]",
      "confidence": 0.7,
      "category": "coding",
      "source": "imported"
    }
  ],
  "metadata": {
    "version": "1.0",
    "exported": "2025-01-15T10:00:00Z",
    "author": "username"
  }
}

导入流程(Import Process)

  1. 校验格式(Validate format) - 检查 JSON 结构
  2. 去重(Deduplicate) - 跳过已存在的直觉
  3. 调整置信度(Adjust confidence) - 降低导入直觉的置信度 (×0.8)
  4. 合并(Merge) - 添加到本地直觉库
  5. 报告(Report) - 显示导入摘要

导入报告(Import Report)

导入摘要(Import Summary)
==============
来源: [路径或 URL]
文件内总数: X
已导入: Y
已跳过 (重复): Z
错误: W

已导入的直觉:
- [trigger] (置信度: 0.XX)
- [trigger] (置信度: 0.XX)
...

冲突解决(Conflict Resolution)

导入重复项时:

  • 保留置信度较高的版本
  • 合并应用计数(Application counts)
  • 更新时间戳

提示(TIP): 导入完成后,使用 /instinct-status 查看已导入的直觉。

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 · 89 lines · 13 tokens per session scan A 84a3f45d30f7

Subscribe to this mod's changes

instinct-import is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,929 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 542 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.