Skip to main content

begin-coding-worker

Start an adaptive coding loop that dynamically adjusts interval based on activity — short intervals when busy, longer when idle.

معلومات المصدر

المستودع
okou-ai/team-skills
آخر نشاط في المصدر
٤ أبريل ٢٠٢٦ في ١٣:٠٩
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١
التفرعات
٢

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
begin-coding-worker
description
Start an adaptive coding loop that dynamically adjusts interval based on activity — short intervals when busy, longer when idle.
1. Determine the worker label and run the coding worker script, capturing stdout: ```bash PROJECT_ROOT=$(git rev-parse --show-toplevel) _LABEL="${ARGUMENTS:-$("$PROJECT_ROOT/scripts/cn.sh")}" ${CLAUDE_PLUGIN_ROOT}/scripts/coding-worker.sh "$_LABEL" ``` 2. Parse the first line `INTERVAL:N` and save N. 3. Use CronList to check if a recurring cron job for `/begin-coding-worker` already exists. - If a matching job exists **and** its interval differs from N minutes, delete it with CronDelete and create a new recurring cron with `*/N * * * *` and prompt `/begin-coding-worker $ARGUMENTS`. - If a matching job exists **and** its interval already matches N minutes, do nothing (keep it as-is). - If no matching job exists, create a new recurring cron with `*/N * * * *` and prompt `/begin-coding-worker $ARGUMENTS`. 4. If the remaining output (after the first line) is "idle", stop here — the recurring cron will trigger the next check. 5. If the remaining output is NOT "idle", launch a **general-purpose Agent** (subagent) with that output as the prompt. Do NOT execute the instructions yourself — always delegate to a subagent. **Wait for the subagent to complete** before returning.
عرض على GitHub