cortex-app: Skill for Claude Code

.claude/skills/verify/SKILL.md

verify is a skill for Claude Code from mocaOS/cortex-app. It costs 26 tokens per session (628 once invoked), scanned C, original, Apache-2.0.

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 Code

Written for Claude Code: installed under .claude/.

This is mocaOS/cortex-app's own configuration. It tells Claude Code how to work on cortex-app 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 cortex-app configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mocaOS/cortex-app. 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/mocaOS/cortex-app/main/.claude/skills/verify/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mocaOS/cortex-app

Made for: Claude Code.

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 verify

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mocaos/cortex-app/verify"><img src="https://agentmods.dev/badge/skills/mocaos/cortex-app/verify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00026 $0.00628
Opus 5.5 $0.00010 $0.00251
Sonnet 5.5 $0.00005 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 2mo ago against content hash 37fe6649253a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 2mo 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 (7 stars, last pushed 4d ago), licensed Apache-2.0. It adds 26 tokens to every session and 628 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

e2e-testing-patterns

Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.

wshobson/agents · 51 tokens

test-production

Runs bin/test-production.ps1 to acceptance-test a production (or prerelease) release of browser4-cli. Use when asked to run production tests, acceptance-test a release, or verify the published CLI.

platonai/Browser4 · 44 tokens

browser-testing-with-screenshots

Use when testing web applications with visual verification - automates Chrome browser interactions, element selection, and screenshot capture for confirming UI functionality.

AgentWorkforce/relay · 32 tokens

run-dashboard-e2e-local-changes

Run Playwright E2E (tests/e2e/) against the docker/ all-in-one harness so it reflects LOCAL code changes, not a stale cached image.

BlackBeltTechnology/pi-agent-dashboard · 42 tokens

checking-a-page

Check that a web page you wrote or changed actually works, by opening it in a browser and driving every control on it. Use after creating or editing an HTML page, or the JavaScript or CSS that a page loads.

awss1i/assay · 49 tokens

browser-qa

Testing web apps through a real browser: reconnaissance before acting, selector discovery, state capture, console errors and screenshot evidence. Use on a web surface end to end, or to reproduce a front-end bug.

damianvtran/local-operator · 45 tokens