Agent enhancement worker

From oimiragieo/agent-studio · View interactive version

Agent enhancement worker is an AI agent skill from the GitHub repository oimiragieo/agent-studio. Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field

How to use this skill

Skill file

Agent Enhancement Worker

NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.

When to Use This Skill

Features that enhance agent definition schema and prompt assembler to support new frontmatter fields (disallowedTools, mcpServers, fork_eligible).

Work Procedure

  1. Read the feature description carefully. Understand which schema fields to add and how they affect prompt assembly.
  1. Read source files. Before modifying:
  1. Write tests first (red). Create test file at tests/lib/spawn/<descriptive-name>.test.cjs. Tests must cover:

Run tests — they should FAIL (red).

  1. Implement changes.
  1. Run tests (green). All tests pass.
  1. Run lint.

```

pnpm lint

npx prettier --check <modified-files>

```

Example Handoff

{
  "salientSummary": "Added disallowedTools, mcpServers, fork_eligible to agent schema. Prompt assembler excludes disallowed tools and scopes MCP servers. 30 tests.",
  "whatWasImplemented": "Schema updated with 3 new fields. filterAndDescribeTools() filters disallowedTools. buildMcpSection() scopes to agent's mcpServers. Conflict logging for tools/disallowedTools overlap.",
  "whatWasLeftUndone": "",
  "verification": {
    "commandsRun": [
      { "command": "node --test tests/lib/spawn/agent-enhancements.test.cjs", "exitCode": 0, "observation": "30 tests passing" },
      { "command": "pnpm lint", "exitCode": 0, "observation": "0 errors" }
    ]
  }
}

When to Return to Orchestrator

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.