Workforce Optimization

Workforce Optimization is a skill for Claude Code, Codex from Xiaowen-Jiang/agent-enterprise. It costs 16 tokens per session (551 once invoked), scanned A, original, MIT.

A review of workforce costs, performance, model assignments, and provider prices for a group of agents. It uses those details to suggest changes to the models or roles assigned to agents.

In plain words
What is it for?
Use it to compare cost and performance, prioritize optimization recommendations, and apply approved model changes.
Why use it?
It helps find cases where an agent costs more than needed, performs poorly, or uses a model that does not fit its work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare cost and performance, prioritize optimization recommendations, and apply approved model changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaowen-jiang/agent-enterprise/workforce_optimization
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 Xiaowen-Jiang/agent-enterprise --skill workforce_optimization
Clone the repo
git clone --depth 1 https://github.com/Xiaowen-Jiang/agent-enterprise

Made for: Claude Code, Codex.

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 Workforce Optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaowen-jiang/agent-enterprise/workforce_optimization/github.svg)](https://agentmods.dev/skills/xiaowen-jiang/agent-enterprise/workforce_optimization)
Your own site
<a href="https://agentmods.dev/skills/xiaowen-jiang/agent-enterprise/workforce_optimization"><img src="https://agentmods.dev/badge/skills/xiaowen-jiang/agent-enterprise/workforce_optimization/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 Workforce Optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaowen-jiang/agent-enterprise/workforce_optimization"><img src="https://agentmods.dev/badge/skills/xiaowen-jiang/agent-enterprise/workforce_optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 551 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.00016 $0.00551
Opus 5.5 $0.00006 $0.00220
Sonnet 5.5 $0.00003 $0.00110
Haiku 4.5 $0.00002 $0.00055

Measured 1mo ago against content hash 37f89e491ece, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Workforce Optimization 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 1mo 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.

agent_enterprise/skills_data/workforce_optimization/SKILL.md · 68 lines

How it starts

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

Workforce Optimization

You are conducting a workforce cost and performance optimization review.

Process

  1. Gather Data: Call analyze_workforce to get the current workforce snapshot (costs, performance scores, model assignments, provider costs).

  2. Analyze: Review each agent against the decision matrix below.

  3. Recommend: Produce a prioritized list of changes with expected impact.

  4. Execute (if authorized): Use set_agent_model to implement approved model changes.

Decision Matrix

Performance Cost Action
High High Consider cheaper model — agent delivers well, may not need expensive model
Low High Investigate — may need termination, retraining, or role change
High Low Keep current setup — optimal cost-performance ratio
Low Low May need a more capable model or clearer task instructions

Cost Optimization Rules

  • Workers doing routine tasks (coding, research) should use cheaper models (Haiku, GPT-4o-mini, Gemini Flash)
  • Managers doing synthesis and delegation need capable models (Sonnet, GPT-4o) — do not downgrade without CEO approval
  • Check that the target model's provider has a configured API key before recommending
  • Consider the agent's task history — complex tasks may justify a more expensive model

Budget Right-Sizing

  • Agents with >50% budget remaining after significant task volume may have over-allocated budgets
  • Agents near their limit with good performance may need budget increases
  • Calculate cost-per-completed-task when possible to compare efficiency across agents

Output Format

### Workforce Optimization Report
**Analysis Date**: [date]
**Total Workforce Cost**: $X.XX

#### Recommendations
1. [PRIORITY: HIGH/MED/LOW] Agent: [name] — Action: [description] — Rationale: [why]
2. ...

#### Summary
- Agents analyzed: N
- Changes recommended: N
- Primary optimization: [model right-sizing / budget adjustment / restructuring]

Read the full file on GitHub · 68 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. 1mo ago First seen · 68 lines · 16 tokens per session scan A 37f89e491ece

Subscribe to this mod's changes

Workforce Optimization is a skill published in the GitHub repository Xiaowen-Jiang/agent-enterprise (52 stars, last pushed 6mo ago), licensed MIT. It adds 16 tokens to every session and 551 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other skills, from other repositories

multi-model-router

A model-selection tool that scores task complexity and chooses an AI model while balancing cost and answer quality.

chainlesschain/chainlesschain · 25 tokens

data-cost-optimization

Use this skill when asked about data cost optimization, Snowflake cost management, BigQuery slot management, S3 storage tiering, warehouse cost optimization, FinOps for data, cloud data cost reduction, or query cost analysis. This skill enforces: Snowflake credit usage analysis with query optimization, BigQuery slot…

j4flmao/agent-skills · 138 tokens

cost-tracker

Track, estimate, and optimize LLM API costs across providers. Use when user wants to understand their LLM spending, reduce costs, or compare provider pricing for a given workload.

chandrudp29/skillhub · 40 tokens

cost-optimization-background-llm

Reduce LLM token spend on cron + background + kanban-worker without touching interactive (CLI/ACP/Discord) paths. Inventory → classify → apply config/scheduler/worker patches → verify with hard evidence.

humanerd-drew/opencode-drewgent · 50 tokens

model-routing

Cost-aware multi-tier model selection strategy. Assigns models to roles (main agent, subagent, auxiliary) by capability tier under subscription billing. Defines the 3-tier flash/pro/max pyramid and the escalation path. Supersedes the per-call era cost-optimization-background-llm skill.

humanerd-drew/opencode-drewgent · 62 tokens

sql-sentinel

Audit SQL for the cost & performance anti-patterns that burn warehouse credits. Catches SELECT , full-table scans, non-sargable predicates, Cartesian joins, NULL-trap NOT IN, and 17 more rules. Scores warehouse health 0-100 and outputs a prioritized cost-reduction plan for BigQuery, Snowflake, Redshift, and Postgres.

takeaseatventure/sql-sentinel · 77 tokens