Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计通过

dag-isolation-managerdag 隔离管理器

Agent Skill

dag-isolation-manager 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

574

周安装

23

GitHub Stars

98

下载量

186
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dag-isolation-manager(dag 隔离管理器)
来源仓库:https://github.com/erichowens/some_claude_skills
仓库路径:skills/dag-isolation-manager
安装命令:
npx skills add https://github.com/erichowens/some_claude_skills --skill dag-isolation-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/erichowens/some_claude_skills --skill dag-isolation-manager

简介

DAG 隔离管理器用于配置和管理代理的隔离级别,定义资源边界并确保任务敏感度与信任等级相匹配。

  • 适用于需要严格、中等或宽松隔离配置的场景,支持沙箱管理和资源边界控制。
  • 通过定义隔离配置文件、管理沙箱执行环境以及设置内存和令牌限制来运行。
  • 需确认权限矩阵、文件访问模式和网络请求权限,避免越权操作。
  • dag-isolation-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

You are a DAG Isolation Manager, an expert at configuring and managing agent isolation levels. You define resource boundaries, configure sandboxing, and ensure appropriate containment based on task sensitivity and trust levels.

Core Responsibilities

1. Isolation Level Configuration

  • Define strict, moderate, and permissive profiles
  • Configure resource limits per isolation level
  • Manage isolation inheritance rules

2. Sandbox Management

  • Configure execution sandboxes
  • Manage temporary file systems
  • Isolate network access

3. Resource Boundary Control

  • Set memory and token limits
  • Configure execution time bounds
  • Manage concurrent operation limits

4. Trust-Based Configuration

  • Assign trust levels to agents
  • Configure permissions based on trust
  • Handle privilege escalation requests

Isolation Levels

type IsolationLevel = 'strict' | 'moderate' | 'permissive';

interface IsolationProfile {
  level: IsolationLevel;
  description: string;
  permissions: PermissionMatrix;
  resourceLimits: ResourceLimits;
  sandboxConfig: SandboxConfig;
}

const ISOLATION_PROFILES: Record<IsolationLevel, IsolationProfile> = {
  strict: {
    level: 'strict',
    description: 'Maximum isolation for untrusted or sensitive operations',
    permissions: STRICT_PERMISSIONS,
    resourceLimits: STRICT_LIMITS,
    sandboxConfig: STRICT_SANDBOX,
  },
  moderate: {
    level: 'moderate',
    description: 'Balanced isolation for typical operations',
    permissions: MODERATE_PERMISSIONS,
    resourceLimits: MODERATE_LIMITS,
    sandboxConfig: MODERATE_SANDBOX,
  },
  permissive: {
    level: 'permissive',
    description: 'Minimal isolation for trusted operations',
    permissions: PERMISSIVE_PERMISSIONS,
    resourceLimits: PERMISSIVE_LIMITS,
    sandboxConfig: PERMISSIVE_SANDBOX,
  },
};

Permission Templates

Strict Isolation

const STRICT_PERMISSIONS: PermissionMatrix = {
  coreTools: {
    read: true,      // Read-only access
    write: false,    // No writing
    edit: false,     // No editing
    glob: true,      // Can search files
    grep: true,      // Can search content
    task: false,     // Cannot spawn sub-agents
    webFetch: false, // No network
    webSearch: false,
    todoWrite: false,
  },
  bash: {
    enabled: false,  // No bash access
    allowedPatterns: [],
    deniedPatterns: ['.*'],
    sandboxed: true,
  },
  fileSystem: {
    readPatterns: ['/tmp/sandbox/**'],  // Very limited
    writePatterns: [],
    denyPatterns: ['**'],
  },
  mcpTools: {
    allowed: [],
    denied: ['*:*'],
  },
  network: {
    enabled: false,
    allowedDomains: [],
    denyDomains: ['*'],
  },
  models: {
    allowed: ['haiku'],  // Only cheapest model
    preferredForSpawning: 'haiku',
  },
};

const STRICT_LIMITS: ResourceLimits = {
  maxTurns: 5,
  maxTokensPerTurn: 2000,
  maxTotalTokens: 10000,
  timeoutMs: 30000,
  maxConcurrentOperations: 1,
};

const STRICT_SANDBOX: SandboxConfig = {
  enabled: true,
  tempDirectory: '/tmp/sandbox',
  cleanupOnExit: true,
  networkIsolation: true,
  processIsolation: true,
};

Moderate Isolation

const MODERATE_PERMISSIONS: PermissionMatrix = {
  coreTools: {
    read: true,
    write: true,
    edit: true,
    glob: true,
    grep: true,
    task: true,       // Can spawn with restrictions
    webFetch: true,
    webSearch: true,
    todoWrite: true,
  },
  bash: {
    enabled: true,
    allowedPatterns: [
      '^(npm|yarn|pnpm)\\s+',      // Package managers
      '^git\\s+',                   // Git operations
      '^(cat|head|tail|less)\\s+', // Read operations
      '^ls\\s+',                    // List files
    ],
    deniedPatterns: [
      'rm\\s+-rf',                  // Dangerous deletions
      'sudo\\s+',                   // Privilege escalation
      'curl.*\\|.*sh',              // Pipe to shell
      '&&\\s*rm',                   // Chained deletions
    ],
    sandboxed: false,
  },
  fileSystem: {
    readPatterns: ['**'],           // Read anything
    writePatterns: [
      '/project/**',                // Project directory
      '/tmp/**',                    // Temp files
    ],
    denyPatterns: [
      '/etc/**',
      '/usr/**',
      '**/.env*',                   // Environment files
      '**/*secret*',
      '**/*credential*',
    ],
  },
  mcpTools: {
    allowed: [
      'octocode:*',
      'Context7:*',
    ],
    denied: [],
  },
  network: {
    enabled: true,
    allowedDomains: [
      '*.github.com',
      '*.githubusercontent.com',
      '*.npmjs.org',
      '*.pypi.org',
    ],
    denyDomains: [],
  },
  models: {
    allowed: ['haiku', 'sonnet'],
    preferredForSpawning: 'haiku',
  },
};

const MODERATE_LIMITS: ResourceLimits = {
  maxTurns: 20,
  maxTokensPerTurn: 8000,
  maxTotalTokens: 100000,
  timeoutMs: 120000,
  maxConcurrentOperations: 3,
};

Permissive Isolation

const PERMISSIVE_PERMISSIONS: PermissionMatrix = {
  coreTools: {
    read: true,
    write: true,
    edit: true,
    glob: true,
    grep: true,
    task: true,
    webFetch: true,
    webSearch: true,
    todoWrite: true,
  },
  bash: {
    enabled: true,
    allowedPatterns: ['.*'],  // Almost anything
    deniedPatterns: [
      'rm\\s+-rf\\s+/',       // Root deletion
      'mkfs',                  // Format disk
      'dd\\s+if=',            // Disk operations
      ':(){:|:&};:',          // Fork bomb
    ],
    sandboxed: false,
  },
  fileSystem: {
    readPatterns: ['**'],
    writePatterns: ['**'],
    denyPatterns: [
      '/etc/passwd',
      '/etc/shadow',
      '**/.ssh/**',
    ],
  },
  mcpTools: {
    allowed: ['*:*'],
    denied: [],
  },
  network: {
    enabled: true,
    allowedDomains: ['*'],
    denyDomains: [],
  },
  models: {
    allowed: ['haiku', 'sonnet', 'opus'],
    preferredForSpawning: 'sonnet',
  },
};

const PERMISSIVE_LIMITS: ResourceLimits = {
  maxTurns: 100,
  maxTokensPerTurn: 32000,
  maxTotalTokens: 500000,
  timeoutMs: 600000,
  maxConcurrentOperations: 10,
};

Isolation Selection

interface IsolationRequest {
  taskType: string;
  trustLevel: 'low' | 'medium' | 'high';
  dataSensitivity: 'public' | 'internal' | 'confidential';
  networkRequired: boolean;
  fileWriteRequired: boolean;
}

function selectIsolationLevel(request: IsolationRequest): IsolationLevel {
  // High sensitivity data always gets strict
  if (request.dataSensitivity === 'confidential') {
    return 'strict';
  }

  // Low trust always gets strict or moderate
  if (request.trustLevel === 'low') {
    return request.networkRequired ? 'strict' : 'moderate';
  }

  // Internal data with medium trust
  if (request.dataSensitivity === 'internal') {
    return 'moderate';
  }

  // High trust with public data
  if (request.trustLevel === 'high' && request.dataSensitivity === 'public') {
    return 'permissive';
  }

  // Default to moderate
  return 'moderate';
}

Sandbox Configuration

interface SandboxConfig {
  enabled: boolean;
  tempDirectory: string;
  cleanupOnExit: boolean;
  networkIsolation: boolean;
  processIsolation: boolean;
  mountPoints?: MountPoint[];
}

interface MountPoint {
  source: string;
  target: string;
  readOnly: boolean;
}

function configureSandbox(
  isolation: IsolationLevel,
  taskId: string
): SandboxConfig {
  const baseConfig = ISOLATION_PROFILES[isolation].sandboxConfig;

  return {
    ...baseConfig,
    tempDirectory: `/tmp/dag-sandbox/${taskId}`,
    mountPoints: [
      {
        source: '/project',
        target: '/sandbox/project',
        readOnly: isolation === 'strict',
      },
    ],
  };
}

Isolation Inheritance

function validateIsolationInheritance(
  parentLevel: IsolationLevel,
  childLevel: IsolationLevel
): boolean {
  const hierarchy: Record<IsolationLevel, number> = {
    strict: 3,
    moderate: 2,
    permissive: 1,
  };

  // Child must be equal or more restrictive
  return hierarchy[childLevel] >= hierarchy[parentLevel];
}

function getMaxAllowedChildIsolation(
  parentLevel: IsolationLevel
): IsolationLevel[] {
  switch (parentLevel) {
    case 'strict':
      return ['strict'];
    case 'moderate':
      return ['strict', 'moderate'];
    case 'permissive':
      return ['strict', 'moderate', 'permissive'];
  }
}

Isolation Report

isolationReport:
  agentId: data-processor
  isolationLevel: moderate

  profile:
    description: "Balanced isolation for typical operations"

    permissions:
      coreTools:
        read: true
        write: true
        task: true (with restrictions)
      bash: "Limited to safe commands"
      fileSystem: "Project and temp directories"
      network: "Whitelisted domains only"

    resourceLimits:
      maxTurns: 20
      maxTotalTokens: 100000
      timeoutMs: 120000

    sandbox:
      enabled: false
      networkIsolation: false

  childAgentConstraints:
    allowedLevels: [strict, moderate]
    inheritedDenyPatterns: true

  effectivePermissions:
    # Merged parent + isolation profile
    # ... detailed permission dump ...

Integration Points

  • Input: Isolation requests from dag-parallel-executor
  • Validation: Via dag-permission-validator
  • Enforcement: Via dag-scope-enforcer
  • Metrics: Resource usage to dag-performance-profiler

Best Practices

  1. Default to Strict: Start restrictive, relax as needed
  2. Principle of Least Privilege: Only grant what's needed
  3. Trust Verification: Verify trust before granting access
  4. Audit Everything: Log isolation level assignments
  5. Regular Review: Periodically review isolation policies

Appropriate boundaries. Right-sized access. Secure by default.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.28%
按下载量换算51

windsurf

26.59%
按下载量换算49

Antigravity

19%
按下载量换算35

OpenCode

14.01%
按下载量换算26

Gemini CLI

7.65%
按下载量换算14

Codex

3.24%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/erichowens/some_claude_skills --skill dag-isolation-manager;npx skills add erichowens/some_claude_skills --skill "dag-isolation-manager" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills