# finesse esg portfolio scorer

> Rank companies and build green portfolios using grounded ESG metrics and financial data via Python.

finesse esg portfolio scorer is a free AI agent skill on Agensi by Muhammad Mapkar, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Muhammad Mapkar](https://www.agensi.io/creators/muhammad-mapkar)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/finesse-esg-portfolio-scorer
- Tags: trading, python, esg, portfolio-management, financial-analysis

## About this skill

Finding high-yield stocks that don't sacrifice sustainability is a manual data slog. This skill automates the intersection of ESG metrics and financial performance to rank assets and build balanced allocations.

### What it does
- **Multi-factor ranking** calculates scores based on a mix of ESG data and financial health metrics like PE ratio and debt-to-equity.
- **Portfolio allocation** generates top-N lists with weightings based on score or market cap.
- **Attribution analysis** explains exactly which metrics are lifting or dragging a specific ticker's rank.
- **Custom weighting** supports toggling between 50-50 or 60-40 balance between financials and sustainability.
- **Financial fetching** pulls live price and growth data via `yfinance` to refresh static bundled metrics.

### How it works
1. Run `python scripts/score.py` to generate a baseline ranking and top 5 allocation from the JSON output.
2. Apply specific filters like `--filter governance` or `--filter dividend` to narrow the asset universe.
3. Compare strategies by running different weightings, such as `--weights 60-40`, to see how rankings shift.
4. Execute `--explain TICKER` to get a deep dive into why a specific company is ranked at its current position.

### Frameworks & tools
Python 3.9+, Pandas, and NumPy for the scoring engine. Optional `yfinance` integration for live financial data retrieval.

### Why this beats prompting it yourself
LLMs hallucinate financial ratios and ESG ratings. This skill forces the agent to run a deterministic Python script against a grounded CSV dataset, ensuring every score and ranking is mathematically traceable.

### Use cases
- Identify companies with the highest governance scores and lowest debt-to-equity ratios.
- Build a sustainable portfolio allocation of the top 8 performers by score.
- Compare a green vs. conventional portfolio by analyzing average financial and ESG scores.
- Audit a specific ticker to see how its renewable energy percentage impacts its overall rank.

### Known limitations
Bundled data is a 19-company snapshot from September 2025. Scores are relative to the current dataset only. Fetching live data requires an internet connection and may return gaps.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the finesse esg portfolio scorer skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill ensure financial data accuracy compared to a standard LLM prompt?

Unlike standard AI prompts that may hallucinate financial data, this skill uses a deterministic Python engine to calculate rankings based on grounded datasets, ensuring every score is mathematically accurate and traceable.

### What exactly is included in the skill package?

The purchase includes the core Python scoring engine, a starter ESG/financial dataset, a CLI tool for filtering and weighting, and the necessary logic for your AI agent to execute these scripts.

### Can I use this skill to analyze live market data instead of the provided snapshot?

Yes, while it includes a grounded snapshot, you can use the built-in `yfinance` integration to fetch live market prices and growth metrics to ensure your rankings reflect current market conditions.

### Are there any specific technical requirements or libraries I need to install?

The skill requires Python 3.9+ along with the Pandas and NumPy libraries; if you wish to pull live data, an active internet connection is required for the API calls.

### Which AI agents or platforms are compatible with the Finesse ESG Portfolio Scorer?

This skill is designed to be compatible with any AI agent or platform capable of executing Python scripts and handling local data files, making it a versatile tool for automated financial workflows.

### Is there a way to see the specific reasoning behind a company's ranking?

You can use the `--explain [TICKER]` command, which triggers a diagnostic tool that breaks down exactly how ESG metrics and financial ratios contributed to a specific company's final rank.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
