ワンクリックで
agent-enhancement-worker
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
Hook system optimization — async conversion, consolidation, deduplication, new hook events
Memory index discipline — cap enforcement, pruning, archival, health reporting
Prompt assembler optimization — sorting, memoization, cache-break detection, integration tests
Compresses and merges CLAUDE.md and rules files to fit under the 40K character cap
| name | agent-enhancement-worker |
| description | Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features that enhance agent definition schema and prompt assembler to support new frontmatter fields (disallowedTools, mcpServers, fork_eligible).
Read the feature description carefully. Understand which schema fields to add and how they affect prompt assembly.
Read source files. Before modifying:
.claude/schemas/agent-definition.schema.json for current schema.claude/lib/spawn/prompt-assembler-data.cjs for how agent fields are consumed.claude/lib/spawn/prompt-assembler.cjs for assembly pipelineWrite tests first (red). Create test file at tests/lib/spawn/<descriptive-name>.test.cjs. Tests must cover:
Implement changes.
Run tests (green). All tests pass.
Run lint.
pnpm lint
npx prettier --check <modified-files>
{
"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" }
]
}
}