ctx-guide

ctx-guide is a skill for Claude Code, Codex from NPC-Worldwide/npcsh. It costs 0 tokens per session (709 once invoked), scanned A, original, MIT.

A reference guide to .ctx YAML files, which store team-wide context shared by all NPCs. It explains framework-managed settings and custom values that are preserved when the team is synchronised.

In plain words
What is it for?
Use it when creating, editing, or synchronising a team context file and when deciding where shared instructions, providers, databases, or custom settings belong.
Why use it?
It helps you change shared agent context without overwriting settings that the framework manages or custom values the team added.

Skill for Claude CodeCodex

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

Good fit Use it when creating, editing, or synchronising a team context file and when deciding where shared instructions, providers, databases, or custom settings belong.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/npc-worldwide/npcsh/ctx-guide
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 NPC-Worldwide/npcsh --skill ctx-guide
Clone the repo
git clone --depth 1 https://github.com/NPC-Worldwide/npcsh

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 ctx-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/npc-worldwide/npcsh/ctx-guide/github.svg)](https://agentmods.dev/skills/npc-worldwide/npcsh/ctx-guide)
Your own site
<a href="https://agentmods.dev/skills/npc-worldwide/npcsh/ctx-guide"><img src="https://agentmods.dev/badge/skills/npc-worldwide/npcsh/ctx-guide/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 ctx-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/npc-worldwide/npcsh/ctx-guide"><img src="https://agentmods.dev/badge/skills/npc-worldwide/npcsh/ctx-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 709 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.00000 $0.00709
Opus 5.5 $0.00000 $0.00284
Sonnet 5.5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

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

Security

Grade A, and why

ctx-guide 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 13d 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.

skills/ctx-guide/SKILL.md · 89 lines

How it starts

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

ctx-guide

Reference guide for .ctx team context files: structure, reserved keys, user-defined keys, and how they are preserved.

What-Is-Ctx

A .ctx file is a YAML document that defines team-level context shared by all NPCs. npcsh.ctx is the default context file loaded from the team directory. It is read by Team._load_team_context_file() in npcpy.npc_compiler.

Reserved-Keys

These keys are managed by the framework and updated from source on /sync:

  • name: team name.
  • context: shared directive text injected into all NPC system prompts.
  • databases: list of database paths the team uses.
  • forenpc: default NPC name at startup.
  • mcp_servers: list of configured MCP servers.
  • providers: named provider configurations.
  • available_executables: allow-lists for read/write/execute shell commands.
  • SKILLS_DIRECTORY: optional extra directory to load skill jinxes from.

User-Defined-Keys

Any key not in the reserved list is preserved across /sync updates. Examples: COMPRESSION_INSTRUCTIONS, custom instruction hooks, project-specific variables. The shell merges these preserved values back into the newly copied npcsh.ctx.

Custom-Instructions

Blank user-customizable fields can be added to npcsh.ctx: COMPRESSION_INSTRUCTIONS: "" Jinxes read them at runtime by scanning .ctx files in the team directory. This lets users tune behavior without editing framework jinxes.

File-Example

context: |
  The npcsh NPC team is devoted to providing a safe and helpful environment...
databases:
- ~/npcsh_history.db
forenpc: corca
mcp_servers: []
providers: []
available_executables:
  read: [cat, ls, head, tail, wc, git]
  write: [cp, echo, mkdir, mv, rm, touch]
  execute: [bash, python, python3, sh]
COMPRESSION_INSTRUCTIONS: ""

Loading-Order

  1. Team context file(s) are loaded first.
  2. Jinxes are loaded and first-pass rendered.
  3. NPCs are loaded; their files can reference jinxes by name via the Jinx() helper because the jinx path map already exists.

Read the full file on GitHub · 89 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. 13d ago First seen · 89 lines · 0 tokens per session scan A 6e156550cf9b

Subscribe to this mod's changes

ctx-guide is a skill published in the GitHub repository NPC-Worldwide/npcsh (511 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 709 tokens. 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-11-17.

Related

ctx-guide compared with skills from other repositories

ctx-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ctx-guideNPC-Worldwide/npcshSkill5113d agoMITA0Claude Code, Codex
ralplanYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA21Claude Code
rememberYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA20Claude Code
test-warp-uiwarpdotdev/warpSkill66kyesterdayAGPL-3.0A55Claude Code
x-scorecardx-cmd/x-cmdSkill4.8k6d agoApache-2.0A57Claude Code, Codex
handoverme2resh/apexyardSkill5556d agoMITA25Claude Code
moai-ref-ui-polishmodu-ai/moai-adkSkill1.3ktodayApache-2.0A98Claude Code