Mudaraba logo

Mudaraba

Organization
panaversity
mudaraba

Activate for: mudaraba, investment account, IAH, investment account holder, profit-sharing investment, mudarib, rabb ul mal, PER, IRR, profit equalization reserve, investment risk reserve, restricted investment account, unrestricted investment account, FAS 3, profit pool, profit distribution, weightage table, Islamic deposit.

Overview

Publisherpanaversity
Repositoryagentfactory-business-plugins
Skill namemudaraba
Stars
37
Forks
19
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by panaversity on GitHub. Read the source before you install it.

Installation

Install the Mudaraba AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/panaversity/agentfactory-business-plugins/tree/main/islamic-finance/skills/mudaraba
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/panaversity/agentfactory-business-plugins.git /tmp/agentfactory-business-plugins
mkdir -p .claude/skills
cp -r /tmp/agentfactory-business-plugins/islamic-finance/skills/mudaraba .claude/skills/mudaraba
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mudaraba in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mudaraba on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mudaraba is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

THE STRUCTURE

Mudaraba: A partnership where:

  • Rabb ul mal (capital provider): provides all the capital, bears all financial loss
  • Mudarib (entrepreneur/manager): provides all the labour and management skill

In Islamic banking, the bank acts as MUDARIB for its Investment Account Holders (IAH), who are the rabb ul mal (capital providers).

Profits are shared in a pre-agreed ratio (e.g., bank 30%, IAH 70%). Losses are borne entirely by the IAH (unless caused by bank negligence or breach).


THE PROFIT POOL CALCULATION

The profit pool for IAH distribution is calculated as follows:

Step 1 — Determine total income earned by the bank from all deployments.

Step 2 — Allocate income between bank's own funds and IAH funds: Income attributable to bank's own equity = Total Income x (Bank Equity / Total Funds) Income attributable to IAH = Total Income x (IAH Funds / Total Funds)

Step 3 — Apply mudarib share: Mudarib fee (bank's share) = IAH Income x Mudarib Percentage (e.g., 30%) Remaining distributable to IAH = IAH Income x IAH Percentage (e.g., 70%)

Step 4 — Apply weightages: Different account types receive different weightages based on tenure and conditions. Higher weightage = greater share of the distributable pool.

Account TypeBalanceWeightageWeighted Balance
Savings (30-day)X0.90X x 0.90
90-day termX1.00X x 1.00
180-day termX1.15X x 1.15
365-day termX1.25X x 1.25
TotalSum

Distribution rate per unit of weighted balance = Distributable Income / Total Weighted Balance

Step 5 — Apply PER and IRR transfers (see below).

Step 6 — Final distribution to each account type.


PROFIT EQUALIZATION RESERVE (PER) AND INVESTMENT RISK RESERVE (IRR)

PER (Profit Equalization Reserve): Purpose: Smooth returns to IAH across periods of high and low profit. In high-profit periods: transfer a portion to PER (building the reserve). In low-profit periods: draw from PER to supplement IAH returns.

Entry when building PER: Dr: Distributable Income (before final allocation to IAH) Cr: Profit Equalization Reserve (liability / separate fund)

Entry when drawing from PER: Dr: Profit Equalization Reserve Cr: Distributable Income to IAH

IRR (Investment Risk Reserve): Purpose: Buffer against capital loss to IAH. Funded from IAH's share of profits (taken before distribution to IAH).

Entry when building IRR: Dr: IAH Income Distributable Cr: Investment Risk Reserve

Entry when drawing from IRR to cover loss: Dr: Investment Risk Reserve Cr: IAH Capital / Loss on IAH Investment

IMPORTANT: PER and IRR must be approved by SSB. Their levels must be disclosed. Excessive PER/IRR that permanently suppresses IAH returns may raise Shariah concerns.


JOURNAL ENTRIES — PROFIT DISTRIBUTION

Recognition of gross income into profit pool: Dr: Income Receivable / Cash Cr: Profit Pool (internal allocation account)

Allocation to bank's own equity income: Dr: Profit Pool Cr: Bank's Own Income (P&L)

Mudarib fee recognition: Dr: Profit Pool Cr: Mudarib Fee Income (bank's P&L)

PER transfer: Dr: Profit Pool (IAH portion) Cr: Profit Equalization Reserve

IRR transfer: Dr: Profit Pool (IAH portion) Cr: Investment Risk Reserve

Final distribution to IAH: Dr: Profit Pool (remaining IAH distributable) Cr: Payable to Investment Account Holders

Distribution paid: Dr: Payable to Investment Account Holders Cr: Cash / Credited to IAH accounts


IAH BALANCE SHEET CLASSIFICATION

AAOIFI regime: IAH funds = "Equity of Investment Account Holders" — Separate balance sheet section, distinct from the bank's own equity and liabilities. — Reflects Shariah reality: IAH bear investment risk, not creditors.

IFRS regime: IAH funds = Financial Liabilities (IAS 32) — Because the bank has a practical obligation to return capital (due to regulatory requirements and market expectations), IAH deposits meet the definition of a financial liability under IAS 32. — Measured at amortised cost under IFRS 9.

THIS IS THE MOST SIGNIFICANT BALANCE SHEET DIFFERENCE between AAOIFI and IFRS for Islamic banks. It directly affects Return on Equity and capital ratios.


RESTRICTED vs. UNRESTRICTED INVESTMENT ACCOUNTS

Unrestricted Investment Accounts (URIA): IAH gives bank full discretion to invest in any Shariah-compliant assets. Bank commingles URIA funds with its own funds. Most common type in retail Islamic banking.

Restricted Investment Accounts (RIA): IAH specifies investment mandate (e.g., only real estate, only sukuk). Bank manages as a separate pool; does not commingle with general funds. BNM in Malaysia has specific guidance on RIA accounting (on vs. off balance sheet).


MANDATORY DISCLOSURES

AAOIFI FAS 3 / AAOIFI Governance Standard:

  1. Accounting policy for investment accounts (mudaraba basis)
  2. Movement in IAH funds (opening, new deposits, withdrawals, profit credited, closing)
  3. Profit distribution methodology (profit pool, weightage table)
  4. Mudarib percentage share
  5. PER: opening balance, transfers in/out, closing balance, policy
  6. IRR: opening balance, transfers in/out, closing balance, policy
  7. Return on deposits by account type (annualised rate for the period)
  8. SSB approval of profit distribution methodology

IFRS regime (supplementary):

  1. Above IAH disclosures (as supplementary Shariah disclosures)
  2. IFRS 7: maturity analysis of IAH deposits (as financial liabilities)
  3. Fair value of IAH deposits (if different from carrying amount)

Frequently asked questions

What does the Mudaraba AI skill do?

Activate for: mudaraba, investment account, IAH, investment account holder, profit-sharing investment, mudarib, rabb ul mal, PER, IRR, profit equalization reserve, investment risk reserve, restricted investment account, unrestricted investment account, FAS 3, profit pool, profit distribution, weightage table, Islamic deposit.

Why use Mudaraba on TypingMind?

Because you install it once and use it with any model. Mudaraba is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mudaraba in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/panaversity/agentfactory-business-plugins/tree/main/islamic-finance/skills/mudaraba. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mudaraba?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mudaraba?

As many as you like. As long as a model supports skills, you can use Mudaraba with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mudaraba AI skill free?

Yes. It is published on GitHub by panaversity under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇