Skip to content
Back to skills

Instruction Formatting

ASecurity

Render FLAN-style instruction examples with direct, exemplar, and chain-of-thought formatting controls.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspython

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Instruction Formatting?

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

Security grade badge for Instruction Formatting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-instruction-formatting/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-instruction-formatting)

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

SKILL.md
---
name: instruction_formatting
description: Render FLAN-style instruction examples with direct, exemplar, and chain-of-thought formatting controls.
---

# Instruction Formatting

Use this skill when building FLAN-style instruction-finetuning data, recovery fixtures, or tests that need prompt-target records. Do not use it to evaluate model outputs or to compose the full task mixture; it only formats individual examples.

## Inputs
- A task record with `instruction`, `input`, `answer`, `mode`, optional `rationale`, and optional `exemplars`.
- `mode` must be `direct` or `cot`.

## Outputs
- `prompt`: user-visible instruction prompt.
- `target`: supervised target text.
- `metadata`: mode, exemplar count, and chain-of-thought flag.

## Workflow
1. Validate required fields and mode.
2. Add exemplar blocks before the current input when provided.
3. Render direct targets as the concise answer only.
4. Render CoT targets as rationale plus `Final answer: ...`.
5. Keep rationales out of direct examples and out of prompts.

## Validation
Run `python tests/test_instruction_formatter.py` or validate the tree with `validate_skill_tree.py --run-tests`.

## Limitations
This skill does not choose task sampling weights and does not call a language model. It preserves the paper's formatting contract for downstream mixture, training, and proxy-evaluation modules.

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…