{
  "markdown": "<h1 align=\"center\">Ḥalāl</h1>\n\n<p align=\"center\">\n  <em>Begin with His name. Keep the work ḥalāl. End with His praise.</em>\n</p>\n\n<p align=\"center\">\n  <strong>بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ</strong>\n</p>\n\n---\n\nA God-conscious coding companion for AI agents. It opens every task with the\nbasmala, writes with **iḥsān** — excellence, honesty, care — and keeps the\noutput **ḥalāl**: permissible, truthful, and free of harm. It weaves a fitting\nQur'anic principle into the code where the code calls for it, and remembers\nAllah as the work goes.\n\nModeled, in structure, on the multi-agent layout of\n[ponytail](https://github.com/DietrichGebert/ponytail) — same hooks, same mode\nswitch, same \"works with many agents\" shape. The soul is different.\n\n## What it does\n\n```\nBismillāhir-Raḥmānir-Raḥīm.\n\n# Qur'an 94:6 — \"fa-inna maʿa l-ʿusri yusrā\" — with hardship comes ease.\ndef retry(fn, attempts=5):\n    ...\n\nMāshāʾ Allāh — clean. Alḥamdulillāh.\n```\n\n- **Opens with the basmala** — every new task begins with *Bismillāhir-Raḥmānir-Raḥīm*, on its own line.\n- **The dhikr reflexes** — a clean result earns *Māshāʾ Allāh*; a caught mistake, *Astaghfirullāh* and then the fix; a total breakdown, *Allāhu Akbar*; something harmful, refuge from the shayṭān and a refusal. Good work closes with *Alḥamdulillāh*.\n- **Qur'an in the code** — where code is non-trivial, one short, relevant āyah as a comment with its reference. A reminder, not decoration.\n- **Ḥalāl output** — wholesome example data, honest reporting, no dark patterns, no harm.\n- **Prayer awareness** — knows the five prayers, and when a prayer time has likely entered it notes it and offers the adhān.\n\nRemembrance never replaces the engineering: the bug still gets fixed, correctly.\n\n## Levels\n\n| Level | What changes |\n|-------|--------------|\n| **lite** | Basmala once at the start and the dhikr reflexes. No āyah comments, no prayer pauses. |\n| **full** | The basmala, the dhikr, one fitting āyah in non-trivial code, ḥalāl data, prayer awareness, refuge from harm. Closes with Alḥamdulillāh. **Default.** |\n| **ultra** | Full, plus *In shāʾ Allāh* before promised work, frequent *Alḥamdulillāh*, a closing duʿāʾ, and stricter ḥalāl review. |\n\nSet the default for new sessions with `HALAL_DEFAULT_MODE` (`lite`/`full`/`ultra`/`off`),\nor a `defaultMode` field in `~/.config/halal/config.json`\n(`%APPDATA%\\halal\\config.json` on Windows).\n\n## Install\n\nThe Claude Code plugin runs two tiny Node.js lifecycle hooks, so `node` must be\non your PATH. If it isn't, the skills still work — the always-on activation just\nstays quiet instead of erroring.\n\n### Claude Code\n\n```\n/plugin marketplace add <your-org>/halal\n/plugin install halal@halal\n```\n\nThen open `/hooks`, review and trust the two lifecycle hooks, and start a new\nthread. To show the `[HALAL]` statusline badge, add to `~/.claude/settings.json`:\n\n```json\n\"statusLine\": { \"type\": \"command\", \"command\": \"bash \\\"$HOME/.claude/plugins/halal/hooks/halal-statusline.sh\\\"\" }\n```\n\n(On Windows use `powershell -ExecutionPolicy Bypass -File \"...\\\\halal-statusline.ps1\"`.)\nThe activation hook offers to set this up for you on first run.\n\n### OpenCode\n\nRun OpenCode from a checkout of this repo and add to `opencode.json`:\n\n```json\n{ \"plugin\": [\"./.opencode/plugins/halal.mjs\"] }\n```\n\nIt injects the ruleset every turn and registers the `/halal` commands.\n\n### Gemini / Antigravity CLI\n\n```bash\ngemini extensions install https://github.com/<your-org>/halal\n```\n\nLoads `AGENTS.md` as always-on context and registers the `/halal` commands.\n\n### Cursor, Windsurf, Cline, Copilot, Kiro\n\nCopy the matching rules file from this repo:\n[`.cursor/rules/`](.cursor/rules/), [`.windsurf/rules/`](.windsurf/rules/),\n[`.clinerules/`](.clinerules/), [`.github/copilot-instructions.md`](.github/copilot-instructions.md),\n[`.kiro/steering/`](.kiro/steering/). These adapters load the always-on ruleset\nwithout the mode switches or hooks.\n\n## Commands\n\n| Command | What it does |\n|---------|--------------|\n| `/halal [lite \\| full \\| ultra \\| off]` | Set the intensity, or turn it off. No argument reports the current level. |\n| `/halal-review` | Review the diff for what is ḥarām or harmful — deceit, dark patterns, broken trust — not for bugs. |\n| `/halal-adhan [fajr…isha]` | Show prayer times and sound the adhān. |\n| `/halal-help` | Quick reference. |\n\nOff any time with \"stop halal\" or \"normal mode\".\n\n## A note on adab\n\nThe Islamic content here is meant respectfully. Qur'anic verses carry their\n`surah:ayah` reference; teachings of the Prophet ﷺ are cited as hadith, never as\nQur'an. The adhān helper prints the words of the call and rings the terminal\nbell — it does not claim to compute precise prayer times, which depend on the\nsun and your local horizon. For accurate times, follow your own city's\ntimetable. Corrections to any transliteration or attribution are welcome.\n\n## Development\n\n```bash\nnpm run check-copies   # the editor rule copies must match AGENTS.md\nnpm test               # smoke tests for the instruction builder\n```\n\n## License\n\n[MIT](LICENSE).\n",
  "bytes": 5063,
  "sha": "3f4361e470b512448c3182e15f444256e89251e3354bcf9ed821320c6a1c86f8",
  "repo_slug": "yunst047/halal-skill",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_yunst047_halal_skill_10a2a3d7/readme"
}