Skip to content
Back to skills

Guru Discover Change Context

ASecurity

Discover fresh current and archived change context, run the semantic evidence gate, and hand minimal current identity to Guru Team requirement clarification.

  • 9 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 20, 2026
ai-agentspythonshellgit

Works with

  • cursor

Security analysis

A100/100

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

Scanned November 27, 2026

npx -y skills add castbox/guru-trellis --skill guru-discover-change-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Guru Discover Change Context?

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

Security grade badge for Guru Discover Change Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/castbox-guru-discover-change-context/badge)](https://www.skillsdirectory.com/skills/castbox-guru-discover-change-context)

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-discover-change-context
description: Discover fresh current and archived change context, run the semantic evidence gate, and hand minimal current identity to Guru Team requirement clarification.
---

# Guru Discover Change Context

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.

The current executing AI is this Skill's semantic owner. Read the complete
contract and perform its review yourself before authoring the current owner
result and calling record, check, and invoke. `owner_not_yet_executed` is an
internal state to continue this review, not a typed stop or a missing external
owner. Do not wait for another agent, agent ID, subagent evidence, or a
pre-existing owner result. Real missing authority or prerequisites still
follow this Skill's declared routes; runtime cannot supply your judgment.

Use this Skill after `guru-sync-base:baseline_ready` or `guru-sync-base:synced`, or when a standalone caller asks
to discover change context from a fresh base with explicit issue, request,
path, command, config, schema, or symbol clues.

Load [references/contract.md](references/contract.md). Execute its semantic
closed loop in the declared order, complete the AI Review Gate before any
recorder/validator, then return exactly one declared typed exit.

The executing AI checks Sync's public transition against the contract's
read-only Git facts before semantic retrieval. Record/check later reobserve
those facts and derive `base_observation`. Use those existing actions in order.
For an unbound local draft, read the contract's
[Related Issue Clues And Draft Binding](references/contract.md#related-issue-clues-and-draft-binding)
before using its source-capture example or authoring retrieval clues.

Run commands from the reviewed repository root. The full execution package is
`.trellis/guru-team/skills/packages/guru-discover-change-context`; `scripts/`,
`schemas/`, and `examples/` references below resolve under that package, not
the `.agents/`, `.codex/`, `.claude/`, or `.cursor/` discovery projection.
Use its managed shell wrappers; do not import eval/private Python runtime to
construct recorder-owned fields. The contract lists the fields record derives.

Before current-state, duplicate, or history retrieval, read
`.trellis/spec/workflow/semantic-retrieval.md` and apply that shared contract in
this Skill's semantic evidence gate. A one-language zero result cannot establish
that a mechanism, duplicate, or historical decision is absent.

For history preview, capture complete stdout bytes in call-local memory, check
command success, then decode UTF-8 and parse the receipt's `result`. Show all
returned candidates in compact batches and supplement missing fields by
candidate ID and offset before your selection/exclusion judgments. Follow
[examples/history-preview.md](examples/history-preview.md) for the executable
capture and reading path. If only the tool display is truncated, automatically
read smaller batches from memory and continue this same Discovery. If memory
is lost, recover with the same fixed baseline and query. Actual command or
freshness failures retain the contract's original routes.

Use the dispatcher-only wrappers for history preview, owner-result recording,
and owner-result checking. Normal recording/checking is stdin/stdout-only and
does not create a repository artifact. Pass the current Discovery `pre_task` 4.0 or `context_request` 3.0 input and
independent `base_current` transition to record, check, and invoke in one closed
semantic-owner 1.0 envelope via `--invocation -`. Include `schema_version`,
`public_input`, `transition`, `owner_context={}`, and `owner_result`; mode comes
from `public_input.mode`. Replace only `owner_result` with recorder receipt `result` in
memory before check and invoke. No caller supplies or reconstructs a Sync
private result. See the exact Issue #384 migration in the contract: the former
three input locators and recorder `--mode` are removed, not alternate paths.
A caller-authored `refresh_base` result
records only the observed current stale codes, then reruns the complete Skill
through `guru-sync-base` and live authority.

For a Git-object source, use owner-result 4.0. Owner-result 3.0 remains the
compatibility contract only for the synchronized source. Record validates the
Git-object 4.0 authoring shape with fixed schema-only placeholders before it
reads reviewed evidence, history, or a candidate. A missing
`history_review.deep_reads[*].source` therefore returns `schema_mismatch`;
`source_kind` is not an alias for that field.

For an active Task workflow invocation, including source-selection recovery
and context review for its current Delivery owner, pass
`--active-task <task>` to record,
check, and public invoke so live validation binds the task's TaskId and
lifecycle generation to its Git common-dir branch binding and registered
checkout without creating a checkpoint. Only when this same owner
is genuinely interrupted, also pass `--recovery-continuation-id <id>` to all
three calls. That additional identity lazily creates one minimal ignored
checkpoint, which a complete live-authority rerun checks and successful DTO
validation consumes.

Fail closed on stale base/live/blob/query/archive identity, invalid evidence,
unknown exits, or missing compatible runtime. This package is not
self-contained or portable.

For an ordinary authoring correction, preserve the first failure, reread the
same source and upstream output, and rerun the original record/check/invoke
sequence with the complete corrected input. Only actual public invoke success
returns `context_ready`. A genuine unknown `internal_error` remains a package
maintenance failure and does not become a field-level authoring diagnosis.

After the semantic gate and owner recorder/checker complete, invoke
`scripts/invoke.sh --invocation -` with the closed call-local public input,
`base_current` transition, and checked owner result on stdin to serialize the
minimal handoff. The runtime reruns the existing checker and
derives the route from its checked `typed_exit`; callers never name the expected
exit. Consumers receive caller-owned continuation only, never the private
owner-result body.

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.

Use current pre_task or context_request input. The latter preserves the exact
Clarify profile, target, continuation and its required caller identity; fresh
context_ready returns there, never to a fixed initial profile.

When Sync supplies a profile-selected seed, complete this owner's public input
before invocation: pre_task requires AI-authored change_input/clarify_profile
and reviewed-plan source_locators; context_request requires AI-authored
change_input with the producer's unchanged return_identity. Validate that
complete input under the selected consumer schema. The deterministic seed
does not replace this owner's retrieval judgment.

This includes both qualification confirmation profiles. Preserve their actual
candidate refs, target, mode, continuation and resume consumer, plus the
verified task_ref/DeliveryKey for a Task-bound return. Resolve the source from
that Task's current source relation; its Issue authority is not the Task target.
Current context_ready 6.0 also supplies authority_duplicate_snapshot from this
owner's real duplicate search for Clarify's authority disposition. The same
return accepts an actual confirmation-refresh baseline_ready from Sync read.
Load the complete caller-aware contract; do not fill a producer output or
reinterpret old Issue/stage0-current context as the new confirmation.

For a Git-object baseline, use `scripts/read-change-context-source.sh
--source-transition <base_current JSON> --path <repo-relative file>` to read
Docs, code, tests, and selected archive bodies. Run history preview with the
same `--source-transition` so it reads the fixed archive tree. Working checkout
HEAD and dirty bytes are separate from this authority. Supply `candidate_file`
for a file-backed draft; its body remains a separate candidate through
Clarify and Readiness. Read the package contract for the exact fields.

## Issue Readiness supplement

Use `issue_readiness_supplement` only for the actual original Readiness gap.
Read [the local return contract](references/issue-readiness-supplement.md).
Execute this owner's complete applicable semantic method, original gate and
necessary interactions. Applicable coverage and current facts satisfy local
preconditions; do not manufacture full-chain receipts. Complete this local call
back to the same Issue/source/continuation Readiness, without running the default
remaining Intake chain. Read-only scope performs no mutation.

Files in this skill

  • SKILL.md3.9 KB
  • commands.json6.5 KB
  • evals/evals.json4.2 KB
  • evals/files/eval-blocked-facts.json384 B
  • evals/files/eval-blocked-input.json335 B
  • evals/files/eval-context-ready-facts.json1 KB
  • evals/files/eval-context-ready-input.json335 B
  • evals/files/eval-refresh-base-facts.json369 B
  • evals/files/eval-refresh-base-input.json335 B
  • examples/eval-blocked-input.json335 B
  • examples/eval-context-ready-input.json335 B
  • examples/eval-refresh-base-input.json335 B
  • examples/public-blocked-output.json27 B
  • examples/public-context-ready-output-3.0.json1.6 KB
  • examples/public-refresh-base-output.json157 B
  • interface.json14.8 KB
  • references/contract.md16.5 KB
  • schemas/change-context-owner-result.schema.json25.4 KB
  • schemas/public-blocked-output.schema.json290 B
  • schemas/public-context-ready-output-3.0.schema.json3.5 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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