Curated AI prompt library for East African civic tech, fintech, and social infrastructure — adapted from 1337 use cases for Claude, GPT-4, and other LLMs
# East Africa Prompt Library
> Curated AI prompt library for East African civic tech, fintech, and social infrastructure — tested prompts for Swahili contexts, Kenya institutional APIs, and community coordination.
A structured prompt library adapted for East African contexts — Kenya, East Africa, and underrepresented communities — organized by domain and following the **General → Formula → Specific** pattern.
Prompts are designed to work with:
- mpesa-mcp — M-Pesa financial API
- wapimaji-mcp — Kenya drought intelligence
- civic-agent-kit — civic AI SDK
- kenya-3d — 3D civic data visualization
- taarifa-ai — East African journalism AI
- All Streamlit apps at gabrielmahia.github.io
---
## Structure
```
prompts/
├── fintech/ M-Pesa, chamas, mobile money
├── civic/ Government, policy, accountability
├── environment/ Drought, water, flood risk
├── education/ ShuleAI prompts for Kenya curriculum
├── health/ AfyaAI prompts for Kenya health system
├── journalism/ TaarifaAI — East African investigative journalism
├── career/ KaziAI — Kenya job market
├── diaspora/ RemitAI — diaspora services
└── social/ Community organizing, human rights
```
---
## Prompt Format
Every prompt in this library follows the **General → Formula → Specific** pattern:
```
## [Use Case Name]
**General prompt:**
"[Example prompt in plain language]"
**Formula:**
"[Template with [placeholders] for context injection]"
**East Africa examples:**
- "[Kenyan/East African specific example]"
- "[Swahili/multilingual variant]"
- "[Rural/low-bandwidth context variant]"
```
---
## Quick Start
### With mpesa-mcp
```python
from mpesa_mcp import MpesaMCP
mcp = MpesaMCP()
# Use prompts from prompts/fintech/mpesa_transactions.md
result = mcp.stk_push(
phone_number="254712345678",
amount=500,
account_reference="SCHOOL_FEES_TERM2"
)
```
### With Claude directly
```python
import anthropic
client = anthropic.Anthropic()
# …