instinct-import

An import command for bringing reusable coding habits, called instincts, from a file, URL, teammate, or skill creator into your local setup.

In plain words
What is it for?
Use it to import team rules, community collections, repository analyses, or previous backups, with options to preview or filter imports.
Why use it?
It avoids manually copying shared practices and checks imported habits for duplicates and conflicts.

Command

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/luohaothu/everything-codex/instinct-import
Clone the repo
git clone --depth 1 https://github.com/Luohaothu/everything-codex
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,004 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.00018 $0.01004
Opus 5 $0.00009 $0.00502
Sonnet 5 $0.00004 $0.00201
Haiku 4.5 $0.00002 $0.00100

Measured 2d ago against content hash 2a21a7f0b912, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

docs/zh-CN/commands/instinct-import.md · 151 lines

How it starts

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

本能导入命令

实现

使用插件根路径运行本能 CLI:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" import <file-or-url> [--dry-run] [--force] [--min-confidence 0.7]

或者,如果 CLAUDE_PLUGIN_ROOT 未设置(手动安装):

python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py import <file-or-url>

从以下来源导入本能:

  • 队友的导出
  • 技能创建器(仓库分析)
  • 社区集合
  • 之前的机器备份

用法

/instinct-import team-instincts.yaml
/instinct-import https://github.com/org/repo/instincts.yaml
/instinct-import --from-skill-creator acme/webapp

执行步骤

  1. 获取本能文件(本地路径或 URL)
  2. 解析并验证格式
  3. 检查与现有本能的重复项
  4. 合并或添加新本能
  5. 保存到 ~/.claude/homunculus/instincts/inherited/

导入过程

📥 Importing instincts from: team-instincts.yaml
================================================

Found 12 instincts to import.

Analyzing conflicts...

## New Instincts (8)
These will be added:
  ✓ use-zod-validation (confidence: 0.7)
  ✓ prefer-named-exports (confidence: 0.65)
  ✓ test-async-functions (confidence: 0.8)
  ...

## Duplicate Instincts (3)
Already have similar instincts:
  ⚠️ prefer-functional-style
     Local: 0.8 confidence, 12 observations
     Import: 0.7 confidence
     → Keep local (higher confidence)

  ⚠️ test-first-workflow
     Local: 0.75 confidence
     Import: 0.9 confidence
     → Update to import (higher confidence)

## Conflicting Instincts (1)
These contradict local instincts:
  ❌ use-classes-for-services
     Conflicts with: avoid-classes
     → Skip (requires manual resolution)

---
Import 8 new, update 1, skip 3?

合并策略

针对重复项

当导入一个与现有本能匹配的本能时:

  • 置信度高的胜出:保留置信度更高的那个
  • 合并证据:合并观察计数
  • 更新时间戳:标记为最近已验证

针对冲突

当导入一个与现有本能相矛盾的本能时:

  • 默认跳过:不导入冲突的本能
  • 标记待审:将两者都标记为需要注意
  • 手动解决:由用户决定保留哪个

来源追踪

导入的本能被标记为:

source: "inherited"
imported_from: "team-instincts.yaml"
imported_at: "2025-01-22T10:30:00Z"
original_source: "session-observation"  # or "repo-analysis"

技能创建器集成

从技能创建器导入时:

/instinct-import --from-skill-creator acme/webapp

Read the full file on GitHub · 151 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. 2d ago First seen · 151 lines · 18 tokens per session scan A 2a21a7f0b912

Subscribe to this mod's changes

instinct-import is a command published in the GitHub repository Luohaothu/everything-codex (24 stars, last pushed 21d ago), licensed MIT. It adds 18 tokens to every session and 1,004 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.