Skip to content
Back to skills

Cad Prompt Protocol

ASecurity

Build and validate context-aware decoding prompt parts with separated evidence context, query, and generation prefix.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cad Prompt Protocol?

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

Security grade badge for Cad Prompt Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-cad-prompt-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-cad-prompt-protocol)

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

SKILL.md
---
name: cad_prompt_protocol
description: Build and validate context-aware decoding prompt parts with separated evidence context, query, and generation prefix.
---

# CAD Prompt Protocol

Use this skill when implementing Context-aware Decoding (CAD) or a recovery experiment that must compare a context-conditioned language-model distribution against a query-only prior distribution. Do not use it to evaluate answers or choose tokens.

## Inputs
- `context`: evidence text that should be upweighted.
- `query`: question, instruction, or task prefix that appears in both CAD branches.
- `prefix`: generated text so far.
- `task`: optional task label.

## Outputs
A structured prompt record with `full_prompt`, `prior_prompt`, and metadata proving the context is absent from the prior branch.

## Workflow
1. Check that context and query are non-empty strings.
2. Keep context separate from query.
3. Build the full branch from context, query, and prefix.
4. Build the prior branch from query and prefix only.
5. Return diagnostics confirming branch separation.

## Validation
Run `python tests/test_prompt_protocol.py` or Distiller `validate_skill_tree.py --run-tests`.

## Limitations
This skill does not call a language model and must not insert gold answers, evaluation labels, or final-answer markers into prompts.

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.