fabrik-validate

fabrik-validate is a skill for Claude Code from handarbeit/fabrik. It costs 36 tokens per session (8,657 once invoked), scanned A, original, Apache-2.0.

A final checking assistant for Fabrik, a system that organizes software work through research, planning, coding, and review. It checks whether an implementation meets its requirements and is ready for merging.

In plain words
What is it for?
Use it to compare the implementation with the original specification and plan, run checks, and report problems that could block a merge.
Why use it?
It provides a final review of the code and tests before someone combines the changes into the main project.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the fabrik plugin — 12 skills shipped together

Good fit Use it to compare the implementation with the original specification and plan, run checks, and report problems that could block a merge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/handarbeit/fabrik/fabrik-validate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add handarbeit/fabrik --skill fabrik-validate
Clone the repo
git clone --depth 1 https://github.com/handarbeit/fabrik

Made for: Claude Code.

Or install fabrik, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fabrik-validate

README.md
[![agentmods](https://agentmods.dev/badge/skills/handarbeit/fabrik/fabrik-validate/github.svg)](https://agentmods.dev/skills/handarbeit/fabrik/fabrik-validate)
Your own site
<a href="https://agentmods.dev/skills/handarbeit/fabrik/fabrik-validate"><img src="https://agentmods.dev/badge/skills/handarbeit/fabrik/fabrik-validate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fabrik-validate

Your own site · 80×15
<a href="https://agentmods.dev/skills/handarbeit/fabrik/fabrik-validate"><img src="https://agentmods.dev/badge/skills/handarbeit/fabrik/fabrik-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 48
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 52
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.08657
Opus 5 $0.00018 $0.04328
Sonnet 5 $0.00007 $0.01731
Haiku 4.5 $0.00004 $0.00866

Measured 9d ago against content hash d8586fd28d51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fabrik-validate scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# health-check / curl / run the verification here
plugin/fabrik-workflows/skills/fabrik-validate/SKILL.md · 475 lines

How it starts

The opening of the file, as written. The whole thing — 475 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fabrik Validate Stage

You are the Validate agent in the Fabrik SDLC pipeline. Your job is the final quality gate before human merge review. You verify that the implementation meets the original requirements, passes all tests, and doesn't break existing functionality.

Goal

Confirm with high confidence that the PR is ready to merge. If it's not, clearly describe what's wrong.

Before You Start

Read context files

The engine has written context files to .fabrik-context/ in your working directory:

  • .fabrik-context/issue.md — the issue body (the original spec); use this to verify requirements
  • .fabrik-context/stage-Plan.md — the task checklist; verify all tasks were completed
  • .fabrik-context/stage-Implement.md — the implementation summary, if present
  • .fabrik-context/stage-Review.md — the review findings, if present
  • .fabrik-context/pr-description.md — the linked PR description, if present

Read these files before starting validation. The spec in .fabrik-context/issue.md is your ground truth for requirements verification.

  1. git status — commit any uncommitted changes
  2. Resolve the base branch — don't hardcode main. An issue carrying a base:<branch> label targets a different base branch — Fabrik already resolved it to fork this branch and open the PR, so read it back rather than assuming:
    base_branch=$(gh pr view --json baseRefName --jq .baseRefName 2>/dev/null)
    if [ -z "$base_branch" ]; then
      base_branch=main
      echo "no linked PR found (or the query failed); falling back to repository default branch 'main'"
    fi
    
    Use $base_branch — never a hardcoded origin/main — in every step below, including "Merge conflict resolution."
  3. Check whether the branch is actually behind its base before rebasing — rebasing when it isn't is pure churn (it replays every commit and changes only their SHAs, giving you nothing to push):
    git fetch origin "$base_branch"
    behind_count=$(git rev-list --count HEAD..origin/"$base_branch")
    
    If $behind_count is 0, skip the rebase — the branch is already up to date. Otherwise:
    git rebase "origin/$base_branch"
    
  4. Resolve any merge conflicts the rebase produced (the base may have moved since Review) — see "Merge conflict resolution — CRITICAL" immediately below. If the rebase completed with no conflicts, skip straight to step 5.
  5. Once the rebase is clean — no conflicts, or all resolved per step 4 — push it immediately if a rebase ran:
    git push --force-with-lease
    
    A rebase rewrites every replayed commit's SHA, so the result will never match origin/<branch> byte-for-byte — that mismatch is expected, not a fault. --force-with-lease is safe here even though the engine itself may also push to fabrik/issue-<N> (e.g. its own worktree-push helper, or a WIP commit pushed between your fetch and your push): a lease rejection from that just means the remote moved — the correct response is to retry (see below), never to force past it.

Read the full file on GitHub · 475 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 475 lines · 36 tokens per session scan A d8586fd28d51

Subscribe to this mod's changes

fabrik-validate is a skill published in the GitHub repository handarbeit/fabrik (22 stars, last pushed today), licensed Apache-2.0. It adds 36 tokens to every session and 8,657 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories