Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add cogni-work/insight-wave/plugin install cogni-knowledgeWrote 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/cogni-work/insight-wave/knowledge-compose)<a href="https://agentmods.dev/skills/cogni-work/insight-wave/knowledge-compose"><img src="https://agentmods.dev/badge/skills/cogni-work/insight-wave/knowledge-compose/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.
<a href="https://agentmods.dev/skills/cogni-work/insight-wave/knowledge-compose"><img src="https://agentmods.dev/badge/skills/cogni-work/insight-wave/knowledge-compose.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00205 | $0.13996 |
| Opus 5.5 | $0.00082 | $0.05598 |
| Sonnet 5.5 | $0.00041 | $0.02799 |
| Haiku 4.5 | $0.00020 | $0.01400 |
Grade A, and why
knowledge-compose 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 1mo 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 — 470 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Knowledge Compose
Phase 5 of the inverted pipeline. Reads the per-project plan.json + ingest-manifest.json + the populated wiki at <binding.wiki_path>/wiki/, dispatches wiki-composer once, and verifies the output files land on disk.
The default --source web path composes from this run's web-ingested sources (the ingest-manifest.json Phase 4 produced). --source wiki is the wiki-only rung — a full structured, verified report grounded only in the already-populated wiki (wiki/sources/*.md + wiki/syntheses/*.md + distilled pages) and the .cogni-knowledge/fetch-cache/, with no web crawl: it preserves the retired research-report --source wiki capability so that capability does not vanish when cogni-research is archived.
The wiki-only mode does not change the composer or the verify/finalize tail at all. Instead, Step 0 synthesizes an ingest-manifest.json from the bound wiki's wiki/sources/*.md pages — mapping each source to the current plan's sub-questions via the shared wiki-grounding discovery primitive (scripts/wiki-source-manifest.py) — so the dispatched wiki-composer reads a normal manifest and runs byte-for-byte identically whether that manifest came from a web crawl or from the wiki. The composer does not branch on source mode and needs no new input. (See --source in Parameters and the Step 0 pre-flight.)
The composer reads wiki/index.md + selected wiki/sources/*.md (lazily, claims under pre_extracted_claims:) + prior wiki/syntheses/*.md. It also reads two optional knowledge-distill surfaces, topic-matched and lazily: the distilled wiki/{concepts,entities}/*.md pages (claims under distilled_claims:, ids dcl-NNN) and the type: question nodes at wiki/questions/*.md — first-class pages each recording one research question the base has already explored, with ## Findings [[links]] to the sources that answered it (answers under an optional answer_claims: block, ids acl-NNN).
Both surfaces serve both as narrative framing and as citable cross-source evidence, under one shared rule: when ≥2 distinct sources converge (≥2 sources agreeing on a fact the distilled page captures; ≥2 distinct sources in a question node's backlinks[]), the composer cites the distilled page or question node directly via its dcl-NNN/acl-NNN claim id, so the convergence carries epistemic weight rather than a row of stacked source markers. Below that bar — a single-source answer, or a page/node carrying no claim block yet — the surface stays framing-only: the composer reads it for orientation but cites the backing source page (an inline citation to a claim-less node would score unsupported). The verifier scores each such citation against that claim's text. Both surfaces are optional and fail-soft: with neither present the composer composes from sources + syntheses alone.
The composer then writes:
<project>/output/draft-v{N}.md— the draft, with clickable numbered[N]inline citations (wikilinks confined to the reference list).<project>/.metadata/citation-records-v{N}.txt— one raw-text record per citation (the composer writes this; it never hand-builds JSON). This skill then runscitation-store.py buildto serialize and validate<project>/.metadata/citation-manifest.json(schema0.1.1, one{id, draft_position, draft_sentence, wiki_slug, claim_id, url}entry per citation). Escaping is owned byjson.dumps, never the LLM — a straight"in adraft_sentencewould otherwise break a hand-built manifest'sjson.loadsand kill the verify phase.
A writer-outline-v{N}.json is persisted by the composer's Phase 1 before any draft Write attempt — this is the outline-recovery contract. If the composer crashes between outlining and drafting, re-running this skill detects the leftover outline and re-dispatches the composer with RESUME_FROM_OUTLINE=true so only Phase 2 runs.
citation-manifest.json shape (consumed by the wiki-verifier):
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.
- 1mo ago Changed · +1 lines 2c6bba55ef56
- 1mo ago Changed · -18 lines 7c831032c59d
- 1mo ago First seen · 487 lines · 205 tokens per session scan A fbcac0937ae6
knowledge-compose is a skill published in the GitHub repository cogni-work/insight-wave (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 205 tokens to every session and 13,996 once invoked, about $0.0008 per session on Opus 5.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.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-optimizer
Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards…