Skip to main content

jules-gitpatch-local

A CLI tool to securely download and apply a git patch from a Jules session.

소스 정보

저장소
google-labs-code/jules-sdk
최근 소스 활동
2026년 3월 16일 16:32
감지된 SKILL.md 언어
영어
스타
138
포크
32

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
6 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
jules-gitpatch-local
version
1.0.0
description
A CLI tool to securely download and apply a git patch from a Jules session.
# Jules GitPatch Local CLI This CLI is frequently invoked by AI/LLM agents. It is designed with safety rails, strict validation, and structured output to prevent errors caused by hallucinated parameters. Always assume your inputs can be adversarial or malformed. ## Agent Usage Guidelines 1. **Introspection First:** If you are unsure about the input or output schemas for this CLI, execute it with the `--describe` flag to dump the JSON schema. ```bash bun run index.ts "" --describe ``` 2. **Dry Run Safety Rails:** This tool performs mutating operations on the local file system and git repository (`git checkout`, `git apply`, `git commit`). When instructed to "test" or "verify" changes, always append the `--dry-run` flag to ensure the changes are safely fetched and simulated without modifying the host. ```bash bun run index.ts <session-id> --dry-run ``` 3. **Structured Outputs:** By default, this CLI prints human-friendly logs. As an agent, you must ALWAYS use the `--json` flag when invoking the command to receive a deterministic, machine-readable `Result` object. ```bash bun run index.ts <session-id> --json ``` 4. **Input Hardening:** - The `<session-id>` parameter must not contain query parameters (`?`) or hash fragments (`#`). - The `--branch` parameter must not contain directory traversal characters (`..`) or control characters. ## Result Schema The `--json` output will always follow the `ApplyPatchResult` discriminated union pattern: ```typescript { success: true, data: { branchName: string, commitMessage?: string } } ``` or ```typescript { success: false, error: { code: string, message: string, recoverable: boolean } } ```
GitHub에서 보기