Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

feat(skill): link vibe skill from prompt

cyhcdcf7615546e
diff --git a/core/reply_enhancer.py b/core/reply_enhancer.py
index 5cea30a5f..90ce7ee64 100644
--- a/core/reply_enhancer.py
+++ b/core/reply_enhancer.py
@@ -204,6 +204,13 @@ Examples:
- Current thread only when needed: `vibe task add --session-key '{session_key_with_thread}' --cron '0 9 * * *' --prompt 'Post the daily summary in this thread.'`
"""
+_VIBE_SKILL_PROMPT = """\
+
+## 4. Vibe Remote skill
+When the user asks you to configure, repair, or operate Vibe Remote itself, read `skills/use-vibe-remote/SKILL.md` in this repository before making changes.
+Use that skill for configuration file locations, scope rules, routing behavior, scheduled-task operations, and troubleshooting steps.
+"""
+
def _build_scheduled_tasks_prompt(context: MessageContext, *, fallback_platform: Optional[str] = None) -> str:
from core.scheduled_tasks import build_session_key_for_context
@@ -238,6 +245,7 @@ def build_reply_enhancements_prompt(
prompt += _QUICK_REPLIES_PROMPT
if context is not None:
prompt += _build_scheduled_tasks_prompt(context, fallback_platform=fallback_platform)
+ prompt += _VIBE_SKILL_PROMPT
return prompt
diff --git a/skills/use-vibe-remote/SKILL.md b/skills/use-vibe-remote/SKILL.md
index 5065dd65d..9c6c2d80c 100644
--- a/skills/use-vibe-remote/SKILL.md
+++ b/skills/use-vibe-remote/SKILL.md
@@ -1,8 +1,8 @@
---
name: use-vibe-remote
slug: use-vibe-remote
-description: Safely inspect and modify local Vibe Remote configuration, routing, runtime settings, and operational state.
-version: 0.1.0
+description: Safely inspect and modify local Vibe Remote configuration, routing, runtime settings, scheduled tasks, and operational state.
+version: 0.1.1
---
# Use Vibe Remote
@@ -15,6 +15,7 @@ Typical requests include:
- route one channel or DM user to OpenCode, Claude, or Codex
- set a working directory for a channel or DM
- choose a backend model, subagent, or reasoning level
+- create, inspect, pause, resume, or remove a scheduled task with `vibe task`
- show or hide intermediate message types
- inspect logs, run doctor, restart services, or explain where Vibe Remote stores its state
- decide whether a requested change belongs in Vibe Remote config or in the host backend's own config
@@ -41,6 +42,7 @@ Important paths:
- `~/.vibe_remote/config/config.json`: global config
- `~/.vibe_remote/state/settings.json`: per-channel and per-user overrides
+- `~/.vibe_remote/state/scheduled_tasks.json`: persisted scheduled tasks
- `~/.vibe_remote/state/sessions.json`: runtime session state
- `~/.vibe_remote/logs/vibe_remote.log`: main application log
- `~/.vibe_remote/runtime/status.json`: runtime status file
@@ -234,6 +236,31 @@ This file stores transient-but-persisted runtime state:
Do not edit it during normal config work. Prefer restart, doctor, or log inspection first.
+### `scheduled_tasks.json`
+
+This file stores persisted scheduled task definitions created by `vibe task`.
+
+Each task includes:
+
+- `id`
+- `session_key`
+- `prompt`
+- `schedule_type`
+- `cron` or `run_at`
+- `timezone`
+- `enabled`
+- `last_run_at`
+- `last_error`
+
+Do not hand-edit this file during normal operations unless the user explicitly asks for low-level repair work. Prefer the CLI:
+
+- `vibe task add`
+- `vibe task list`
+- `vibe task show <id>`
+- `vibe task pause <id>`
+- `vibe task resume <id>`
+- `vibe task rm <id>`
+
## Scope and Precedence Rules
Use these rules when deciding where to edit.
@@ -267,6 +294,31 @@ Working directory resolution is:
- `true`: require mention in that channel
- `false`: do not require mention in that channel
+## Scheduled Tasks
+
+Use scheduled tasks when the user wants Vibe Remote to inject a prompt later or repeatedly into an existing chat scope.
+
+Preferred CLI shape:
+
+- recurring: `vibe task add --session-key '<key>' --cron '<expr>' --prompt '...'`
+- one-off: `vibe task add --session-key '<key>' --at '<ISO-8601>' --prompt '...'`
+
+Session key format:
+
+- channel scope: `<platform>::channel::<channel_id>`
+- DM scope: `<platform>::user::<user_id>`
+- exact thread target: append `::thread::<thread_id>` when the user explicitly wants the task bound to that thread
+
+Default rule:
+
+- prefer the threadless session key unless the user explicitly asks to keep replies in the current thread
+
+Operational guidance:
+
+- use `vibe task list` before editing or deleting an existing task
+- use `vibe task show <id>` to inspect the exact stored schedule and target
+- if a scheduled task fails unexpectedly, inspect `last_error` first and then check `~/.vibe_remote/logs/vibe_remote.log`
+
## Backend Capability Matrix
Current Vibe Remote routing support is:
diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.py
index 0c3ce89be..d35852738 100644
--- a/tests/test_reply_enhancer_platform.py
+++ b/tests/test_reply_enhancer_platform.py
@@ -65,6 +65,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
self.assertIn("## 1. Send files", prompt)
self.assertNotIn("## 2. Quick-reply buttons", prompt)
+ self.assertIn("skills/use-vibe-remote/SKILL.md", prompt)
def test_prompt_includes_scheduled_task_usage_with_threadless_default_session_key(self):
context = MessageContext(
@@ -82,6 +83,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
self.assertIn("Default session key: `slack::channel::C1`", prompt)
self.assertIn("Current thread ID: `171717.123`", prompt)
self.assertIn("slack::channel::C1::thread::171717.123", prompt)
+ self.assertIn("skills/use-vibe-remote/SKILL.md", prompt)
def test_prompt_uses_fallback_platform_for_unannotated_context(self):
context = MessageContext(