ai-context

ai-context is a skill for Claude Code, Codex from sopaco/deepwiki-rs. It costs 67 tokens per session (1,070 once invoked), scanned A, original, MIT.

A project knowledge base for Litho, a project that generates documentation about software systems.

In plain words
What is it for?
Use it when starting work in Litho, learning unfamiliar code patterns, investigating unexpected behavior, or planning structural changes.
Why use it?
It gives coding agents background on the project's design, architecture, behavior, and past decisions before they make significant changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

About the project

Litho is a Rust-based AI documentation generator that analyzes a codebase and produces architecture documentation in the C4 model format. Developers, architects, and technical leads use it to create and maintain diagrams and code-level documentation, while the catalogue provides skills for working with the project.

sopaco/deepwiki-rs · 1,714 stars · on GitHub · deepwiki.netlify.app

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 skills/sopaco/deepwiki-rs/ai-context
Any agent
npx skills add sopaco/deepwiki-rs --skill ai-context
Clone the repo
git clone --depth 1 https://github.com/sopaco/deepwiki-rs

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 ai-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/ai-context.svg)](https://agentmods.dev/skills/sopaco/deepwiki-rs/ai-context)
Your own site
<a href="https://agentmods.dev/skills/sopaco/deepwiki-rs/ai-context"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/ai-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,070 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.1 $0.00067 $0.01070
Opus 5 $0.00034 $0.00535
Sonnet 5 $0.00013 $0.00214
Haiku 4.5 $0.00007 $0.00107

Measured 6d ago against content hash 964c186e07c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ai-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 6d 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.

.ai-context/SKILL.md · 139 lines

How it starts

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

AI Context — Litho (deepwiki-rs)

This skill provides pre-generated project knowledge to help you understand the project faster and work more effectively.


🎯 When to Activate This Skill

Activate immediately when:

  • Starting a new coding session in this project
  • You need to understand "why something is designed this way"
  • User asks about project architecture, design decisions, or constraints

Refer to specific sections when:

  • Encountering unexpected behavior or errors → DYNAMICS.md
  • Planning structural changes → references/DECISIONS.md
  • Need high-level overview → references/PROJECT-ESSENCE.md
  • Need component relationships → references/ARCHITECTURE.md

Do NOT activate when:

  • Simple code edits with clear context
  • User requests are purely mechanical (rename, format, etc.)
  • You already have sufficient context from recent conversation

📁 Knowledge Tiers

This skill organizes knowledge by stability — how frequently the knowledge changes:

Tier File Stability Update Frequency
Tier 0 PROJECT-ESSENCE.md High Quarterly / Major version
Tier 1 ARCHITECTURE.md Medium Monthly / Sprint
Tier 2 DECISIONS.md Low Per decision change
Tier 3 DYNAMICS.md Dynamic As needed (issues, incidents)

Reading Order (Recommended)

1. PROJECT-ESSENCE.md  ← Start here (1-2 min read)
2. ARCHITECTURE.md     ← If working across components
3. DECISIONS.md        ← If changing established patterns
4. DYNAMICS.md         ← If something feels wrong

🔧 How to Use This Knowledge

1. Session Start Protocol

□ Read PROJECT-ESSENCE.md (always)
□ Scan DYNAMICS.md for active issues
□ Read ARCHITECTURE.md if working across subprojects
□ Proceed with dynamic code exploration

2. Dynamic Code Exploration

This knowledge is a starting point, not a replacement for reading code:

  • Use grep and find_path to locate actual implementations
  • Verify knowledge against current code state
  • Update knowledge if you find drift (see Maintenance section)

Read the full file on GitHub · 139 lines

Files

What ships with it

5 files 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. 6d ago First seen · 139 lines · 67 tokens per session scan A 964c186e07c6

Subscribe to this mod's changes

ai-context is a skill published in the GitHub repository sopaco/deepwiki-rs (1,714 stars, last pushed 22d ago), licensed MIT. It adds 67 tokens to every session and 1,070 once invoked, about $0.0003 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

code-review-context

Codex maintains a context (history of messages) that is sent to the model in inference requests.

MikeManifold/codex-unified · 7 tokens

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also…

mem0ai/mem0 · 146 tokens

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

peek

Searches memories and displays compact one-liner results, or looks up a specific memory by ID. Use for quick memory lookups, checking if a decision was recorded, resolving [mem0:id] citations, or browsing memories without full category detail.

mem0ai/mem0 · 52 tokens

mine

Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.

MemPalace/mempalace · 21 tokens