matrix

matrix is a skill for Codex from Rosenfan/Matrix. It costs 17 tokens per session (1,655 once invoked), scanned A, original, MIT.

A managed development workflow that organizes feature work, bug fixes, and other repository changes into tracked phases.

In plain words
What is it for?
Use it to start or resume development work, route a change to the appropriate workflow, and govern its design, implementation, and handoff.
Why use it?
It keeps the current work state on disk, so you can follow the right next step and recover after interruptions instead of relying on chat history.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; $skill-name invocation.

Good fit Use it to start or resume development work, route a change to the appropriate workflow, and govern its design, implementation, and handoff.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rosenfan/matrix/matrix
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.

Any agent
npx skills add Rosenfan/Matrix --skill matrix
Clone the repo
git clone --depth 1 https://github.com/Rosenfan/Matrix

Made for: 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 matrix

README.md
[![agentmods](https://agentmods.dev/badge/skills/rosenfan/matrix/matrix/github.svg)](https://agentmods.dev/skills/rosenfan/matrix/matrix)
Your own site
<a href="https://agentmods.dev/skills/rosenfan/matrix/matrix"><img src="https://agentmods.dev/badge/skills/rosenfan/matrix/matrix/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.

agentmods 80×15 button for matrix

Your own site · 80×15
<a href="https://agentmods.dev/skills/rosenfan/matrix/matrix"><img src="https://agentmods.dev/badge/skills/rosenfan/matrix/matrix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,655 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00017 $0.01655
Opus 5.5 $0.00007 $0.00662
Sonnet 5.5 $0.00003 $0.00331
Haiku 4.5 $0.00002 $0.00166

Measured 28d ago against content hash 4f2e45c8490d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

matrix 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 28d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/matrix_claude.py, scripts/matrix_state.py, scripts/test_matrix_claude.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.

assets/skills-zh-CN/matrix/SKILL.md · 85 lines

How it starts

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

Matrix

以当前仓库的 .matrix/ 为唯一状态来源;不得从聊天记录推断阶段。

读取 node <matrix-skill-directory>/scripts/matrix-runtime.mjs inspect 的 artifact_language。规范 Markdown 标题 token 必须保持不变;面向用户的产物正文、说明和 handoff 在 zh-CN 时写中文,在 en 时写英文。

所有 workflow 命令都先执行当前项目 Matrix Skill 自带的 Runtime,使项目兼容性权威优先于不同版本的全局启动器:

node <matrix-skill-directory>/scripts/matrix-runtime.mjs inspect

全局 matrix 命令只负责 init、update 和 bootstrap。受信任的 0.1.4 启动器只会自动委派给版本与 hash 都精确匹配的 0.1.4 项目 Runtime。项目 Runtime 属于不同版本或无法识别版本时仍是项目权威,但必须执行启动器返回的精确直连命令;旧版启动器不具备这项跨版本检查,不能作为项目 workflow 入口。

有活动变更时,报告其 phase、冻结的 orchestration 以及 Arch 安装完整性,再按 Runtime 结果进入 next_skill。没有活动变更时,为开发请求创建简短 kebab-case ID:

node <matrix-skill-directory>/scripts/matrix-runtime.mjs init <change-id> --workflow <full|hotfix|tweak> --orchestration <prim|arch> --title "<title>"

显式模式优先,否则使用项目 default_orchestration。解析后的模式在整个 change 生命周期中不可切换。

编排模式

  • Prim:各阶段使用 Matrix 自身能力,不依赖 Matt Skills。
  • Arch:仅在任务事实满足触发条件时,调用活动 Change 冻结的十项自动能力。Matrix 0.1.4 审查 Matt Skills v1.2.3 官方 25 项角色,只把其中 23 项兼容 Skill 安装在项目本地;排除 implement 与 raw resolving-merge-conflicts。

两种编排模式使用已选定的 workflow profile:full 走 open → design → build → verify → archive;hotfix 与 tweak 共用内部 lightweight profile,走 open → build → verify → archive,仅证据策略不同。Arch 能力不得写 Matrix 状态、推进阶段、提交、归档或创建竞争工作流。

正确安装的 Arch 能力执行失败时,最多允许一次同能力的 Matrix fallback,并记录失败与证据。缺失、修改或不完整的 Arch 安装必须通过 matrix init --with-mattpocock 修复,不得切换活动 change 到 Prim。

恢复

只能通过 Runtime 恢复,不得手工修改状态:

node <matrix-skill-directory>/scripts/matrix-runtime.mjs return design --reason design-gap
node <matrix-skill-directory>/scripts/matrix-runtime.mjs return build --reason verification-failed
node <matrix-skill-directory>/scripts/matrix-runtime.mjs return design --reason acceptance-or-design-gap
node <matrix-skill-directory>/scripts/matrix-runtime.mjs abort --reason <requirement-cancelled|superseded|no-longer-valuable|blocked|other>

Return 会把当前 verification.md 轮换至按 revision 编号的证据历史。Archive 等待确认期间若验收或设计改变,只能使用 archive -> design 的 acceptance-or-design-gap Return。Abort 将终态变更移入 .matrix/archive/,但不会撤销工作区代码。

Read the full file on GitHub · 85 lines

Files

What ships with it

5 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. 28d ago Changed · +1 lines 4f2e45c8490d
  2. 29d ago Changed · -4 lines · -19 tokens per session scan B → A bb666ea09807
  3. 1mo ago Changed · -5 lines scan A → B 9cc0ef9d7f40
  4. 1mo ago First seen · 93 lines · 36 tokens per session scan A 76a7586052cc

Subscribe to this mod's changes

matrix is a skill published in the GitHub repository Rosenfan/Matrix (5 stars, last pushed 29d ago), licensed MIT. It adds 17 tokens to every session and 1,655 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-31.