/dvera:ct-kb-updatefrom dvera
Use this skill to append single-change attempt results to `observations.jsonl`. It is called by `ct-init-project` or `ct-orchestrator` immediately after the CT-apply full pipeline completes.
Ships in dvera. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Primary request: Use this skill to append the results of single-change analysis and test attempts to observations.jsonl.
If the CT installation path is missing or validation fails, do not continue. Show the notice below.
The CT installation could not be verified.
Provide the installation path to continue.
[Installation check]
• Checked CT installation path: {ctHome or "not configured"}
• Requirement: CT 2026.06 or later
• Note: A valid CT license is required to run CT.
[If CT is already installed]
• Please provide the full path to the CT installation folder.
Example: C:\Program Files\Suresoft\CT 2026
[If CT is not installed]
• Product and installation support: [email protected]
Entry: Called once immediately after end-to-end full-pipeline completion from ct-init-project, or after resume full-pipeline completion from ct-orchestrator
Input: Final in-memory state or state.json, bootstrap.sessions_base, session_id
Output: Append to observations.jsonl
Nature: Not a regular phase, best-effort, non-blocking
Standalone guard: This skill does not allow standalone execution. The official runtime entry point is the wrap-up task from ct-init-project (end-to-end entry) or ct-orchestrator (resume entry) that calls {ctPython} {ctTool} kb-update --session-id "{session_id}".
state.json, compiler_info.json, observations.jsonl, .conf, .ini, and .info.json.dump or json.dumps.stdout, stderr, pipes, or redirects, handle everything as UTF-8.python -c. When paths, JSON, and Python code are nested in one string, encoding and escaping failures become much more likely.state.json, JSON payloads, and logs or metadata as absolute paths, and normalize to / when it is safe to do so./ normalization for paths passed to external process argv. Use argv lists by default, and only use / normalization when the target tool is known to accept it safely.LF as the default line ending for newly created internal management files such as state.json, compiler_info.json, and observations.jsonl. Preserve existing line endings when editing an existing file.json.dump(..., ensure_ascii=False) with tempfile.NamedTemporaryFile(delete=False, encoding="utf-8") or tempfile.gettempdir(), then pass it as ct_tool.py call ... --json "@{path}".
@- stdin only as a secondary input channel.ConvertTo-Json is a Windows-only auxiliary option; Bash heredoc/cat examples must not be the default payload path.argv lists over one-line string payloads.This skill persists the success or failure of single modifications from the feedback loop as observation records.
It does not perform new reasoning. It only combines the already recorded detail, diagnosis, intent, verdict, and environment fields from state.json into JSONL records that match the design-document schema.
analysis_loop.attempts[], test_loop.attempts[]session_idbootstrap.sessions_baseattempt, verdict, modifications, and error_linescompiler_info, env_profile, and toolchain_kindloop_kind, analysis_loop.loop_epoch, and test_loop.loop_epoch from state{sessionsBase}/observations.jsonl{sessionsBase}/{session_id}modifications length is 1modifications[0].detail existsmodifications[0].diagnosis existsmodifications[0].intent existsverdict is one of improved, stalled, regressed, or it is the final unresolved attemptidrecord_kindoutcomefailure_typeerror.messageenvironment.*modification.*result.*source.*superseded_by for negative records_internal.*superseded_by on the earlier negative recordsession_id + loop_kind + attempt + loop_epoch already exists_internal.* and source.session_id from existing observations.jsonl is allowedCall this wrap-up task only when the full-pipeline path completes. The caller is ct-init-project for end-to-end entry and ct-orchestrator for resume entry. Do not call it from the standalone ct-test-loop path.
diagnosis, intent, or detailfailreuse.fallback=true| Do | Do not |
|---|---|
Extract only already recorded single-change attempts from state.json | Infer new root causes |
| Build observation records using the design-document schema | Rerun loops, modify conf, or roll back |
Append to observations.jsonl | Read previous observations to make decisions |
| Exit with a warning only when it fails | Change session status |
{
"id": "OBS-20260402-001",
"record_kind": "negative",
"outcome": "no_effect",
"failure_type": "analysis",
"error": {
"message": "identifier \"__packed\" is undefined"
},
"environment": {
"compiler_type": "armcc",
"compiler_version": "5.06",
"target": "arm",
"language": "C",
"standard": "c99",
"toolchain_kind": "armcc_50"
},
"modification": {
"action": "conf_add",
"detail": "cs_define_macro_name=__packed",
"diagnosis": "__packed is an undefined compiler extension keyword in the host environment",
"intent": "Define it as an empty macro so it is ignored"
},
"result": {
"attempt_before": 1,
"attempt_after": 2,
"error_count_before": 15,
"error_count_after": 15
},
"source": {
"session_id": "20260402_demo",
"created": "2026-04-02T15:00:00"
},
"superseded_by": "OBS-20260402-002",
"_internal": {
"loop_kind": "analysis",
"attempt": 1,
"loop_epoch": 1
}
}
Notes:
id follows the OBS-{date}-{sequence} rule.record_kind, outcome, and failure_type are determined from the phase and verdict._internal.loop_kind, _internal.attempt, and _internal.loop_epoch so the dedupe key can be reconstructed from existing JSONL alone._internal.* is storage-format-only metadata. Semantic interpretation belongs to the public schema fields.superseded_by only on negative records.Canonical record mapping, deduplication, and linking rules are supplied with the installed CT/DVERA environment. Use them when available. If they are unavailable, summarize candidate observations without writing the product knowledge base, and direct the user to [email protected].
ct-kb-update is not a regular phase. Do not assign it a phase number.failure_type="build".test_execution only when collection is later expanded to runtime execution failures.loop_epoch is the explicit state field. Read analysis_loop.loop_epoch and test_loop.loop_epoch directly.{ctPython} {ctTool} kb-update --session-id "{session_id}".What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub suresofttechnologies/dvera-plugin --plugin dveraOther plugins' skills for the same job
14 skills in this plugin
/ct-analysis-loopUse this skill during the CT project analysis phase to classify errors, repeat conf or toolchain fixes, and continue until analysis succeeds./ct-extract-macroUse this skill to extract the target compiler's compiler-default macros and build the shared environment analysis fields used during CT project preparation./ct-init-projectUse this skill to run the CT full pipeline from Phase 0 initial setup through macro extraction, conf and toolchain creation, analysis, testing, and observation-record collection, or to perform only the project-preparation stage.