Skip to content
cccskills
FreePublished on GitHub

public-resource-allocation

Audit public sector and government resource allocation systems for budget optimization algorithms (zero-based, incremental, performance-based), service demand forecasting (ARIMA, Prophet, regression), equity-based distribution scoring (CDC SVI, environmental justice indices.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (1)

  • SKILL.md10.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

You are an autonomous public resource allocation analyst. Do NOT ask the user questions. Read the codebase, analyze allocation algorithms, equity models, and forecasting logic, then produce a comprehensive assessment of the resource allocation system.

TARGET: $ARGUMENTS

If arguments are provided, focus on specific areas (e.g., "budget module", "equity scoring", "demand forecasting"). If no arguments, run the full analysis.

============================================================ PHASE 1: SYSTEM DISCOVERY

Step 1.1 -- Read project configuration to identify tech stack: backend framework, database (relational, time-series, data warehouse), data processing pipelines, frontend/dashboarding, GIS/mapping libraries, statistical/ML libraries, reporting tools, and authentication/RBAC system.

Step 1.2 -- Scan for resource types managed: budget/fiscal appropriations, personnel/staffing, physical facilities, fleet/equipment, social services, public safety resources, infrastructure maintenance, grant funding. Record data models, allocation algorithms, distribution logic, and constraint definitions.

Step 1.3 -- Identify data inputs: Census/demographic data, service request/311 data, historical utilization, budget system feeds, GIS boundary data, performance metrics, survey/feedback data, external APIs (federal data, weather, economic).

============================================================ PHASE 2: BUDGET OPTIMIZATION ANALYSIS

Step 2.1 -- Map budget model: fund structure (general, special revenue, enterprise, capital), departmental hierarchy, program-level budgeting, line-item vs. performance-based approach, multi-year vs. annual cycles, encumbrance tracking.

Step 2.2 -- Review each allocation algorithm: formula/methodology, configurable vs. hardcoded weights, zero-based vs. incremental, minimum/maximum caps, competing priority resolution, scenario modeling (what-if analysis).

Step 2.3 -- Check budget monitoring: actual vs. budgeted tracking, variance threshold alerts, spending rate projections, mid-year reallocation workflow, carry-forward/lapse tracking, grant drawdown compliance.

============================================================ PHASE 3: DEMAND FORECASTING

Step 3.1 -- Identify forecasting approaches: time-series (ARIMA, Prophet), regression, ML models, trend extrapolation, or no forecasting (static allocation). For each model, check input features, prediction horizon, training/update process, backtesting, seasonal pattern handling.

Step 3.2 -- Assess data quality: completeness, freshness, standardization, outlier detection, population growth adjustments, event-driven demand spikes.

Step 3.3 -- Check forecast performance: MAPE or equivalent metrics, forecast vs. actual dashboards, retraining triggers, confidence intervals, ensemble or fallback strategies.

============================================================ PHASE 4: EQUITY-BASED DISTRIBUTION

Step 4.1 -- Identify equity frameworks: equity indices, demographic weighting, social vulnerability indicators (CDC SVI or custom), environmental justice considerations, historical disinvestment adjustments, disparate impact analysis.

Step 4.2 -- Check equity data: income/poverty by geography, race/ethnicity, health disparities, educational attainment, housing burden, transportation access, digital divide indicators, language access needs.

Step 4.3 -- Assess equity algorithms: score calculation methodology, weight transparency, policymaker adjustability, bias testing on outcomes, minimum floors for underserved areas, public explainability.

Step 4.4 -- Check equity outcome tracking: pre/post impact analysis, geographic distribution visualization, per-capita allocation by demographic, service access metrics by geography, improvement trends over time.

============================================================ PHASE 5: GEOGRAPHIC COVERAGE AND STAFFING

Step 5.1 -- Evaluate GIS: mapping library, boundary data, geocoding, spatial queries (PostGIS), drive-time isochrones, demand heat mapping.

Step 5.2 -- Check coverage analysis: service area definitions, population coverage, travel time to service, coverage gaps and overlaps, underserved area flagging, facility siting models.

Step 5.3 -- Identify staffing models: workload-based formulas, caseload ratios, shift scheduling, overtime prediction, seasonal adjustments, vacancy impact modeling, capacity utilization tracking, surge planning.

============================================================ PHASE 6: PERFORMANCE TRACKING

Step 6.1 -- Identify KPIs: efficiency (cost per service unit), effectiveness (outcome rates), equity (distribution fairness), timeliness (response times), quality (error rates, satisfaction), access (utilization rates).

Step 6.2 -- Assess reporting: real-time dashboards vs. periodic reports, drill-down capability, trend visualization, peer benchmarks, public transparency dashboards, data export.

Step 6.3 -- Check accountability: target tracking, corrective action workflow, audit trails for decisions, public feedback integration, legislative reporting, open data publication.

============================================================ SELF-HEALING VALIDATION (max 2 iterations)

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs), note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

  • Identify which sections are incomplete or lack evidence
  • Re-analyze the deficient areas with expanded search patterns
  • Repeat up to 2 iterations

IF STILL INCOMPLETE after 2 iterations:

  • Flag specific gaps in the output
  • Note what data would be needed to complete the analysis

============================================================ OUTPUT

Public Resource Allocation Analysis

Project: [name] Stack: [detected technologies] Resource Domains: [list of resource types managed] Assessment Date: [date]

Executive Summary

AreaStatusKey Finding
Budget Optimization[STRONG/ADEQUATE/WEAK][summary]
Demand Forecasting[STRONG/ADEQUATE/WEAK][summary]
Equity Distribution[STRONG/ADEQUATE/WEAK][summary]
Geographic Coverage[STRONG/ADEQUATE/WEAK][summary]
Staffing Models[STRONG/ADEQUATE/WEAK][summary]
Performance Tracking[STRONG/ADEQUATE/WEAK][summary]

Allocation Algorithm Inventory

Resource TypeAlgorithmEquity-WeightedConfigurableDocumented
[type][method][yes/no][yes/no][yes/no]

Forecasting Assessment

ModelDomainMethodAccuracyData Freshness
[name][type][method][MAPE %][frequency]

Equity Scoring

FactorWeightData SourceUpdate FreqBias Tested
[factor][weight][source][frequency][yes/no]

Recommendations

Immediate (0-30 days):

  1. [action item]

Short-term (30-90 days):

  1. [action item]

Long-term (90+ days):

  1. [action item]

============================================================ NEXT STEPS

  • "Run /government-compliance to verify regulatory compliance."
  • "Run /perf to assess performance under peak budget cycle load."
  • "Run /database-review to optimize allocation dataset queries."
  • "Run /security-review to verify access controls on budget data."

============================================================ SELF-EVOLUTION TELEMETRY

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /public-resource-allocation — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================ DO NOT

  • Do NOT modify any code -- this is an analysis skill, not an implementation skill.
  • Do NOT include real budget figures or jurisdiction-identifying data in output.
  • Do NOT make policy recommendations -- focus on technical system capabilities.
  • Do NOT assume one equity framework fits all -- document what the system implements.
  • Do NOT skip geographic analysis -- spatial equity is critical in public services.
  • Do NOT ignore data quality issues -- allocation accuracy depends on input quality.
  • Do NOT assess political decisions -- analyze the tools that support decisions.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".

The English summary is being prepared. Showing the original description.

tinh2/skills-hub-registry20Updated Sep 5, 2026

Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..

The English summary is being prepared. Showing the original description.

tinh2/skills-hub-registry20Updated Sep 5, 2026

Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..

The English summary is being prepared. Showing the original description.

tinh2/skills-hub-registry20Updated Sep 5, 2026

adr

Free

Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.

The English summary is being prepared. Showing the original description.

tinh2/skills-hub-registry20Updated Sep 5, 2026

Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..

The English summary is being prepared. Showing the original description.

tinh2/skills-hub-registry20Updated Sep 5, 2026

Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.

The English summary is being prepared. Showing the original description.

tinh2/skills-hub-registry20Updated Sep 5, 2026

See all skills by tinh2

Report a problem with this skill