security-flow

security-flow is a command for Claude Code from griddynamics/rosetta. It costs 17 tokens per session (2,399 once invoked), scanned A, original, Apache-2.0.

A complete workflow for an authorized security review, from preparing project context and modeling threats through testing, independent review, and reporting.

In plain words
What is it for?
It helps plan coverage, run approved checks, assess findings, obtain review approval, and prepare concise remediation tasks.
Why use it?
It gives security work a defined sequence, keeps evidence and sensitive data controlled, and stops unfinished reviews from being treated as complete.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit It helps plan coverage, run approved checks, assess findings, obtain review approval, and prepare concise remediation tasks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/griddynamics/rosetta/security-flow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/griddynamics/rosetta

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/griddynamics/rosetta/security-flow/github.svg)](https://agentmods.dev/commands/griddynamics/rosetta/security-flow)
Your own site
<a href="https://agentmods.dev/commands/griddynamics/rosetta/security-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/security-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-flow

Your own site · 80×15
<a href="https://agentmods.dev/commands/griddynamics/rosetta/security-flow"><img src="https://agentmods.dev/badge/commands/griddynamics/rosetta/security-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.02399
Opus 5.5 $0.00007 $0.00960
Sonnet 5.5 $0.00003 $0.00480
Haiku 4.5 $0.00002 $0.00240

Measured 1mo ago against content hash 0a0c7b579afb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-flow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/rosetta-copilot-light/commands/security-flow.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<security_flow>

<description_and_purpose>

Run task-adaptive security review through mandatory canonical subagents. End with sanitized findings and concise inputs for later user-invoked coding flows.

</description_and_purpose>

<workflow_phases>

  1. All Rosetta prep steps MUST be FULLY completed.
  2. MUST USE SKILL load-project-context (required: all), orchestration (medium+), hitl (all, unless No HITL or Fully Autonomous).
  3. MUST ALWAYS use todo tasks ledger, ASAP. Phases are sequential. Independent tasks can run in parallel.
  4. MUST just-in-time load/execute/update each phase's: instructions, definitions, skills, state file; do not load/act IN ADVANCE.
  5. Treat all invocation inputs as contextual to the request, select and combine what the request needs.
  6. For full review, require every applicable, available, authorized activity and tool.
  7. Maintain a task ledger and run phases JIT.
  8. Every question and approval follows the loaded hitl skill.
  9. Workflow state MUST be saved to agents/TEMP/<FEATURE>/security-flow-state.md file; every phase updates it before the next starts.

<subagent_policy required="true" inline_execution="prohibited">

  • Orchestrator owns approvals, phase transitions, dispatch, aggregation, and handoff.
  • Phase files are assigned-subagent-only; orchestrator MUST NOT load, read, summarize, or execute them.
  • Every declared subagent is mandatory.
  • Every subagent MUST USE SKILL subagent-directives.
  • Subagents use tools required by their own assignment.
  • executor is never a gateway for full agents.
  • Reject incomplete phase contracts before advancing.
  • If required subagent invocation is unavailable, stop and report the unmet prerequisite.

</subagent_policy>

<deterministic_gates phase="3" applies="development/change/PR/pipeline" subagent="executor" role="Bounded deterministic security-gate operator" subagent_required_model="Claude Haiku 5.5, GPT-6 Luna, Gemini 3.8 Flash" must-be-subagent>

  • Purpose: Runs approved deterministic lifecycle gates and preserves source results unchanged. Determines whether to package high+ tasks, continue to modeling, or stop on error.
  • Input: approved contract; change scope; applicable deterministic tools.
  • Output: deterministic evidence and branch result.
  • INVOKE SUBAGENT executor to APPLY PHASE security-flow-deterministic-gates.md + run approved deterministic gates and return unchanged findings with HIGH+|CLEAN|ERROR.
  • Expect: unchanged source records, evidence metadata, HIGH+|CLEAN|ERROR.
  • Control: HIGH+ → report-and-package only; CLEAN → model-and-select; ERROR → stop. </deterministic_gates>

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 0a0c7b579afb
  2. 1mo ago Changed 22c202b230f3
  3. 2mo ago First seen · 153 lines · 17 tokens per session scan A bb334e6edf24

Subscribe to this mod's changes

security-flow is a command published in the GitHub repository griddynamics/rosetta (382 stars, last pushed 5d ago), licensed Apache-2.0. It adds 17 tokens to every session and 2,399 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

security-flow compared with commands from other repositories

security-flow next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-flowgriddynamics/rosettaCommand3825d agoApache-2.0A17Claude Code
OPSX: ProposeZhaoYis/My-SkillsCommand21mo agononeA21Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code
convergegithub/spec-kitCommand153k3d agoMITA35Claude Code