Borrowing it
Nothing to install: this file belongs to l3utterfly/layla-sdk. 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/l3utterfly/layla-sdk/main/.agents/layla-sdk/SKILL.mdgit clone --depth 1 https://github.com/l3utterfly/layla-sdkWrote 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/l3utterfly/layla-sdk/layla-sdk)<a href="https://agentmods.dev/skills/l3utterfly/layla-sdk/layla-sdk"><img src="https://agentmods.dev/badge/skills/l3utterfly/layla-sdk/layla-sdk/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/l3utterfly/layla-sdk/layla-sdk"><img src="https://agentmods.dev/badge/skills/l3utterfly/layla-sdk/layla-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 5 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 120 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Rogue Agent · line 505 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Rogue Agent · line 525 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Rogue Agent · line 531 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
- medium Rogue Agent · line 540 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.12165 |
| Opus 5.5 | $0.00035 | $0.04866 |
| Sonnet 5.5 | $0.00017 | $0.02433 |
| Haiku 4.5 | $0.00009 | $0.01217 |
Grade A, and why
layla-sdk 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 1mo 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 — 1,311 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Layla SDK
Use @layla-network/sdk when building a third-party Layla mini-app that runs inside the Layla WebView and needs to call the on-device Layla host.
The packaged skill is self-contained. Use the bundled references first:
- Read
references/sdk-api.mdfor SDK imports, method signatures, examples, exported types, mock usage, abort behavior, and error handling. - Read
references/types.d.tswhen you need a field name or the exact shape of a type. It is the generated TypeScript declaration file for the packaged SDK version and is authoritative — never guess an object shape or infer one from an example when this file is available. - Read
references/mini-apps-overview.mdfor mini-app packaging, metadata,index.htmlversusindex.url, WebView runtime expectations, and troubleshooting.
If the bundled reference appears stale and internet access is available, check the public package source or release docs for the installed package version:
https://github.com/l3utterfly/layla-sdk- Prefer tagged release source over the default branch when the user's project has a specific installed version.
Runtime Rules
Run SDK calls inside the Layla WebView. The host injects the React Native WebView bridge. If that bridge is unavailable, SDK requests reject with LaylaBridgeUnavailableError.
The one non-WebView environment is task.js: an optional background task script at the mini-app root that the host runs in a QuickJS runtime with the SDK already injected as a global layla instance. See "Background Tasks (task.js)" below.
Do not use this SDK as an ordinary browser HTTP client. There is no API key, base URL, or fetch endpoint to configure. The SDK sends bridge messages to the Layla host.
Layla SDK is designed to work with local LLMs running on device, so response times can be slow. When building mini-apps, prioritize streaming APIs and show appropriate loading, thinking, and progress states instead of leaving the UI idle while a request runs.
For local browser development outside Layla, use installLaylaMock(...) before the first SDK call when the app needs SDK responses during development.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · +54 lines · +6 tokens per session b376759e559a
- 1mo ago Changed · +48 lines · +4 tokens per session fb6a529816aa
- 1mo ago Changed · +76 lines · +6 tokens per session 202232e7906e
- 1mo ago Changed · +1 lines 0d192f0ccc92
- 1mo ago Changed · +96 lines 7a7c64d6e246
- 1mo ago Changed · +29 lines · -134 tokens per session fad01b3e14e6
- 2mo ago Changed · +63 lines · +20 tokens per session 53c58ce18937
- 2mo ago First seen · 944 lines · 185 tokens per session scan A b413b9cbeb58
layla-sdk is a skill published in the GitHub repository l3utterfly/layla-sdk (34 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 87 tokens to every session and 12,165 once invoked, about $0.0003 per session on Opus 5.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.
layla-sdk compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| layla-sdkl3utterfly/layla-sdk | Skill | 34 | 1mo ago | Apache-2.0 | A | 87 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.0k | yesterday | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 252 | yesterday | MIT | A | 106 | Claude Code |