Skip to content
Skill

Security

Makes the agent enforce OWASP security items as hard rules during development and review

Security is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
19
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Security

This skill brings OWASP-derived security constraints into an agent's work on code that touches authentication, authorization, input handling, secrets, cryptography or third-party calls. It lists rules covering injection prevention, boundary input validation, secret handling, server-side access control and vetted cryptography, and each rule cites the matching OWASP Cheat Sheet. It also sets a posture for untrusted content: fetched pages, logs, API payloads and other agents' output are treated as data, and any embedded instructions are surfaced to the human rather than followed.

The skill is written for the mokata pipeline. It refers to a secret-guard scan, a write gate and a hard-rule enforcement path, and it describes how security checks run during develop and review phases. It relies on the agent reading the relevant parser, query or auth code and checking claims against OWASP sources before stating them as fact, and it asks for unverified claims to be flagged. A references file holds the fuller OWASP taxonomy and is loaded only when needed. The skill bundles no scripts; the enforcement it describes depends on the mokata tooling.

When your agent uses it

mokata · Security & hardening — OWASP items as HARD-enforced rules, not advice.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (15 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack

Or copy only this skill to ~/.claude/skills/security:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.claude/skills/security &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/security inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/security to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.agents/skills/security &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/security inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/security to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.cursor/skills/security &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/security inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/security

Or copy the folder to ~/.gemini/skills/security yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/security:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.copilot/skills/security &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/security inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/JasGujral/mokata-oss.git

Then copy mokata-oss/src/mokata/skills/security into your agent's skills folder as security. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Injection prevention rules
Requires parameterized queries and safe APIs instead of building SQL or shell commands from input.
Boundary input validation
Asks the agent to check external input against an allow-list of type, length, format and range.
Secrets handling checks
Keeps credentials out of code, config, logs and outbound traffic, and hashes them at rest where needed.
Server-side authorization
Requires access control on every protected action, denying by default and ignoring client-supplied roles.
Untrusted data posture
Classifies inputs by origin and treats embedded instructions in fetched content as data to surface.
Citation and verification steps
Asks the agent to confirm security claims against code and OWASP sources and flag anything unverified.

Good for

  • Review a login flow for server-side authorization gaps
  • Check a database query builder for injection risks
  • Audit how an app parses and validates user-submitted input
  • Make sure API keys are not committed or logged in a change
  • Assess a change that calls a third-party service for trust boundary issues

Security FAQ

When does Security engage?

It engages when an approach touches authentication, authorization, input handling, secrets, cryptography or an untrusted boundary, or when a change parses untrusted input, builds queries from input, handles credentials or calls a third party. It is not meant for purely internal refactors or presentational UI work.

Does Security run any scripts or tools?

No scripts are bundled with the skill. Its enforcement points refer to mokata's secret-guard, write gate and hard-rule path, which are part of the mokata pipeline rather than this folder.

Which OWASP sources does Security cite?

It cites the OWASP Top 10, the ASVS and several Cheat Sheets, including SQL Injection Prevention, Input Validation, Secrets Management, Authentication and Cryptographic Storage. The skill notes that the current ordering and level boundaries should be confirmed at the source URLs.

Can a human override a secret block?

According to the skill, secret blocks at the write or egress boundary cannot be overridden by human approval, and an adopted hard security rule is not overridden at runtime.

How do I install Security in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/security to use it in all your projects, or to .claude/skills/security in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

Does Security run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Security?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Security?

The closest alternatives to Security are Agent security hardening, Security review, Security review, Security model and Skill scanner.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from JasGujral/mokata-oss

  1. Makes the agent design API contracts first and check callers before changing them

    • Open source
    • 19 GitHub stars
    • Developer tools
  2. Gives an agent NestJS rules for guards, DTO validation, modules and tests

    • Open source
    • 19 GitHub stars
    • Developer tools
  3. Guides an agent through Socratic exploration of an approach before any spec or code

    • Open source
    • 19 GitHub stars
    • Developer tools
  4. Guides an agent to capture live browser console, network and page state for tests

    • Open source
    • 19 GitHub stars
    • Developer tools
  5. Guides the agent to reproduce a reported bug with a failing test before fixing it

    • Open source
    • 19 GitHub stars
    • Developer tools
  6. Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture

    • Open source
    • 19 GitHub stars
    • Developer tools