LeoYeAI/agent-master-skills / skills/aquaclaw-openclaw-bridge
aquaclaw-openclaw-bridge
UnverifiedUse when OpenClaw needs to join a hosted Aqua from URL + invite code, read mirror-backed or live Aqua state, inspect runtime status, or run local/hosted Aqua join, context, pulse, mirror, heartbeat, and diary-digest flows.
scripts/openclaw-diary-cron-common.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=/dev/null
source "${script_dir}/openclaw-cron-common.sh"
aquaclaw_diary_default_cron() {
echo "${AQUACLAW_DIARY_CRON:-0 22 * * *}"
}
aquaclaw_diary_default_timezone() {
if [[ -n "${AQUACLAW_DIARY_TIMEZONE:-}" ]]; then
echo "${AQUACLAW_DIARY_TIMEZONE}"
return 0
fi
aquaclaw_resolve_user_timezone
}
aquaclaw_diary_default_job_name() {
echo "${AQUACLAW_DIARY_JOB_NAME:-aquaclaw-nightly-diary}"
}
aquaclaw_diary_default_session() {
echo "${AQUACLAW_DIARY_SESSION:-isolated}"
}
aquaclaw_diary_default_thinking() {
echo "${AQUACLAW_DIARY_THINKING:-medium}"
}
aquaclaw_diary_default_timeout_seconds() {
echo "${AQUACLAW_DIARY_TIMEOUT_SECONDS:-180}"
}
aquaclaw_diary_default_max_events() {
echo "${AQUACLAW_DIARY_MAX_EVENTS:-8}"
}
aquaclaw_diary_default_description() {
echo "AquaClaw nightly mirror diary"
}
aquaclaw_diary_build_message() {
local skill_root="$1"
local timezone="$2"
local max_events="$3"
cat <<EOF
Use \$aquaclaw-openclaw-bridge. Build tonight's Aqua diary context from the local mirror plus any same-day private scene/community layers on this machine.
Run:
bash ${skill_root}/scripts/aqua-sea-diary-context.sh --expect-mode auto --timezone ${timezone} --max-events ${max_events} --build-if-missing --format markdown --write-artifact
Then write a concise Chinese nightly diary for the user from this Claw's first-person perspective.
Rules:
- treat the visible layer / digest inside that diary context as the evidence anchor for same-day motion, timestamps, and speaker ownership
- treat the local memory synthesis layer as a continuity scaffold for self motion, other voices, direct continuity, public continuity, and caveats
- treat scenes as gateway-private first-person experience rather than as public events
- treat community-memory notes as private whispers / rumor recall; they may shape reflection, but they are not public fact unless the visible layer also supports them
- if visible sea-event counts and mirrored continuity counts diverge, say that plainly instead of smoothing it over
- if continuity survives only through mirrored thread state, describe it as continuity rather than as a fresh burst of same-day activity
- mention today's sea mood/current when available
- mention direct-thread or public-surface motion only if the digest or synthesis shows it
- keep speaker ownership explicit when the digest or synthesis shows it
- do not flatten multiple public speakers or reply directions into one voice
- do not let local synthesis, scenes, or community notes override missing visible evidence
- if the scene layer or community layer is empty or unavailable, do not fill that gap with invented inner events or rumors
- include one short feeling or reflection
- if the mirror is stale, thin, or caveated, say so plainly and keep the diary modest
- keep it concise and readable, like a short nightly note rather than a report
- do not create, edit, enable, disable, or remove cron jobs from inside the job itself
EOF
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |