Agent factory

From Sistema2D/FrameCode-VibeWork · View interactive version

Agent factory is an AI agent skill from the GitHub repository Sistema2D/FrameCode-VibeWork. Evidence-based gate for creating a new skill or agent profile. Use when someone proposes a new skill, agent or reusable procedure. Do not use to change an existing skill (self-improvement).

How to use this skill

Skill file

SKILL: Agent and Skill Factory

Purpose

Govern the creation of new skills and specialized agent profiles without allowing uncontrolled proliferation. This skill is a Markdown-only gate: it decides whether a recurring problem deserves a reusable procedural asset, a small checklist inside an existing document, or no new asset.

Activation Triggers

Load this skill before creating any new file under skills/ or any new agent profile when:

Inputs

Recurring task evidence, existing skill/catalog coverage, trigger and responsibility boundary, expected consumers, validation task, maintenance owner, and token/risk ROI estimate.

Decision Ladder

Use the smallest reusable asset that solves the problem:

| Level | Use when | Output |

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

| Inline checklist | One-off or low-risk clarification. | Add 3-7 bullets to the existing canonical document. |

| Template | Repeated output format is needed, but execution logic is simple. | Add a governance/TEMPLATE_*.md file. |

| Skill | A repeatable procedure has clear triggers, gates, validation, and exit criteria. | Add skills/<name>/SKILL.md. |

| Agent profile | A bounded role must execute a specialized loop with tools, journals, or handoff. | Add or update a focused agent-* skill/profile. |

Creation Gate

Creation is allowed only when all required metrics pass:

| Metric | Pass threshold |

|---|---|

| Recurrence | At least 2 independent occurrences, or 1 P1/P2 high-risk blocker. |

| Coverage gap | Existing docs/skills cover less than 70% of the needed procedure. |

| Token ROI | Expected initial-context reduction of at least 20%, or avoids adding 500+ words to base-loaded docs. |

| Risk ROI | Reduces a recurrent failure class, compliance risk, data risk, monolith risk, or validation gap. |

| Scope narrowness | One trigger family, one responsibility, one primary output, and one validation path. |

| Validation path | The new asset can be tested against at least one real plan/session/task. |

If any metric fails, do not create a new skill or agent. Patch an existing document or defer with evidence.

Agent vs Skill Criteria

Create a skill when the asset is a procedure any agent can execute.

Create an agent profile only when all extra criteria pass:

Do not create persona-only agents, motivational roles, vague "expert" agents, or agents whose only difference is tone.

Block Conditions

Stop creation when any condition is true:

Output Required

For every allowed creation, create or fill the proposal section of governance/TEMPLATE_SKILL_CHANGE.md and record the compact block below in the active plan:

## Agent/Skill Creation Gate

- Skill loaded: `skills/agent-factory/SKILL.md`
- Proposed asset:
- Asset type: `inline checklist` / `template` / `skill` / `agent profile`
- Evidence of recurrence:
- Existing coverage checked:
- Token ROI:
- Risk ROI:
- Scope boundary:
- Validation task:
- Decision: `create` / `patch existing` / `defer`

Exit Criteria

Creation is complete only when the asset has triggers, non-responsibilities, validation criteria, catalog/index updates, changelog entry, and at least one recorded use case.

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.