Borrowing it
Nothing to install: this file belongs to rodydavis/signals.dart. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rodydavis/signals.dart/main/.agents/skills/jaspr-js-interop/SKILL.mdgit clone --depth 1 https://github.com/rodydavis/signals.dartWrote 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/rodydavis/signals.dart/jaspr-js-interop)<a href="https://agentmods.dev/skills/rodydavis/signals.dart/jaspr-js-interop"><img src="https://agentmods.dev/badge/skills/rodydavis/signals.dart/jaspr-js-interop/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/rodydavis/signals.dart/jaspr-js-interop"><img src="https://agentmods.dev/badge/skills/rodydavis/signals.dart/jaspr-js-interop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00040 | $0.00800 |
| Opus 5 | $0.00020 | $0.00400 |
| Sonnet 5 | $0.00008 | $0.00160 |
| Haiku 4.5 | $0.00004 | $0.00080 |
Grade A, and why
jaspr-js-interop 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rules for JS Interop
Dart makes accessing JavaScript simple using modern js_interop. Since Jaspr applications can be compiled to JavaScript or WebAssembly, utilizing Dart's explicit js_interop mechanism is required when you need to interface with raw JS variables, functions, or libraries.
1. Import Strategy
- Rule 1: In server or static mode, you MUST ALWAYS import
package:universal_web/js_interop.dart. It acts as a safe stub during server-side processing without breaking compilation. - Rule 2: In server or static mode, you MUST wrap any JS Interop execution in an
if (kIsWeb) { ... }block to avoid throwing exceptions on the server during pre-rendering. - Rule 3: In client mode, you can directly import
dart:js_interop. - Rule 4: For standard browser APIs (like
window.innerHeight,document, DOM nodes), usepackage:universal_web/web.dart(orpackage:web/web.dartin client mode) instead of manually creatingjs_interopwrappers.
Usage Examples
Top Level Functions
To bind directly to a globally available JS function or object, use @JS():
@JS()
external void alert(JSString message);
void showAlert() {
if (kIsWeb) {
// Make sure to convert Dart String types using .toJS
alert('Hello from Dart!'.toJS);
}
}
Wrapping Third-Party JS Libraries
To interact with specific Javascript Objects from external libraries, map an extension type wrapping JSObject.
// Suppose there is a JS library available via `window.Analytics`
extension type Analytics._(JSObject _) implements JSObject {
external void trackPage(JSString pageName);
external JSNumber getVisitCount();
}
@JS('Analytics')
external Analytics get analytics;
void logCurrentPage() {
if (kIsWeb) {
analytics.trackPage('Home'.toJS);
// Convert Javascript primitives back to Dart types using `.toDart`
int visits = analytics.getVisitCount().toDartInt;
print('Total visits: $visits');
}
}
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.
- 11d ago First seen · 100 lines · 40 tokens per session scan A 6b6ec89124ca
jaspr-js-interop is a skill published in the GitHub repository rodydavis/signals.dart (814 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 800 once invoked, about $0.0002 per session on Opus 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-30.
Other skills, from other repositories
architecture-feature-first
Use when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.
flutter-use-column-row-first
Use when building any Flutter screen or component to choose responsive Row, Column, Expanded, Flexible, and Spacer layouts before fixed-size or coordinate-based alternatives.
flutter-mcp-toolkit-maintain-web
Maintains fluttertestapp and intentcall web targets (Chrome, web codegen, WebMCP bootstrap, web-showcase, webmcp verify). Use when editing web/index.html, agentmanifest.json, intentcallwebmcp.generated.js, web platform sync, Chrome dogfood, or WebMCP modelContext.
flutter-expert
Expert in Flutter SDK, Dart, widgets, state management, and cross-platform mobile development. Use when the user mentions mobile, Dart, cross platform, UI, or state management, or when the task involves Flutter Architecture, Widget Fundamentals, State Management Approaches, or Lifecycle Methods.
building-jaspr-web-apps
Builds SEO-friendly web applications with Dart using the Jaspr framework. Use when creating Dart-based websites, blogs, or landing pages requiring semantic HTML output; implementing server-side rendering (SSR) or static site generation (SSG); adding Tailwind CSS via jasprtailwind; routing with jasprrouter; testing…
generating-flutter-ui
Generative UI (GenUI) for Flutter using AI models like Google Gemini, Anthropic Claude, or OpenAI via the genui package. Use this skill when building dynamic AI-driven interfaces, conversational UI flows, server-rendered screen layouts, LLM-powered dashboards, chat-based UI generation, or implementing prompt-to-UI…