yq-clear-context

yq-clear-context is a skill for Claude Code, Codex from EthanYoQ/Skill-hub. It costs 53 tokens per session (397 once invoked), scanned A, a copy of agent-experience, MIT.

A set of guidelines for designing instructions and tool descriptions that an AI coding assistant can discover and use. It focuses on showing purpose and constraints early while loading detailed context only when needed.

In plain words
What is it for?
Use it when creating skills, tool definitions, prompts, context-loading workflows, or results that need bounded output and clear ways to retrieve more detail.
Why use it?
Poorly organised instructions can hide permissions, destructive effects, or required checks, causing the assistant to do extra work or make mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating skills, tool definitions, prompts, context-loading workflows, or results that need bounded output and clear ways to retrieve more detail.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/yq-clear-context
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 EthanYoQ/Skill-hub --skill yq-clear-context
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

Made for: Claude Code, Codex.

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 yq-clear-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-clear-context/github.svg)](https://agentmods.dev/skills/ethanyoq/skill-hub/yq-clear-context)
Your own site
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-clear-context"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-clear-context/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 yq-clear-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/yq-clear-context"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/yq-clear-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 397 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 91% copy Near-identical to another mod 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.00053 $0.00397
Opus 5.5 $0.00021 $0.00159
Sonnet 5.5 $0.00011 $0.00079
Haiku 4.5 $0.00005 $0.00040

Measured 19d ago against content hash 2134b9c0a509, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yq-clear-context 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 19d 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.

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.

Origin

This is a copy

91% identical to agent-experience — 21 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/01-agent-engineering/yq-clear-context/SKILL.md · 20 lines

What it actually says

  • Start with minimal context: expose purpose, available actions, and constraints first; load detailed instructions when needed.
  • Make discovery explicit: every deferred resource needs a clear description and a reliable way to retrieve it.
  • Keep critical constraints visible: permissions, destructive effects, and required validation should appear before the relevant action.
  • Prefer bounded outputs: return concise results with identifiers or paths for retrieving details; avoid dumping entire logs or documents.
  • Use locality: include a bounded amount of likely needed adjacent context with an operation’s result. For example, deliver a thread reply with a few preceding messages. Mark omissions and truncation explicitly, and provide a way to retrieve more.
  • Evaluate total work: saving context is useful only if it does not cause more searches, repeated reads, or mistakes.

Tool definitions

  • Delete obvious constraints. Omit rules the model learns from the call result, such as a missing file failing to read or a failed send not being delivered.
  • Describe behavior, not implementation. State what the tool does and returns; omit internal mechanisms, output markers the model sees in results, and enforcement details.
  • Put parameter rules on the parameter. Defaults, ranges, pairing, and when-to-set rules belong in that parameter's description or schema; a description that varies with configuration usually means the varying part belongs to a parameter.
  • Say each fact once. Do not repeat the tool definition in its system-prompt section, a parameter description in the tool description, or one tool's rules in another tool.
  • Measure the change. Compare first-turn prompt tokens before and after a tool-definition change.
Files

What ships with it

1 file 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. 19d ago First seen · 20 lines · 53 tokens per session scan A 2134b9c0a509

Subscribe to this mod's changes

yq-clear-context is a skill published in the GitHub repository EthanYoQ/Skill-hub (11 stars, last pushed 6d ago), licensed MIT. It adds 53 tokens to every session and 397 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to agent-experience, differing in 21 lines, and is treated as a copy.

Related

Other skills, from other repositories

wiki

Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to 400K words.

SethGammon/Citadel · 56 tokens

escalation-governance

Assess whether to escalate models. Use when evaluating reasoning depth.

athola/claude-night-market · 19 tokens

agent-workflow-playbook

AI Agent Workflow & Skill Architecture Guide — turn expert work into measurable, reusable agent systems. Covers workflow discovery, skill decomposition, harness design, evaluation, human escalation, observability, cost control, and multi-agent orchestration. Includes a measured marketing-delivery case: 15 people × 3–4…

Gingiris-1031/gingiris-skills · 83 tokens

ecom-social

Instructions for creating and improving e-commerce social-media content, advertising, and community work across platforms such as Instagram, YouTube, TikTok, Pinterest, Reddit, WhatsApp, and Xiaohongshu.

kangise/ecommerce-ai-skills · 60 tokens

ecom-customer-service

Respond to buyer messages and negative reviews, draft refund and return replies, review-request emails, Plan of Action appeals, FAQ, and CS KPI tracking. Use for complaint handling, account appeal, or after-sales support.

kangise/ecommerce-ai-skills · 49 tokens

ecom-pricing

Set competitive prices and model profitability. Use for Buy Box pricing analysis, profit margin calculation, breakeven analysis, or multi-marketplace pricing strategy.

kangise/ecommerce-ai-skills · 35 tokens