返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
j

jules-cli

Interact with the Jules CLI to manage asynchronous coding sessions. Use this skill sparingly for complex, isolated tasks that benefit from a remote VM.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
2,088
下载量
1
收藏
概述
安装方式
版本历史

jules-cli

# Jules CLI Skill ## Overview This skill enables the agent to interact with the `jules` CLI. It supports task assignment, session monitoring, and result integration. ## Usage Guidelines (CRITICAL) To prevent excessive and inappropriate session creation, you **must** follow these rules: 1. **Local First**: If you can solve the task locally within your current environment (e.g., editing files, running tests, small refactors), **do not** use Jules. 2. **Complexity Threshold**: Only use Jules for tasks that are: * **Large-scale**: Touching many files or requiring significant architectural changes. * **Isolated**: Benefiting from a clean, remote environment to avoid local dependency issues. * **Exploratory**: Tasks where the solution isn't immediately obvious and requires iteration in a VM. 3. **No Proliferation (One at a Time)**: * **Never** create multiple sessions for the same task. * **Never** use a loop or parallel execution to spin up several sessions at once. * Wait for a session to complete and inspect the results before deciding if another session is needed. 4. **No "Small" Tasks**: Do not submit tasks like "Add a comment", "Change a variable name", or "Fix a typo". --- ## Security Guidelines To ensure safe execution of CLI commands, you **must** adhere to the following security practices: 1. **Input Validation**: Before running any command, validate that: * **Repository names** follow the `owner/repo` format (alphanumeric, dots, hyphens, and underscores). * **Session IDs** are alphanumeric (typically hyphens and underscores are also allowed). 2. **Quoting**: Always wrap shell placeholders in double quotes (e.g., `"<repo>"`). 3. **No Inline Injection**: Never embed user-provided data directly into script strings (like `python3 -c`). Use environment variables to pass such data safely. 4. **Sanitization**: Ensure task descriptions do not contain malicious shell characters if passed directly to the shell. --- ## Safety Controls * **Approval Required (MANDATORY)**: You **must** ask for explicit user approval before running any of the following commands: * `jules remote new`: Since this creates a remote session/VM. * `jules remote pull --apply`: Since this modifies the local codebase. * `jules teleport`: Since this clones and modifies the environment. * **Verification**: Always run `jules remote list --session` before creating a new one to ensure you don't already have a pending session for the same repository. * **Credentials**: If `jules login` is required, explain *why* to the user and wait for their confirmation before proceeding. --- ## Core Workflow (Manual Control) Prefer using the CLI directly to maintain situational awareness. ### 1. Pre-flight Check Verify repository access and format. ```bash jules remote list --repo ``` *Note: Ensure the repo format is `GITHUB_USERNAME/REPO`.* ### 2. Submit Task Create a session and capture the Session ID. ```bash # Capture the output to get the ID # Replace <repo> and task description with validated inputs jules remote new --repo "<repo>" --session "Detailed task description" < /dev/null ``` ### 3. Monitor Progress List sessions and look for your ID. Use this robust one-liner to check the status (it handles statuses with spaces like "In Progress"): **Check Status (Safe Method):** ```bash # Use an environment variable to pass the Session ID safely to Python export JULES_SESSION_ID="<SESSION_ID>" jules remote list --session | python3 -c " import sys, re, os session_id = os.environ.get('JULES_SESSION_ID', '') if not session_id: sys.exit(0) for line in sys.stdin: line = line.strip() if line.startswith(session_id): # Extract status (the last column after multiple spaces) print(re.split(r'\s{2,}', line)[-1]) " unset JULES_SESSION_ID ``` ### 4. Integrate Results Once the status is **Completed**, pull and apply the changes. ```bash # Replace <SESSION_ID> with the validated Session ID jules remote pull --session "<SESSION_ID>" --apply < /dev/null ``` --- ## Error Handling & Troubleshooting * **Repository Not Found**: Verify format with `jules remote list --repo`. It must match the GitHub path. * **TTY Errors**: Always use `< /dev/null` for non-interactive automation with the raw `jules` command. * **Credentials**: If you see login errors, ensure `HOME` is set correctly or run `jules login`. --- ## Command Reference | Command | Purpose | | :--- | :--- | | `jules remote list --repo` | Verify available repositories and their exact names. | | `jules remote list --session` | List active and past sessions to check status. | | `jules remote new` | Create a new coding task. | | `jules remote pull` | Apply changes from a completed session. | | `jules teleport "<id>"` | Clone and apply changes (useful for fresh environments). |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 jules-cli-1776374847 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 jules-cli-1776374847 技能

通过命令行安装

skillhub install jules-cli-1776374847

下载 Zip 包

⬇ 下载 jules-cli v1.0.2

文件大小: 3.8 KB | 发布时间: 2026-4-17 14:18

v1.0.2 最新 2026-4-17 14:18
- Added a security guidelines section detailing safe command practices, including input validation, quoting, and sanitization.
- Required explicit user approval before running sensitive commands like session creation, applying changes, and teleporting.
- Updated usage examples to use validated and safely quoted inputs with environment variable handling for session IDs.
- Declared required binaries (jules, python3) and environment variable (HOME) in the skill metadata.
- Clarified credential instructions and user notification requirements.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部