verify

A browser-based end-to-end verification workflow for the Cortex application, covering login and checks at the real user interface. Cortex is an application with a web frontend, backend, and knowledge-graph database.

In plain words
What is it for?
Use it to log in, drive the Cortex interface with a browser, call its authenticated API when needed, and verify changes in the running local application.
Why use it?
It checks frontend and backend changes through the application as a user would use it, instead of testing isolated code only.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mocaos/cortex-app/verify
Any agent
npx skills add mocaOS/cortex-app --skill verify
Clone the repo
git clone --depth 1 https://github.com/mocaOS/cortex-app

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 628 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00026 $0.00628
Opus 5 $0.00013 $0.00314
Sonnet 5 $0.00005 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 2d ago against content hash 37fe6649253a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

verify scanned grade C with 2 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

- Direct API: `KEY=$(docker exec cortex-backend printenv ADMIN_API_KEY)` then

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl -H "X-API-Key: $KEY" http://localhost:8000/api/...`.
.claude/skills/verify/SKILL.md · 60 lines

How it starts

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

Verifying Cortex changes in the running app

The dev stack runs in Docker with hot-reloaded mounted source — no rebuild needed for frontend/backend edits:

Auth

  • UI login: real form at /login; credentials from container env: docker exec cortex-frontend printenv ADMIN_EMAIL (and ADMIN_PASSWORD). Login sets a session cookie AND admin_api_key in localStorage (the frontend sends it as X-API-Key on fetches).
  • Direct API: KEY=$(docker exec cortex-backend printenv ADMIN_API_KEY) then curl -H "X-API-Key: $KEY" http://localhost:8000/api/....

Browser driving (Playwright)

Local node (nvm v23) works; browsers cache under ~/.cache/ms-playwright.

mkdir -p /tmp/verify-x && cd /tmp/verify-x
npm init -y && npm install playwright
npx playwright install chromium   # if cached revision mismatches
ADMIN_EMAIL=$(docker exec cortex-frontend printenv ADMIN_EMAIL) \
ADMIN_PASSWORD=$(docker exec cortex-frontend printenv ADMIN_PASSWORD) \
node script.mjs

Login flow in a script: goto /login, fill input[name="email"] / input[name="password"], click button[type="submit"], wait for URL to leave /login. Then navigate anywhere (e.g. /documents).

  • Document cards on /documents: locate via div.glass containing h4[title*="<filename>"]; action buttons carry title attributes ("Download document", "View document", …).
  • To assert download-vs-tab behavior: listen for the page download event and the context page event (popup).

Test data

  • Upload a throwaway doc without triggering processing: curl -H "X-API-Key: $KEY" -F "[email protected]" http://localhost:8000/api/upload (stays pending until /api/documents/process-pending is called).
  • Clean up: curl -X DELETE -H "X-API-Key: $KEY" http://localhost:8000/api/documents/<id>.

Gotchas

  • Frontend typecheck must run in the container (docker exec cortex-frontend npx tsc --noEmit) — local node_modules is incomplete/root-owned.
  • Don't kick off document processing on real PDFs — it triggers LLM extraction (cost + long-running).

Read the full file on GitHub · 60 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. 2d ago First seen · 60 lines · 26 tokens per session scan C 37fe6649253a

Subscribe to this mod's changes

verify is a skill published in the GitHub repository mocaOS/cortex-app (5 stars, last pushed 14d ago), licensed Apache-2.0. It adds 26 tokens to every session and 628 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (harvests environment variables, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.