marvis-risk-agent

作者 eddyzzl已验证

MARVIS-Agent: all-purpose credit risk agent for model development, validation, data processing, feature engineering, and strategy workflows.

516
Stars
6
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/eddyzzl/marvis-risk-agent

快速入门

使用 marvis-risk-agent 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

MARVIS-Agent logo

MARVIS-Agent

Tell MARVIS what risk decision you need.
It turns local data into governed analysis, models, strategies, and audit-ready deliverables.

CI status Latest release Python 3.11–3.13 MIT License

English · 中文

MARVIS-Agent wide desktop workbench with data, feature, risk, modeling, validation, and strategy workflows

One workbench for local risk analysis and development—from data to strategy and reports.


From a request to a reviewable result

MARVIS is a local-first, governed credit-risk Agent platform—not a chatbot wrapped around a collection of scripts.

Describe the business outcome in natural language. MARVIS asks for missing files and definitions, builds a reviewable plan, pauses at responsibility gates, runs deterministic tools, and returns real datasets, evidence, models, strategy code, and reports.

flowchart LR
    A["Describe the risk goal"] --> B["Agent clarifies inputs and definitions"]
    B --> C["Validated workflow plan"]
    C --> D{"Human confirmation<br/>where required"}
    D --> E["Deterministic tools execute"]
    E --> F["Evidence, artifacts, and reports"]
    F --> G["Review, adopt, and iterate"]

What the current V2 delivers

  • A complete seven-step strategy-development workflow: current and historical evidence, governed dual-population samples, univariate and model evidence, trees, Cross, scorecards, Voting, Strategy Pools, impact measurement, validation, code delivery, and four-format review reports.
  • A governed data-to-model workflow: ingest and join files, analyze and engineer features, train and compare multiple recipes, export PMML, score data, generate model reports, and hand the selected model and supporting evidence directly into model validation. PMML export is available for supported recipes.
  • Conversational risk analysis: MARVIS first asks what to analyze and which fields, units, dates, scenarios, and assumptions apply. It then runs the selected VTG-terminal/annualized-bad-rate or profitability calculation and delivers an audited Excel report. Standard Vintage and roll-rate are separate governed workflows with structured evidence and artifacts.

Why risk teams use MARVIS

Work in business language
Start with the decision you need, not a hand-built chain of scripts and notebooks.
Trust the numbers
KS, AUC, PSI, bad rate, approval rate, profit, and impact are calculated by deterministic platform code—not guessed by an LLM.
Keep data close
Files, task state, evidence, and outputs stay in a controlled local workspace by default.
Retain human responsibility
High-impact actions pause for confirmation, and key governed results carry lineage and audit evidence.

Agent mode and the Manual Workbench share the same validated workflows, tools, schemas, and deterministic calculation kernels.

A fragmented workflowWith MARVIS
Requirements, scripts, notebooks, screenshots, and reports live in different places.The request, plan, execution evidence, decisions, and deliverables stay in one task.
Analysts manually reconnect data, feature, model, strategy, and report steps.Governed workflows carry task ownership, data fingerprints, parameters, and artifacts forward.
AI can explain an answer, but it is hard to prove where the number came from.Agent explanations point back to deterministic evidence and auditable memory references.
A result is copied into a document and loses its lineage.Reports and code are generated from structured, versioned platform results.

One workbench for end-to-end local risk analysis and development

ModuleWhat MARVIS can doTypical deliverables
Data processingRegister CSV/Excel files, infer schemas, profile data, align columns, propose and confirm joins, diagnose match rate, fan-out and row inflation, deduplicate explicitly, run governed transformations, and export safely.Derived datasets, join evidence, profiling summaries, CSV/XLSX exports
Labels, samples, and featuresDefine bad labels from DPD plus observation and performance windows, check cohort maturity, design development/validation/OOT samples, calculate IV/KS/AUC/PSI/Lift/Coverage, bin numeric and categorical features, analyze correlation and collinearity, encode, impute, cap, and derive features.Feature evidence, governed sample definitions, selected feature sets, Excel reports
Model developmentBuild binary, regression, and multiclass recipes; check modeling readiness; run governed reject inference with explicit assumptions and sample weights; prepare leakage-aware splits; resolve special values; select features; tune and train multiple recipes; compare experiments; select and calibrate a model; assess segment value; score datasets; and create monitoring handoffs.Experiments, score evidence, model reports, scored data, PMML for supported recipes, model cards and handoff packages
Model validationScan Notebook, sample, PMML, and dictionary materials; execute the Notebook; compare in-memory model scores with submitted PMML scores; calculate performance, stability, score consistency, binning, and stress evidence; keep both manual and Agent-assisted paths available. A separate batch entry runs 1–10 isolated validation tasks sequentially, preserves every individual report, and adds a batch summary workbook.Structured validation evidence, individual Excel and Word reports, batch summary Excel
Strategy developmentDesign approval and risk populations; analyze variables and models; build and refine approval, reject, limit, pricing, and segmentation rules; use automatic and interactive trees, 2D Cross Matrix, 2D/3D cross-threshold search, scorecard cutoffs, and Voting/n-of-k combinations; compile Strategy Pools; measure impact and stability; validate on independent partitions; and adopt local versions through human gates.Canonical strategies, backtests, ImpactCube evidence, Python/DuckDB SQL/JSON code, JSON/Markdown/XLSX/DOCX reports
Vintage and risk analysisAfter confirming fields, units, cut-off dates, scenarios, and assumptions, run the selected VTG-terminal/annualized-bad-rate or profitability calculation. Run Standard Vintage and roll-rate as separate governed analyses with bounded cohort/segment evidence.Audited risk-analysis Excel reports; structured Vintage and roll-rate evidence, charts, assumptions, conclusions, and red flags
Monitoring and portfolio analyticsMonitor score and feature stability, strategy thresholds and disposition, turn red monitoring evidence into a governed new-version task, and use implemented portfolio tools for flow rate, bucket migration, segments, concentration, Expected Loss, stability trends, and limit/pricing trade-offs.Monitoring evidence, portfolio reports, migration tables, pricing matrices
Agent, governance, and memoryClarify intent, instantiate validated workflows, enforce task ownership and confirmation gates, preserve hashes and provenance, and reuse bounded memories about preferences, field definitions, prior performance, and known pitfalls—with source and audit metadata.Reviewable plans, evidence envelopes, audit history, traceable memory references

The eight primary desktop entries are Data Processing, Feature Analysis, Risk Analysis, Portfolio Analysis, Model Development, Model Validation, Batch Model Validation, and Strategy Development. Monitoring is integrated into model and strategy workflows. Batch Model Validation is an isolated 1–10-model flow: it does not replace the individual validation task or silently confirm any model's input contract. Portfolio now has a governed first-screen and conversational Agent journey with typed field, balance/EAD, segment, loss-state, LGD, horizon, and report gates; its verified public slice is currently the no-trend workflow, not a production portfolio-monitoring service. Label construction is exposed inside Data Processing rather than as a separate top-level task. See docs/capability-status.md for the canonical, layer-by-layer acceptance status; implementation is not treated as browser, real-data, sign-off, or production proof.

Strategy development, end to end

Strategy work is where MARVIS goes furthest beyond “AI assistance.” The current V2 workflow follows the real seven-step development process:

  1. Understand the current project — approval rate, risk level, profitability, population, metric definitions, and known constraints.
  2. Review historical versions — compare prior strategy evidence, outcomes, assumptions, and reusable lessons.
  3. Design the sample — create governed approval and risk populations, development/validation/OOT partitions, maturity rules, labels, weights, and immutable membership evidence.
  4. Evaluate variables and models — produce deterministic univariate, score-band, model, lift, stability, and risk evidence.
  5. Develop combinations — build and refine single rules, automatic and interactive trees, 2D Cross Matrix, 2D/3D cross-threshold searches, scorecards, and Voting/n-of-k candidates for approval, reject, limit, pricing, and segmentation in a common Strategy Pool.
  6. Measure impact — replay the strategy by month, segment, amount, and partition; compare approval rate, bad rate, swap, and risk; measure profitability where the required economics are available; and run stability and independent validation checks.
  7. Deliver the review package — materialize a canonical strategy, verify equivalent Python/DuckDB SQL/JSON execution, and generate JSON/Markdown/XLSX/DOCX reports aligned to a seven-section strategy review.

If optional report information is unavailable, MARVIS asks for it. When the user explicitly says it is not currently available, the report keeps that field blank instead of inventing content.

Example requests

You can start with requests like:

Join the application table with the bureau features. Check key precision, duplicate keys, match rate, and row inflation before asking me to approve the join.

Compare logistic regression, LightGBM, and a scorecard. Keep an OOT sample, explain leakage risks, and do not select the champion until I confirm.

Build a new-customer approval strategy with bad rate no higher than 5% and approval rate at least 60%. Ask me for anything needed before you design the sample.

Calculate VTG terminal and annualized bad rate. First list the tables, columns, units, cut-off date, scenario, and assumptions you need from me.

Outputs, not just chat

Depending on the workflow, MARVIS produces:

  • immutable derived datasets and safe CSV/XLSX exports;
  • feature evidence and downloadable feature-analysis workbooks;
  • experiment comparisons, scored data, PMML, model cards, monitoring policies, and model-development reports;
  • validation evidence and Excel/Word validation reports;
  • canonical strategy assets, versioned backtests, ImpactCube and stability evidence, equivalent Python/DuckDB SQL/JSON implementations, and four-format review bundles;
  • audited VTG/annualized-bad-rate or profitability Excel reports, plus structured Vintage, roll-rate, monitoring, and portfolio artifacts;
  • provenance, hashes, confirmation records, tool-run logs, and auditable memory references.

Responsible automation

MARVIS automates work without pretending that responsibility disappeared:

  • The Agent understands, clarifies, plans, summarizes, and explains.
  • Platform tools own deterministic metrics, rules, sample membership, backtests, impact calculations, and report numbers.
  • Strategy adoption, high-risk monitoring actions, and production changes require explicit human authority. Local adoption is not production deployment.
  • Memory can suggest context or warn about a prior pitfall, but it cannot change KS, AUC, PSI, bad rate, score consistency, or any other deterministic result.
  • Raw customer rows, full model files, PMML contents, credentials, private reports, and database connections are excluded from Agent memory.
  • Code paths and CI are verified, but real-project acceptance still requires representative business materials, agreed metric definitions, independent reconciliation, and responsible-party sign-off.
  • Current V2 is a local-first workbench. Full multi-user RBAC, production promotion/rollback, real-time decision-engine integration, and cross-device synchronization must not be inferred from the local workflow.

See the product roadmap for the precise current scope and V2 delivery boundary.

Quick start

Source installation supports Python 3.11–3.13; Python 3.12 is recommended for a new environment.

git clone https://github.com/eddyzzl/marvis-risk-agent.git
cd marvis-risk-agent
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
python -m pip install -e .
marvis

Open http://127.0.0.1:8000/.

On Windows, activate the environment with .venv\Scripts\activate instead. When a release includes MARVIS-Setup-<version>-win-x64.exe, that asset provides the one-click local installer without requiring a separate Python, Java, Git, conda, WSL, or Docker installation.

PMML scoring requires a Java runtime compatible with pypmml. For material directory permissions, Windows drives, WSL paths, conda setup, upgrades, and deployment details, use the runbook.

To update a clean GitHub checkout:

marvis update

Product and operator documentation

  • Roadmap — product scope, current V2 boundary, and workflow terminology
  • Runbook — installation, startup, updates, material paths, and operations
  • Notebook contract — model-validation Notebook runtime contract
  • Notebook submission requirements — requirements for model developers
  • Design — product experience and interface decisions
  • Branding — local customer branding without source-code changes
  • Versioning — release helper, versions, and tag rules
  • Review evidence — implementation and code-review evidence
Contributor checks and release commands
# Fast local feedback
scripts/check --fast

# Small, mapped changes
scripts/check --affected

# Full release gate
scripts/check

# Publish a verified patch release
python scripts/release_push.py --bump patch

Pull requests use parallel fast-test shards plus quality, security, strategy, and PMML gates. A manual CI dispatch runs the full, unfiltered release check.

License

MARVIS-Agent is released under the MIT License.

常见问题

What is marvis-risk-agent?

marvis-risk-agent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by eddyzzl. MARVIS-Agent: all-purpose credit risk agent for model development, validation, data processing, feature engineering, and strategy workflows. It has 516 GitHub stars.

Is marvis-risk-agent safe to use?

Yes. marvis-risk-agent passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install marvis-risk-agent?

Clone the repository with "git clone https://github.com/eddyzzl/marvis-risk-agent" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is marvis-risk-agent written in?

marvis-risk-agent is primarily written in Python. It is open-source under eddyzzl on GitHub, so you can review or fork the full source.

Are there alternatives to marvis-risk-agent?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh marvis-risk-agent against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情