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.
git clone --depth 1 https://github.com/keska-labs/enterprise-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/rules/keska-labs/enterprise-skills/webview-ui)<a href="https://agentmods.dev/rules/keska-labs/enterprise-skills/webview-ui"><img src="https://agentmods.dev/badge/rules/keska-labs/enterprise-skills/webview-ui/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/rules/keska-labs/enterprise-skills/webview-ui"><img src="https://agentmods.dev/badge/rules/keska-labs/enterprise-skills/webview-ui.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.00000 | $0.00289 |
| Opus 5 | $0.00000 | $0.00144 |
| Sonnet 5 | $0.00000 | $0.00058 |
| Haiku 4.5 | $0.00000 | $0.00029 |
Grade A, and why
webview-ui 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- Bundled as **browser** code (`webpack` entry [`webview-ui/main.tsx`](webview-ui/main.tsx) → `dist/webview.js`). No `fs`, `path`, `child_process`, or direct `vscode` module imports. What it actually says
Webview UI (webview-ui/)
Runtime
- Bundled as browser code (
webpackentrywebview-ui/main.tsx→dist/webview.js). Nofs,path,child_process, or directvscodemodule imports.
VS Code bridge
- Obtain the API once via
useVsCodeApi→acquireVsCodeApi()(injected by VS Code at runtime). - Send commands/state with
postMessage. Message shapes must matchwebview-ui/types/messages.ts.
React
- Functional components only; React 19. Keep side effects in hooks; subscribe to extension messages in components that own the listener lifecycle.
Styles
- Import CSS from
webview-ui/styles/; webpack usesstyle-loader+css-loader.
Tests
- Use
@testing-library/reactwith jsdom;vscodeis not available—mock at the hook boundary or test pure components with injected callbacks where needed.
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 · 31 lines · 0 tokens per session scan A 397f07304a82
webview-ui is a cursor rule published in the GitHub repository keska-labs/enterprise-skills (7 stars, last pushed 20d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 289 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
nextjs-react-tailwind-cursorrules-prompt-file
Cursor rules for Next.js development with React and Tailwind CSS integration.
react-components-creation-cursorrules-prompt-file
Cursor rules for React component creation and development.
react-chakra-ui-cursorrules-prompt-file
Cursor rules for React development with Chakra UI integration.
react-styled-components-cursorrules-prompt-file
Cursor rules for React development with Styled Components integration.
chakra-ui-best-practices
A set of rules for building React interfaces with Chakra UI, a component library for styled and accessible user interfaces. It covers themes, responsive layouts, accessibility, performance, and reusable components.
chakra-ui---responsive-design
Guidance for making Chakra UI layouts adapt to different screen sizes. It uses responsive style values, breakpoints, layout components, and conditional display rules for phones, tablets, and desktops.