Skip to content
Back to skills

Coherence Context Protocol

ASecurity

Build and validate full-context and premise-free-context records for coherence boosting answer-selection experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill coherence_context_protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coherence Context Protocol?

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

Security grade badge for Coherence Context Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-coherence-context-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-coherence-context-protocol)

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

SKILL.md
---
name: coherence_context_protocol
description: Build and validate full-context and premise-free-context records for coherence boosting answer-selection experiments.
---

# Coherence Context Protocol

Use this skill when preparing multiple-choice or cloze examples for coherence boosting. It separates a long premise-bearing context from the premise-free prompt that captures answer-format or answer-prior effects.

## Inputs
- Examples with `premise`, `prompt`, `candidates`, and `label`.
- Optional metadata identifying dataset and split.

## Outputs
- Records with `full_context = premise + prompt`, `premise_free_context = prompt`, unchanged candidates, and label.
- Validation errors for missing fields, empty candidates, invalid labels, or leaked premise text in the premise-free context.

## Workflow
1. Normalize whitespace but do not rewrite candidate text.
2. Concatenate premise and prompt for the full context.
3. Keep the premise-free context free of the premise.
4. Validate candidate count and label bounds.
5. Pass records to scoring modules; this skill must not choose answers.

## Validation
Run `python tests/test_context_protocol.py` or validate through `validate_skill_tree.py --run-tests`.

## Limitations
This skill does not call a language model. It prepares the contexts whose likelihoods are later computed or supplied by a cache.

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.

Comments

Loading comments…

Newsletter

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