Skip to content
Back to skills

Cairo Library Calls

ASecurity

Explain Starknet library calls that execute code from another class using class hash; use when a request involves library dispatchers, class hashes, or library_call_syscall.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cairo-library-calls --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Library Calls?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairo Library Calls
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-library-calls/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-library-calls)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairo-library-calls
description: Explain Starknet library calls that execute code from another class using class hash; use when a request involves library dispatchers, class hashes, or library_call_syscall.
---

# Cairo Library Calls

## Overview
Explain how to execute code from another class in the caller context using library calls.

## Quick Use
- Read `references/library-calls.md` before answering.
- Distinguish contract calls from library calls (context and storage).
- Use a LibraryDispatcher with a class hash when possible.

## Response Checklist
- Use library calls when you need to reuse logic without deploying another instance.
- Mention that library calls run in the caller's storage context.
- Use Serde for calldata and return data when using low-level syscalls.

## Example Requests
- "How do I call a class by hash from a contract?"
- "What is the difference between library_call and contract_call?"
- "How do I use library_call_syscall directly?"

Files in this skill

  • SKILL.md979 B
  • references/library-calls.md440 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…