Skip to content
Back to skills

Component Critic

ASecurity

Critique a generated answer against the question and supplied evidence by calling the frozen Executor Model. Use for answer quality checks after generation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 1, 2026
ai-agents

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add DocAILab/Agentic-RAG-Skill --skill component-critic --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Component Critic?

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

Security grade badge for Component Critic
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/docailab-component-critic/badge)](https://www.skillsdirectory.com/skills/docailab-component-critic)

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

Download with Pro
SKILL.md
---
name: component-critic
description: Critique a generated answer against the question and supplied evidence by calling the frozen Executor Model. Use for answer quality checks after generation.
---

# Critic Component

Provide the `critic` capability for an Agentic RAG slot.

## Interface

Input `CritiqueRequest`:

- `query`: original question
- `documents`: selected evidence documents
- `answer`: generated answer
- optional `max_tokens`
- optional `evidence_query`: non-empty original question used to select evidence
  windows; defaults to `query`. Use the same value as the generator.

Output `CritiqueResult`:

- `approved`: whether the answer is supported and responsive
- `score`: quality score between 0 and 1
- `feedback`: concise overall critique
- `issues`: list of concrete problems, possibly empty

## Execution

Run `scripts/component.py:run(inputs, context)`. The runtime must provide the frozen `context.call_model(...)`. Shared `framework.prepare_evidence` selects the same evidence view as the generator for the same original question and document sequence: 4 KiB per document and 96 KiB total UTF-8 bytes including evidence formatting. Short documents remain intact; longer ones expose selected windows and mark omissions. Supported runtimes record IDs, original character offsets and counts in component timings. This Component critiques an answer only; it does not retrieve documents, generate a replacement answer, or select another Skill.

Files in this skill

  • SKILL.md922 B
  • ragskill.yaml253 B
  • scripts/component.py3 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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