Immune Systemのロゴ

Immune System

コミュニティ
proxysoul
immune-system

Build and run an immune system that proves a product works through its real front doors (CLI, terminal UI, desktop app, web, API) on every platform it ships to, finds what is missing as well as what is broken, and turns every confirmed bug into a permanent check. At scale it runs a bug machine, hundreds of agents that hunt, reproduce, review, fix and guard bugs through a state machine of plain files. Use when a project needs testing beyond unit tests, before a release, after a burst of agent-written code, when a bug keeps coming back, or when the user asks for specialized immune cells or a bug hunt.

概要

公開者proxysoul
リポジトリSoulStack
スキル名immune-system
スター
29
フォーク
5
同梱ファイル
67
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 67個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    proxysoulがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Immune System」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/proxysoul/SoulStack/tree/main/skills/immune-system
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/proxysoul/SoulStack.git /tmp/SoulStack
mkdir -p .claude/skills
cp -r /tmp/SoulStack/skills/immune-system .claude/skills/immune-system
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでImmune Systemを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にImmune Systemを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Immune Systemは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Immune system

A test system modelled on an immune system: patrols that recognise known bugs, scouts that find what is missing, a check that kills false alarms, and a memory that makes every confirmed bug impossible to miss again. The names are the metaphor; each agent below also says its job in plain words.

Unit tests prove that functions behave. They do not prove that the product works: that the thing a user installs starts on their machine, draws its screen, edits their file without breaking it, survives a flaky network, and comes back tomorrow with their data intact. This skill builds the system that proves that, and the roster of immune cells that runs it.

Its job is to find defects, not to report green.

An immune system is grown for one project, the way a project's EMPRYO.md is: an agent studies the product and builds the checks, the runner and the cells that fit it. Nothing here is copied in as is. The cells SoulStack installs are stem cells: general versions that know the method and turn into this project's cells the first time they run here.

Growing it for a project

  1. Dive deep into the product first. Read the code map, the docs, the git history, the issues and memory; run the product yourself through every front door. Write down:
    • its front doors: CLI, headless/JSON mode, terminal UI, desktop app, web app, API, installer;
    • the platforms it ships to, and which of them you can reach from here (this machine, containers, a VM, a remote machine over SSH);
    • the one thing worth faking: usually the paid or non-deterministic dependency (an AI model, a payment provider, a third-party API). Fake that at the network boundary and nothing else;
    • the load-bearing capabilities: the 10 to 20 things whose loss is an outage, each with one sentence saying what breaks for the user.
  2. Research the arsenal, as of today. For this product's stack and platforms, look up the current (this month's) tools for driving and seeing it: browser and Electron drivers, pty and terminal emulators, API recorders, network fakes, profilers, log and crash collectors, accessibility and visual checkers, container and VM runners. Search with the month and year in the query, read changelogs, and prefer the newest stable tool. Include security: dependency and malicious-package scanners, secret scanners, signature and provenance checks, for the natural-killer cell. Pick what gives each T cell eyes and hands on the real product, write the choices and why in immune/README.md (Arsenal), and install them.
  3. Scaffold immune/ following reference/design.md: a runner, one driver per front door, one target per platform, checks grouped by family, goldens, a speed ledger kept outside the repo, findings, and exploration notes.
  4. Write the first checks with reference/checks.md: one smoke check per front door per platform (it starts, it answers, it exits the way it should), then one check per load-bearing capability.
  5. Wire one entry point. immune is the front door of the immune system: every run goes through it (immune full, immune:smoke seconds, immune:list, immune:guard the coverage ratchet, immune:report the dashboard). Name them the way the project tool looks for scripts in Empryo.
  6. Build the immune app. The immune system has a face: a small local web app in immune/app/ that shows the developer everything and lets them run it. Start from this skill's app/ (a dependency-free Node server plus index.html, app.css, app.js, theme.css) and make it the project's own:
    • Design it with the project's design system. Replace theme.css with the project's tokens, fonts and themes (if it has none, build one first with the ensoul skill). It must look like the product it guards, in every theme and mode, and be checked with screenshots like any UI.
    • Views: Health (verdict, counts, the family × platform × front door grid, red, coverage holes, a strip of recent runs), Runs (every kept run, expandable), Cells (grown or stem, what each does), Findings, Explorations, and Machine when the project runs the bug machine (board, records, one record's life, triage with keys, cycles). Add views the project needs (speed trends, screenshots, security).
    • Run from the app: buttons for the commands in immune/app/immune.config.json, with the log streamed live; the page refreshes itself when results change.
    • Data: every run writes immune/results/<time>.json and latest.json; the app reads only these and the cells, findings and explorations folders.
    • Scripts: immune:app starts it (node immune/app/server.mjs immune/app/immune.config.json, port 4177), immune:report exports a static snapshot (--export <dir>) that any static host can serve, for example the project's website.
    • Use the project's script runner: package.json scripts, a Makefile, justfile, Taskfile, pyproject scripts or cargo aliases, whichever the project already uses.
  7. Write immune/README.md for the next agent: how to run, what each platform can honestly prove, and the traps you already paid for (reference/traps.md is the starting list).
  8. Grow the cells. Copy each cell from SoulStack's agents/ into the project (.agents/agents/ for Empryo, .claude/agents/ for Claude Code; a project copy wins over the global one) and fill in its ## This project section: the real commands, platforms, front doors, fake, load-bearing capabilities and traps. Delete what does not apply. A cell that still has [brackets] is not grown yet.
  9. Append the immune system section to the project rules file (EMPRYO.md, CLAUDE.md or AGENTS.md), so every future agent keeps it alive:
    • the entry point (immune, immune:smoke) and the app (immune:app on http://127.0.0.1:4177; every run refreshes it; immune:report exports a static snapshot);
    • after changing behaviour, run immune:smoke and refresh the dashboard before reporting;
    • every confirmed bug becomes a check (memory-cell), every claim meets negative-selection;
    • where findings go (immune/findings/) and where grown cells live.
  10. Prove it: run smoke on every reachable platform, put one known bug back and watch a check catch it, and write both results in immune/README.md.
  11. Grow the bug machine when the project needs a hunt (reference/machine.md): copy machine/briefs into immune/machine/briefs and fill in the product's front doors, platforms, rules file and guard tool; run one small cycle of 16 hunters end to end (found, reviewed, fixed, reviewed, committed, guarded) before going to hundreds.

The two ways it runs

PatrolExploration
asksis what we knew still true?is there something nobody asked about?
driven bycommitted checksan agent, with a written plan
verdictpass, fail, known, healedheld, broken, observed

A patrol cannot notice something that is missing: it only re-asks questions someone already wrote. An exploration can, but has no memory and will happily blame the product for a harness fault. They are joined by promotion: a confirmed exploration finding is compiled into a permanent check that asserts exactly what the exploration asserted, never something weaker.

The loop

explore or hunt  →  try to refute the claim  →  make it a permanent check  →  patrol forever
  • Nothing is a bug until something tried to disprove it. Every claim goes to the skeptic before it is filed, fixed or turned into a check. A disproved claim is worth as much as a confirmed one.
  • Every confirmed bug becomes a check that fails before the fix and passes after it. Prove both.
  • Every "we have no way to measure this" becomes a tool order for the toolsmith.
  • Every fix ships a guard. When the mistake has a shape, the guard is a lint rule with a bad and a good fixture, proven to find zero matches in the product. A fix without its guard is not done.

The bug machine

Patrols re-ask known questions and explorations find a few new ones. When the code base is too big for one agent to read, or agents have just written a lot of it, run the bug machine: hunters split the code into slices and lenses, and every report they file walks the same path.

found/  →  reviewed by another model  →  ready/  →  fixed with proof  →  fix review  →  verified/  →  committed  →  guarded/
               ↘ rejected/ with the reason                              ↘ back to the fixer, every defect at its line
  • A record is a markdown file and its folder is its state. No database, no orchestrator. Each role appends its section and moves the file; exactly one copy ever exists.
  • Claims are an atomic mkdir, so pools of agents can race for work safely, and a restart loses nothing: the lead clears stale claims and starts new pools.
  • Hunters reproduce before they file, in a clean home with the paid dependency faked, and the reviewer runs the reproduction again itself. The hunter and the reviewer never share a model.
  • Only the lead commits, one topic at a time, and registers the guards. A human decides what the machine flags: new reports, failed fix reviews, security and data loss.
  • An antigen census counts known bad patterns across the code base against a committed floor that only goes down on its own.

Everything, from the folder layout to the claim names, the briefs for each role, the record shape and what breaks at hundreds of agents, is in reference/machine.md. The briefs, the record template, an example cycle plan and board.mjs (counts, claimable work, duplicates, stale claims) are in machine/.

Rules every immune cell follows

  • Declare the run before running it: at most three hypotheses, a time budget, a command budget, and the exact platforms and front doors in scope. Every command gets a timeout. Anything asked for but not exercised is reported as a coverage hole, never implied green.
  • Name the subject: the commit (git rev-parse HEAD) or the artifact path plus its checksum.
  • Test the artifact users get where the source tree is not honest (other OSes, packaged apps).
  • Prove the probe is live with a negative control (known-bad input, or the bug put back) before trusting a result either way.
  • Exit 0 is not an assertion. Assert on the bytes on disk, the exact exit code, the message sent, the region of the screen.
  • Never weaken an assertion to get green. Either the product is wrong (file it) or the check is wrong (say why, then fix it).
  • Wait for conditions, never for time. A fixed sleep is the worst case on every machine and a race on the slow ones.
  • Every check says what it guards in one sentence a future reader recognises.
  • Known bugs are marked, not left red. A marked check reports known; when it starts passing it reports healed and asks for the marker to be removed.
  • Own and clean every resource you start: processes, containers, remote paths, caches. Never kill processes by name broadly. The receipt lists what was stopped, removed or kept on purpose.
  • Numbers must not flatter. Count what the product was made to do, not what a check mentions. Publish the gap between the honest count and the flattering one.
  • "No bug reproduced" is a valid result. Stop at the budget; do not sharpen forever.
  • Use memory: read past findings before starting, save what you confirmed or ruled out after.

With Empryo

SoulStack comes from Empryo's creator, and the immune system is Empryo's own, generalised. In Empryo it has more to work with; use it:

  • Genome first. Before writing a check or chasing a failure, ask the code map where the damage lands: navigate for callers and definitions, genome_impact for what a change can break. A hunter reads the sink before attacking it; a skeptic reads the intent before judging.
  • project runs the checks. Name the scripts so the project tool finds them (immune, immune:smoke, immune:list) and run them through it, never as raw shell lines.
  • Cells run in parallel. tcell-helper sends specialists off with background_dispatch, each with its own bounds, and keeps working; reports arrive when they finish. Two cells that need quiet timing never run at the same time.
  • Pools for the bug machine. One background_dispatch call launches a whole cycle of hunters, or a pool of reviewers and fixers, each with its brief as a file and its own model and effort. Set the agent limit to what your providers allow; grouped notices keep hundreds of reports readable.
  • Memory is the immune memory. Read memory before every run; save each confirmed bug, each disproved claim and each trap as a memory the next run will see.
  • Real front doors are in reach. Drive a web front door with the browser tool, a desktop app with computer use, and Empryo-style CLIs through headless --json events.
  • Patrols on a schedule. A /routine can run immune:smoke nightly and wake tcell-helper when something turns red.
  • Rules stay live. Edits to EMPRYO.md apply on the next message, so a new rule from a confirmed bug takes effect at once.
  • Grown cells live in .agents/agents/, where Empryo's custom-agent loader and find_agent see them; role: code lets them run commands.

The agents

SoulStack's setup script installs the stem cells globally for Empryo, Claude Code, Copilot CLI and OpenCode. Grow project copies as described above; the project copy is the one that runs.

AgentUse it for
tcell-helper (the lead)Start here. Reads the current state of the immune system, decides which specialists run and in what order, owns the final verdict
tcell-patrol (the patrol)Runs the suite and sorts every red result into real bug, check bug, environment problem, known, or healed
dendritic (the scout)Finds what is missing: states a screen forgets, platform conventions, one door behaving unlike another
tcell-hunter (the attacker)Attacks a feature or a diff with hostile inputs, environments, timing and dependencies
negative-selection (the skeptic)Tries to disprove a claimed bug from two sides: is it intended, and does it reproduce by hand
memory-cell (the memory)Turns a confirmed bug into a permanent check that fails before the fix and passes after
tcell-platform (the OS specialist)Failures on one OS only; knows which failures are the transport lying
tcell-retina (the eye)Rendering defects: resolves them layer by layer instead of from a screenshot alone
natural-killer (the security cell)Vulnerable and malicious packages, leaked secrets, unsafe installers and downloads, input that reaches a shell; researches this month's tools first
tcell-armorer (the toolsmith)Audits the immune system itself: empty checks, dull speed budgets, missing instruments

In Empryo, tcell-helper dispatches the others as background agents; in Claude Code it uses subagents. Each agent loads this skill (skills: immune-system) so the rules above travel with it.

Before you report

  • Every finding has: what was expected and why (a source, not an opinion), what happened, the evidence file, the commit, the platform and front door, and the check that now guards it.
  • Findings users feel are written up in immune/findings/ in plain words, ready to file. Filing publicly is a separate, deliberate step the user approves.
  • The report lists coverage holes and resources cleaned, not just results.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

ほかに7個のファイルがあります。

よくある質問

AIスキル「Immune System」では何ができますか?

Build and run an immune system that proves a product works through its real front doors (CLI, terminal UI, desktop app, web, API) on every platform it ships to, finds what is missing as well as what is broken, and turns every confirmed bug into a permanent check. At scale it runs a bug machine, hundreds of agents that hunt, reproduce, review, fix and guard bugs through a state machine of plain files. Use when a project needs testing beyond unit tests, before a release, after a burst of agent-written code, when a bug keeps coming back, or when the user asks for specialized immune cells or a...

TypingMindでImmune Systemを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Immune Systemはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにImmune Systemをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/proxysoul/SoulStack/tree/main/skills/immune-systemを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Immune Systemを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Immune Systemで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもImmune Systemを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Immune System」は無料ですか?

proxysoulがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇