Musharaka Dm logo

Musharaka Dm

Organization
panaversity
musharaka-dm

Activate for: diminishing musharaka, DM, musharaka mutanaqisah, co-ownership finance, Islamic home finance, declining musharaka, bank equity share, FAS 4, diminishing musharaka schedule, rental on bank share, equity buy-out, Islamic mortgage.

Overview

Publisherpanaversity
Repositoryagentfactory-business-plugins
Skill namemusharaka-dm
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 Musharaka Dm 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/musharaka-dm
  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/musharaka-dm .claude/skills/musharaka-dm
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Musharaka Dm 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 Musharaka Dm 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 Musharaka Dm 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

In Diminishing Musharaka:

  1. Bank and customer jointly purchase an asset (typically property or equipment).
  2. Bank owns a large share (e.g., 80%); customer owns the rest (e.g., 20%).
  3. Customer pays RENT on the bank's share.
  4. Customer simultaneously PURCHASES units of the bank's share (equity buy-out).
  5. As bank's share diminishes, the rental income payable on it DECLINES.
  6. When customer has purchased all of the bank's share, the asset belongs to the customer.

TWO CONTRACTS RUN SIMULTANEOUSLY:

  • A musharaka (partnership): for the joint ownership
  • An ijarah (lease): for the customer's use of the bank's share

SHARIAH CRITICAL: These must be TWO SEPARATE contracts. If the rental and buy-out are combined into a single contract guaranteeing the bank's return, the structure may resemble a loan and fail the Shariah form test.


ACCOUNTING — AAOIFI FAS 4 (BAHRAIN, QATAR)

Initial Recognition: Dr: Musharaka Investment — [Property Name] [Bank's share of purchase price] Cr: Cash [Bank's share of purchase price]

Monthly Rental Income (on current bank ownership share): Dr: Accrued Rental Receivable [Rental rate x Bank's current ownership % x Asset value / 12] Cr: Musharaka Rental Income [Same]

The rental amount DECREASES each time the customer buys a unit of the bank's share. Re-calculate the rental EVERY time a buy-out payment is received.

Monthly Equity Buy-Out (customer purchases bank's units): Dr: Cash [Buy-out payment] Cr: Musharaka Investment [Same — derecognise this portion of the asset]

The buy-out price per unit = agreed price per unit (typically at original purchase value, or at periodic revaluation per the musharaka agreement).

Gain or Loss on unit derecognition: If buy-out price > carrying value of unit: recognise gain If buy-out price < carrying value of unit: recognise loss (Common if property has been impaired)

The Equity Schedule (build for each DM facility):

MonthOpening Bank %Rental IncomeBuy-Out ReceivedClosing Bank %
180.00%XY79.XX%
279.XX%X-deltaY78.XX%

The key output: declining rental income over the life of the facility. Total return = Sum of all rental payments + any gain on unit derecognition.


ACCOUNTING — IFRS 9 SUBSTANCE ANALYSIS (ALL IFRS REGIMES)

The SPPI Test: Does the DM arrangement produce cash flows that represent solely payments of principal and a return consistent with a basic lending arrangement?

Analysis:

  • The bank pays an initial amount (its share of property purchase price) = principal
  • The customer pays monthly rent + monthly equity buy-out = interest + principal repayment
  • Over the full term, the bank receives total payments in excess of its initial outlay = return

IFRS 9 CONCLUSION (typical in UAE, Malaysia, UK, Saudi Arabia, Pakistan listed entities): DM home finance is typically classified as a financial asset at AMORTISED COST because it passes both the business model test (held-to-collect) and SPPI test.

The effective interest rate (EIR) is calculated as the rate that equates: Initial bank outlay = PV of all future cash flows (rental + equity buy-out payments)

Monthly income recognition = Opening carrying value x EIR / 12

Important: Under IFRS 9 amortised cost, the income is front-loaded (higher in early months, lower in later months) unlike AAOIFI FAS 4 where the income declines linearly with the ownership share. This produces a systematic difference in income profile between AAOIFI and IFRS regimes for the same DM facility.


INCOME LABELS

AAOIFI regime: "Musharaka Rental Income" or "Income from Diminishing Musharaka" IFRS regime: "Profit from Islamic Home Finance" or "Islamic Financing Income — DM" NEVER use: "Interest Income" or "Mortgage Interest"


IMPAIRMENT

AAOIFI regime: AAOIFI FAS 30 — stage classification on the DM investment. IFRS regime: IFRS 9 ECL — stage classification on the DM financial asset.

SHARIAH CONSTRAINT: Cannot charge penalty interest on overdue amounts. If customer misses a buy-out payment or rental, no additional return can be earned. Bank remedies: security enforcement, guarantor call, renegotiation only.


VARIABLE RENTAL RATE NOTES

DM rental rates in many jurisdictions are variable (repriced periodically). If tied to a benchmark rate (KIBOR, SOFR-equivalent, or bank's published rate):

  • Shariah compliance check: the benchmark must itself be Shariah-permissible.
  • In Pakistan: SBP has issued guidance on permissible benchmarks for variable-rate DM.
  • In Malaysia: BNM has issued guidance on benchmark rates for Islamic products.
  • NEVER tie to LIBOR or a conventional interest benchmark without Shariah approval.

When repricing occurs: recalculate the rental on the bank's current ownership share at the new rate. The buy-out schedule is typically unchanged.


MANDATORY DISCLOSURES

AAOIFI FAS 4:

  1. Accounting policy: joint ownership structure, not a loan
  2. DM investment movement table (opening, new facilities, buy-outs received, impairments, closing)
  3. Musharaka rental income recognised in the period
  4. Declining ownership profile description
  5. Non-performing DM facilities: amount, stage, provision

IFRS 9:

  1. DM financial assets — classification basis (amortised cost) and SPPI justification
  2. Movement in gross carrying amount
  3. ECL provision movement (Stage 1, 2, 3)
  4. Income from DM financing
  5. Collateral held against DM exposures (property value, LTV ratios)

Frequently asked questions

What does the Musharaka Dm AI skill do?

Activate for: diminishing musharaka, DM, musharaka mutanaqisah, co-ownership finance, Islamic home finance, declining musharaka, bank equity share, FAS 4, diminishing musharaka schedule, rental on bank share, equity buy-out, Islamic mortgage.

Why use Musharaka Dm on TypingMind?

Because you install it once and use it with any model. Musharaka Dm 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 Musharaka Dm in TypingMind?

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

Which AI models can use Musharaka Dm?

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 Musharaka Dm?

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

Is the Musharaka Dm 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 👇