Threat logo

Threat

Community
skyf0xx
threat

Use before committing to a plan or significant action, when something external changes, or to stress-test reasoning. Red-teams the plan for adversarial and non-adversarial failure modes, runs adversarial CoG analysis, assesses network exposure if people are involved, and flags interference indicators. Feeds findings to strategy and systems.

Overview

Publisherskyf0xx
Repositorygambit
Skill namethreat
Stars
29
Forks
0
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by skyf0xx on GitHub. Read the source before you install it.

Installation

Install the Threat AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/skyf0xx/gambit/tree/master/skills/threat
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/skyf0xx/gambit.git /tmp/gambit
mkdir -p .claude/skills
cp -r /tmp/gambit/skills/threat .claude/skills/threat
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Threat in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Threat on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Threat is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill: threat

Trigger: Before committing to a plan or a significant action, when something external changes, or you want your reasoning stress-tested.

Purpose: Red-team the plan from an adversarial perspective. Perform adversarial CoG analysis where an opposing system exists. Stress-test the current plan for adversarial and non-adversarial failure modes. If other people are involved, assess the network for exposure. Monitor for interference indicators. Feed findings to strategy and systems.


Voice & Tone

Adversarial mindset. Assume the worst-case obstacle, the most capable opposition (if any exists), and the most inconvenient timing.

Constructive, not alarmist. The goal is hardening, not paralysis. Every finding comes with a specific exposure and a specific mitigation — flag a threat, say what closes it.

Do not speculate beyond what's actually known. Distinguish "confirmed problem" from "hypothesis consistent with observed signals." Both are useful; neither gets inflated into the other.

Brief. Threat assessments are not essays. One finding, one exposure, one mitigation, one line each.

Gloss the vocabulary once the first time it appears in a session — CoG (what a side's strength depends on), CV (the weak point that takes the strength with it), posture (how hard you're currently pushing, and the risk that carries) — then use the terms freely. Define, don't teach.


Execution Sequence

1. Load Context

Read the goal — the goal statement, success criteria, current plan (from plan key), current focus and posture (from strategy), any CoG assessment from systemsNotes, and people and stakeholders if non-empty.

If the state block lists threat as due because the plan, people or stakeholders changed, red-team what changed first.


Steps 2-7 are independent lenses over the same frozen plan/the goal/people snapshot from step 1 — none depends on another's findings. Where the executing agent can run independent sub-tasks concurrently, run them in parallel and converge before step 8, which triages across all of them.

2. Adversarial CoG Analysis

If an opposing system is identifiable (a competitor, institution, deadline pressure, or force working against the goal):

[ADVERSARIAL CoG]
  Critical Capability: {what makes the opposition effective against the goal}
  Critical Requirement: {what that capability depends on}
  Critical Vulnerability: {what, if degraded, neutralizes it}

  Recommended counter: {what to target to degrade this CV}
  Confidence: high|moderate|low

If no opposing system is identifiable: state that explicitly and recommend a web search to fill the gap, where the tool is present. Don't fabricate an adversary where the real constraint is just time, money, or attention.


3. Red-Team the Current Plan

For each major step or workstream in the current plan:

WORKSTREAM: {label}

  Exploitation / failure mode: {how this realistically breaks — adversarial or not}
  Likelihood: high|medium|low
  Detection indicator: {what signal would tell you this is happening}
  Mitigation: {what changes now to close this exposure}

Prioritize by likelihood × impact. Surface the top 3.


4. Single Points of Failure

Is the plan over-dependent on one thing — one relationship, one platform, one block of time, one piece of unverified information? Name it. Worth flagging even at low likelihood, because the impact is total.


5. Network Exposure Assessment

If the people key in the goal is non-empty, assess the network itself for exposure:

NETWORK EXPOSURE FINDINGS:

  Over-centralization: {YES/NO}
    If YES: {who/what} — {N people or workstreams dependent on this one node} — risk: single point of disruption

  High-value people: {whose absence, exit, or compromise would most hurt this effort}
    {name/role} — {why they're high-value} — {mitigation: cross-train, add redundancy, don't over-disclose to them alone}

  Trust/vetting gaps: {anyone whose involvement is unverified, or whose behavior doesn't match how they presented}
    {name/role or pattern} — {what's off} — {recommend: verify with a web search, or hold at arm's length until confirmed}

Skip this section entirely if people is empty — there's no network to assess.


6. Escalation Exposure

If the posture key in the goal is non-null: does the current posture level create a signal that's exploitable — does higher tempo or more visible activity give away more than it's worth?

POSTURE EXPOSURE:
  Current level: {N/label}
  Signal created: {what becomes visible to opposition or outside observers at this posture}
  Exploitability: high|medium|low
  Mitigation: {what closes this, if anything}

If the plan escalates (tasks with level), red-team the climb too. How does the other side read each step: a cheap ask they can ignore, or a signal the user will go further? Which step could they turn against the user (a complaint answered on a technicality, a press story met with a counter-story)? Do the waits, added up, fit the deadline? Each finding goes in riskNotes like any other.

Skip the posture part if posture is null, and the escalation part if nothing escalates.


7. Monitor for Interference Indicators

Scan what's known (recent facts, any web-search findings, the log) for patterns consistent with:

  • Information you've been given that shapes the plan but hasn't been independently verified
  • A sudden or unexplained shift in someone else's behavior relevant to the goal
  • Coordinated withdrawal — multiple people backing out or going quiet in a short window
  • Counter-narrative or resistance directed specifically at your approach
INDICATOR: {description}
  Source: {where this came from}
  Confidence: high|moderate|low
  Recommended response: {verify with a web search | adjust plan | flag to strategy}

If nothing is present, skip this section rather than manufacturing a finding.


8. Separate What to Fix from What to Accept

A red-team that returns eight findings and no priority produces paralysis, which is the failure mode this skill is most likely to cause. Sort them:

FIX BEFORE PROCEEDING: [the one or two that would actually sink this]
WATCH: [real, but not worth acting on yet — and the signal that changes that]
ACCEPT: [inherent to the approach; the cost of doing this at all]

Then ask, once:

Anything here you'd weigh differently? You know the ground better than I do.

Risk tolerance is the user's call, not yours. Where they choose to accept something you flagged as high, say what you'd watch for and then back the decision — record it as an accepted risk rather than re-raising it every session.

9. Update the Goal

Call write_section on riskNotes with the top findings (adversarial CoG if identified, top workstream risks, network exposure if applicable, any single point of failure). Note anything the user explicitly chose to accept, so later sessions don't re-litigate it. Call append_log with one note on what changed this pass, not a summary of the section the page already shows.

Each entry must have:

  • item (required, max 120 chars): the risk or finding
  • detail (optional, max 120 chars): additional context on the risk or mitigation
  • source (required): must be "threat" for items this skill adds
  • accepted (required): boolean; true if user explicitly chose to accept this risk
  • dependsOn (optional, max 40 chars): when the risk hangs on one person, their name exactly as it appears in people or stakeholders. The page draws an arrow between the two. Leave it out when the risk doesn't hang on a single named person.
json
{
  "riskNotes": [
    { "item": "...", "detail": "...", "source": "threat", "accepted": false },
    { "item": "...", "source": "threat", "accepted": true }
  ]
}

If the write returns { ok: false, errors }, fix the reported fields and retry before ending the turn.

10. Name the Next Step

Next: [the single highest-value mitigation]

Or:
  - Rework the plan around these findings → plan
  - The risk changes what matters most → strategy
  - A finding rests on an unverified assumption → web search, or say it's unverified
  - The tradeoff needs a real decision → decide

Frequently asked questions

What does the Threat AI skill do?

Use before committing to a plan or significant action, when something external changes, or to stress-test reasoning. Red-teams the plan for adversarial and non-adversarial failure modes, runs adversarial CoG analysis, assesses network exposure if people are involved, and flags interference indicators. Feeds findings to strategy and systems.

Why use Threat on TypingMind?

Because you install it once and use it with any model. Threat is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Threat in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/skyf0xx/gambit/tree/master/skills/threat. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Threat?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Threat?

As many as you like. As long as a model supports skills, you can use Threat with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Threat AI skill free?

Yes. It is published on GitHub by skyf0xx under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇