finesse esg portfolio scorer

    by Muhammad Mapkar

    1

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

    Free

    Security scanned

    Works with the AI Agents you already use

    finesse esg portfolio scorer

    Example session with this skill installed

    Rank the companies in the dataset by ESG and financials with a 60-40 weight favoring financials. Give me the top 5 allocation by score.

    • Read your context and instructions
    • Compiled the finesse esg portfolio

    I have processed the rankings using a 60-40 financial-to-ESG weighting. The analysis used the bundled company metrics dataset as the primary source.

    ESG and Financial Performance Rankings (60/40 Weight)

    TickerFinal ScoreFinancial ScoreESG ScoreDividend Yield
    MSFT0.8840.9120.8420.72%
    AAPL0.8560.8950.7980.45%
    NVDA0.8210.9410.6410.02%
    ASML0.7980.7650.8471.10%
    TSLA0.7420.6890.8210.00%

    Top 5 Portfolio Allocation (Score-Weighted)

    TickerAllocation WeightRationale
    MSFT21.5%Strong revenue growth and high governance score.
    AAPL20.9%High ROE and solid environmental risk management.
    NVDA20.0%Leading financial growth metrics despite moderate social risk.
    ASML19.5%High renewable energy percentage and stable dividends.
    TSLA18.1%Top-tier environmental score offsetting higher volatility.

    Next steps

    1. Run python scripts/score.py --explain NVDA to see why its social risk score impacts its rank.
    2. Use --fetch to update these rankings with live market prices and P/E ratios.
    3. Apply --filter governance to re-rank the list based strictly on corporate oversight metrics.

    Disclaimer: This is educational analysis based on a sample dataset and does not constitute financial advice.

    Connects securely to your tools. The creator never sees your data.

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Listed9 days ago

    What's inside

    Creator

    Muhammad Mapkar

    Muhammad Mapkar

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.

    Free