PolicyPulse Development-2
AI-powered synthetic population simulator with clean architecture, Python type safety, and professional dashboard design patterns
Skill by FDU-INS
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fdu-ins-policypulse-development-2
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/policypulse-development-2
What's inside
- Skill name
PolicyPulse Development-2- Description
- AI-powered synthetic population simulator with clean architecture, Python type safety, and professional dashboard design patterns
- License
- Apache-2.0
- Instructions
- 206 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
Files (49)
- .gitignore
- config.toml · .streamlit/
- LLM_POLICY_ANALYSIS.md
- MODERN_UI_FEATURES.md
- MODERN_UI_GUIDE.md
- NEW_FEATURES.md
- NN_IMPLEMENTATION.md
- README.md
- RUN_APP.md
- SKILL.md
- STATUS.md
- SUMMARY.md
- TECH_STACK.md
- UNIFIED_APP_MIGRATION.md
- README.md · data/
- rl_feedback.jsonl · data/
- README.md · models/
- pyproject.toml
- requirements.txt
- run.sh
- run_enhanced.sh
- __init__.py · src/
- app.py · src/
- app_tabs_extension.py · src/
- config.py · src/
- data_models.py · src/
- llm_client.py · src/
- logging_config.py · src/
- ml_data.py · src/
- nn_model.py · src/
- policy_analyzer.py · src/
- population.py · src/
- rl_agent.py · src/
- rl_environment.py · src/
- rl_trainer.py · src/
- simulation.py · src/
- stats.py · src/
- utils.py · src/
- streamlit_app.py
- test.sh
- __init__.py · tests/
- test_data_models.py · tests/
- test_llm_client.py · tests/
- test_nn_model.py · tests/
- test_population.py · tests/
- test_simulation.py · tests/
- test_stats.py · tests/
- test_utils.py · tests/
- verify_enhancements.py
SKILL.md (first lines)
# PolicyPulse Development
This skill guides AI agents in developing PolicyPulse, a professional analytical tool for stress-testing policies against synthetic populations using hybrid AI (LLM + Neural Network).
## When to use
Activate this skill when:
- Building or modifying PolicyPulse application code
- Creating modular Python components following clean architecture
- Designing dashboard UI components for Streamlit
- Implementing type-safe Python code with proper annotations
- Writing tests for PolicyPulse functionality
## Core Principles
### 1. Document-Driven Development
- **Source of Truth**: PRD.md, DESIGN_DOC.md, and TECH_STACK.md are authoritative
- **No Feature Invention**: Only implement features explicitly defined in documents
- **Incremental Progress**: Small, safe steps that keep the project runnable
- **No Summary Documents**: Don't create documentation unless explicitly requested
### 2. Clean Architecture (Modular Monolith)
Follow the defined module structure:
```
app.py # Entry point, session management
ui_sections.py # UI component rendering
simulation.py # Simulation orchestration
llm_client.py # Gemini API wrapper
nn_model.py # Neural network training/inference
population.py # Synthetic citizen generation
stats.py # Aggregation and statistics
data_models.py # Dataclass definitions
utils.py # Helper functions
config.py # Environment loading
ml_data.py # Training dataset management
```
**Module Dependency Rules**:
- `data_models.py` has no dependencies (stdlib only)
- `config.py` is imported by app.py only
- UI layers depend on business logic, not vice versa
- External dependencies (genai, sklearn) isolated in specific modules
### 3. Python Type Safety
- **Always use type hints**: Function signatures, variables, return types
- **Leverage Python 3.10+ features**:
- Dataclasses for data models
- Union types with `|` syntax (e.g., `str | None`)
- Type aliases for complex types
- **Example Pattern**:
```python
from dataclasses import dataclass
from typing import Literal
@dataclass
class Citizen:
id: int
age: int
income_level: Literal["Low", "Middle", "High"]
happiness: float
def calculate_average(citizens: list[Citizen]) -> float:
return sum(c.happiness for c in citizens) / len(citizens)
```
### 4. Professional Dashboard Design
- **Data Density without Overwhelm**: Show comprehensive info in digestible chunks
- **Progressive Disclosure**: Start simple, reveal complexity on demand
- **Sidebar + Main Content**: Sidebar for config (300-320px fixed), main area for results
- **Muted Professional Palette**:
- Primary: Deep Purple (#667EEA)
- Semantic: Teal (positive), Coral (negative)
- Neutrals: Charcoal text, Pearl backgrounds
- **Tabbed Analysis**: Overview, Demographics, Individuals, Experts, AI Insights, Compare
- **Metric Cards**: Large bold values, small change indicators with colored arrows
- **Responsible AI**: Prominent disclaimer that this is synthetic simulation, not prediction
### 5. Streamlit-Specific Patterns
- **Session State**: Use `st.session_state` for simulation results, populations, models
- **File Persistence**: Save models to `models/`, training data to `data/` as CSV/Joblib
- **Component Organization**: Separate UI rendering from business logic
- **Layout Structure**:
```python
# Sidebar config
with st.sidebar:
# Population, steps, mode, policy config
pass
# Main content with tabs
tab1, tab2, tab3 = st.tabs(["Overview", "Demographics", "Individuals"])
with tab1:
# Metrics cards, time-series charts
pass
```
## Implementation Guidelines
### Data Models First
1. Define dataclasses in `data_models.py` with full type annotations
2. Include docstrings explaining purpose and constraints
3. Use `frozen=True` for immutable data
### Business Logic Isolation
1. Keep simulation logic in `simulation.py`, `population.py`, `nn_model.py`
2. No Streamlit imports in business logic modules
3. Return structured data (dataclasses, DataFrames), not UI components
### UI Components
1. UI rendering functions in `ui_sections.py`
2. Accept typed data structures as parameters
3. Use Plotly for charts (`st.plotly_chart(fig, use_container_width=True)`)
4. Follow design system: spacing (8px base), typography (Inter font), colors
### Error Handling
1. Graceful degradation: LLM → NN → Rule-based fallback
2. User-friendly error messages in UI
3. Log technical details for debugging
4. Never crash the app; show error state and recovery optionsFrom FDU-INS/Insurance-Skills, Apache-2.0.
More from FDU-INS/Insurance-Skills
- 0.586score
aippt-policy-briefing
FDU-INS
Route new policy briefing, policy update, regulatory update deck, regulatory change deck, compliance change summary, legal update deck, or legal/product…
SkillCFreshness: C★ 80Claude Code +9 - 0.583score
annuity-life-insurance-sales
FDU-INS
Guide annuity and life-insurance sales workflows—discovery, suitability, product selection, objections, closing, and servicing—when supporting licensed…
SkillCFreshness: C★ 80Claude Code +9 - 0.582score
Roofing Knowledge Mentor
FDU-INS
Senior-level roofing, estimating, and operations guidance for contractors, adjusters, inspectors, and sales teams.
SkillCFreshness: C★ 80Claude Code +9 - 0.582score
Dispute Letter
FDU-INS
Generate dispute letters for consumer, landlord, labor, and insurance cases.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
actuarial-analysis
FDU-INS
Guide actuarial analysis for insurance pricing.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
analyzing-premium-pricing
casemark
Structures actuarial pricing analysis with loss cost estimation, expense loading, and rate adequacy testing.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
analyzing-life-insurance-products
casemark
Evaluates life insurance product structures with cash value analysis, cost comparisons, and suitability assessment.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
analyzing-cyber-insurance
casemark
Structures cyber insurance evaluation with coverage assessment, limit adequacy, and claims scenario analysis.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
analyzing-embedded-finance
casemark
Evaluates embedded finance opportunities with distribution economics and regulatory framework analysis.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
analyzing-health-insurance-plans
casemark
Evaluates health insurance plan structures with actuarial value, network analysis, and cost projection.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
analyzing-insurance-financials
casemark
Structures insurance company financial analysis with combined ratio, reserve adequacy, and capital metrics.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
access-indemnity-agreement
FDU-INS
Drafts U.S.
SkillCFreshness: C★ 80Claude Code +9
Signals
- Stars
- 80
- Forks
- 18
- Open issues
- 1
- Last commit (this folder)
- May 18, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/FDU-INS/Insurance-Skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from FDU-INS
- 0.586score
aippt-policy-briefing
FDU-INS
Route new policy briefing, policy update, regulatory update deck, regulatory change deck, compliance change summary, legal update deck, or legal/product…
SkillCFreshness: C★ 80Claude Code +9 - 0.583score
annuity-life-insurance-sales
FDU-INS
Guide annuity and life-insurance sales workflows—discovery, suitability, product selection, objections, closing, and servicing—when supporting licensed…
SkillCFreshness: C★ 80Claude Code +9 - 0.582score
Dispute Letter
FDU-INS
Generate dispute letters for consumer, landlord, labor, and insurance cases.
SkillCFreshness: C★ 80Claude Code +9 - 0.582score
Roofing Knowledge Mentor
FDU-INS
Senior-level roofing, estimating, and operations guidance for contractors, adjusters, inspectors, and sales teams.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
actuarial-analysis
FDU-INS
Guide actuarial analysis for insurance pricing.
SkillCFreshness: C★ 80Claude Code +9 - 0.581score
access-indemnity-agreement
FDU-INS
Drafts U.S.
SkillCFreshness: C★ 80Claude Code +9
Cite this page
PolicyPulse Development-2 skill. Agent Mart. https://agentmart.dev/skills/fdu-ins-policypulse-development-2 (last updated 2026-10-24)