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/cortexprism/cortex/contextstream-workflownpx skills add CortexPrism/cortex --skill contextstream-workflowgit clone --depth 1 https://github.com/CortexPrism/cortexWhat 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.00016 | $0.00773 |
| Opus 5 | $0.00008 | $0.00387 |
| Sonnet 5 | $0.00003 | $0.00155 |
| Haiku 4.5 | $0.00002 | $0.00077 |
Grade A, and why
contextstream-workflow 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 2d 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 — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ContextStream Workflow Skill
Purpose
Use ContextStream to keep plans, tasks, decisions, lessons, and implementation context available across Copilot sessions.
Session Lifecycle
1. Start the session
Always call init at the beginning of a new session:
init(
folder_path="<project_path>",
context_hint="<user's first message>"
)
Then call context with the current request:
context(
user_message="<current user message>"
)
For later messages in the same session, call context first before doing more work.
Before inventing a workflow from memory, check whether ContextStream already surfaced relevant
skills, docs, lessons, or decisions for the task. Use skill(action="list"),
memory(action="list_docs"), session(action="get_lessons"), and
memory(action="decisions", workspace_id="<current_workspace_id>", project_id="<current_project_id>")
when ids are available and the task is unfamiliar or likely already documented. Reuse the current
project_id returned by init or context for project-scoped docs, events, and skills instead of
guessing.
2. Plan multi-step work
Capture a persistent plan:
session(
action="capture_plan",
title="Implement feature X",
steps=[
{"id": "1", "title": "Research the current code path", "order": 1},
{"id": "2", "title": "Implement the change", "order": 2},
{"id": "3", "title": "Add verification", "order": 3}
]
)
Then create linked tasks:
memory(
action="create_task",
title="Implement the change",
plan_id="<plan_id>",
plan_step_id="2",
priority="high"
)
3. Track progress while working
Start a task:
memory(
action="update_task",
task_id="<task_id>",
status="in_progress"
)
Capture a technical decision:
session(
action="capture",
event_type="decision",
title="Use repository pattern for data access",
content="Chose a repository layer to isolate persistence logic and simplify testing."
)
Finish a task:
memory(
action="update_task",
task_id="<task_id>",
status="completed"
)
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.
- 2d ago First seen · 149 lines · 16 tokens per session scan A 18f39f2b4ade
contextstream-workflow is a skill published in the GitHub repository CortexPrism/cortex (192 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 16 tokens to every session and 773 once invoked, about $0.0001 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.
Other skills, from other repositories
case-study
Craft a portfolio case study with narrative arc, process evidence, and outcomes. Use when telling a project's story to an external audience. For an internal stakeholder deck, use presentation-deck.
new-feedback
Log a harness lesson / post-incident so the SYSTEM improves, not just this one bug — fires on "log a harness lesson", "post-incident", "we should make this less likely", System-Evolution moments. Part of the Agentsmith harness; scaffolds a numbered docs/feedback/NNNN-.md with the five-stage template (R9 — numbers are…
frontend-design
A reasoning framework for web UI design decisions — components, layout, color, type, effects, and motion. Use it when composing interfaces, picking palettes or fonts, structuring page layouts, or pushing a design past generic defaults. It teaches the principles and trade-offs behind each choice rather than prescribing…
deployment-procedures
Covers the judgment behind safe production releases — choosing a platform, verifying before shipping, watching a rollout, and deciding when to roll back versus fix forward. It teaches reasoning rather than copy-paste commands, since the right move depends on the stack and the change. Reach for it when planning a…
behavioral-modes
A catalog of operating modes that reshape how an assistant approaches, communicates, and prioritizes work depending on the task at hand. Covers ideation, building, debugging, reviewing, teaching, releasing, plus multi-agent collaboration patterns. Useful for matching tone and method to whether the work is exploratory…
clean-code
Pragmatic coding standards favoring concise, direct, well-named code over verbose tutorials, needless comments, or speculative abstraction. Covers core principles, naming, function shape, anti-patterns, pre-edit dependency checks, and a discipline for handling validation-script output. Applies to essentially all…