skip-skill-listing-in-test-environment

skip-skill-listing-in-test-environment is a skill for Claude Code, Codex from ychampion/cskill-agents. It costs 30 tokens per session (406 once invoked), scanned A, original, MIT.

A test-mode guard that leaves out skill-listing attachments when code builds prompt attachments.

In plain words
What is it for?
Use it in attachment-building code that should suppress non-essential skill discovery output during tests.
Why use it?
It keeps automated tests focused and deterministic by removing incidental capability listings that can change with the skill registry.

Skill for Claude CodeCodex

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

Good fit Use it in attachment-building code that should suppress non-essential skill discovery output during tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment
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 ychampion/cskill-agents --skill skip-skill-listing-in-test-environment
Clone the repo
git clone --depth 1 https://github.com/ychampion/cskill-agents

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 skip-skill-listing-in-test-environment

README.md
[![agentmods](https://agentmods.dev/badge/skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment/github.svg)](https://agentmods.dev/skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment)
Your own site
<a href="https://agentmods.dev/skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment"><img src="https://agentmods.dev/badge/skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment/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 skip-skill-listing-in-test-environment

Your own site · 80×15
<a href="https://agentmods.dev/skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment"><img src="https://agentmods.dev/badge/skills/ychampion/cskill-agents/skip-skill-listing-in-test-environment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 406 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.00030 $0.00406
Opus 5 $0.00015 $0.00203
Sonnet 5 $0.00006 $0.00081
Haiku 4.5 $0.00003 $0.00041

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

Security

Grade A, and why

skip-skill-listing-in-test-environment 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 7d 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.

agents/claude-code/skills/skip-skill-listing-in-test-environment/SKILL.md · 28 lines

What it actually says

SKILL: Skip Skill Listing in Test Environment

Domain: command-surfaces
Trigger: Apply when tests exercise attachment-building code paths but do not need discoverability payloads such as skill listings. Source Pattern: Distilled from reviewed command-surface and listing-control patterns.

Core Method

Treat test runs as a separate operating mode where non-essential discoverability output should be silent by default. Check the environment before computing any listing state, and return an empty result immediately when the process is running under tests. This keeps tests focused on actionable behavior, avoids large incidental payloads in assertions and fixtures, and prevents test outcomes from drifting because of unrelated skill-registry changes.

Key Rules

  • Put the test-environment guard at the top of the attachment builder so no listing work or state mutation happens before the early exit.
  • Suppress only non-essential discoverability payloads; do not use the pattern to hide behavior that tests are explicitly meant to verify.
  • Prefer deterministic environment checks such as NODE_ENV === 'test' over indirect heuristics.
  • Keep tests isolated from runtime inventory churn so new skills or registry changes do not force unrelated snapshot or transcript updates.

Example Application

If a chat runtime test exercises the attachment pipeline to validate message ordering, skip the skill-listing attachment entirely when NODE_ENV is test. The test still covers the real behavior under examination without needing to account for a changing skill registry or extra discoverability tokens.

Anti-Patterns (What NOT to do)

  • Do not generate large listing attachments in tests when those attachments are irrelevant to the assertion; they add noise and make fixtures brittle.
  • Do not place the test guard after registry lookups or sent-state mutation; the point is to avoid both the output and the work.
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. 7d ago First seen · 28 lines · 30 tokens per session scan A 3bb00c9a49fb

Subscribe to this mod's changes

skip-skill-listing-in-test-environment is a skill published in the GitHub repository ychampion/cskill-agents (36 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 406 once invoked, about $0.0002 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-03.

Related

Other skills, from other repositories

qa

Use when auditing test quality in any codebase — run the real suite, map coverage topology, rank untested behaviors by risk. Assess by default, write tests on request; tests are a spec, and the question is what change no test would catch.

automagik-dev/genie · 53 tokens

genie-orca-review

Independent, read-only review of a group, a wish, or a PR on Orca — SHIP / FIX-FIRST / BLOCKED with severity-tagged findings. Council and retro are this skill with a different input.

automagik-dev/genie · 50 tokens

agentplane-testkit-migration

Use when migrating Agentplane tests to @agentplane/testkit, replacing local test helpers, fixing testkit export/build failures, splitting large CLI/backend suites, or diagnosing missing testkit dist exports in package builds.

basilisk-labs/agentplane · 49 tokens

qamap-pr-qa

Local zero-LLM PR QA workflow. Use when an agent is preparing, updating, finalizing, or reviewing a pull request, asks what the PR should test, or needs commit-backed change intent, affected behavior, QA scenarios, evidence, validation commands, optional automation drafts, and manifest repair guidance.

IvoryCanvas/QAMap · 67 tokens

grape

Use Grape MCP for Codex context continuity in coding repositories. Use when a task needs repeated-turn context, omitted context restore, stale-context checks, invalidation checks, or safe continuity across branch and dirty-worktree changes.

gael55x/Grape · 48 tokens

k-feat

A feature-delivery workflow that clarifies a specification and moves from a failing behavior check to a passing one.

kunbo928/kflow · 22 tokens