Borrowing it
Nothing to install: this file belongs to CortexPrism/cortex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/CortexPrism/cortex/main/.github/skills/contextstream-workflow/SKILL.mdgit clone --depth 1 https://github.com/CortexPrism/cortexWrote 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/cortexprism/cortex/contextstream-workflow)<a href="https://agentmods.dev/skills/cortexprism/cortex/contextstream-workflow"><img src="https://agentmods.dev/badge/skills/cortexprism/cortex/contextstream-workflow/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/cortexprism/cortex/contextstream-workflow"><img src="https://agentmods.dev/badge/skills/cortexprism/cortex/contextstream-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00016 | $0.00773 |
| Opus 5.5 | $0.00006 | $0.00309 |
| Sonnet 5.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 2mo 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.
- 2mo ago First seen · 149 lines · 16 tokens per session scan A 18f39f2b4ade
contextstream-workflow is a skill published in the GitHub repository CortexPrism/cortex (147 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 16 tokens to every session and 773 once invoked, about $0.0001 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.
contextstream-workflow compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| contextstream-workflowCortexPrism/cortex | Skill | 147 | 4mo ago | Apache-2.0 | A | 16 | Claude Code, Codex |
| mnemosyneWrongStack/WrongStack | Skill | 404 | yesterday | MIT | A | 67 | Claude Code, Codex |
| context-okf-llm-ingestkerbelp/metatron | Skill | 27 | 11d ago | MIT | A | 45 | Claude Code, Codex |
| neat-freakLiHongwei-cn/lihongwei-cn | Skill | 5 | 29d ago | MIT | A | 215 | Claude Code, Codex |
| context-window-managementLiHongwei-cn/lihongwei-cn | Skill | 5 | 29d ago | MIT | A | 23 | Claude Code, Codex |
| accint-solveLiHongwei-cn/lihongwei-cn | Skill | 5 | 29d ago | MIT | A | 29 | Claude Code, Codex |
| agentic-retrievalLiHongwei-cn/lihongwei-cn | Skill | 5 | 29d ago | MIT | A | 27 | Claude Code, Codex |