data-isolation-and-lifecycle

data-isolation-and-lifecycle is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 82 tokens per session (1,902 once invoked), scanned A, original, Apache-2.0.

A security review guide for data that is copied, cached, indexed, exported, imported, migrated, or deleted. It checks that every copy keeps the correct owner and access state.

In plain words
What is it for?
Use it when changing multi-tenant data, access-controlled records, soft deletion, signed links, exports, backups, migrations, search indexes, caches, or derived files.
Why use it?
Checking only the main database record can leave caches, search results, logs, backups, or download links accessible after ownership changes or deletion. It helps find tenant-mixing and stale-access problems across the full data lifecycle.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing multi-tenant data, access-controlled records, soft deletion, signed links, exports, backups, migrations, search indexes, caches, or derived files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle
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.

Any agent
npx skills add makifbaysal/tasktrooper --skill data-isolation-and-lifecycle
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

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 data-isolation-and-lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle/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 data-isolation-and-lifecycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/data-isolation-and-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,902 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.00082 $0.01902
Opus 5.5 $0.00033 $0.00761
Sonnet 5.5 $0.00016 $0.00380
Haiku 4.5 $0.00008 $0.00190

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

Security

Grade A, and why

data-isolation-and-lifecycle 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 12d 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.

catalog/agents/security-agent/skills/data-isolation-and-lifecycle/SKILL.md · 109 lines

How it starts

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

Data Isolation and Lifecycle

Overview

Endpoint checks protect one door. Data has many copies — a cache entry, a search document, a thumbnail, an export file, a log line, a backup, a queued job — and each copy has its own reader and its own retention. Isolation fails where a copy forgets who owns the data, or where a deleted or revoked record keeps working.

Core principle: pick one protected record the diff touches and follow it through every write, read, copy and state change. At each edge, name the code that enforces its owner. A tenant column is not that code.

1. A Tenant Field Is Not Isolation (CWE-639, CWE-863)

The owner column exists; the question is which query, policy or key enforces it on this path.

  • Bypass clients: Supabase's service-role key or a Postgres role with BYPASSRLS used in a request handler; a "system" repository that skips the tenant filter, called from a user-facing path.
  • Unscoped escapes: GORM Unscoped() (it also drops the soft-delete filter), Rails unscoped, a Django manager that is not the filtered default, Hibernate filters that do not apply to native queries, Prisma middleware that a raw query skips.
  • Policy and query disagree: row-level security on the table but the new view, function (SECURITY DEFINER), materialized view or aggregate reads around it; a join that brings in rows of another tenant through an unscoped relation.
-- ❌ SECURITY DEFINER runs as the function's owner; a table owner bypasses RLS
--    (unless FORCE ROW LEVEL SECURITY is set), so the caller's policy never applies
CREATE FUNCTION project_stats(p uuid) RETURNS TABLE(...) LANGUAGE sql SECURITY DEFINER
AS $$ SELECT ... FROM tasks WHERE project_id = p $$;
-- ✅ SECURITY INVOKER (the default), or filter on the caller's tenant inside the function

2. Keys and Namespaces Without the Tenant

Two principals collide on one logical key even though their records have separate owners:

  • cache keys built from a user-chosen name (report: + name) or from an id that is only unique per tenant;
  • object-storage keys from the uploaded filename (uploads/avatar.png) — one tenant overwrites or reads another's;
  • search document ids, deduplication keys, idempotency keys and lock names without the tenant;
  • globally unique constraints that let one tenant squat or probe another tenant's slug, email or domain.

Read the full file on GitHub · 109 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. 12d ago First seen · 109 lines · 82 tokens per session scan A fc458a8692a7

Subscribe to this mod's changes

data-isolation-and-lifecycle is a skill published in the GitHub repository makifbaysal/tasktrooper (121 stars, last pushed 7d ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,902 once invoked, about $0.0003 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-10-15.