Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning.
$ npx skills add Mathews-Tom/armory --skill immune -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Mathews-Tom/armory immune --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/immune .claude/skills/immune && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "immune" agent skill from https://github.com/Mathews-Tom/armory/tree/main/skills/immune into .claude/skills/immune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immune", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Mathews-Tom/armory/tree/main/skills/immuneType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Mathews-Tom/armory --skill immune -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Mathews-Tom/armory immune --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/immune .agents/skills/immune && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "immune" agent skill from https://github.com/Mathews-Tom/armory/tree/main/skills/immune into .agents/skills/immune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immune", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Mathews-Tom/armory --skill immune -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Mathews-Tom/armory immune --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/immune .cursor/skills/immune && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "immune" agent skill from https://github.com/Mathews-Tom/armory/tree/main/skills/immune into .cursor/skills/immune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immune", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Mathews-Tom/armory.git --path skills/immune--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Mathews-Tom/armory --skill immune -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Mathews-Tom/armory immune --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/immune .gemini/skills/immune && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "immune" agent skill from https://github.com/Mathews-Tom/armory/tree/main/skills/immune into .gemini/skills/immune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immune", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Mathews-Tom/armory immuneInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Mathews-Tom/armory --skill immune -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/immune .github/skills/immune && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "immune" agent skill from https://github.com/Mathews-Tom/armory/tree/main/skills/immune into .github/skills/immune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immune", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Mathews-Tom/armory --skill immune -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Mathews-Tom/armory immune --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mathews-Tom/armory.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/immune .opencode/skills/immune && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "immune" agent skill from https://github.com/Mathews-Tom/armory/tree/main/skills/immune into .opencode/skills/immune/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "immune", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
immuneHybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning.
Immune is an agent skill from Mathews-Tom/armory. Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning. Triggers on: "scan for errors", "immune scan", "check output quality", "antibody scan". NOT for PR review (use pr-review) or repo audits (use repo-sentinel).
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts (for example `agents/immune-scan.md`, `cheatsheet_memory.json` and `config.yaml`).
It sits in Development, covering Pull requests. The repository describes itself as: Curated, production-grade skills for AI coding agents. Battle-tested workflows for developers who use AI seriously. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4594fb7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Immune loads about 3.2k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 1,240 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from Mathews-Tom/armory at commit 4594fb7, republished under its MIT licence (© Mathews-Tom). 1,240 words, ~3,196 tokens.
.claude/skills/immune/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.You operate a hybrid adaptive system with two complementary memories:
Both memories use Hot/Cold tiering to keep context lean.
The user invokes with content to scan. Parse these parameters:
domains=fitness,codefull (cheatsheet + scan, default) | scan-only (skip cheatsheet) | cheatsheet-only (return cheatsheet, no scan)<examples>
<example>
/immune Check this function for common pitfalls
→ domains=["code"] (auto-detected), mode=full
</example>
<example>
/immune domain=fitness Vérifie ce programme de musculation
→ domains=["fitness"] (explicit)
</example>
<example>
/immune domains=fitness,code Check this workout generator API
→ domains=["fitness", "code"] (multi-domain)
</example>
<example>
/immune
→ scans the most recent output in the conversation
</example>
</examples>
If no inline text is provided, scan the last substantive output in the conversation.
Domain auto-detection: Read config.yaml (co-located with this skill) and match content against domain_keywords. If no strong match, use ["_global"]. If single domain string provided, wrap in array: domains = [domain].
Antibodies and cheatsheet strategies may carry an optional triggers field for
per-task filtering. This implements the read phase of the Memento-Skills
reflective loop (arXiv 2603.18743) — entries are ranked by lexical overlap
between the current task and their historical contexts.
Schema (additive, optional):
{
"id": "AB-042",
"domains": ["code"],
"pattern": "SQL injection via string concatenation",
"severity": "critical",
"correction": "Use parameterized queries",
"triggers": {
"task_signatures": ["code query review sql", "audit code sql"],
"domains": ["code"]
}
}Back-compat: entries without triggers behave as always-on (the v3.0.0
behavior). The task_conditioned_retrieval: true flag in config.yaml enables
the filter. When disabled, all entries load regardless of task.
Ranking helper: scripts/retrieve.py implements the scoring logic. Callers
(including the scanner agent, the skill-librarian in P2, and the skill-router
in P3) invoke retrieve(prompt, entries, active_domains, historical_success)
to obtain the ranked subset before tier classification. Scoring uses Jaccard
similarity over normalized task signatures from scripts/task_signature.py,
multiplied by an optional per-entry success rate derived from
evals/history.jsonl.
During load (Phase 0 cheatsheet, Phase 1 antibodies), after the domain filter and before Hot/Cold tier classification, apply the retrieve step:
task_signature(prompt) for the current task.retrieve(...) with the active domains set.Entries filtered out at retrieval never reach Hot/Cold — this is what keeps the scan context lean and task-focused.
Skip this step if mode == "scan-only".
0a. Load cheatsheet:
Read cheatsheet_memory.json (co-located with this skill).
0b. Filter by domains:
Keep strategies where ANY of the strategy's domains overlaps with the detected domains, OR strategy has "_global" in its domains.
0c. Classify into tiers (same logic as antibodies): A strategy is HOT if ANY of:
effectiveness >= 0.7seen_count >= 3last_seen less than 30 days agoEverything else is COLD.
0d. Cap HOT strategies:
Sort by effectiveness descending, then seen_count descending.
Keep max 15 (from config.yaml → cheatsheet.max_hot).
0e. Build cheatsheet block: Format HOT strategies as XML:
<cheatsheet domain="{domains}">
<strategy id="{id}" effectiveness="{effectiveness}">
{pattern}
Example: {example}
</strategy>
...
</cheatsheet>If there are COLD strategies, add a one-liner:
<cheatsheet_cold>Also consider: {comma-separated COLD pattern keywords}</cheatsheet_cold>If mode == "cheatsheet-only", output the cheatsheet block and stop here.
Log:
[IMMUNE] Cheatsheet: {n_hot} HOT + {n_cold} COLD strategies (domains: {domains})0f. Present cheatsheet to user:
If running standalone (/immune), show the cheatsheet as context the user should apply to their next generation. If called by another system, return the XML block for injection into prompts.
Read immune_memory.json and config.yaml (co-located with this skill).
1a. Filter by domains:
Keep antibodies where ANY of the antibody's domains overlaps with detected domains, OR antibody has "_global" in its domains.
Backwards compatibility: If an antibody has "domain" (string) instead of "domains" (array), treat it as domains = [domain].
1b. Classify into tiers: For each filtered antibody, classify as HOT if any of these is true:
severity == "critical"seen_count >= 3last_seen is less than 30 days ago (relative to today's date)Everything else is COLD.
1c. Cap HOT antibodies:
Sort HOT by: severity (critical > warning > info), then seen_count descending.
Keep max 15 (from config.yaml → tiers.hot.max_per_scan).
If more than 15 qualify as HOT, overflow goes to COLD.
1d. Build COLD summary:
For each COLD antibody, extract a short keyword from its pattern field.
Join as comma-separated list. Example: "SQL transactions, épicondylite, debug flags, tautologies"
Log:
[IMMUNE] Tier split: {n_hot} HOT + {n_cold} COLD / {total} total (domains: {domains})Spawn the immune-scan agent (Haiku) with the following XML-structured prompt:
<scan_request>
<domains>{detected_domains as JSON array}</domains>
<task>{task description or "Scan the following content for errors and threats"}</task>
<constraints>{constraints or "none"}</constraints>
<content>
{the input text/code/content to scan}
</content>
<hot_antibodies>
{JSON array of HOT antibodies — full objects with id, domains, pattern, severity, correction}
</hot_antibodies>
<cold_summary>
Dormant patterns (not detailed, for awareness only): {comma-separated COLD keywords}
</cold_summary>
<cheatsheet_applied>
{list of strategy IDs and patterns that were injected in Step 0, or "none" if scan-only mode}
</cheatsheet_applied>
</scan_request>Log: [IMMUNE] Scanning... ({n_hot} active antibodies)
Wait for result.
If corrections applied:
Log: [IMMUNE] Match {antibody_id}: {original} → {corrected}
If new threats detected:
Log: [IMMUNE] New threat: {pattern}
If new strategies detected:
Log: [IMMUNE] New strategy: {pattern}
Read current immune_memory.json.
3a. Matched HOT antibodies:
For each antibody matched by the scanner, increment seen_count and update last_seen to today.
3b. New threats — deduplicate against COLD:
For each new threat in new_threats_detected:
pattern against ALL COLD antibodies (fuzzy match — same domains + similar keywords).seen_countlast_seen to today[IMMUNE] Reactivated COLD antibody {id}: {pattern}auto_add_threats is true → CREATE new antibody:recommended_antibody.domains (array)recommended_antibody[IMMUNE] + New antibody {id}: {pattern}3c. Update stats:
stats.outputs_checkedstats.issues_caught by number of corrections + new threatsstats.antibodies_total to current antibody countWrite back to immune_memory.json.
Log: [IMMUNE] Memory: {total} antibodies ({n_hot} hot, {n_cold} cold) | +{new} added | Reactivated: {reactivated}
Skip if mode == "scan-only" or no new_strategies_detected in scan result.
Read current cheatsheet_memory.json.
3b-i. Deduplicate:
For each new strategy in new_strategies_detected:
seen_countlast_seen to todayeffectiveness: new_eff = old_eff * 0.8 + reported_eff * 0.2 (exponential moving average)[IMMUNE] Reinforced strategy {id}: {pattern} (eff: {old}→{new})auto_add_strategies is true → CREATE new strategy:config.yaml → cheatsheet.id_prefix.{domain})config.yaml → cheatsheet.default_effectiveness)[IMMUNE] + New strategy {id}: {pattern}3b-ii. Prune low-effectiveness:
If any strategy has effectiveness < config.cheatsheet.min_effectiveness AND seen_count >= 5:
[IMMUNE] - Pruned strategy {id}: {pattern} (eff: {eff})3b-iii. Update stats:
stats.outputs_assistedstats.strategies_applied by number of cheatsheet strategies that were usedstats.strategies_total to current countWrite back to cheatsheet_memory.json.
Log: [IMMUNE] Cheatsheet: {total} strategies | +{new} added | Reinforced: {reinforced}
If clean:
───
IMMUNE v3 | domains={domains} | Status: CLEAN
Cheatsheet: {n_strategies} strategies applied | Antibodies: {n_hot}/{max} HOT, {n_cold} COLD
No issues detected
───If corrections or threats found:
───
IMMUNE v3 | domains={domains} | Status: {CORRECTED|FLAGGED}
Corrections Applied:
[AB-XXX] {pattern} → {correction}
New Threats Detected:
[{severity}] {pattern} — {suggested_correction}
Reactivated:
[AB-XXX] {pattern} (was COLD, now HOT)
New Strategies Learned:
[CS-XXX] {pattern} (eff: {effectiveness})
───
Corrected Output:
{the corrected content, formatted for the domain}
───
Memory: {total_ab} antibodies + {total_cs} strategies | +{new_ab} AB | +{new_cs} CS
───Then present the corrected output in a human-readable format appropriate to the domain.
immune_memory.json does not exist: create it with {"version": 3, "antibodies": [], "stats": {"outputs_checked": 0, "issues_caught": 0, "antibodies_total": 0}}cheatsheet_memory.json does not exist: create it with {"version": 3, "strategies": [], "stats": {"outputs_assisted": 0, "strategies_applied": 0, "strategies_total": 0}}immune_memory.json has "version": 2: auto-migrate by converting each antibody's "domain" to "domains": ["domain_value"] and set version to 3. Write back immediately.hot_antibodies array and full cold_summary. Haiku can still detect new threats via Phase 2.© Mathews-Tom, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts) in skills/immune of Mathews-Tom/armory.
Open the folder on GitHubat commit 4594fb7
Immune next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Immune this skillMathews-Tom/armory | 328 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Check PRonyx-dot-app/onyx | 32k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| PR Design DocOpenHands/OpenHands | 90k | — | ~2.4k | Automated safety check: Pass | MIT | |
| WooCommerce Code Reviewwoocommerce/woocommerce | 11k | 3 repos | ~1.1k | Automated safety check: Pass | Custom licence |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
onyx-dot-app/onyx
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.
OpenHands/OpenHands
For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…
woocommerce/woocommerce
Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.
payloadcms/payload
A skill your agent uses when a Payload pull request needs a concise visual walkthrough for reviewers.
Mathews-Tom/armory
Architecture reviews across 7 dimensions (structural, scalability, enterprise readiness, performance, security, ops, data) with scored reports.
Mathews-Tom/armory
Turn concepts into static HTML visuals exported as PNG or SVG files via HTML/CSS/SVG.
Mathews-Tom/armory
A skill your agent uses when analyzing an existing video URL or local recording: "watch this video", "analyze youtube video", "summarize this video", "youtube transcript", "find this moment", "what…
Mathews-Tom/armory
Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust.
Mathews-Tom/armory
Turn concepts into animated explainer videos using Manim (Python) with MP4/GIF output, audio overlay, multi-scene composition.
Mathews-Tom/armory
Maps the unresolved architecture, policy, and scope decisions that must be answered before planning can start: one durable decision ticket per question on the issue tracker, typed and blocker-linked…
Categories
Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning. Immune is an agent skill from Mathews-Tom/armory. Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning.
Immune fits situations like: : scan for errors; check output quality.
Run `npx skills add Mathews-Tom/armory --skill immune -a claude-code`. Or copy the skill folder (skills/immune in Mathews-Tom/armory) into .claude/skills/immune in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Mathews-Tom/armory --skill immune -a codex`. Or copy the skill folder (skills/immune in Mathews-Tom/armory) into .agents/skills/immune in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Mathews-Tom/armory --skill immune -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/immune, .gemini/skills/immune, .github/skills/immune and .opencode/skills/immune in your project.
Going by SKILL.md and its folder, Immune needs Python for the scripts in its folder. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Immune is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Immune: Finishing a Development Branch (obra/superpowers, 297k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and PR Design Doc (OpenHands/OpenHands, 90k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Mathews-Tom (a GitHub user) maintains it in Mathews-Tom/armory, which has 328 GitHub stars. The repository holds 80 skills in this directory. The repository was last updated on October 6, 2026.
Source: Mathews-Tom/armory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.