pi-packages: Skill for Claude Code

.pi/skills/shell-traps/SKILL.md

shell-traps is a skill for Claude Code, Codex from gotgenes/pi-packages. It costs 56 tokens per session (769 once invoked), scanned A, original, no licence file.

A rule for risky shell commands, which are commands run in a terminal. It covers pipelines, loops, multi-line input, in-place text edits, GitHub command bodies, and checks based on piped output.

In plain words
What is it for?
Use it before complex shell calls, in-place edits, GitHub body commands, piped commit checks, or repeating an earlier count.
Why use it?
It helps avoid mistakes when shell syntax, command side effects, or changing output could make a check misleading.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

This is gotgenes/pi-packages's own configuration. It tells Claude Code and Codex how to work on pi-packages itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pi-packages configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gotgenes/pi-packages. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gotgenes/pi-packages/main/.pi/skills/shell-traps/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/gotgenes/pi-packages

Made for: Claude Code, Codex.

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 shell-traps

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotgenes/pi-packages/shell-traps/github.svg)](https://agentmods.dev/skills/gotgenes/pi-packages/shell-traps)
Your own site
<a href="https://agentmods.dev/skills/gotgenes/pi-packages/shell-traps"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-packages/shell-traps/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 shell-traps

Your own site · 80×15
<a href="https://agentmods.dev/skills/gotgenes/pi-packages/shell-traps"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-packages/shell-traps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 769 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 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.1 $0.00056 $0.00769
Opus 5.5 $0.00022 $0.00308
Sonnet 5.5 $0.00011 $0.00154
Haiku 4.5 $0.00006 $0.00077

Measured 21d ago against content hash f3321a2b12c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shell-traps 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 21d 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.

.pi/skills/shell-traps/SKILL.md · 44 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. 21d ago Changed · +1 lines f3321a2b12c4
  2. 22d ago Changed eedacd5a71e6
  3. 1mo ago Changed · +1 lines 53c9ed9ccb7a
  4. 1mo ago First seen · 42 lines · 56 tokens per session scan A be3cd633d9ae

Subscribe to this mod's changes

shell-traps is a skill published in the GitHub repository gotgenes/pi-packages (274 stars, last pushed 2d ago), with no licence file. It adds 56 tokens to every session and 769 once invoked, about $0.0002 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-19.

Related

Other skills, from other repositories

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

mui/material-ui · 76 tokens

Development

Builds, tests, modifies and checks up on software against its ISA, from a one-file change to a giant system. Build turns intent into ISA criteria and makes them pass; Test proves the ISA is well formed, matches the code, and every criterion's Assay eval passes; Modify changes criteria first, then code; Checkup joins…

danielmiessler/LifeOS · 0 tokens

LifeOSHooks

The LifeOS function-hook plugin: check it is armed, explain why a line or banner was or was not drawn, regenerate its types after a Claude Code update, sync pure-core copies, run its probes. USE WHEN function hooks, LifeOSHooks, the plugin, hook-drawn lines, banner missing, memory line missing, plugin types…

danielmiessler/LifeOS · 114 tokens

Hermes

Hermes sidecar observability: health, failure triage, cron, guard blocks, logs, traces. USE WHEN hermes, sidecar, hermes failed, hermes task failed, iMessage task failed, message task failed, why did hermes fail, hermes not calling LifeOS, hermes status, hermes health, trace hermes, hermes session, hermes logs, hermes…

danielmiessler/LifeOS · 0 tokens

RootCauseAnalysis

Structured incident investigation using Five Whys, Fishbone, blameless Postmortem, Fault Tree, Kepner-Tregoe, and FMEA — traces failures to systemic root causes rather than blaming humans. USE WHEN root cause, RCA, 5 whys, fishbone, postmortem, incident analysis, fault tree, why does this keep failing, blameless…

danielmiessler/LifeOS · 93 tokens

Vitals

Read-only macOS performance inspection: a deterministic CLI gathers the numbers, Interpretation.md turns them into a diagnosis instead of a data dump.

danielmiessler/LifeOS · 129 tokens