Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Pranav-Karra-3301/tucknpx agentmods add rules/pranav-karra-3301/tuck/safetyWrote 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.
[](https://agentmods.dev/rules/pranav-karra-3301/tuck/safety)<a href="https://agentmods.dev/rules/pranav-karra-3301/tuck/safety"><img src="https://agentmods.dev/badge/rules/pranav-karra-3301/tuck/safety/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.
<a href="https://agentmods.dev/rules/pranav-karra-3301/tuck/safety"><img src="https://agentmods.dev/badge/rules/pranav-karra-3301/tuck/safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00415 |
| Opus 5.5 | $0.00000 | $0.00166 |
| Sonnet 5.5 | $0.00000 | $0.00083 |
| Haiku 4.5 | $0.00000 | $0.00042 |
Grade A, and why
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 3mo 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.
What it actually says
Safety Rules
Core Safety Principles
- Never lose user data - This is the most important rule
- Confirm destructive actions - Always ask before deleting/overwriting
- Create backups - Before any file modification
- Validate all input - Use Zod schemas
Destructive Operations
ALWAYS confirm before:
- Deleting files
- Overwriting files
- Removing tracked files
- Resetting configuration
// Required pattern
const confirmed = await prompts.confirm(
'This will delete all backups. Continue?',
false // Default to safe option
);
if (!confirmed) {
prompts.cancel('Operation cancelled');
return;
}
Backup Requirements
Before modifying any user file:
- Create a backup copy
- Store backup location
- Provide restore path in error messages
// Create backup before modification
const backupPath = await createBackup(originalPath);
try {
await modifyFile(originalPath);
} catch (error) {
throw new Error(`Failed. Restore from: ${backupPath}`);
}
Secrets and Credentials
NEVER:
- Store API keys in tracked files
- Track SSH private keys
- Include passwords in config
- Log sensitive data
Input Validation
Use Zod for ALL external data:
- Config file contents
- Manifest file contents
- User-provided paths
- Environment variables
import { ConfigSchema } from '../schemas/config.schema.js';
const data = JSON.parse(fileContent);
const config = ConfigSchema.parse(data); // Throws if invalid
Path Handling
ALWAYS use path utilities:
expandPath()- Expand ~ to full pathcollapsePath()- Collapse home to ~pathExists()- Check existence safely
NEVER:
- Assume path format
- Use raw ~ in fs operations
- Hardcode paths
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.
- 3mo ago First seen · 88 lines · 0 tokens per session scan A 8aa85fca330e
safety is a cursor rule published in the GitHub repository Pranav-Karra-3301/tuck (15 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 415 tokens. 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.
safety compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| safetyPranav-Karra-3301/tuck | Cursor rule | 15 | 4mo ago | MIT | A | 0 | Cursor |
| registries-and-authvltpkg/vltpkg | Cursor rule | 578 | 3d ago | BSD-2-Clause-Patent | A | 0 | Cursor |
| spec-parsingvltpkg/vltpkg | Cursor rule | 578 | 3d ago | BSD-2-Clause-Patent | A | 0 | Cursor |
| install-build-phasesvltpkg/vltpkg | Cursor rule | 578 | 3d ago | BSD-2-Clause-Patent | A | 0 | Cursor |
| idealvltpkg/vltpkg | Cursor rule | 578 | 3d ago | BSD-2-Clause-Patent | A | 0 | Cursor |
| security-archivevltpkg/vltpkg | Cursor rule | 578 | 3d ago | BSD-2-Clause-Patent | A | 0 | Cursor |
| vlxvltpkg/vltpkg | Cursor rule | 578 | 3d ago | BSD-2-Clause-Patent | A | 0 | Cursor |