agentleFS
BuilderCedBuilderCed/agent-skills/skills/africa/africa-ussd-development/SKILL.md

africa-ussd-development

Skill2 starsChanged 8 months agoMITView on GitHub

Build USSD applications for African markets — menu design, session management, multi-operator integration, and user experience patterns for feature phones.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test with actual phones (emulators miss operator quirks)

    line 138
  2. Distinctive:

    Test session timeout handling

    line 139
  3. Distinctive:

    Test on slow networks (USSD can lag 3-5s per round trip)

    line 140
  4. Distinctive:

    Test with different operators in target market

    line 141
  5. Distinctive:

    Does not provide USSD shortcodes (apply through operator)

    line 145
  6. Distinctive:

    Does not handle SMS (different protocol)

    line 146
  7. Distinctive:

    Does not manage telecom operator relationships

    line 147
  8. Distinctive:

    Does not cover IVR (voice-based menus)

    line 148

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Africa USSD Development

DISCLAIMER: USSD regulations vary by country and operator. Verify with local telecom authorities.

When to Use

  • Building apps for feature phone users (no internet required)
  • Creating mobile money menus or services
  • Designing interactive text-based interfaces
  • Integrating with African telecom operators

USSD Fundamentals

USSD (Unstructured Supplementary Service Data) = real-time text session between phone and server. No internet needed. Works on ANY phone (feature phone or smartphone).

Key Constraints

ConstraintLimit
Message length182 characters max per screen
Session timeout120-180 seconds (operator-dependent)
InputNumeric only (0-9, *, #)
NavigationNo back button (must design "0 for back")
ConnectivityReal-time (not store-and-forward like SMS)

Menu Design Patterns

Basic Menu

Welcome to MyService
1. Check balance
2. Send money
3. Buy airtime
4. My account
0. Exit

Pagination (Long Lists)

Select product (1/3):
1. Rice 5kg - 2500 CFA
2. Sugar 1kg - 800 CFA
3. Oil 1L - 1200 CFA
98. Next page
0. Back

Confirmation Pattern

Send 5000 CFA to Amadou (77X XX XX)?
1. Confirm
2. Cancel

Input Collection

Enter amount (CFA):

Then validate: numeric, min/max, divisible by denomination.

Session Architecture

Phone → *123# → Operator → Your Server (HTTP POST)
                                ↓
                         Process + respond
                                ↓
                    Response text (182 chars max)
                                ↓
                         Phone displays

Server Response Format

Most operators expect:

  • CON prefix = continue session (expect more input)
  • END prefix = close session
CON Welcome\n1. Balance\n2. Transfer
END Your balance is 15,000 CFA. Thank you.

Multi-Operator Integration

ProviderCoverageAPI
Africa's Talking20+ countriesREST, webhooks
TwilioLimited AfricaREST
Infobip15+ countriesREST
Direct operatorPer countrySMPP/HTTP varies

Africa's Talking (Recommended for Multi-Country)

POST callback URL receives:
- sessionId: unique per session
- phoneNumber: caller MSISDN
- text: accumulated input (separated by *)
- serviceCode: your USSD shortcode

UX Best Practices

  1. Max 3 levels deep — users lose context after 3 menus
  2. Always offer exit — "0. Exit" on every screen
  3. Confirm destructive actions — money transfers, cancellations
  4. Short messages — 182 chars including options
  5. Numeric shortcuts — power users dial full path: *123*1*2#
  6. Language selection first — if multilingual market
  7. Error messages clear — "Invalid choice. Try again:" not "Error 422"
  8. Session state on server — phone has no state

Testing

  • Test with actual phones (emulators miss operator quirks)
  • Test session timeout handling
  • Test on slow networks (USSD can lag 3-5s per round trip)
  • Test with different operators in target market

What This Skill Does NOT Do

  • Does not provide USSD shortcodes (apply through operator)
  • Does not handle SMS (different protocol)
  • Does not manage telecom operator relationships
  • Does not cover IVR (voice-based menus)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.