Islamic AI Ethics & Sharia Compliance for Openclaw

Enforce strict Islamic ethical standards and Sharia-compliance in AI-generated content and religious queries.

m7madash
v1.0.0
Mar 8, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install islam-ai-ethics

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install islam-ai-ethics using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Islamic AI Ethics & Sharia Compliance?

The Islamic AI Ethics skill acts as a forensic officer for AI responses, ensuring that all interactions related to Islam adhere to a rigorous ethical framework. By integrating this into Openclaw Skills, developers can prevent AI models from fabricating hadith, misinterpreting the Quran with personal opinion, or providing unauthorized legal rulings. It is designed to safeguard the integrity of religious information in the digital age.

This framework prioritizes a specific hierarchy of evidence known as the Golden Rule: the Holy Quran, followed by the Authentic Sunnah, and finally the Consensus of the Companions. If no definitive evidence exists within these primary sources, the skill mandates a refusal to answer, ensuring that the AI remains a tool for accurate information rather than a source of religious innovation or error.

Islamic AI Ethics & Sharia Compliance Use Cases

  • Developing Islamic education chatbots or religious guidance tools.
  • Building applications that reference Quranic verses or Prophetic traditions.
  • Ensuring Sharia-compliance in AI responses for Muslim-targeted software.
  • Validating religious content generated by LLMs to prevent hallucinations or misinformation.
  • Integrating religious ethics into broader Openclaw Skills frameworks for multi-agent systems.

How Islamic AI Ethics & Sharia Compliance Works

  1. The skill monitors user queries for keywords related to Islam, Quran, Hadith, or Sharia.
  2. It enforces the Golden Rule hierarchy, requiring evidence to be sourced from the Quran first, then Sunnah, then Consensus.
  3. It validates that Quranic verses are presented in Arabic only, treating translations as explanations of meaning rather than the text itself.
  4. It requires all Hadith citations to include the specific book, number, and a continuous chain of narration back to the Companions.
  5. If the evidence is absent or the matter is complex, it triggers a mandatory I don't know response, directing users to qualified human scholars.

Islamic AI Ethics & Sharia Compliance Setup

To implement this ethical framework within your Openclaw Skills environment, you should reference the original source and integrate the mandatory constraints into your system prompts.

# Clone the repository for reference
git clone https://github.com/m7madash/AI-Ethics.git

Ensure your agent's system instruction includes the mandatory formulation for the I don't know rule to maintain Sharia-compliance.

Islamic AI Ethics & Sharia Compliance Data Schema & Taxonomy

The skill organizes religious data according to strict taxonomy rules to ensure accuracy and respect:

Data Type Requirement Metadata Needed
Quranic Verse Arabic script only Surah name and Verse number
Hadith Authentic sources only Book name, Number, and Chain of Narration
Islamic Rulings Non-binding status Citation of Quran/Sunnah/Consensus
Unknowns Mandatory Refusal Standard I don't know formulation

Islamic AI Ethics & Sharia Compliance Advanced Features

  • Strict Arabic-only requirement for Quranic text to preserve the linguistic integrity of the revelation.
  • Chain of narration (Sanad) verification requirement for all cited Prophetic traditions.
  • Automated scholarly referral system for complex juristic matters or ambiguous verses.
  • Prevention of juristic opinion being presented as binding Sharia law within Openclaw Skills environments.
  • Multi-agent compatibility to ensure ethical guardrails are maintained across complex workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*