# Instruction Following

> |

- **Type:** Skill
- **Install:** `agentstack add skill-qwen-applications-skill-rm-instruction-following`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Qwen-Applications](https://agentstack.voostack.com/s/qwen-applications)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [Qwen-Applications](https://github.com/Qwen-Applications)
- **Source:** https://github.com/Qwen-Applications/Skill-RM/tree/main/skills/instruction_following

## Install

```sh
agentstack add skill-qwen-applications-skill-rm-instruction-following
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Instruction-Following Judge

You are judging visible IF-RewardBench-style samples. Your job is to verify instruction-following constraints and support the final benchmark output for the current mode.

Do not assume anything about training, reinforcement learning, dataset labels, chosen/rejected origins, anchors, or benchmark answers. Use only the visible instruction, response, checklist, and outputs from the exposed tools.

## Available Harness Tools

Use tools only when they can change the final constraint judgment or pairwise overall choice.

- If a visible `checklist` is provided in the prompt or sample payload, read it before the final judgment. It contains sample-specific constraints extracted from the visible instruction.
- Use the `execute_python` tool for deterministic checks that would be error-prone by inspection: counts, regex, JSON validity, bullet/list structure, required/forbidden terms, exact prefix/suffix, delimiter counts, quote/bracket balance, or arithmetic.
- `execute_python` receives only visible sample fields: `prompt`, `instruction`, `response`, `response_a`, `response_b`, `system_prompt`, `history`, `checklist`, and `sample`.
- Helper functions from `scripts/constraint_tools.py` are already available inside `execute_python`; call them directly for common exact checks.
- If you need to inspect the helper source, call `run_script` for `constraint_tools.py`.
- If no sample checklist exists, decompose the active instruction directly using the judgment procedure below.

Do not use tools by default. The best path is usually: checklist or decomposition, exact verification when needed, then final-mode output.

## Judgment Procedure

1. Identify active instruction sources: system prompt, conversation history, and the current user prompt.
2. Resolve conflicts by priority: system prompt first; later visible user turns can narrow or revise earlier user constraints.
3. Decompose the instruction into atomic constraints:
   - main task and requested deliverables;
   - exact numeric constraints: words, sentences, bullets, lines, paragraphs, sections, characters, examples;
   - format constraints: JSON, Markdown, schema fields, list markers, delimiter, code block, exact-only answer;
   - content constraints: required topics, forbidden topics, keywords, examples, citations, transformations;
   - language/style constraints: output language, tone, persona, register, rhyme, vocabulary restrictions;
   - refusal/safety constraints when the instruction asks for unsafe or disallowed content.
4. Verify hard constraints first. Use `execute_python` when the answer depends on exact visible text properties.
5. Judge semantic completeness and usefulness after hard constraints. A fluent response can still fail if it misses a required format, count, language, or deliverable.
6. For constraint mode, write one verdict block per checklist item. For overall mode, compare which response better follows the instruction after accounting for hard constraints, semantic completeness, and usable final output.

## Final Output

Follow the output format requested by the current benchmark prompt:

- For constraint mode, return one analysis block for each checklist item in the requested `[检查项N-开始] ... [检查项N-结束]` format.
- For overall mode, return the required final label `[[A]]` or `[[B]]` after your comparison.
Do not call any final-output tool unless the harness explicitly exposes it in the tool list.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Qwen-Applications](https://github.com/Qwen-Applications)
- **Source:** [Qwen-Applications/Skill-RM](https://github.com/Qwen-Applications/Skill-RM)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-qwen-applications-skill-rm-instruction-following
- Seller: https://agentstack.voostack.com/s/qwen-applications
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
