skills/dag-isolation-manager/SKILL.md
Manages agent isolation levels and resource boundaries. Configures strict, moderate, and permissive isolation profiles. Activate on 'isolation level', 'agent isolation', 'resource boundaries', 'sandboxing', 'agent containment'. NOT for permission validation (use dag-permission-validator) or runtime enforcement (use dag-scope-enforcer).
npx skillsauth add curiositech/windags-skills dag-isolation-managerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a DAG Isolation Manager, configuring agent containment based on trust and sensitivity. You select isolation profiles, handle privilege conflicts, and ensure secure boundaries.
Trust Level Assessment:
├─ UNTRUSTED (unknown code, external agents)
│ ├─ Sensitive Data? → STRICT isolation
│ └─ Public Data? → MODERATE isolation
├─ SEMI-TRUSTED (internal tools, known patterns)
│ ├─ Confidential Data? → MODERATE isolation
│ └─ Internal/Public Data? → PERMISSIVE isolation
└─ TRUSTED (verified agents, established workflows)
├─ Confidential Data? → MODERATE isolation
└─ Internal/Public Data? → PERMISSIVE isolation
Network Access Conflicts:
├─ Required for task + Strict isolation
│ └─ Escalate to MODERATE with domain whitelist
├─ Required for task + Moderate isolation
│ └─ Apply domain restrictions
└─ Not required
└─ Disable network access entirely
Child Agent Spawning:
├─ Parent = STRICT → Child must be STRICT
├─ Parent = MODERATE → Child can be STRICT or MODERATE
└─ Parent = PERMISSIVE → Child can be any level
Resource Limit Conflicts:
├─ Task needs > isolation limits
│ ├─ Can escalate isolation? → Escalate and retry
│ └─ Cannot escalate? → Fail with explanation
└─ Task fits within limits → Proceed
Schema Bloat
if (permissions.filePatterns.length > 20 || permissions.tools.length > 15)Privilege Creep
if (childLevel < parentLevel in hierarchy)Sandbox Escape
if (accessPath matches denyPatterns || !accessPath matches allowPatterns)Trust Mismatch
if (trustLevel === 'high' && isolationLevel === 'strict' && !dataSensitivity === 'confidential')Resource Starvation
if (hitLimits > 3 times && taskProgress < 50%)Scenario: Agent needs to analyze suspicious JavaScript file for security review
Decision Process:
Configuration:
isolation_profile: strict
permissions:
read: ['/tmp/analysis/**'] # Only analysis directory
write: ['/tmp/analysis/report.txt'] # Single output file
bash: false # No command execution
network: false # No outbound connections
resource_limits:
max_tokens: 10000 # Conservative limit
timeout_ms: 30000 # Short timeout
Expert Insight: Novice might allow moderate isolation since it's "just reading a file." Expert recognizes untrusted code could contain obfuscated exploits and locks down everything except minimal analysis needs.
Scenario: Parent agent (MODERATE) spawns child for data processing
Decision Process:
Configuration:
parent_isolation: moderate
child_isolation: strict # Escalated due to data sensitivity
inheritance_override: data_sensitivity_confidential
audit_log: "Child isolation escalated: confidential data processing"
Scenario: Processing financial records with trusted internal agent
Decision Process:
Do NOT use this skill for:
dag-permission-validatordag-scope-enforcerDelegate to other skills:
dag-permission-validatordag-scope-enforcerdag-parallel-executordag-performance-profilerdata-ai
license: Apache-2.0 NOT for unrelated tasks outside this domain.
development
Use when designing caching strategies (cache-aside, write-through, write-behind), implementing distributed locks, building rate limiters, leaderboards, real-time streams (XADD/consumer groups), pub/sub, or tuning eviction policies. Triggers: thundering-herd on cache miss, dogpile on key expiry, Redlock vs SET-NX-PX choice, sliding-window rate limiter, hot-key on a single cluster slot, big-key blowup, MULTI/EXEC across slots, KEYS in production. NOT for Redis Cluster operations/admin (different domain), embedded KV (SQLite, leveldb), in-process LRU caches, or Memcached.
tools
Drawing the `'use client'` boundary correctly in React Server Components apps (Next.js App Router, RSC frameworks) — leaf-pushing, slot composition, serialization rules, and environment poisoning prevention. Grounded in react.dev and Next.js 16 docs.
development
Use when designing rate limiting for an API, choosing between token bucket / sliding window / leaky bucket / fixed window, implementing it in Redis, deciding edge (Cloudflare/Upstash) vs origin enforcement, sizing per-user vs per-IP vs per-endpoint quotas, returning the right 429 response with Retry-After, or fixing the boundary-burst bug in fixed-window limiters. Triggers: 429 too many requests, INCR + EXPIRE, ZADD + ZREMRANGEBYSCORE + ZCARD, X-RateLimit-Remaining header, Cloudflare WAF rate limiting rules, Upstash @upstash/ratelimit, leaky bucket shaping vs policing, distributed rate limiter consistency. NOT for DDoS mitigation specifically (different scale), CAPTCHA / bot management, full WAF design, or per-user quota billing.