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-cron-job-find.mjs
View on GitHub#!/usr/bin/env node
import fs from 'node:fs';
import process from 'node:process';
export function formatEveryMs(everyMs) {
if (!Number.isFinite(everyMs) || everyMs <= 0) {
return null;
}
if (everyMs % 3600000 === 0) {
return `${everyMs / 3600000}h`;
}
if (everyMs % 60000 === 0) {
return `${everyMs / 60000}m`;
}
if (everyMs % 1000 === 0) {
return `${everyMs / 1000}s`;
}
return `${everyMs}ms`;
}
export function summarizeCronJob(job, target) {
const id = job.id ?? job.jobId ?? job._id ?? null;
const enabled = typeof job.enabled === 'boolean'
? job.enabled
: typeof job.disabled === 'boolean'
? !job.disabled
: null;
let schedule = job.every ?? job.cron ?? job.at ?? null;
if (!schedule && job.schedule && typeof job.schedule === 'object') {
if (job.schedule.kind === 'every') {
schedule = formatEveryMs(job.schedule.everyMs) ?? 'every';
} else if (typeof job.schedule.cron === 'string' && job.schedule.cron) {
schedule = job.schedule.cron;
} else if (typeof job.schedule.at === 'string' && job.schedule.at) {
schedule = job.schedule.at;
} else if (typeof job.schedule.kind === 'string' && job.schedule.kind) {
schedule = job.schedule.kind;
}
}
return {
id,
name: job.name ?? target,
enabled,
schedule,
raw: job,
};
}
export function findCronJobByName(input, target) {
const jobs = Array.isArray(input?.jobs) ? input.jobs : [];
const job = jobs.find((candidate) => candidate && candidate.name === target);
if (!job) {
return null;
}
return summarizeCronJob(job, target);
}
function main() {
const target = process.env.NAME;
const input = JSON.parse(fs.readFileSync(0, 'utf8'));
const summary = findCronJobByName(input, target);
if (!summary) {
process.exit(2);
}
process.stdout.write(`${JSON.stringify(summary, null, 2)}\n`);
}
if (import.meta.url === `file://${process.argv[1]}`) {
main();
}
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: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | 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: 323k | 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: 323k | Updated | Claude CodeCodex | Verified | Install |