Skip to content

Add python-skill and improve simulation mechanics skill#111

Merged
nwoodruff-co merged 7 commits intomainfrom
add-python-skill-and-simulation-improvements
Mar 7, 2026
Merged

Add python-skill and improve simulation mechanics skill#111
nwoodruff-co merged 7 commits intomainfrom
add-python-skill-and-simulation-improvements

Conversation

@nwoodruff-co
Copy link
Contributor

Summary

  • New python-skill: Documents the uv + Python 3.13 standard for all PolicyEngine Python work — uv venv --python 3.13, uv pip install, uv run, and venv conflict resolution (VIRTUAL_ENV mismatch warning)
  • Expanded policyengine-simulation-mechanics-skill: Fixes root causes of Claude spending 6+ minutes on trial-and-error before writing working code:
    • CRITICAL section: correct environment setup (uv run python script.py)
    • CRITICAL section: exact import paths with a "There is NO" list to prevent guessing non-existent modules
    • UK dataset section: exact EFRS disk paths, ensure_datasets pattern, confirmed household variables (tenure_type string values, domestic_energy_consumption)
    • Direct data analysis example: working end-to-end pattern for decile/groupby/percentile analysis without Aggregate
  • Registers python-skill in country-models, analysis-tools, data-science, and complete plugins

Test plan

  • Load simulation-mechanics-skill and verify imports are correct first try
  • Load python-skill and verify uv venv setup guidance is followed
  • Run an EFRS energy analysis script — should work without exploration loops

- Add python-skill: uv + Python 3.13 standards, venv conflict resolution
- Expand simulation-mechanics-skill with correct import paths, venv setup,
  UK dataset loading (EFRS paths, ensure_datasets pattern), confirmed
  household variable reference (tenure_type values, domestic_energy_consumption),
  and direct data analysis example for decile/groupby/percentile work
- Register python-skill in country-models, analysis-tools, data-science, complete plugins
@nwoodruff-co nwoodruff-co merged commit 60bde11 into main Mar 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant