Chub Workflow

Chub Workflow is a skill for Claude Code, Codex from nrl-ai/chub. It costs 30 tokens per session (1,459 once invoked), scanned A, original, MIT.

A workflow guide for using Chub, a registry of programming documentation, and saving useful team notes alongside those documents.

In plain words
What is it for?
Use it to search or fetch library documentation, check existing team annotations, and write structured notes back for future agents.
Why use it?
It gives agents a consistent way to find the right documentation and retain practical knowledge such as fixes, conventions, and version decisions.

Skill for Claude CodeCodex

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

Good fit Use it to search or fetch library documentation, check existing team annotations, and write structured notes back for future agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nrl-ai/chub/chub-workflow
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 nrl-ai/chub --skill chub-workflow
Clone the repo
git clone --depth 1 https://github.com/nrl-ai/chub

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 Chub Workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/nrl-ai/chub/chub-workflow.svg)](https://agentmods.dev/skills/nrl-ai/chub/chub-workflow)
Your own site
<a href="https://agentmods.dev/skills/nrl-ai/chub/chub-workflow"><img src="https://agentmods.dev/badge/skills/nrl-ai/chub/chub-workflow.svg" alt="Measured on agentmods" 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 1,459 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.01459
Opus 5 $0.00015 $0.00730
Sonnet 5 $0.00006 $0.00292
Haiku 4.5 $0.00003 $0.00146

Measured 8d ago against content hash 1282483e0f50, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Chub Workflow 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 8d 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.

content/chub/skills/chub-workflow/SKILL.md · 205 lines

How it starts

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

Chub Workflow

This skill covers the complete Chub usage pattern for AI agents: fetching the right docs efficiently, and writing back what you learn so future agents benefit from it.


Part 1 — Querying Docs

Finding docs

Search by keyword, library name, or topic:

chub_search(query="stripe payments")
chub_search(query="openai embeddings", lang="python")
chub_search(query="auth", tags="oauth")

Omit the query to browse all available docs:

chub_list()

Fetching a doc

Fetch by the ID returned from search:

chub_get(id="openai/chat")
chub_get(id="openai/chat", lang="python")
chub_get(id="stripe/api", version="2024-11-20")

Use match_env=true to auto-detect the version from your project's package.json / Cargo.toml / requirements.txt:

chub_get(id="openai/chat", match_env=true)

What you get back

The response contains:

  1. The official doc content
  2. Any team annotations (issues, fixes, practices) your team has written
  3. Pin notices if the team has locked a specific version

Read the annotations — they contain the non-obvious knowledge your team has accumulated. Do not repeat what is already annotated.

Efficient querying pattern

Do not search then get separately when you already know the entry ID. If you know you need openai/chat, call chub_get directly. Search is for discovery, not for known IDs.

For a task requiring multiple docs, fetch them in parallel if your framework supports it.


Part 2 — Writing Annotations

After resolving something non-obvious with a library, record it. This turns a one-time debugging session into permanent team knowledge.

When to annotate

Ask yourself after finishing a task involving a library:

  • Did I encounter behaviour not in the official docs?
  • Did I need a workaround to make something work?
  • Did I discover a pattern that will save future agents time?

If yes, annotate. Only annotate after confirming — never speculatively.

Annotation kinds

Kind Use when Example
issue Confirmed bug, broken param, or misleading example "n=5 silently returns 1 result"
fix Workaround that resolves a confirmed issue "Use n=1, call 5 times"
practice Validated pattern the team should consistently use "Always pass user param for rate attribution"
note General observation that doesn't fit above "SDK auto-retries on 429, no manual retry needed"

Read the full file on GitHub · 205 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. 8d ago First seen · 205 lines · 30 tokens per session scan A 1282483e0f50

Subscribe to this mod's changes

Chub Workflow is a skill published in the GitHub repository nrl-ai/chub (11 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 1,459 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-08-30.

Related

Other skills, from other repositories

context-end

Close a workspace session by reviewing a proposed summary, recording approved outcomes, updating state and decisions, and checking repository safety. Use only when the user explicitly asks to end, close, or hand off the current session.

conorbronsdon/agent-context-os · 46 tokens

context-update

Save a brief mid-session checkpoint to this workspace and update current state only when a priority or open thread changed. Use only when the user explicitly asks to checkpoint or save current progress.

conorbronsdon/agent-context-os · 39 tokens

retrospective

Audit whether prior learnings actually fired, then convert this run's recurrences into installed mechanisms. Refuses to emit a finding without an install path and a firing test. Triggers: retrospective, reflect, what did we learn, patterns, synthesis, post-mortem, why does this keep happening.

ariaxhan/kernel-claude · 65 tokens

context-mgmt

Context engineering and token management. Compaction strategies, progressive disclosure, structured note-taking via AgentDB. Triggers: tokens, compaction, memory, handoff, summarize, context window.

ariaxhan/kernel-claude · 42 tokens

repo-indexer

Indexes and documents a codebase for persistent Claude context with minimal token overhead. Use when asked to index a repo, understand a codebase, create CLAUDE.md, set up Claude memory, bootstrap context, onboard to a project, or document codebase for Claude. Triggers on phrases like "index this repo", "understand…

jyshnkr/repo-indexer · 134 tokens

faf-expert

Expert in .faf (Foundational AI-context Format) files for persistent project context. Use when working with .faf files, project DNA, CLAUDE.md bi-sync, faf-cli commands, MCP server configuration, or AI-readiness scoring (0-100%). Updated for v2.8.0 Tool Visibility System.

Wolfe-Jam/faf-mcp · 69 tokens