Islamic AI Ethics for Openclaw

A rigorous ethical framework for AI agents to ensure Sharia compliance and authenticity when discussing Islamic topics.

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

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install m7madash-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 m7madash-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?

The Islamic AI Ethics skill acts as an artificial intelligence forensic officer, establishing a strict boundary for AI agents dealing with Islamic law, history, and practice. It ensures that any response related to religion adheres to a specific hierarchy of evidence, preventing the common issue of AI hallucination regarding sacred texts. By integrating this framework into Openclaw Skills, developers can build trustworthy religious applications that prioritize authentic scholarship and verified narrations over probabilistic text generation.

Islamic AI Ethics Use Cases

  • Building Sharia-compliant chatbots for religious guidance or education.
  • Developing AI tools for Muslim users that require high theological accuracy.
  • Auditing AI outputs to ensure they do not fabricate hadiths or interpret the Quran by opinion.
  • Creating research tools that strictly reference the Quran, Sunnah, and Consensus of the Companions.

How Islamic AI Ethics Works

  1. Monitors user queries for religious keywords like Quran, Hadith, Sharia, or Islamic history.
  2. Applies a strict evidence hierarchy: Quran first, followed by the Authentic Sunnah, then the Consensus of the Companions.
  3. Enforces Arabic-only formatting for Quranic verses to maintain original integrity.
  4. Verifies Hadith citations by requiring the specific book, number, and a continuous chain of narration.
  5. Triggers a mandatory 'I don't know' response if no explicit, authentic evidence is found, preventing AI-generated opinions.

Islamic AI Ethics Setup

To deploy this ethical framework within your project using Openclaw Skills, you can add the configuration to your skill directory or system prompt.

# Define the skill in your project configuration
openclaw add skill ai-ethics --source https://github.com/m7madash/AI-Ethics

Ensure the agent system instructions are updated to prioritize the Golden Rule and Mandatory Constraints defined in the framework.

Islamic AI Ethics Data Schema & Taxonomy

The skill enforces a specific data taxonomy for all religious outputs to ensure transparency and verification:

Content Type Format Requirement Metadata Required
Quranic Verse Original Arabic Text Only Surah Name, Verse Number
Translation Labeled as 'Explanation of Meaning' Contextual Reference
Prophetic Hadith Authentic Narration Chain Book Name (e.g., Al-Bukhari), Hadith Number
Islamic Rulings Evidence-based only Source (Quran/Sunnah/Consensus)

Islamic AI Ethics Advanced Features

  • Mandatory disclaimer hooks that remind users to consult qualified human scholars.
  • Automatic rejection of subjective or opinion-based interpretations of ambiguous verses.
  • Strict 'I Don't Know' protocol for matters requiring specialized scholarly expertise.
  • Source-locking to project-verified databases of Bukhari, Muslim, and other authoritative collections.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*