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.
npx agentmods add skills/linkpranay-ai/context-engineering-protocol/ult-context-generatenpx skills add linkpranay-ai/context-engineering-protocol --skill ult-context-generategit clone --depth 1 https://github.com/linkpranay-ai/context-engineering-protocolWrote 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.
[](https://agentmods.dev/skills/linkpranay-ai/context-engineering-protocol/ult-context-generate)<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>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.
| Model | Per session | Once 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 |
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.
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.
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 byscripts/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"; seescripts/README.md). Step 7.1 builds this index once per run (--stale-check, the same build-once contractgraphify updateuses), 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 — seescripts/IMPLEMENTATION-NOTES.mdfor the full validation write-up. The 500 KSLOC+ volunteer pilots above should still leavewhat_l1.enabled: falseuntil 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 matchedsection_boundsline-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.pymechanism 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 — seereferences/how-l1-fallback-query.md. Leavehow_l1.enabled: falseuntil you've run it once against your own org's process-standard.mdfiles 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.mdfor what each one means.
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.
- CONSUMING-CONTEXT-PACKAGE.md 21 KB
- references/context-package-schema.md 14 KB
- references/corroboration-gate.md 3.6 KB
- references/how-l1-fallback-query.md 9.1 KB
- references/what-l1-fallback-query.md 13 KB
- scripts/content_hash.py 1.9 KB runs code
- scripts/content_safety_scan.py 4.7 KB runs code
- scripts/IMPLEMENTATION-NOTES.md 11 KB
- scripts/mcp_mirror.py 7.0 KB runs code
- scripts/md_index.py 39 KB runs code
- scripts/profiles/3gpp.json 1.1 KB
- scripts/profiles/generic.json 729 B
- scripts/profiles/ieee.json 1.0 KB
- scripts/profiles/rfc.json 877 B
- scripts/README.md 33 KB
- scripts/tests/fixtures/alignment_colon_tables.md 143 B
- scripts/tests/fixtures/cross_refs_ambiguous.md 306 B
- scripts/tests/fixtures/cross_refs.md 412 B
- scripts/tests/fixtures/deep_nesting.md 238 B
- scripts/tests/fixtures/front_matter_and_code_fences.md 214 B
- scripts/tests/fixtures/golden_session_management.expected.json 4.7 KB
- scripts/tests/fixtures/golden_session_management.md 2.1 KB
- scripts/tests/fixtures/mixed_atx_setext.md 401 B
- scripts/tests/fixtures/non_3gpp_numbering.md 282 B
- scripts/tests/test_content_hash.py 3.3 KB runs code
- scripts/tests/test_content_safety_scan.py 3.6 KB runs code
- scripts/tests/test_mcp_mirror.py 5.5 KB runs code
- scripts/tests/test_md_index.py 30 KB runs code
- scripts/tests/test_usage_report.py 8.0 KB runs code
- scripts/tests/test_validate_approved_by.py 8.0 KB runs code
- scripts/usage_report.py 9.9 KB runs code
- scripts/validate_approved_by.py 6.1 KB runs code
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.
- 5d ago First seen · 1,315 lines · 42 tokens per session scan A 3f59804396a7
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.
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.
graphenium
Use when analyzing codebase structure, verifying pre-flight policy compliance, tracing transitive dependency closures, or auditing post-edit scope creep.
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-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-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-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…