project-context

project-context is a skill for Claude Code, Codex from Alexander-Tyagunov/magician. It costs 77 tokens per session (622 once invoked), scanned A, original, MIT.

A repository inspection tool that identifies the project's languages, frameworks, databases, and monitoring tools, then selects relevant technical guidance.

In plain words
What is it for?
Use it before technical work when guidance tailored to the repository would help.
Why use it?
It avoids loading unrelated advice and gives implementation, debugging, review, performance, database, or logging work better project context.

Skill for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; $skill-name invocation.

Part of the magician plugin — 26 skills, 4 agents, 10 hooks shipped together

Good fit Use it before technical work when guidance tailored to the repository would help.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexander-tyagunov/magician/project-context
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 Alexander-Tyagunov/magician --skill project-context
Clone the repo
git clone --depth 1 https://github.com/Alexander-Tyagunov/magician

Made for: Claude Code, Codex.

Or install magician, the plugin that ships this one along with the rest of its 26 skills, 4 agents, 10 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexander-tyagunov/magician/project-context/github.svg)](https://agentmods.dev/skills/alexander-tyagunov/magician/project-context)
Your own site
<a href="https://agentmods.dev/skills/alexander-tyagunov/magician/project-context"><img src="https://agentmods.dev/badge/skills/alexander-tyagunov/magician/project-context/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 project-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexander-tyagunov/magician/project-context"><img src="https://agentmods.dev/badge/skills/alexander-tyagunov/magician/project-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 622 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00077 $0.00622
Opus 5 $0.00039 $0.00311
Sonnet 5 $0.00015 $0.00124
Haiku 4.5 $0.00008 $0.00062

Measured 11d ago against content hash 65fa94322a91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

project-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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/detect_project_context.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.codex-plugin/skills/project-context/SKILL.md · 51 lines

How it starts

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

$project-context — Codex-only lore router

Use this skill only in Codex. It provides progressive access to Magician's packaged lore without changing or emulating Claude Code's SessionStart hook.

Detect

  1. Resolve this skill's directory from the path Codex supplied when loading it. In an installed plugin, the plugin root is two directories above the skill directory (skills/project-context).

  2. Run the read-only detector from the workspace root:

    python3 "<skill-dir>/scripts/detect_project_context.py" \
      --root "<workspace-root>" \
      --topic "<current user task>"
    

    Pass another --topic for each materially distinct requested concern. Use --plugin-root only while developing the plugin from its authoring repository; installed packages are inferred.

  3. Parse the JSON. Never copy manifest or environment-file contents into the conversation; the detector reports only normalized technology names and package-relative lore paths.

If enabled is false, state the reported disabled_by control once and continue using repository rules and normal engineering judgment. Do not bypass MAGICIAN_LORE or .magician/lore.off.

Load progressively

Treat repository instructions and observed code as authoritative. Lore is a baseline beneath them.

  1. Read every path in cores, in order, from the detected plugin_root. These are concise stack cores only; do not load unrelated lore.
  2. Read paths in recommended_deep_dives only when they match the current task. They are ranked from the selected stack's deep-dive filenames and capped at eight.
  3. If the recommendations do not cover a necessary subtopic, inspect only the relevant technology's entries in deep_dives, then read the smallest matching set. Never bulk-read a deep-dive tree.
  4. Apply version gates from manifests and source code. If detected markers conflict with the code, trust the code and mention the mismatch only when it affects the task.
  5. If logging/observability work is requested and observability_candidates contains zero or more than one platform, ask which deployed log platform is authoritative before shaping platform- specific logs or queries. Do not write a preference unless the user explicitly asks.
  6. Do not claim automatic session injection, status-line integration, or persistent observability selection. Those remain Claude-specific unless a future Codex hook explicitly provides them.

Read the full file on GitHub · 51 lines

Files

What ships with it

2 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. 11d ago First seen · 51 lines · 77 tokens per session scan A 65fa94322a91

Subscribe to this mod's changes

project-context is a skill published in the GitHub repository Alexander-Tyagunov/magician (14 stars, last pushed 10d ago), licensed MIT. It adds 77 tokens to every session and 622 once invoked, about $0.0004 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

daily-briefing

Search for today's latest AI news and create/update a comprehensive briefing in Notion, with optional Obsidian vault publishing for graph visualization.

hoangsonww/AI-News-Briefing · 26 tokens

custom-brief

Deep-research a specific topic and produce a comprehensive news-focused briefing with optional Notion/Obsidian/Teams/Slack publishing.

hoangsonww/AI-News-Briefing · 26 tokens

eval-dashboard

Build the interactive offline eval dashboard (eval/dashboard/index.html) — Chart.js trend, axis radar, composite histogram, per-card stacked bars, sortable card table. Use when the user wants to "see eval results", "open dashboard", "visualize quality", or "compare cards".

hoangsonww/AI-News-Briefing · 57 tokens

eval-drift

Detect quality drift in published briefings by comparing the trailing-7d median composite score against the trailing-30d median (MAD-scaled). Use when the user asks to "check drift", "compare last week to baseline", or "is briefing quality slipping".

hoangsonww/AI-News-Briefing · 53 tokens

eval-regression

Re-judge every pinned golden card in eval/golden/ and fail if any composite has dropped more than 0.5 points vs its baseline. Use when the user asks to "run regression", "check golden set", or wants CI-style quality gating after a prompt or judge change.

hoangsonww/AI-News-Briefing · 58 tokens

eval-report

Emit a Markdown weekly digest of briefing quality scores (coverage, composite stats, axis medians, per-day table). Use when the user asks for a "weekly report", "eval summary", or "quality digest" for a specific date range.

hoangsonww/AI-News-Briefing · 49 tokens