context-generate

context-generate is a skill for Claude Code, Codex from linkpranay-ai/context-engineering-protocol. It costs 42 tokens per session (18,042 once invoked), scanned A, original, Apache-2.0.

A planning tool that gathers code structure, requirements, limits, and the likely impact of a change into a reviewable package before another tool generates work.

In plain words
What is it for?
Preparing large or multi-repository codebases for feature generation, checking which files and components a change may affect, and passing approved context to a downstream generation tool.
Why use it?
It gives the next coding step the relevant context and lets a person approve the source-backed information first, reducing missed dependencies and unsuitable changes.

Skill for Claude CodeCodex

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/linkpranay-ai/context-engineering-protocol/ult-context-generate
Any agent
npx skills add linkpranay-ai/context-engineering-protocol --skill ult-context-generate
Clone the repo
git clone --depth 1 https://github.com/linkpranay-ai/context-engineering-protocol

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/linkpranay-ai/context-engineering-protocol/ult-context-generate.svg)](https://agentmods.dev/skills/linkpranay-ai/context-engineering-protocol/ult-context-generate)
Your own site
<a href="https://agentmods.dev/skills/linkpranay-ai/context-engineering-protocol/ult-context-generate"><img src="https://agentmods.dev/badge/skills/linkpranay-ai/context-engineering-protocol/ult-context-generate.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 18,042 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.00042 $0.18042
Opus 5 $0.00021 $0.09021
Sonnet 5 $0.00008 $0.03608
Haiku 4.5 $0.00004 $0.01804

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

Security

Grade A, and why

context-generate 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 5d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/content_hash.py, scripts/content_safety_scan.py, scripts/mcp_mirror.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.

.github/skills/ult-context-generate/SKILL.md · 1,315 lines

How it starts

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

ult-context-generate

Status: piloting. The What-L3/What-L2 dual-layer model, D10 blast-radius analysis, D11 constraints layer, and the D12 handoff to a downstream generation skill were validated end-to-end on a real ~40 KSLOC FastAPI codebase (an RBAC guest-role feature, run through a full context-package generation and approval cycle) before this migration. Now rolling out to a small set of pilot users on substantially larger codebases (500 KSLOC+, often multi-repo), where the What-L1 (external-spec) layer remains disabled and token-cost behavior at this scale is still an open question. Report findings (works well / doesn't / surprises — especially around graphify query budgets and token costs at scale) as an issue in this repo so this can graduate out of pilot status or be reworked.

What-L1 fallback (Step 7.1, D13/D14) is also now piloting — a small specs/external/ corpus is indexed by scripts/md_index.py, a Python-stdlib-only CLI that builds a deterministic structural index (headings, clause ids, section bounds, resolved cross-references — "the graphify for markdown"; see scripts/README.md). Step 7.1 builds this index once per run (--stale-check, the same build-once contract graphify update uses), then queries it per both-layers-gap aspect with synonym-expanded keyword matching to bridge terminology gaps between an aspect's wording and the external spec's own terms. Validated end-to-end against a real downloaded 3GPP TS 33.401 spec plus a NIST SP 800-63B excerpt — see scripts/IMPLEMENTATION-NOTES.md for the full validation write-up. The 500 KSLOC+ volunteer pilots above should still leave what_l1.enabled: false until indexing strategy for large multi-file external-spec corpora (Open Question 1) is resolved — this pilot covers only the small-corpus case.

The index also carries heading-tree bounds and resolved single-hop cross-references (D14) — its markdown-AST (ATX + Setext headings) gives deterministic section boundaries, and a per-profile cross-reference pass (clause X, Annex Y, (see Z), etc.) resolves in-document references at index-build time, so Step 7.1 can follow a matched section's citations to directly-cited sections as additional candidates with no further parsing. Validated against the same two files: recovered a genuinely relevant section (NIST §7.2 "Session Termination", cross-referenced from both originally-matched sections) that the keyword/synonym pass alone had missed, and confirmed Setext-only Annex headings (TS 33.401's Annexes A-K) are correctly bounded. Zero-LLM extraction — a stdlib subprocess builds the index; the agent only reads the matched section_bounds line-ranges. See D13/D14.

How-L1 fallback (Step 2.1, D13/D14) is newly added, not yet field-validated against a real corpus. It reuses the same scripts/md_index.py mechanism as What-L1's Step 7.1, gap-triggered off the existing How-L2 org-convention check (Step 2) instead of per-aspect, and with no web-search/training-knowledge fallback chain of its own — see references/how-l1-fallback-query.md. Leave how_l1.enabled: false until you've run it once against your own org's process-standard .md files and confirmed the results look right.

This file and others in this repo cite D<N>/§<N> labels (e.g. D11, D20 §15.5) — see ../../../references/design-scratchpad-glossary.md for what each one means.

Read the full file on GitHub · 1,315 lines

Files

What ships with it

32 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. 5d ago First seen · 1,315 lines · 42 tokens per session scan A 3f59804396a7

Subscribe to this mod's changes

context-generate is a skill published in the GitHub repository linkpranay-ai/context-engineering-protocol (8 stars, last pushed 2d ago), licensed Apache-2.0. It adds 42 tokens to every session and 18,042 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-31.

Related

Other skills, from other repositories

graft

This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

trailhq/Graft · 56 tokens

graphenium

Use when analyzing codebase structure, verifying pre-flight policy compliance, tracing transitive dependency closures, or auditing post-edit scope creep.

lambda-alpha-labs/Graphenium · 30 tokens

reqvire-syseng

Expert semantic engineering and MBSE skill for Reqvire. Use when (1) exploring engineering knowledge graphs, (2) adding capabilities with proper ontology, requirement, and verification traceability, (3) refactoring cluttered models and extracting specifications, (4) generating implementation tasks from…

reqvire-org/reqvire · 150 tokens

reqvire-ontology-authoring

Expert workflow for creating, extending, and validating Reqvire structural ontology elements for IT engineering, systems engineering, MBSE, and system-of-interest modeling. Use for competency-question-driven OWL/Turtle vocabulary, semantic-contract boundaries, ontology hierarchy, domain/range/property modeling…

reqvire-org/reqvire · 98 tokens

reqvire-concept-authoring

Expert workflow for authoring Reqvire native concept schemes and concepts as SKOS thesauri. Use when creating or revising concept-scheme or concept elements, designing controlled vocabularies, concept taxonomies, broader/narrower/related links, labels, definitions, scope notes, examples, mappings, concept scheme…

reqvire-org/reqvire · 116 tokens

reqvire-audit

Model quality and diagnostic skill for Reqvire. Use when (1) analyzing model structure, coverage gaps, and improvement recommendations, (2) checking verification coverage and identifying unverified leaf requirements, (3) linting and fixing model quality issues, (4) finding redundant verify relations, or (5) analyzing…

reqvire-org/reqvire · 77 tokens