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.
npx skills add Cumulocity-IoT/cumulocity-skills --skill write-e2e-cumulocity-cypress-testgit clone --depth 1 https://github.com/Cumulocity-IoT/cumulocity-skillsWrote 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/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test)<a href="https://agentmods.dev/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test"><img src="https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test/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/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test"><img src="https://agentmods.dev/badge/skills/cumulocity-iot/cumulocity-skills/write-e2e-cumulocity-cypress-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00087 | $0.04215 |
| Opus 5 | $0.00044 | $0.02107 |
| Sonnet 5 | $0.00017 | $0.00843 |
| Haiku 4.5 | $0.00009 | $0.00421 |
Grade A, and why
write-e2e-cumulocity-cypress-test scanned grade A with 1 finding 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
2. **Dev server is up**: `curl -s -o /dev/null -w "%{http_code}" "$CYURL/apps/<C8Y_SHELL_TARGET value>/index.html"` must return 200. If not, ask the user to start it (usually `npm run start`); do not start it yourself un How it starts
The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write and verify e2e Cypress tests for Cumulocity
You are writing deterministic Cypress test code (no cy.prompt()), validating it yourself in a loop until it passes. A test is not done until you have run it headlessly and seen it green.
Workflow at a glance:
- Preflight — verify
.env, dev server, tenant/base-URL match, device ID. - Discover — walk the flow in a live browser (selectors, requests, response shapes), then confirm the backend contract in the Angular service source.
- Write — standard suite skeleton, intercept every relevant request before visiting, assert via stable selectors.
- Verify — run headless in a loop, diagnose from the request trace, fix, repeat; full suite once when green.
- Finish — delete run logs, report pass/fail counts, fold new lessons back into this skill.
This skill is project-agnostic. Placeholders in angle brackets (<feature>, <Tab label>, …) must be replaced with names discovered in the repo you are working in — never invent them.
Phase 0 — Preflight: verify the environment before writing anything
Run these checks first. Every minute spent here saves a failed-run iteration later.
-
Learn the project's env contract. Read
cypress.config.ts(andcypress/support/e2e.ts) to see which.env/environment keys the project reads and how they map into Cypress. Typical keys:C8Y_TENANT,C8Y_BASEURL,C8Y_USERNAME,C8Y_PASSWORD,C8Y_SHELL_TARGET, plus project-specific ones for the dev-server URL and a test device ID. Key names in.envoften differ from what specs read viaCypress.env(...)— the config file is the authority on that mapping.Verify
.envexists and contains the required keys. Check key names only (cut -d= -f1 .env) — never print values..envvalues are not exported to your shell; to use one in a command, extract it into a variable first:CYURL=$(grep '^<DEV_SERVER_URL_KEY>=' .env | cut -d= -f2- | tr -d '\r') -
Dev server is up:
curl -s -o /dev/null -w "%{http_code}" "$CYURL/apps/<C8Y_SHELL_TARGET value>/index.html"must return 200. If not, ask the user to start it (usuallynpm run start); do not start it yourself unless asked. -
Tenant ID matches the base URL. This is a frequent silent breaker:
.envfiles get copied between environments. Verify with the public endpoint:curl -s "$C8Y_BASEURL/tenant/loginOptions"The
selflinks reveal the real tenant ID (e.g.https://t12345.…). If it differs fromC8Y_TENANT, fix.env. Symptom of a mismatch: login fails with HTTP 400"A tenant is required in context!". -
Device ID exists (only if the test needs a device context):
curl -s -o /dev/null -w "%{http_code}" -u "$C8Y_USERNAME:$C8Y_PASSWORD" "$C8Y_BASEURL/inventory/managedObjects/<device id>"On 404, find a real one:
GET /inventory/managedObjects?fragmentType=c8y_IsDevice&pageSize=3and update.env. -
Dependencies are pre-installed (
cumulocity-cypress, and ideallycypress-terminal-reportfor request traces). Do not install anything new without asking.
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.
- 8d ago First seen · 223 lines · 87 tokens per session scan A c45384fd467b
write-e2e-cumulocity-cypress-test is a skill published in the GitHub repository Cumulocity-IoT/cumulocity-skills (5 stars, last pushed 11d ago), licensed Apache-2.0. It adds 87 tokens to every session and 4,215 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other skills, from other repositories
browse
Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).
playwright-cli
A command-line tool for controlling Chromium, Firefox, and WebKit browsers, including navigation, page interaction, screenshots, PDFs, and recorded actions.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
create-verification-skill
Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".
browser-qa
A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.
test-electron-app
Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…