answer-as-type

answer-as-type is a skill for Claude Code, Codex from MK27MK/no-bs-skills. It costs 14 tokens per session (1,068 once invoked), scanned A, original, MIT.

An instruction for returning only a function’s value instead of an explanation in prose. It also defines simple output formats such as a boolean, number, string, list, or set.

In plain words
What is it for?
Use it for function calls where the response must be only the requested value, such as a count, path, yes-or-no result, or list.
Why use it?
It prevents extra wording when a caller needs a precise machine-readable answer.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: mentions subagents.

Part of the no-bs-skills plugin — 6 skills shipped together

Good fit Use it for function calls where the response must be only the requested value, such as a count, path, yes-or-no result, or list.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mk27mk/no-bs-skills/answer-as-type
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 MK27MK/no-bs-skills --skill answer-as-type
Clone the repo
git clone --depth 1 https://github.com/MK27MK/no-bs-skills

Made for: Claude Code, Codex.

Or install no-bs-skills, the plugin that ships this one along with the rest of its 6 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 answer-as-type

README.md
[![agentmods](https://agentmods.dev/badge/skills/mk27mk/no-bs-skills/answer-as-type/github.svg)](https://agentmods.dev/skills/mk27mk/no-bs-skills/answer-as-type)
Your own site
<a href="https://agentmods.dev/skills/mk27mk/no-bs-skills/answer-as-type"><img src="https://agentmods.dev/badge/skills/mk27mk/no-bs-skills/answer-as-type/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 answer-as-type

Your own site · 80×15
<a href="https://agentmods.dev/skills/mk27mk/no-bs-skills/answer-as-type"><img src="https://agentmods.dev/badge/skills/mk27mk/no-bs-skills/answer-as-type.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 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.00014 $0.01068
Opus 5.5 $0.00006 $0.00427
Sonnet 5.5 $0.00003 $0.00214
Haiku 4.5 $0.00001 $0.00107

Measured 1mo ago against content hash 4074f381a2e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

answer-as-type 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (check-value.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/answer-as-type/SKILL.md · 96 lines

How it starts

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

Func

The user called a function. Return its value. Nothing else.

No preamble, no restatement of the question, no reasoning, no caveat, no unit, no trailing sentence, no word about the check.

The first word of the request is $type.

  • IF the answer needs work first (read files, run a command, count something), THEN do the work with tools, and return only the value.
  • IF $type is one of the types in the table below, THEN type is $type, and the rest of the request is the question. The word is the type, not a verb: list means a numbered list, set a bullet list.
  • IF $type is not one of those types, THEN type is not set, and the whole request is the question.
  • IF type is set, THEN it is the return annotation of the function, and it is final. NEVER swap it for the type you would infer, even when the question reads like another type. Convert the answer into it, using the table below.
  • IF type is not set, THEN infer it from the question, using the table below.
  • IF the value cannot be computed, THEN return None and nothing else.

Return types

Type Format Infer it when the question asks for Convert into it, when the question asks for something else
bool true or false yes/no, is/are, does/do, can/should whether any such thing exists
int bare digits: 5 how many, count, index, line number how many things answer the question
float bare decimal: 0.42 ratio, percentage, average, duration the number that answers it, as a decimal
str the bare string, no quotes a name, a path, a command, a single value the answer on one line
list numbered markdown list steps, an ordered procedure, a ranking the items, numbered, even when their order carries no meaning
set bullet markdown list items where order carries no meaning the items, bulleted, even when they have an order

Read the full file on GitHub · 96 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +9 lines 4074f381a2e4
  2. 1mo ago First seen · 87 lines · 14 tokens per session scan A 48b8334403c9

Subscribe to this mod's changes

answer-as-type is a skill published in the GitHub repository MK27MK/no-bs-skills (15 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 1,068 once invoked, about $0.0001 per session on Opus 5.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-08-31.