check-path-safety

check-path-safety is a command for Claude Code from 2ue/ccman. It costs 17 tokens per session (1,351 once invoked), scanned A, original, no licence file.

A code check for file-path operations, such as reading, writing, or deleting files, with attention to keeping development and test work away from production files.

In plain words
What is it for?
Use it to review code that handles file paths and check whether it could accidentally target the production environment.
Why use it?
It helps prevent code run during development or testing from changing live data or files.

Command for Claude Code

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.

agentmods
npx agentmods add commands/2ue/ccman/check-path-safety
Clone the repo
git clone --depth 1 https://github.com/2ue/ccman

Made for: Claude Code.

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 1,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00017 $0.01351
Opus 5 $0.00009 $0.00675
Sonnet 5 $0.00003 $0.00270
Haiku 4.5 $0.00002 $0.00135

Measured 3d ago against content hash 075210143988, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

check-path-safety 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 3d 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.

.claude/commands/check-path-safety.md · 187 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 3d ago First seen · 187 lines · 17 tokens per session scan A 075210143988

Subscribe to this mod's changes

check-path-safety is a command published in the GitHub repository 2ue/ccman (52 stars, last pushed 2mo ago), with no licence file. It adds 17 tokens to every session and 1,351 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other commands, from other repositories

convert-to-todowrite-tasklist-prompt

Purpose: Transform verbose, context-heavy slash commands into efficient TodoWrite tasklist-based methods with parallel subagent execution for 60-70% speed improvements.

centminmod/my-claude-code-setup · 0 tokens

create-release-note

Generate comprehensive release documentation from recent commits, producing two distinct outputs: a customer-facing release note and a technical engineering note.

centminmod/my-claude-code-setup · 0 tokens

apply-thinking-to

You are an expert prompt engineering specialist with deep expertise in applying Anthropic's extended thinking patterns to enhance prompt effectiveness. Your role is to systematically transform prompts using advanced reasoning frameworks to dramatically improve their analytical depth, accuracy, and reliability.

centminmod/my-claude-code-setup · 0 tokens

cleanup-context

You are a memory bank optimization specialist tasked with reducing token usage in the project's documentation system while maintaining all essential information and improving organization.

centminmod/my-claude-code-setup · 0 tokens

batch-operations-prompt

Optimize prompts for multiple file operations, parallel processing, and efficient bulk changes across a codebase. This helps Claude Code work more efficiently with TodoWrite patterns.

centminmod/my-claude-code-setup · 0 tokens

explain-architecture-pattern

Identify and explain architectural patterns, design patterns, and structural decisions found in the codebase. This helps understand the "why" behind code organization and design choices.

centminmod/my-claude-code-setup · 0 tokens