Skip to content
Back to skills

Guru Sync Base

ASecurity

Resolve a fixed Git baseline for read-only Intake, or safely synchronize a selected base checkout.

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 20, 2026
toolspythongit

Works with

  • cli

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add castbox/guru-trellis --skill guru-sync-base --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Guru Sync Base?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Guru Sync Base
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/castbox-guru-sync-base/badge)](https://www.skillsdirectory.com/skills/castbox-guru-sync-base)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: guru-sync-base
description: Resolve a fixed Git baseline for read-only Intake, or safely synchronize a selected base checkout.
---

# Guru Sync Base

Before substantive output, read `.trellis/spec/workflow/clear-technical-writing.md`
in full and apply it within this entry's existing scope. Until that read succeeds,
use only short progress messages or concrete missing-dependency diagnostics.
State the current action or missing item; make no unverified claim. If the file
cannot be read, pause substantive output, then read it and resume the same
request when available. No additional approval is needed for that recovery.

Use this Skill when the Guru Team workflow mandatory invokes `guru-sync-base`,
or when the user asks to read a fixed Git baseline, refresh, or verify a repository base branch.

The caller must finish tool-free route classification before invoking this
Skill. Load [references/contract.md](references/contract.md), then invoke
`scripts/invoke.sh --invocation -` exactly once with the closed call-local
envelope. The runtime alone executes the deterministic resolve, execute and
check components before returning exactly one declared typed exit.

Use the [contract locations](references/contract.md#contract-locations-and-public-call)
before authoring that envelope. Interface paths beginning with `consumers/`
resolve from `.trellis/guru-team/skills`, while public `schemas/` and `examples/`
resolve from this package. The envelope is not a package-local schema.

For `operation=read`, the caller selects a repository and `base_ref` (a Git ref
or commit), with optional `base_commit` as an expected resolution assertion.
Omitted `base_ref` reuses the original explicit/config/candidate/default base
selection rules. Runtime fixes the available commit and returns `baseline_ready`
to Discovery. It does not require a base checkout, cleanliness, fetch, or
fast-forward. Later ref movement does not retarget that adopted commit.

For an actual Clarify qualification `refresh_context`, use the declared
confirmation-refresh read input with its unchanged `return_identity`,
`operation=read`, `route=repo_change` and original selected commit. The current
baseline_ready 2.0 confirmation branch preserves that identity and enters
Discovery context_request, rather than pre_task/stage0-current. Sync only
validates and projects normalized identity; Clarify/Discovery retain source,
scope and evidence judgment. Load the contract for the complete envelope and
consumer projection. Ordinary read and sync keep their original behavior.

The receiving caller follows Interface1.10's profile-selected authoring seed
before invoking Discovery. For pre_task, its AI supplies change_input and
clarify_profile, plus source_locators for reviewed-plan Intake. For
context_request, it preserves the actual return_identity and supplies
change_input. Read the selected consumer contract and validate the completed
input; the seed alone is incomplete. Sync performs none of these AI judgments.

For `operation=sync` (the compatibility default), base resolution first selects the branch without consulting the current branch
or registered-worktree availability. It then binds that fixed selection to the
unique clean checkout registered for `refs/heads/<selected-base>` in the same
Git common-dir. The invocation checkout may be detached. Fetch, fast-forward,
live validation, and the public repository locator all use the bound authority
checkout; missing, dirty, or mismatched authority identity returns `blocked`
without selecting another base or creating/switching a checkout.

Workflow mode may return `baseline_ready`, `synced`, `skipped`, or `blocked`.
Standalone read returns `baseline_ready` to its declared Discovery consumer;
standalone sync returns `synced` or `blocked`. Neither creates a Task or worktree. Resolution and result
facts remain on stdout; the Skill does not create or manage cross-step evidence
files.

Fail closed when the complete compatible Guru Team preset/runtime is missing,
when facts are stale or ambiguous, or when any runtime/schema/managed-copy
validation fails. This package is not self-contained or portable.

Normal public handoff uses `scripts/invoke.sh --invocation -`; the declared
scalar CLI remains compatibility-only and is not the workflow route. The
wrapper dispatches only through `run-skill-command`; runtime performs the formal
resolve, execute, and check sequence, then emits one `baseline_ready`, `synced`, `skipped`, or `blocked` minimal DTO. Do not invoke the low-level components first, read/import
the shared Python runtime, or pass the private base-sync result as the next
Skill input.

Read `.trellis/spec/workflow/companion-scripts.md#intermediate-command-stdout-10` for receipts and `result` projection.
Only the declared public invocation emits a formal exit; follow its consumer and positive-exit conditions.

Files in this skill

  • SKILL.md2.2 KB
  • commands.json5 KB
  • evals/evals.json2.7 KB
  • evals/files/eval-blocked-facts.json444 B
  • evals/files/eval-skipped-facts.json258 B
  • evals/files/eval-synced-facts.json536 B
  • examples/public-blocked-output.json27 B
  • examples/public-skipped-output.json66 B
  • examples/public-synced-output-2.0.json909 B
  • interface.json12.4 KB
  • references/contract.md7.9 KB
  • schemas/public-blocked-output.schema.json276 B
  • schemas/public-invocation-error.schema.json474 B
  • schemas/public-skipped-output.schema.json376 B
  • schemas/public-synced-output-2.0.schema.json2.1 KB
  • schemas/public-synced-output.schema.json803 B
  • scripts/invoke.sh590 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.