Skip to main content

background-prompt

Execute a task in the background with a prompt through the core engine LLM provider and return plain text output. Use when the user wants to run a prompt as a background task via the Agent CLI.

来源信息

仓库
X-School-Academy/skill-pilot
最近来源活动
2026年5月26日 23:11
检测到的 SKILL.md 语言
英语
星标
20
分支
13

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
background-prompt
description
Execute a task in the background with a prompt through the core engine LLM provider and return plain text output. Use when the user wants to run a prompt as a background task via the Agent CLI.
# Background Prompt Run a prompt as a background task through the local `core/bin/agent-cli` tool. ## When to Use This Skill - User wants to execute a prompt in the background - User wants a prompt executed by the default core engine LLM provider - The task is suitable for single-prompt inference with plain text output ## Your Roles in This Skill - **Backend Developer (Engineer)**: Execute the tool command and capture output safely - **Technical Writer**: Convert tool output into a clear user-facing response - **Security Engineer**: Ensure prompt execution follows configured security flags ## Role Communication As an expert in your assigned roles, you must announce your actions before performing them using the following format: As a {Role, and Role-XYZ if have more roles}, I will {action description} This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points. ## Instructions Follow these steps in order: ### Step 1: Confirm intent Ensure the user wants to run a background prompt. If not explicit, ask for confirmation before invoking. ### Step 2: Build the prompt Compose one concise prompt string from user instructions. Keep task scope explicit and include required output format details. ### Step 3: Execute Agent CLI Run from repository root: ```bash core/bin/agent-cli "<prompt>" ``` Optional overrides only if user requests: ```bash core/bin/agent-cli --provider <provider-id> --sandbox --auto --network "<prompt>" ``` ### Step 4: Return plain text result Return the command output as plain text to the user. If command fails, include the error text and a concrete retry suggestion. ## Expected Output - A plain text response generated by `core/bin/agent-cli` - Any execution error surfaced clearly when failures occur ## Key Principles - Use `core/bin/agent-cli` as the primary execution path - Keep prompts specific and deterministic - Respect configured security defaults unless user requests overrides
在 GitHub 查看