boolean-flag-responses

boolean-flag-responses is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 28 tokens per session (1,110 once invoked), scanned A, original, MIT.

A method for making an automated check return a fixed choice such as TRUE or FALSE, or PASS or FAIL. This turns a detailed AI judgement into a value that another program can read easily.

In plain words
What is it for?
Use it for pull-request checks, compliance gates, triage decisions, and other pipeline tests that need a yes-or-no result.
Why use it?
Long explanations are difficult and wasteful for an automated gate that only needs a decision. A fixed response also avoids fragile text parsing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 7 plugins shipped together

Good fit Use it for pull-request checks, compliance gates, triage decisions, and other pipeline tests that need a yes-or-no result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/boolean-flag-responses
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 alivirgo/Major-AI-Skills --skill boolean-flag-responses
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 7 plugins.

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 boolean-flag-responses

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/boolean-flag-responses/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/boolean-flag-responses)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/boolean-flag-responses"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/boolean-flag-responses/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 boolean-flag-responses

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/boolean-flag-responses"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/boolean-flag-responses.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00028 $0.01110
Opus 5 $0.00014 $0.00555
Sonnet 5 $0.00006 $0.00222
Haiku 4.5 $0.00003 $0.00111

Measured today against content hash 2284744bd776, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

boolean-flag-responses scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/boolean-flag-responses/SKILL.md · 136 lines

How it starts

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

Boolean Flag Diagnostic Protocol (1-Token Verification Gates)

Overview

When an autonomous pipeline or agent loop needs to evaluate a condition ("Does this pull request contain breaking API changes?" or "Does this SQL migration require a database lock?"), standard prompts generate 200 to 400 words of conversational justification.

In automated evaluation pipelines and CI/CD gates, downstream code only needs a binary decision (TRUE / FALSE). Generating narrative explanations wastes 99% of output tokens and requires fragile regex parsing.

The Boolean Flag Diagnostic Protocol constrains the model's output space strictly to 1-token booleans or discrete enums (TRUE, FALSE, PASS, FAIL), yielding deterministic, 50-millisecond evaluations.


Conversational Evaluation vs. 1-Token Binary Flag

┌─────────────────────────────────────────────────────────────┐
│                 Diagnostic Output Comparison                │
│                                                             │
│  Conversational Evaluation (280 Tokens - High Latency):     │
│  "After reviewing the pull request diff, I can confirm that │
│   there are no breaking changes. The modified functions     │
│   maintain backward compatibility with existing clients..." │
│  ↳ 280 tokens, 3.2s latency, requires regex to parse        │
│                                                             │
│  1-Token Boolean Directive (1 Token - Sub-second):          │
│  FALSE                                                      │
│  ↳ 1 token, 0.05s latency, 100% deterministic parsing       │
└─────────────────────────────────────────────────────────────┘

Master Boolean Diagnostic Prompt Templates

Pattern 1: The Breaking Change Detector Gate

Analyze the git diff below:
<diff>
[PASTE GIT DIFF]
</diff>

Question: Does this diff introduce any breaking API changes or remove existing exported functions?

Output Rule:
- Output strictly ONE word: `TRUE` (if breaking changes exist) or `FALSE` (if 100% backward compatible).
- Zero conversational commentary, zero punctuation.

Read the full file on GitHub · 136 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. today Changed · -10 tokens per session 2284744bd776
  2. 6d ago First seen · 136 lines · 38 tokens per session scan A cd3e2e747c93

Subscribe to this mod's changes

boolean-flag-responses is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 1,110 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

azure-devtest-labs

Expert knowledge for Azure DevTest Labs development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when managing lab VM images, ARM/CI-CD automation, RBAC/Key Vault security…

MicrosoftDocs/Agent-Skills · 125 tokens

bats-testing-patterns

Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.

rootcastleco/rei-skills · 42 tokens

agent-qa-result-triage

Triage failed Agent QA runs with MCP evidence, artifacts, logs, fixed failure categories, confidence, and actionable next steps.

sickn33/agentic-awesome-skills · 33 tokens

playwright-testing

E2E testing with Playwright - Page Objects, cross-browser, CI/CD.

alinaqi/maggy · 20 tokens

beevibe-verify-pr

CI verification before marking a PR-bearing task done. Use BEFORE calling mcpbeevibeupdateprogress(done) on any session whose deliverable is a pull request — including the first dispatch (you opened the PR with gh pr create) and any revision dispatch (you pushed new commits to an existing PR). Watches the PR's…

beevibe-ai/beevibe · 172 tokens

github-actions

Use when authoring or fixing GitHub Actions CI/CD — workflows under .github/workflows, triggers, job matrix, caching, token permissions, OIDC cloud deploys, environment gates, reusable workflows. NOT the Dockerfile or image build strategy (that is docker), NOT the branching model (that is git-workflow), NOT release…

ericrisco/rsc-harness · 81 tokens