workforce-optimization

workforce-optimization is a skill for Claude Code from desirecore/market. It costs 186 tokens per session (5,134 once invoked), scanned A, original, MIT.

A governed method for improving workforce efficiency and allocating staff, shifts, tasks, or other resources. It turns operational requests into reviewable planning records and can use linear or mixed-integer optimization models.

In plain words
What is it for?
Use it to plan staffing levels, shifts, service coverage, task schedules, performance targets, or hierarchical resource allocation through approved LP or MILP models.
Why use it?
It makes staffing and resource decisions traceable, recoverable, and independently checked. It also separates the workflow from MindOpt, an external optimization solver that must be supplied and licensed separately.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Good fit Use it to plan staffing levels, shifts, service coverage, task schedules, performance targets, or hierarchical resource allocation through approved LP or MILP models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desirecore/market/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 desirecore/market --skill workforce-optimization
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

Made for: Claude Code.

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/desirecore/market/workforce-optimization/github.svg)](https://agentmods.dev/skills/desirecore/market/workforce-optimization)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/workforce-optimization"><img src="https://agentmods.dev/badge/skills/desirecore/market/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/desirecore/market/workforce-optimization"><img src="https://agentmods.dev/badge/skills/desirecore/market/workforce-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,134 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.00186 $0.05134
Opus 5.5 $0.00074 $0.02054
Sonnet 5.5 $0.00037 $0.01027
Haiku 4.5 $0.00019 $0.00513

Measured 26d ago against content hash a44c0e31b1fb, 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 26d 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/workforce-optimization/SKILL.md · 135 lines

How it starts

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

Workforce and Resource Optimization

L0

Turn natural-language workforce-efficiency requests into reviewable and recoverable artifacts, execute approved LP/MILP only through a user-provided, licensed MindOpt deployment and the governed connector, and independently recompute every result before delivery.

External dependency — read before installation: MindOpt is third-party solver software that must be installed or deployed separately and activated with a valid license under the official MindOpt license terms. Commercial licenses and operating costs must be purchased separately when applicable; community-license eligibility remains subject to those official terms. The client, this Skill, and MindOptSolve do not bundle the MindOpt software, a license, hosted compute, procurement, or operating fees.

L1

  • Treat MindOptSolve only as a governed connector/adapter to a MindOpt service supplied by the user or operator. Never describe MindOpt itself as an included or built-in Tool.
  • The platform retains direct personal MindOptSolve and compile-option overrides only as a backward-compatible, non-decision-grade expert path outside this Skill's governed team workflow. Never present an unbound personal call as reviewed, human-confirmed, recoverable, or decision-grade; team runs must use the guarded OptimizationSolve path and solver limits recorded in the committed specification.
  • Before promising or requesting an actual solve, verify that the external connector is configured and ready, required capabilities are available, and the deployment has a valid applicable license. A registered Tool name alone is not evidence that the solver is installed, licensed, reachable, or paid for.
  • If the external dependency is unavailable, state which prerequisite is missing and stop before the solver call. You may still finish requirement clarification and produce reviewable SceneSpec, DataContract, and OptimizationSpec artifacts for later execution, but must not fabricate a SolveResult, feasibility, optimality, or benefit claim.
  • Before routing or modeling, read the framework matching the user's current conversation language in full: for Chinese use 中文澄清框架, and for English use the English framework. Follow its real-decision, mandatory-question and conditional-question branches. The Skill's default metadata locale does not override the user's language; use that framework's matching-language fixed footer.
  • Skill activation is intentionally scoped to the current service-process lifetime and active parent turn. After an app/service restart or retry fork, the current entry Agent must load this Skill again before checking hidden optimization tools or delegating a stage owner; verify TeamArtifact and the stage-required optimization tools in ToolCatalog before delegation. A child Agent loading the Skill cannot expand a ceiling inherited from an unactivated parent. Do not persist activation, widen default tools, switch source/scope to evade the ceiling, or ask a child to fabricate artifacts when capability is absent.
  • First read the AgentFS user profile, preferences, and relationship memories already injected into the current context. Choose professional, business-guided, or evidence-insufficient adaptive language only from user-confirmed, current, non-conflicting evidence about expertise or communication preference. Employer, job title, one use of jargon, or model inference is not sufficient evidence.
  • Professional language may expose the complete structured information contract at once and accept a batch answer. Business-guided language uses plain-language groups in impact order for as many turns as needed. When evidence is insufficient, show a neutral coverage outline and ask the user's preference. Every mode maintains the same complete question map; never omit a model-changing item merely to reduce turns, question count, or cognitive load.
  • End every first response with the two-sentence fixed fact-gate footer defined by the requirement-clarification framework. Do not paraphrase, shorten, merge, or omit either sentence.
  • Maintain a fact ledger with fact_state, value, source, and model_impact. Only confirmed user facts, confirmed data, deterministic rules, or confirmed non-applicability may enter a model.
  • Treat relative business-time expressions such as today, tomorrow, the next N days, or this quarter as pending_confirmation until the current request confirms the business timezone, business calendar, date-time anchor, and applicable day-boundary, cutoff, holiday, and overnight rules. A system clock or host timezone is environment evidence, not a business rule.
  • Isolate every new request from historical contamination. Facts from another conversation, Plan, artifact, memory, or sample remain pending_confirmation until the user explicitly carries them into the current request; do not search for or reuse a semantically similar Plan as evidence for the first response.
  • Use one entry Agent for routing, consolidated questions, and final delivery. Assign one owner to each stage.
  • Clarify-only requests still use this workflow. Generic AskUserQuestion may handle non-modeling setup choices or an explicitly explained capability fallback, but its replies never become DecisionWorkspace answers or human confirmations.
  • Before using the nonexpert workflow, inspect the live DecisionWorkspace schemas for semantic_checks_version, request_clarification, interpret_clarification, sourceField and evidenceLinks, and confirm check_semantics is available. If the client lacks these contracts, remain in clarification and explain that a compatible client is required. Never emulate missing gates by editing AgentFS records or using the personal solver path.
  • Preflight with a read-only DecisionWorkspace list call. If global TaskBoard/assistance capability is disabled or unavailable, explain the missing user interaction surface and remain in plain-text clarification; do not create questions the user cannot answer, and do not enable capabilities without their request.
  • Clarification itself may create a team workspace with semantic_checks_version=1, propose business nodes, inspect an explicitly authorized data source, and record request_clarification before the fact gate passes. These are clarification operations, not permission to build a mathematical model, publish modeling artifacts, delegate solving or call a solver.
  • Ask model-changing gaps through request_clarification with an answerable question, reason, canonical type, declared unit and justified constraints. Keep the same logical question while its statement/constraints remain unchanged. Do not invent bounds to reduce choices. Group questions by business impact and explain the remaining coverage in ordinary language.
  • The platform already offers unknown and raw_text response channels. Do not add epistemic placeholders such as "not sure yet" or "unknown" to exact choices or node.value. These describe missing knowledge, not a business option. Explain the reason without repeating the UI's "why ask" label.
  • When the current user message uniquely supplies a complete business value and every required unit/window, proposals must include a typed node.value and remain proposed until the dedicated human confirmation. An Agent-proposed value is not an Agent confirmation. Omitting value incorrectly downgrades a known fact to needs_input; a summary-only node is not a confirmable statement. Omit value only for genuinely unknown or still-ambiguous facts and ask a clarification instead.
  • Human value answers are proposed, not confirmed. Use interpret_clarification only if raw_text uniquely determines the business value and every necessary unit/time scope. Preserve the original wording and link the normalized node to that answer; the user must explicitly confirm the new statement. If ambiguity remains, keep the original answer and needs_input, explain the remaining gap, and do not call interpret_clarification or fill a canonical placeholder. For example, "about eight hours, not sure per day or week" determines neither an exact limit nor a time window. Never use ordinary upsert to detach the original answer, manufacture a receipt, or default unknown.
  • Let the platform continue the original source conversation after its effective gaps settle. Do not poll by starting new messages, change request identities to evade deduplication, revive canceled sources or retry unknown dispatch outcomes. A pending/interpretation signal is not solve authorization; reread the exact workspace and honor all gates.
  • Bind real data with an authorized FileResourceRef, bytesHash, exact fields/types/units and confirmed timeScope. Add finite required/unique/range/enum/foreign_key/cutoff rules as applicable. Range/enum constants and FK fields must use consistent units. Every consumed data field must have modelSemantics.sourceField plus a sourced_from relationship before its business quantity is traced into the model. Unused columns need not be modeled. Unit/window conversions require an explicitly transformed, traceable and reconfirmed source; do not change only its unit label.
  • Propose blocking validation nodes with confirmed positive, negative and boundary examples for exact model constraints. Include complete candidate assignments and the intended hard/soft behavior. Cover missing constraints, wrong time aggregation and accidental softening. Platform check_semantics independently evaluates the declared examples; a solver result or a second Agent explanation alone does not establish business correctness.
  • Every new decision-grade OptimizationSpec must use the live TeamArtifact payload branch whose schema_version is exactly 2; legacy v1 payloads are read-only compatibility artifacts and cannot be linked to approve a current decision. Before publishing, read the v2 schema and construct its complete algebraic/CP model, problem_family, exact data_refs, and semantic_contract. The contract must declare solve_intent and exactly one entry for every material objective, variable, constraint, and data reference actually present, with the confirmed dimension, canonical unit, and time scope where applicable—no missing, unknown, duplicate, display-label, JSON-Pointer, or implicit-unit substitutions. Re-read the published exact revision and verify this closed set before requesting link_artifact; a compile-success receipt for legacy or incomplete semantics is not decision-grade evidence.
  • When peer review requests changes to a completed artifact stage, the original owner must reclaim the same canonical Task and Work Context, keep the old stage completed, and call TeamArtifact(action="begin_rework") with that completed source stage and the same stable artifact ID. Use only the platform-returned rework stage ID to publish the next revision of that same artifact, then complete the rework stage and resubmit the Task for a new review round. Never reopen a completed stage, create an ordinary replacement stage, switch to a new artifact ID, reuse a prior round's rework stage, or manufacture review/claim/Plan fences; if begin_rework is unavailable or rejected, stop and report the missing governance fact instead of publishing.
  • Before confirmation and artifact linking, every actual OptimizationSpec.data_refs entry must have a confirmed business-source node whose modelImpact is input and whose dimension, canonical unit, and optional time scope exactly match the corresponding semantic_contract element. Data snapshots with modelImpact=none are display evidence, not material trace coverage. Positive/negative/boundary examples belong to deterministic semantic checks and must not be added as duplicate artifact material bindings.
  • The decision-grade mapping criteria can be read in one call: TeamArtifact(action="schema", artifact_type="optimization_spec", json_pointer="/publish_requirements"); current clients list them under type_specific.decision_grade_mapping. Publishing only checks that the spec compiles, and these criteria surface layer by layer at linking and later, so prepare them all before modeling. Every node mapped to a model element needs modelSemantics matching the corresponding semantic_contract element; a workspace with semantic_checks_version=1 also needs hardness (plus softPenalty for soft constraints), objectiveSense, or variableDomain according to modelImpact, each matching the actual model. These fields, along with node titles, summaries, values, and source relationships, are model input: changing them after binding requires bind_workspace, publishing, and linking again, and confirmed statements must be reconfirmed, so bind after they are complete. Governed compilation accepts only the published spec itself: put the model name in model.name and the time limit in requested_limits.time_limit_seconds, and do not pass model_name, time_limit_seconds, or diagnose_infeasible.
  • If a confirmed business change advances the model-input hash, refresh every consumed parent artifact under that exact binding before publishing its child; do not combine a fresh OptimizationSpec with stale SceneSpec/DataContract parents. After an interrupted/failed attempt, call begin_rework again with the same source stage and artifact. The platform may resume the existing stage only when the old Run is no longer running, the same review event/Task/Work Context/Plan remains authoritative, the new claim is strictly newer, and no new artifact revision was committed. Use the returned stage receipt; never invent a second stage to escape a stale or partial chain.
  • Attach file evidence with evidenceLinks whose ref matches the node's evidenceRefs; use only authorized FileResourceRef identities, not guessed paths or arbitrary URLs. Explain report failures using their reason code, exact field/model element, frozen expectation, observed value, impact and next safe action. Direct the user to the graph's issue/source/model controls and change-impact preview; a colored branch, viewed evidence or preview never grants execution approval.
  • After the fact-confirmation gate passes, follow this governed sequence without skipping or reordering its control points:
    1. The entry Agent reads the needed DecisionWorkspace(action="schema") sections and each TeamArtifact(action="schema") contract before constructing writes.
    2. The entry Agent creates the team DecisionWorkspace or submits CAS-protected proposals in business language; proposals never manufacture human receipts.
    3. The user confirms or rejects blocking facts only through the platform's dedicated human controls. A rejection remains an auditable inactive tombstone. All Agents wait for the authoritative result.
    4. Only the top-level entry Agent calls DecisionWorkspace(action="bind_workspace") for the validated current workspace revision and model-input hash. Specialists may not bind, replace, or bypass it.
    5. The assigned stage owners publish SceneSpec, DataContract, optional PredictionArtifact, and a decision-grade OptimizationSpec v2 with the complete semantic_contract above in dependency order through TeamArtifact, retaining exact artifact revisions and the DecisionWorkspace snapshot. When confirmed predictive inputs require training data, call OptimizationPredict inside this step, publish its real PredictionArtifact and confirm its model-changing outputs before creating OptimizationSpec. Without predictive inputs, omit this branch; do not predict after semantic checks. Initial model publication performs the platform's internal pure compilation checks; do not call guarded OptimizationCompile early to break the model-publication/semantic-check dependency.
    6. The entry Agent calls DecisionWorkspace(action="link_artifact") with the exact artifact ID, exact revision, and semantic bindings; never resolve governed evidence through latest.
    7. Submit the linked revision for peer review. An independent reviewer checks business-to-model coverage, units, variable families, feasibility logic, provenance, gaps, and stale/rejected exclusions before execution. After the user confirms the exact source/rules/examples, call DecisionWorkspace(action="check_semantics") for the current revision/hash and inspect its complete bounded report. Missing data, unsupported evaluators, budget limits or unconfirmed examples are blocked, not passes. Do not rebind the workspace merely because an audit-only revision changed; retain the model-input snapshot until business semantics change.
    8. Invoke OptimizationCompile and then OptimizationSolve; both must pass the platform's DecisionWorkspace execution guard before side effects. MindOptSolve remains a compatible connector name and must never be called directly to bypass the guarded solve path.
    9. A validation owner independent from the solver owner calls OptimizationValidate and recomputes domains, hard constraints, objective, baseline delta, and IIS traceability from raw values. Only then publish and link the real SolveResult and ValidationReport. Never prepublish guessed results. DeliveryBundle must preserve the exact evidence chain and its human approval status.
    10. The user approves only through the platform's dedicated human approval control after the exact linked chain passes review and independent validation. No Agent or specialist may create that approval.
  • In step 5's confirmed prediction branch, use OptimizationPredict with ordered holdout, train-only imputation, tuning, metrics, baseline comparison, and explicit fallback rules.
  • Compile general models with OptimizationCompile, solve once through guarded OptimizationSolve, and retain status, variables, objective, request/job IDs, HTTPS transport, selected-engine evidence, and IIS when infeasible.
  • Require the validation owner to call OptimizationValidate and recompute variable domains, hard constraints, objective, baseline delta, and IIS traceability from raw values.
  • Treat every settled successful Tool call as authoritative. After an interruption, synthesize the persisted result without repeating the Tool.

Read the full file on GitHub · 135 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 26d ago Changed · +1 lines a44c0e31b1fb
  2. 1mo ago Changed · +2 lines 5a069b4a988d
  3. 2mo ago Changed · +19 lines · -2 tokens per session 60520569187a
  4. 3mo ago First seen · 113 lines · 188 tokens per session scan A 361e6d1d175a

Subscribe to this mod's changes

workforce-optimization is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 186 tokens to every session and 5,134 once invoked, about $0.0007 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-31.

Related

workforce-optimization compared with skills from other repositories

workforce-optimization next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
workforce-optimizationdesirecore/marketSkill2todayMITA186Claude Code
sector-rotationHKUDS/Vibe-TradingSkill39kyesterdayMITA39Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15k13d agoMITA65Claude Code, Codex
oma-scholarfirst-fluke/oh-my-agentSkill1.5kyesterdayMITA30Claude Code
browser_cdpmateaix/mateclawSkill1.2k3d agoApache-2.0A44Claude Code, Codex
creating-skillsredai-infra/RelaxSkill6788d agoApache-2.0A70Claude Code
config-validatorjmagly/aiwgSkill232todayMITA15Claude Code, Codex