Agent skill

Mistral Security Basics

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Threat-model Mistral credentials, untrusted content, model output, tools, files, and tenant access.

MITAuto-check passedSecurity

Install Mistral Security Basics

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-security-basics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace mistral-security-basics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/mistral-security-basics .claude/skills/mistral-security-basics && rm -rf skills-src

Use ~/.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/

Facts

Skill name
mistral-security-basics
GitHub stars
2.8k
Token cost
~877 tokens
SKILL.md length
359 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Threat-model Mistral credentials, untrusted content, model output, tools, files, and tenant access.

  • Works in 6 steps: Map trust boundaries and classify… → Remove credentials and privileged… → Separate trusted policy from untrusted… → …
  • Reviewing an integration
  • SKILL.md covers Overview, Prerequisites, Current Contract and Authentication, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mistral Security Basics is an agent skill from jeremylongshore/tons-of-skills-marketplace. Threat-model Mistral credentials, untrusted content, model output, tools, files, and tenant access. Use when securing or reviewing an integration. Trigger with "secure Mistral", "audit Mistral prompts", or "threat model a Mistral app".

Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/official-docs.md`). Compatibility notes: Designed for Claude Code; live or external Mistral actions require network access and explicit approval

It sits in Security, covering Threat modeling. It works with Mistral AI. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Reviewing an integration
  • With secure Mistral
  • Audit Mistral prompts
  • Threat model a Mistral app

Example prompts

  • “secure Mistral”
  • “audit Mistral prompts”
  • “threat model a Mistral app”
  • “/mistral-security-basics”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code; live or external Mistral actions require network access and explicit approval
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Write, Edit

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Map trust boundaries and classify prompts, outputs, embeddings, files, logs, and IDs.
  2. Remove credentials and privileged instructions from browser/untrusted contexts.
  3. Separate trusted policy from untrusted content and delimit retrieved text as data.
  4. Validate output structure and safety before render, storage, or tool use.
  5. Authorize tools via closed registry, schemas, least privilege, deadlines, and idempotency.
  6. Test injection, cross-tenant access, unsafe output, exfiltration, duplicates, and rotation.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Write
    • Edit

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code; live or external Mistral actions require network access and explicit approval

    From compatibility in the SKILL.md frontmatter.

Context cost

Mistral Security Basics loads about 877 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 65 tokens; SKILL.md has 359 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~877
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 359 words, ~877 tokens.

Download SKILL.mdSave it as .claude/skills/mistral-security-basics/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mistral-security-basics
description
Threat-model Mistral credentials, untrusted content, model output, tools, files, and tenant access. Use when securing or reviewing an integration. Trigger with "secure Mistral", "audit Mistral prompts", or "threat model a Mistral app".
allowed-tools
Read, Glob, Grep, Write, Edit
compatibility
Designed for Claude Code; live or external Mistral actions require network access and explicit approval
argument-hint
<system-boundary> <data-class> <tool-surface>
version
1.14.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, mistral, security
model
inherit
effort
high

Mistral Security Boundary

Overview

Apply controls at the application boundary because model instructions do not enforce identity, tenancy, authorization, or side-effect safety. Treat user content, retrieval, files, and output as untrusted.

Prerequisites

  • A data-flow diagram covering browser, app, Mistral, stores, and tools.
  • Credential, retention, tenant, moderation, and incident policies.
  • An inventory of stateful APIs, files, retrieval stores, and actions.

Current Contract

Bearer credentials authorize provider calls but not application users. Classifiers can support policy but do not replace controls. ZDR eligibility differs between stateless and stateful products.

Authentication

Keep keys server-side and environment-scoped; rotate on exposure. Enforce user and tenant authorization before retrieval, provider calls, files, and tools.

Instructions

  1. Map trust boundaries and classify prompts, outputs, embeddings, files, logs, and IDs.
  2. Remove credentials and privileged instructions from browser/untrusted contexts.
  3. Separate trusted policy from untrusted content and delimit retrieved text as data.
  4. Validate output structure and safety before render, storage, or tool use.
  5. Authorize tools via closed registry, schemas, least privilege, deadlines, and idempotency.
  6. Test injection, cross-tenant access, unsafe output, exfiltration, duplicates, and rotation.

Tool Discipline

Use Read, Glob, and Grep to inspect code, locks, configuration, tests, and evidence. Use Write and Edit only for approved repository changes. Invocation alone does not authorize network calls, paid usage, uploads, stateful resources, admin mutations, deployments, or deletion.

Show full SKILL.md (139 more words)Show less

Approval Boundaries

Require approval for sensitive data, uploads, stateful APIs, tools, policy changes, retention, or live attack testing. Model output never grants authority.

Error Handling

  • Prompt wording cannot enforce access control.
  • Moderation success does not prove correctness or tool safety.
  • Assuming ZDR for Files, Batch, Agents, Conversations, or other stateful products is unsafe.

Output

Return assets, threats, controls, residual risks, data/API boundary, tests, owners, and rollback. Exclude live secrets and customer data.

Examples

  • Reject retrieved text asking for a system secret.
  • Require fresh app authorization before a proposed refund tool.

Validation

Run synthetic abuse cases across input, retrieval, output, rendering, and tools; confirm tenant filters and rotation independently.

Resources

  • Current first-party evidence map — recheck dated sources before relying on mutable endpoints, models, limits, prices, preview status, or retention.
  • Record live account observations as environment-specific evidence, not universal Mistral guarantees.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/.curated/mistral-security-basics of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/official-docs.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Mistral Security Basics 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.

Mistral Security Basics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mistral Security Basics this skilljeremylongshore/tons-of-skills-marketplace2.8k—~877Automated safety check: PassMIT
Forensifyalexgreensh/repo-forensics190—~2.5kAutomated safety check: NotesCustom licence
Create Rulecartography-cncf/cartography4.1k—~3kAutomated safety check: PassApache-2.0
Commit Security Scancodexstar69/bug-hunter520—~629Automated safety check: PassMIT
Auditing Code For Vulnerabilitiestrilwu/secskills157—~3.2kAutomated safety check: PassMIT
Threat Mitigation Mappingwshobson/agents40k8 repos~742Automated safety check: PassMIT

Similar skills

  • Forensify

    alexgreensh/repo-forensics

    Cross-agent self-inspection of your AI-agent stack. An agent skill from alexgreensh/repo-forensics.

    190 GitHub stars~2.5k tokensUpdated 14 days ago
    SecurityAuto-check: notes
  • Create Rule

    cartography-cncf/cartography

    Author a Cartography security rule (one or more Cypher Facts plus a Pydantic Finding output model) under cartography/rules/data/rules/.

    4.1k GitHub stars~3k tokensUpdated today
    SecurityAuto-check passed
  • Commit Security Scan

    codexstar69/bug-hunter

    Scan code changes for security vulnerabilities using Bug Hunter-native artifacts and STRIDE context.

    520 GitHub stars~629 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Audit source code for exploitable vulnerabilities using threat-model-driven review, taint tracing, invariant checking, and variant analysis.

    157 GitHub stars~3.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Match identified threats to preventive, detective and corrective controls across network, application, data, endpoint and process layers to plan remediation.

    40k GitHub starsUsed in 8 repos~742 tokens
    SecurityAuto-check passed
  • Audit Browser Security Boundaries

    nordstjernen-web/northstar-browser

    Audit browser-engine changes that process untrusted content or cross native-memory, origin, network, storage, extension, decoder, sandbox, or operating-system boundaries.

    128 GitHub stars~920 tokensUpdated today
    SecurityAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Mistral Security Basics

What does Mistral Security Basics do?

Threat-model Mistral credentials, untrusted content, model output, tools, files, and tenant access. Mistral Security Basics is an agent skill from jeremylongshore/tons-of-skills-marketplace. Threat-model Mistral credentials, untrusted content, model output, tools, files, and tenant access.

When should I use Mistral Security Basics?

Mistral Security Basics fits situations like: reviewing an integration; with secure Mistral; audit Mistral prompts; threat model a Mistral app.

How do I install Mistral Security Basics in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-security-basics -a claude-code`. Or copy the skill folder (skills/.curated/mistral-security-basics in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/mistral-security-basics in your project. Claude Code loads it when a task matches its description.

How do I install Mistral Security Basics in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-security-basics -a codex`. Or copy the skill folder (skills/.curated/mistral-security-basics in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/mistral-security-basics in your project. Codex loads it when a task matches its description.

Can I use Mistral Security Basics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill mistral-security-basics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mistral-security-basics, .gemini/skills/mistral-security-basics, .github/skills/mistral-security-basics and .opencode/skills/mistral-security-basics in your project.

What does Mistral Security Basics need to run?

SKILL.md names no scripts, command-line tools or credentials: Mistral Security Basics is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Edit. Compatibility (from SKILL.md): Designed for Claude Code; live or external Mistral actions require network access and explicit approval.

Does Mistral Security Basics access the network?

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.

Is Mistral Security Basics safe to install?

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. Review the folder before installing.

What licence does Mistral Security Basics use?

Mistral Security Basics is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mistral Security Basics use?

About 877 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 242 tokens, read only when the agent opens those files.

What are the alternatives to Mistral Security Basics?

Skills that share tags, products or a category with Mistral Security Basics: Forensify (alexgreensh/repo-forensics, 190 stars), Create Rule (cartography-cncf/cartography, 4.1k stars), Commit Security Scan (codexstar69/bug-hunter, 520 stars) and Auditing Code For Vulnerabilities (trilwu/secskills, 157 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mistral Security Basics?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.