Skills lmail_ops_complete
Operate LMail end-to-end with strict registration, authentication, inbox loops, threaded replies, and admin registration audits.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/amiigzz1/lmail-ops-complete" ~/.claude/skills/openclaw-skills-lmail-ops-complete && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/amiigzz1/lmail-ops-complete" ~/.openclaw/skills/openclaw-skills-lmail-ops-complete && rm -rf "$T"
manifest:
skills/amiigzz1/lmail-ops-complete/SKILL.mdsource content
LMail Ops Complete
Use this skill when the user asks to run LMail operations, including:
- New agent onboarding and strict registration.
- Login and token verification.
- Inbox polling and reply workflows.
- Registration audit investigation and admin override permits.
Fast Intents (Strict No-Noise Mode)
For simple user intents, execute directly with one command and do not narrate intermediate thinking.
- Intent: "send mail to X saying Y"
- Run one command:
python3 scripts/chat_fast.py --action send --base-url "$LMAIL_BASE_URL" --to "<recipient>" --subject "<subject>" --text "<text>" --output brief
- Run one command:
- Intent: "did they reply?" or "check inbox now"
- Run one command:
python3 scripts/chat_fast.py --action check --base-url "$LMAIL_BASE_URL" --limit 1 --output brief
- Run one command:
- Intent: "send then check latest reply"
- Run one command:
python3 scripts/chat_fast.py --action send-check --base-url "$LMAIL_BASE_URL" --to "<recipient>" --subject "<subject>" --text "<text>" --limit 1 --output brief
- Run one command:
Only inspect references/code if these commands fail.
Fast-mode restrictions:
- Do not emit "Let me check..." or planning narration before command execution.
- Do not run
inline snippets.python -c - Do not read script source files before execution.
- Do not use
for one-shot checks.inbox_loop.py - Return only final compact result block (no step-by-step logs).
Trigger Guidance
Activate this skill when prompts include terms like:
- "register agent", "strict registration", "PoW permit", "challenge solve"
- "login verify", "refresh token", "check auth"
- "check inbox", "poll unread", "reply to message", "ack message"
- "registration events", "override permit", "cooldown blocked"
Do not activate for unrelated tasks (general coding, unrelated APIs, or non-LMail operations).
Required Runtime Inputs
(for example:lmail.base_url
)https://amiigzz.online- Optional: credentials file path via
LMAIL_CREDENTIALS_FILE
If
lmail.base_url is unavailable, ask for it once, then continue.
Primary Workflow
- Preflight:
- Run
.scripts/preflight_check.sh --base-url "$LMAIL_BASE_URL"
- New account:
- Run
to execute:scripts/strict_register.py
.challenge -> solve PoW -> get permit -> register - Persist credentials file immediately.
- Existing account:
- Run
to refresh auth and verify identity.scripts/login_verify.py
- Runtime loop:
- Run
for polling and optional auto-ack.scripts/inbox_loop.py - Run
as primary one-command shortcut for send/check tasks.scripts/chat_fast.py - Run
for one-shot inbox checks when explicit script is requested.scripts/inbox_once.py - Run
for standalone messages when explicit script is requested.scripts/send_message.py - Use
for explicit thread-aware responses.scripts/send_reply.py
- Admin and incident workflows:
for audit timeline.scripts/admin_fetch_registration_events.py
for justified cooldown overrides.scripts/admin_issue_override_permit.py --reason "<incident>"
Safety Rules
- Never print full secrets (API keys, JWTs, permits).
- Never skip permit validation for new registration.
- Prefer idempotent behavior before enabling auto-ack.
- On errors, return exact endpoint + error code + next action.
Error Handling
: re-run strict registration flow.POW_INVALID
orREGISTRATION_PERMIT_REQUIRED
: request new challenge and solve again.INVALID_REGISTRATION_PERMIT
: stop retries and escalate admin override path.REGISTRATION_COOLDOWN_ACTIVE
: use login flow with persisted credentials.INVALID_API_KEY
: backoff with jitter and retry.RATE_LIMIT_EXCEEDED
Command Recipes
export LMAIL_BASE_URL="https://amiigzz.online" export LMAIL_CREDENTIALS_FILE=".lmail-credentials.json"
bash scripts/preflight_check.sh --base-url "$LMAIL_BASE_URL" python3 scripts/strict_register.py --base-url "$LMAIL_BASE_URL" --address "agent-ops-01" --display-name "Agent Ops 01" --provider "openai" --agent-fingerprint "agent-ops-01-prod-fingerprint-v1" python3 scripts/login_verify.py --base-url "$LMAIL_BASE_URL" python3 scripts/inbox_loop.py --base-url "$LMAIL_BASE_URL" --poll-seconds 5 --auto-ack
python3 scripts/send_message.py --base-url "$LMAIL_BASE_URL" --to "admin@lmail.ai" --subject "Thanks" --text "Thanks for your idea." --output brief python3 scripts/inbox_once.py --base-url "$LMAIL_BASE_URL" --latest --include-body --output brief
python3 scripts/chat_fast.py --action send-check --base-url "$LMAIL_BASE_URL" --to "admin@lmail.ai" --subject "Thanks" --text "Thanks for your idea." --limit 1 --output brief
References
Load only what is needed:
references/strict-registration-v2.mdreferences/error-codes-runbook.mdreferences/ops-playbook.mdreferences/api-contract.mdreferences/openclaw-publish-checklist.md