role-generator

role-generator is a skill for Claude Code from solofounder-ai/solofounder. It costs 32 tokens per session (2,235 once invoked), scanned A, original, MIT.

A role-definition tool that turns an approved workflow into specialist roles with subject-specific expertise, review checklists, and rules for handling exceptions.

In plain words
What is it for?
Defining agent roles after a workflow is approved, adding roles when a workflow expands, and creating specialist roles to resolve disagreements during execution.
Why use it?
It prevents broad workflow stages from being assigned to vague, general-purpose agents. Each role is tailored to the work it must perform.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the solofounder plugin — 10 skills, 1 hook shipped together

Good fit Defining agent roles after a workflow is approved, adding roles when a workflow expands, and creating specialist roles to resolve disagreements during execution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/solofounder-ai/solofounder/role-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add solofounder-ai/solofounder --skill role-generator
Clone the repo
git clone --depth 1 https://github.com/solofounder-ai/solofounder

Made for: Claude Code.

Or install solofounder, the plugin that ships this one along with the rest of its 10 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for role-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/solofounder-ai/solofounder/role-generator/github.svg)](https://agentmods.dev/skills/solofounder-ai/solofounder/role-generator)
Your own site
<a href="https://agentmods.dev/skills/solofounder-ai/solofounder/role-generator"><img src="https://agentmods.dev/badge/skills/solofounder-ai/solofounder/role-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for role-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/solofounder-ai/solofounder/role-generator"><img src="https://agentmods.dev/badge/skills/solofounder-ai/solofounder/role-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.02235
Opus 5 $0.00016 $0.01118
Sonnet 5 $0.00006 $0.00447
Haiku 4.5 $0.00003 $0.00224

Measured 12d ago against content hash 3cea3529e8e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

role-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/role-generator/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role Generator

Overview

The Role Generator takes an approved flow and creates specialist role definitions — not generic agents, but deeply specialized for this specific project and request.

Core principle: A generic "Backend Agent" gives generic advice. A "C# ASP.NET 10 + Entity Framework Core 10 + Azure SQL Backend Specialist" gives advice that's actually useful. Every role is specialized.

When to Use

Invoked by solofounder:flow-composer at two points:

  1. After flow approval — generate roles for the CURRENT batch of stages only (not all stages if the flow has EXPAND markers)
  2. After flow expansion — when an EXPAND point is reached and new stages are generated, generate roles for those new stages
  3. On-demand — during stage execution to generate arbiter roles for conflict resolution

CRITICAL: Only generate roles for stages that exist NOW. If the flow has an EXPAND marker after Stage 2, only generate roles for Stages 1-2. Stages 3+ don't exist yet — their roles will be generated when the flow expands after architecture decisions are made.

The Process

digraph role_generator {
    "Approved flow arrives" [shape=doublecircle];
    "Existing roles in .solofounder/roles/?" [shape=diamond];
    "Load existing roles" [shape=box];
    "Read project context" [shape=box];
    "Read stack/domain learning" [shape=box];
    "Generate role for each specialist" [shape=box];
    "Save to .solofounder/roles/" [shape=box];
    "Present team to user" [shape=box];
    "User approves?" [shape=diamond];
    "Adjust roles" [shape=box];
    "Begin stage execution" [shape=doublecircle];

    "Approved flow arrives" -> "Existing roles in .solofounder/roles/?";
    "Existing roles in .solofounder/roles/?" -> "Load existing roles" [label="yes"];
    "Existing roles in .solofounder/roles/?" -> "Read project context" [label="no"];
    "Load existing roles" -> "Read project context";
    "Read project context" -> "Read stack/domain learning";
    "Read stack/domain learning" -> "Generate role for each specialist";
    "Generate role for each specialist" -> "Save to .solofounder/roles/";
    "Save to .solofounder/roles/" -> "Present team to user";
    "Present team to user" -> "User approves?";
    "User approves?" -> "Adjust roles" [label="no"];
    "Adjust roles" -> "Present team to user";
    "User approves?" -> "Begin stage execution" [label="yes"];
}

Read the full file on GitHub · 235 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 235 lines · 32 tokens per session scan A 3cea3529e8e2

Subscribe to this mod's changes

role-generator is a skill published in the GitHub repository solofounder-ai/solofounder (3 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 2,235 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

codex

Run the Codex CLI directly in the user's checkout for code analysis, refactoring, or automated editing without Claude Architect's verified delegation lifecycle.

PyModel/claude-architect · 31 tokens

commit

A guided process for committing code changes to Git. It checks the working tree, follows a conventional commit format, links a task when available, reviews the changes, and asks for approval.

restarter/lets-workflow · 90 tokens

orient

Internal skill for commands. Render the shared orientation snapshot - active task, what's in flight, what's next - tracker-universal. Do not trigger on user conversation; only when a command needs the snapshot.

restarter/lets-workflow · 42 tokens

design

Create a doc-as-code design package from a PRD or SPEC. Conditionally generates C4 diagrams (Context/Container/Component), sequence diagrams, ER diagram + Data Dictionary, OpenAPI 3.0, AsyncAPI 3.0, ADRs, domain glossary, state diagrams, and deployment view as Mermaid-rendered Markdown files. Use when PM mentions…

cryndoc/polisade-orchestrator · 162 tokens

x-cr

A software-correctness investigation skill for finding why code behaves differently from what was expected. It uses evidence from code paths, specifications, tests, logs, and changes to assess possible causes.

KtKID/x-dev-pipeline · 183 tokens

x-multi-llm-align

A review process in which two sub-agents examine an API, data format, event schema, or workflow from their separate implementation perspectives. The user passes documents and feedback between them over multiple rounds.

KtKID/x-dev-pipeline · 293 tokens