# banking-risk-fraud-analytics

> Synthetic bank analytics app: loan-default credit risk model, fraud detection, dormant-account tracking and role-based staff login.

banking-risk-fraud-analytics is a free AI agent skill on Agensi by Chinedu Emmanuel, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Chinedu Emmanuel](https://www.agensi.io/creators/chinedu-emmanuel)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.1
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/banking-risk-fraud-analytics
- Tags: data, analytics

## About this skill

Builds a multi-page Streamlit app for a fictional bank, backed by SQLite, covering:

1. **Portfolio overview** — customers, accounts, deposits, loan book, NPL ratio, branch performance.
2. **Credit risk** — loan default model with risk bands, approval simulator, and explainable drivers.
3. **Fraud detection** — transaction-level (anomaly + supervised) and application-level (identity/document red flags).
4. **Account health** — active / inactive / dormant tracking with reactivation targets.
5. **Staff access** — demo login with roles (loan officer, branch manager, risk analyst, fraud analyst) that control which pages are visible.

- **Always use a fictional bank name** (ask the user for one or invent it). Never use a real bank's name, logo or customer data, and say why: real customer data isn't public and naming a real bank risks misrepresentation.
- Ask for the country and city so names, currency, states, phone formats and branches feel local. Default: operate branches in one city while customers come from many regions.
- All data is synthetic with a fixed random seed. Never store real credentials; the login table holds clearly labelled demo accounts with hashed passwords.

- `branches(branch_id, name, area, opened_date)`
- `staff(staff_id, name, role, branch_id, hire_date)`
- `customers(customer_id, name, gender, dob, state_of_origin, occupation, monthly_income, branch_id, onboard_date, kyc_level)`
- `accounts(account_id, customer_id, type, open_date, balance, last_activity_date, status)` — status derived: active (<90 days), inactive (90–365), dormant (>365).
- `loans(loan_id, customer_id, officer_id, amount, tenor_months, interest_rate, purpose, disbursed_date, defaulted)`
- `transactions(txn_id, account_id, datetime, amount, channel, merchant_category, location, is_fraud)`
- `applications(app_id, customer_id, applied_date, channel, declared_income, id_mismatch, phone_reuse_count, is_fraud)`
- `users(username, password_hash, staff_id, role)` — demo only.

## Requires

- Python 3.10+

## Known limitations

Uses synthetic data only; doesn't connect to real core banking systems, and its models aren't meant for real lending decisions.

## 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 banking-risk-fraud-analytics 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

### Can I use real bank data?

Yes, if you're authorised to. The skill maps your columns to its schema; it never uses a real bank's name or brand for synthetic data.

### Do I need any API keys?

No. Everything runs locally with Python, SQLite and open-source libraries.

---

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.
