Start with a file path
Pass the path to MaskKeep before the agent opens the original.
Local text masking
MaskKeep replaces supported IDs, IBANs, cards, API keys, emails and phone numbers with tokens while keeping the surrounding text readable.
Sample input (English labels)
# All values are fake or public documentation/test values.
Sample support ticket
Egyptian national ID 30001010100000
Saudi iqama 2000000006
IBAN SA0380000000608010167519
Test card 4111111111111111
Paymob key egy_sk_test_FAKEFAKEFAKEFAKE1234
Email fictional.customer@example.com
Mobile 010 0000 0000
Masked output (same command, English labels)
$ python3 -I skills/maskkeep/scripts/maskkeep.py mask ticket.txt# All values are fake or public documentation/test values.
Sample support ticket
Egyptian national ID [REDACTED_EG_NID_01]
Saudi iqama [REDACTED_SA_ID_01]
IBAN [REDACTED_IBAN_01]
Test card [REDACTED_CARD_01]
Paymob key [REDACTED_SECRET_01]
Email [REDACTED_EMAIL_01]
Mobile [REDACTED_PHONE_01]
Stamp it before it leaks. Play Redaction Relay: black out the sensitive tokens before they reach the model.
Simulated training exercise, not a real scan result.
Pass the path to MaskKeep before the agent opens the original.
Local rules match supported formats, including Arabic-Indic digits, and replace selected values with stable tokens within the run.
Give the agent that copy and report the masked types and skipped low-confidence matches.
The README records local checks against vendor documentation for these setups. Live registry installs remain unverified.
The README also describes untested setups for Claude.ai, ChatGPT, Gemini web/app and Google Antigravity.
Build the local bundles from the project root.
python3 -I tools/build.py --dist
/plugin marketplace add QidarSarhan/maskkeep
/plugin install maskkeep@maskkeepUnzip maskkeep-skill.zip for skill-only setup.
~/.claude/skills/ · .claude/skills/Unzip the skill bundle into a supported directory.
.agents/skills/ · ~/.agents/skills/gemini extensions install https://github.com/QidarSarhan/maskkeepUnzip the skill bundle into a supported directory.
.gemini/skills/Unzip the skill bundle into a supported directory.
.opencode/skills/Unzip the skill bundle into a supported directory.
.github/skills/ · ~/.copilot/skills/Install with skills CLI
npx skills add QidarSarhan/maskkeepCopy the skill directory to either location.
.agents/skills/maskkeep/ · ~/.gemini/config/skills/maskkeep/Upload the bundle as a custom skill.
maskkeep-skill.zipCopy the prompt into your chat, run the script locally, and paste the masked output.
adapters/chat-prompt.mdCopy the skill directory there and append adapters/AGENTS.snippet.md to AGENTS.md.
.agents/skills/maskkeep/The terminal shows the output of the same command on a fictional ticket with English labels. The recorded demo saved in docs/demo/maskkeep-output.txt uses the Arabic-labelled ticket.
The README records 36 passing engine tests across five Python versions on Linux and 96 tests in a discovery run. Python 3.10, Windows and macOS were outside the recorded run.
Live registry installation, hook operation and agent adherence remain untested.
A clean scan gives no privacy or legal compliance guarantee. Precision and recall are unmeasured.
Whether you are submitting pull requests, or helping others debug, your participation powers this project.
Help shape the codebase, report defects, join technical architectural discussions, or claim your first open issue.
Mask it before your agent reads it.
To give every builder small, honest tools that check before an agent builds on a mistake.
A builder community, Arabic-first and global in reach, where checking before executing is a daily habit.
Documented before announced · Local by default · Arabic is native, not translated · Limits stated openly · Open source