Battleprint logo

Battleprint

Organization
AI-ModCon
battleprint

Perform red and blue team adversarial analysis on AI systems. Use after ai-fingerprint to identify attack vectors and defense strategies for LLM/RAG/Agentic systems.

Overview

PublisherAI-ModCon
Repositorygenesis-skills
Skill namebattleprint
Stars
37
Forks
16
Bundled files
6
LicenseBSD-2-Clause
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.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AI-ModCon on GitHub. Read the source before you install it.

Installation

Install the Battleprint 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/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/battleprint
  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/AI-ModCon/genesis-skills.git /tmp/genesis-skills
mkdir -p .claude/skills
cp -r /tmp/genesis-skills/skills/basesafe-skills/battleprint .claude/skills/battleprint
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Battleprint 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 Battleprint 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 Battleprint 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.

Battleprint - Agentic Execution of Red and Blue Team Security Analysis

You are executing the Battleprint skill. This performs a red and blue team adversarial analysis sequence.

Architecture Overview

This skill is a prompt-first architecture where YOU (Claude Code) handle all reasoning and analysis, while Python utilities provide fast data operations (file scanning, use of ai-fingerprint skill and its results).

Your Task

Execute a 4-stage analysis process that produces:

  1. Red Stage 1: Complete red team analysis of the target code base
  2. Blue Stage 1: Complete blue team analysis of the target code base
  3. Red Stage 2: Utilizes Blue Team's analysis to refine red team's attack plans
  4. Blue Stage 2: Utilizes Red Team's analysis to refine blue team's defense plans

Arguments

The user provides a target directory path.

Expected format: <target_dir>

Examples:

  • ./my-app — analyze my-app directory
  • /bob/fish — analyze absolute path

Required Skills

  • ai-fingerprint: Generates file_scan.json and system_analysis.json for the same target directory
    • Run it first so this skill can reuse its outputs.
    • Output location: <parent>/ai_fingerprint_results/<target_name>/

Execution Steps

EXECUTION GUIDE - APPLIES TO ALL PHASES AND STEPS

When executing bash or unix (e.g. ls, wc, cd, etc.) commands, never ever string them together into a single command.

  • Never use &&
  • Never use ||
  • Never use compound statements, ever
  • Always execute a bash command one at a time.
  • Always execute a unix command one-at-a-time, never compound them.

When generating JSON, never ever output it directly. Always write python code that generates the json

  • Never generate JSON directly, it's too difficult.
  • Always write the python code that generates the JSON.
  • Always use python code generator to generate JSON.
  • Always use python validation code, to read and confirm JSON was generated properly.
  • Take your time. Generate Python to output JSON. Generate Python to Validate JSON.

Phase 0: Setup and Check for AI-FingerPrint

Parse and set paths:

bash
# Get absolute path of target
TARGET_DIR=$(cd "$target_dir" && pwd)
TARGET_BASE=$(dirname "$TARGET_DIR")
TARGET_NAME=$(basename "$TARGET_DIR")

# Fingerprint results location (alongside target)
FINGERPRINT_DIR="${TARGET_BASE}/ai_fingerprint_results/${TARGET_NAME}"

# Battleprint output location (alongside target)
OUTPUT_DIR="${TARGET_BASE}/battleprint_results/${TARGET_NAME}"
mkdir -p "$OUTPUT_DIR"

All subsequent references to paths use these variables.

Verify fingerprint exists:

  1. Check if $FINGERPRINT_DIR/system_analysis.json exists
  2. If it does NOT exist, invoke the ai-fingerprint skill with $TARGET_DIR as argument. Use a SEPARATE AGENT (via Agent tool) for this to prevent context bleed.
  3. Read $FINGERPRINT_DIR/file_scan.json and $FINGERPRINT_DIR/system_analysis.json into the current context.

Phase 1: Stage 1 Red and Blue

Objective: Perform Red Team and Blue Team Analysis on the target directory.

Process:

  1. Read the file scan results:
bash
cat "$FINGERPRINT_DIR/file_scan.json"
  1. Read the system analysis results:
bash
cat "$FINGERPRINT_DIR/system_analysis.json"
  1. Parallel Execute 2 Agents

    Use the Agent tool to spawn two agents in parallel. Each Agent invocation is automatically in fresh context.

    a. Red Team Agent - use prompts/red_team_stage1.md with the fingerprint data b. Blue Team Agent - use prompts/blue_team_stage1.md with the fingerprint data

    Each agent should write its output to:

    • Red: $OUTPUT_DIR/red_stage_1.json
    • Blue: $OUTPUT_DIR/blue_stage_1.json
  2. Verify Stage 1 Complete

Use Python's built-in JSON parser to check validity:

bash
python3 -c "import json; json.load(open('$OUTPUT_DIR/red_stage_1.json'))" && echo "✓ Valid JSON" || echo "✗ Invalid JSON"

and

bash
python3 -c "import json; json.load(open('$OUTPUT_DIR/blue_stage_1.json'))" && echo "✓ Valid JSON" || echo "✗ Invalid JSON"

Phase 2: Stage 2 Red and Blue

Objective: Perform a second pass Red and Blue Team Analysis on the target directory.

Note: Each Agent tool invocation automatically runs in fresh context - no special action needed.

Red Team Agent (Stage 2)

  1. Read the file scan results:
bash
cat "$FINGERPRINT_DIR/file_scan.json"
  1. Read the system analysis results:
bash
cat "$FINGERPRINT_DIR/system_analysis.json"
  1. Read blue team's plans:
bash
cat "$OUTPUT_DIR/blue_stage_1.json"
  1. Execute Red Team Stage 2

    Use Agent tool with prompts/red_team_stage2.md and the above context.

    Write output to: $OUTPUT_DIR/red_stage_2.json

  2. Verify Stage 2 Complete

bash
python3 -c "import json; json.load(open('$OUTPUT_DIR/red_stage_2.json'))" && echo "✓ Valid JSON" || echo "✗ Invalid JSON"

Blue Team Agent (Stage 2)

  1. Read the file scan results:
bash
cat "$FINGERPRINT_DIR/file_scan.json"
  1. Read the system analysis results:
bash
cat "$FINGERPRINT_DIR/system_analysis.json"
  1. Read red team's plans:
bash
cat "$OUTPUT_DIR/red_stage_1.json"
  1. Execute Blue Team Stage 2

    Use Agent tool with prompts/blue_team_stage2.md and the above context.

    Write output to: $OUTPUT_DIR/blue_stage_2.json

  2. Verify Stage 2 Complete

bash
python3 -c "import json; json.load(open('$OUTPUT_DIR/blue_stage_2.json'))" && echo "✓ Valid JSON" || echo "✗ Invalid JSON"

Phase 3: Synthesis

Perform synthesis and provide final results:

  1. Output a final_analysis.json with the top 8 exploits found in red_team 2. Did blue_team 2 have an answer for these?
  2. Provide an analysis of the efficacy of this battleprint algorithm: a. Did the blue team improve from stage 1 to stage 2 (i.e. did it utilize the knowledge it gained by reading red team plans and improve its defenses against these?). If so, how? b. Did the red team improve from stage 1 to stage 2? If so, how?
  3. Provide final recommendations (top 3) for the engineering team to address. When providing these top 3, be sure to utilize the system analysis to note which AI System and sub-system are most affected.
  4. Provide a weakness indicator for each element in the strand. Use relative weakness (i.e. element with the highest relative weakness gets a 10, element with no relative weakness gets a 0).

All output should be in 2 forms:

  1. JSON file: $OUTPUT_DIR/final_analysis.json (enables downstream processing)
  2. Markdown file: $OUTPUT_DIR/final_analysis.md (allows for easy readability)

Output location: Results are saved alongside the target directory at: <parent_of_target>/battleprint_results/<target_name>/

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Battleprint AI skill do?

Perform red and blue team adversarial analysis on AI systems. Use after ai-fingerprint to identify attack vectors and defense strategies for LLM/RAG/Agentic systems.

Why use Battleprint on TypingMind?

Because you install it once and use it with any model. Battleprint 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 Battleprint in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basesafe-skills/battleprint. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Battleprint?

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 Battleprint?

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

Is the Battleprint AI skill free?

Yes. It is published on GitHub by AI-ModCon under the BSD-2-Clause 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 👇