with one click
jules-gitpatch-local
// A CLI tool to securely download and apply a git patch from a Jules session.
// A CLI tool to securely download and apply a git patch from a Jules session.
Evaluates generated code via GitPatch against original goals and coding standards.
Comprehensive instructions for executing tasks using the gws (Google Workspace) CLI or similar agent-first command-line tools. Use this skill when interacting with machine-readable CLIs to ensure safe mutations, enforce context window discipline, and avoid input hallucinations.
Cognitive triage of fleet audit findings. Read issue content, evaluate labeling accuracy, and determine open/close/dispatch/relabel actions for fleet-managed issues. Use when triaging undispatched issues or reviewing audit scan results.
| name | jules-gitpatch-local |
| version | 1.0.0 |
| description | A CLI tool to securely download and apply a git patch from a Jules session. |
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.
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.
bun run index.ts "" --describe
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.
bun run index.ts <session-id> --dry-run
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.
bun run index.ts <session-id> --json
Input Hardening:
<session-id> parameter must not contain query parameters (?) or hash fragments (#).--branch parameter must not contain directory traversal characters (..) or control characters.The --json output will always follow the ApplyPatchResult discriminated union pattern:
{
success: true,
data: { branchName: string, commitMessage?: string }
}
or
{
success: false,
error: { code: string, message: string, recoverable: boolean }
}