context

A project-health command that checks whether important development files and safeguards exist, including architecture notes, testing rules, configuration, and project memory.

In plain words
What is it for?
Use it to check project files, regression rules, session records, and other Shipworthy setup elements.
Why use it?
It shows what the project is missing instead of making you discover infrastructure gaps one by one.

Command

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.

agentmods
npx agentmods add commands/vimalk0703/shipworthy/context
Clone the repo
git clone --depth 1 https://github.com/Vimalk0703/shipworthy
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 701 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00701
Opus 5 $0.00000 $0.00351
Sonnet 5 $0.00000 $0.00140
Haiku 4.5 $0.00000 $0.00070

Measured 2d ago against content hash 944c1d71a596, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

commands/context.md · 77 lines

How it starts

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

Before executing this command, output:

shipworthy › command: /context — analyzing context health and completeness


Run a context health analysis for this project. Invoke the context-manager skill and check these dimensions:

Process

1. Context Infrastructure

Check which standard files exist in .shipworthy/:

File Purpose Status
architecture.md Architecture constraints and mandatory rules exists / missing
regression-fence.md Anti-pattern protection (NEVER/ALWAYS rules) exists / missing
config.json Project configuration and preset exists / missing
INDEX.md Memory index (auto-generated) exists / missing
learnings/ At least one learning file exists / missing
sessions/ At least one session file exists / missing
decisions/ Architecture decision records exists / missing
plans/ Implementation plans exists / missing

Also check if CLAUDE.md exists at the project root.

2. Regression Fence Health

  • Count rules (H2 headings in regression-fence.md)
  • 0 rules = no protection — recommend running /retro after next session
  • 1-15 rules = healthy
  • 16-20 rules = near cap, consider pruning stale entries
  • Check if any rules reference files/functions that no longer exist in the codebase

3. Session Signals

  • Does .shipworthy/.session-signals exist?
  • If yes, count lines — these are unprocessed signals from hooks
  • If > 0: recommend running /retro or starting a new session (auto-retro triggers at session start)

4. Context Completeness

  • Estimate total characters loaded at session start (architecture spec + fence + plans + sessions + learnings)
  • Show percentage of 8000-char context budget used
  • Identify gaps: "You have architecture.md but no regression fence — corrections from past sessions will repeat"

5. Actionable Suggestions

Based on analysis, suggest specific next actions. Examples:

  • "12 unprocessed signals — run /retro to convert them into learnings and fence entries"
  • "No regression fence yet — it will be auto-created when you run /retro after your next work session"
  • "3 learning files cover overlapping topics — /retro will offer to consolidate them"
  • "Architecture spec missing — start building with /scaffold or the architecture-awareness skill"
  • "CLAUDE.md has no pointer to .shipworthy/ — consider adding: Read .shipworthy/INDEX.md for full project memory"

Read the full file on GitHub · 77 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. 2d ago First seen · 77 lines · 0 tokens per session scan A 944c1d71a596

Subscribe to this mod's changes

context is a command published in the GitHub repository Vimalk0703/shipworthy (7 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 701 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-08-31.