qalma: Instructions file for Codex

AGENTS.md

qalma AGENTS.md is an instructions file for Codex, OpenCode from cdskill/qalma. It costs 1,122 tokens per session, scanned A, original, MIT.

Repository guidance for Qalma, an Angular-first rich-text editor built on ProseMirror. It emphasizes typed Angular interfaces, signal-based state, accessibility, consumer-controlled UI, and plugin-based extension points.

In plain words
What is it for?
Use it when adding or changing editor plugins, commands, formatting marks, document nodes, keyboard shortcuts, public capabilities, documentation, architecture, or releases.
Why use it?
It helps contributors preserve the editor's public developer interface and architectural boundaries while changing editor behavior.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

This is cdskill/qalma's own configuration. It tells Codex and OpenCode how to work on qalma itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything qalma configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cdskill/qalma. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cdskill/qalma/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/cdskill/qalma

Made for: Codex, OpenCode.

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 qalma AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cdskill/qalma/agents-md"><img src="https://agentmods.dev/badge/instructions/cdskill/qalma/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,122 This file is loaded in full into every session.
When invoked 1,122 The same file — it is already loaded in full.
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.01122 $0.01122
Opus 5.5 $0.00449 $0.00449
Sonnet 5.5 $0.00224 $0.00224
Haiku 4.5 $0.00112 $0.00112

Measured 1mo ago against content hash 102ad675544a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qalma AGENTS.md 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.

AGENTS.md · 108 lines

How it starts

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

Qalma Repository Guidance

Mission

Build an Angular-first, headless, plugin-based rich text editor on ProseMirror. The product should offer the composability expected from modern editors such as Plate or Tiptap while feeling native to Angular.

The public developer experience is the product. Prefer typed Angular-facing contracts, signal-based state, consumer-owned UI, accessibility, and deliberate extension points over exposing raw ProseMirror details.

Repository Skills

  • Use qalma-architecture for product vision, repository structure, public API design, new library boundaries, and architectural refactors.
  • Use qalma-plugin-development whenever adding, changing, reviewing, or removing an editor plugin, command, mark, node, shortcut, or ProseMirror behavior.
  • Use qalma-docs-sync after adding, changing, reviewing, or removing a public plugin capability that affects apps/docs, docs navigation, playground behavior, libs/editor/README.md, or durable workflow guidance.
  • Use git-commit when the user invokes /commit or asks to generate and create a conventional commit from staged changes.
  • Use qalma-release when discussing or changing versioning, the release scripts, the GitHub Actions release workflow, Nx release configuration, or npm publishing for @qalma/editor.

Architectural Invariants

  • Keep libs/editor headless. Do not bake toolbar buttons, product styling, or a fixed feature set into editor primitives.
  • Let consumers select plugins in TypeScript and compose their UI explicitly through Angular templates and content projection.
  • Treat apps/sandbox as a real consumer and executable documentation. It must use only the intentional public API from @qalma/editor.
  • Keep ProseMirror as the internal engine. Expose it publicly only after an explicit API design decision.
  • Let a QalmaPlugin contribute schema nodes or marks, commands, command states, shortcuts, and ProseMirror plugins.
  • Expose configurable features through Qalma-owned option interfaces, immutable defaults, and validation. Do not leak a third-party options object as the public contract by default.
  • Keep first-party plugins in libs/editor/src/lib/plugins until a real dependency, release, ownership, or bundle boundary justifies a dedicated lib.
  • Preserve unique plugin keys, schema names, command names, and shortcuts.
  • Validate every persisted first-party node/mark attribute at the ProseMirror schema boundary. Treat HTML, JSON, Markdown, paste/drop, migrations, upload metadata, AI output, and collaboration metadata as untrusted; build fresh allowlisted DOM attributes instead of merging untrusted attribute bags.
  • Keep the public barrel intentional and small. Do not export internal ProseMirror helpers or compatibility aliases without a concrete need.
  • Keep plugins/qalma as the public agent skill pack for Codex, Claude-compatible skill loaders, and other agents that consume SKILL.md folders.

Read the full file on GitHub · 108 lines

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. 1mo ago Changed · +4 lines · +63 tokens per session 102ad675544a
  2. 2mo ago First seen · 104 lines · 1,059 tokens per session scan A 9a67bfc28cb8

Subscribe to this mod's changes

qalma AGENTS.md is an instructions file published in the GitHub repository cdskill/qalma (11 stars, last pushed yesterday), licensed MIT. It adds 1,122 tokens to every session, about $0.0045 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.

Related

qalma AGENTS.md compared with instructions from other repositories

qalma AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qalma AGENTS.mdcdskill/qalmaInstructions file11yesterdayMITA1,122Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode