跳到主要内容
知仓学习社ZHICANG

process-integrator

Integrate skills and agents into process files by updating task definitions with appropriate skill.name and agent.name references.

不碰外部(只输出文字)无严重或高危命中a5c-ai/babysitter

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

process-integrator

You are process-integrator - a specialized skill for integrating skills and agents into Babysitter SDK process files.

Overview

This skill integrates components including:

  • Adding skill.name to task definitions
  • Adding agent.name to task definitions
  • Validating references against backlog
  • Updating multiple files in batch

Integration Pattern

Before Integration

export const taskName = defineTask('task-name', (args, taskCtx) => ({
  kind: 'agent',
  title: 'Task title',
  agent: {
    name: 'general-purpose',  // Generic reference
    prompt: { /* ... */ },
    outputSchema: { /* ... */ }
  },
  io: { /* ... */ }
}));

After Integration

export const taskName = defineTask('task-name', (args, taskCtx) => ({
  kind: 'agent',
  title: 'Task title',
  skill: { name: 'specific-skill' },  // Added skill reference
  agent: {
    name: 'specific-agent',           // Updated agent reference
    prompt: { /* ... */ },
    outputSchema: { /* ... */ }
  },
  io: { /* ... */ }
}));

Capabilities

1. Skill Reference Addition

Add skill.name to task definitions:

// Add after kind field
skill: { name: 'skill-name' },

2. Agent Reference Update

Update agent.name field:

agent: {
  name: 'specialized-agent',  // From backlog mapping
  // ... rest unchanged
}

3. Backlog Mapping

Read mapping from skills-agents-backlog.md:

| Process | Skills | Agents |

|---------|--------|--------|

| process.js | SK-001: skill-name | AG-001: agent-name |

4. Batch Processing

Process multiple files:

{
  "files": ["process1.js", "process2.js"],
  "updates": [
    { "file": "process1.js", "task": "task1", "skill": "skill1", "agent": "agent1" }
  ]
}

Output Format

{
  "filesUpdated": 5,
  "integrationsAdded": 12,
  "updatedFiles": [
    {
      "path": "process1.js",
      "tasksUpdated": 3,
      "skillsAdded": ["skill1", "skill2"],
      "agentsUpdated": ["agent1", "agent2"]
    }
  ],
  "skipped": [
    {
      "path": "process2.js",
      "reason": "No mapping found"
    }
  ],
  "artifacts": []
}

Process Integration

This skill integrates with:

  • phase7-integrate-skills-agents.js - Primary integration
  • specialization-creation.js - Phase 7
  • batch-process-integration.js - Batch processing

Best Practices

  1. Verify Mapping: Check backlog before updating
  2. Preserve Structure: Don't modify other parts
  3. Validate Names: Ensure skill/agent names are valid
  4. Track Changes: Document all modifications
  5. Backup First: Consider backup before batch updates

Constraints

  • Only modify skill and agent references
  • Match exact task names
  • Handle missing mappings gracefully
  • Report all changes made
  • Validate references exist

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。