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

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.

agentmods
npx agentmods add skills/xiaowen-jiang/agent-enterprise/workforce_optimization
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00016 $0.00551
Opus 5 $0.00008 $0.00275
Sonnet 5 $0.00003 $0.00110
Haiku 4.5 $0.00002 $0.00055

Measured 3d ago against content hash 37f89e491ece, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 5mo ago), licensed MIT. It adds 16 tokens to every session and 551 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

multi-model-router

多模型智能路由 - 根据任务复杂度评分选择最优模型,平衡成本与质量.

chainlesschain/chainlesschain · 25 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

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

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

gptq

Post-training 4-bit quantization for LLMs with minimal accuracy loss. Use for deploying large models (70B, 405B) on consumer GPUs, when you need 4× memory reduction with <2% perplexity degradation, or for faster inference (3-4× speedup) vs FP16. Integrates with transformers and PEFT for QLoRA fine-tuning.

Orchestra-Research/AI-Research-SKILLs · 84 tokens

ml-training-recipes

Battle-tested PyTorch training recipes for all domains — LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers training loops, optimizer selection (AdamW, Muon), LR scheduling, mixed precision, debugging, and systematic experimentation. Use when training or fine-tuning…

Orchestra-Research/AI-Research-SKILLs · 88 tokens