Halal AMM Liquidity Router & Pool Screener
Screening and structuring logic for Shariah-conscious AMM liquidity provision: pool-pair purity checks, classification of swap fees and reward tokens, and a purification path for impermissible income.
$99
About this skill
Halal Algorithmic Market Maker (AMM) Router Providing liquidity on a DEX raises questions a conventional router never asks: what is in the pair, what is the fee actually compensating, and what happens to a reward token that represents uncollateralised debt.
Built for developers of Islamic DeFi aggregators and Shariah-conscious Web3 wallets, and for the compliance staff who work alongside them. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md.
What's included:
- Pool screening engine: DEX factory contracts queried continuously, with pools excluded where either token fails screening - the pair purity rule applied to both sides independently rather than to the headline asset only.
- Fee and profit classification: swap fee income characterised as ujrah (a fee for service) or as a profit share under shirkat al-a'mal, because the characterisation determines the treatment.
- Risk-sharing structure: liquidity provision framed under shirkat al-inan, with impermanent loss treated as shared capital risk rather than hidden behind a yield figure.
- Purification path: reward tokens arising from impermissible sources routed to charity rather than retained.
- Router scaffolding: Solidity interface and contract structure for the screening wrapper.
The Solidity in this file is an interface and a skeleton. Its isPoolHalal returns true unconditionally - it is a stub showing the shape of the integration, not a working screen, and deploying it as written would approve every pool it was asked about. The token registry and screening logic are yours to implement and audit.
On the religious question, plainly: this is a tool, not a ruling. Shariah compliance in DeFi is genuinely unsettled. Qualified scholars differ on AMM liquidity provision, on whether impermanent loss is acceptable gharar, on the status of governance and reward tokens, and on several of the classifications this skill applies. AAOIFI standards were written for instruments that predate automated market makers, and reasoning by analogy from them is exactly where scholars reach different conclusions in good faith.
So treat the output as structured preparation for a review, not as certification. A determination that a pool or a fee structure is permissible comes from a qualified Shariah supervisory board or scholar who can examine your specific implementation - and if you are offering this to others as compliant, that review is not optional. Nothing here is a fatwa, and no screening library substitutes for one.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 14 days ago
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.