Skip to content
TrustedSkillsbeta
Back to all skills

Cairo Optimization

Listed
keep-starknet-strange·vlatest·other·MIT

Analyzes Cairo code to identify gas optimization opportunities, suggesting improvements for Starknet transaction efficiency.

Install on your platform

Showing Claude Code. One command installs this skill into any of the agents below.

  1. 1

    Run this in your project

    terminal
    $ npx skills add keep-starknet-strange/starknet-agentic --skill cairo-optimization --full-depth -a claude-code
  2. Uses the open-source skills CLI and needs Node.js. Add -g to install it for your user instead of this project.

What we know about this skill

Publisher

keep-starknet-strange

Taken from the source listing. We haven't verified who controls this account.

Install target

Live repository

Not pinned. Installing fetches whatever the repository holds at the time you run the command.

No human has reviewed this code. The checks below are a static scan of the files at one commit — nobody has run this skill or judged whether it works. A skill runs with whatever access you give your agent, so read the source before you install it.

Automated safety checks

scanned

This skill failed 2 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.

  • No undeclared network calls: failed

    Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: docs.swmansion.com.

    Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.

    Hosts contacted

    docs.swmansion.comundeclaredraw.githubusercontent.comsource host

    What it found

    • skills/cairo-optimization/references/profiling.md:153contacts docs.swmansion.com
      curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
  • No pipe-to-shell installers: failed

    Runs code fetched at install time in 3 places.

    No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.

    What it found

    • skills/cairo-optimization/references/profiling.md:153remote script piped into a shell
      curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
    • skills/cairo-optimization/references/profiling.md:162remote script piped into a shell
      curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh
    • skills/cairo-optimization/references/profiling.md:177remote script piped into a shell
      curl -L https://raw.githubusercontent.com/software-mansion/cairo-profiler/main/scripts/install.sh | sh
  • Declares what it does: passed

    SKILL.md parses and declares a name and a description.

    SKILL.md exists, its frontmatter parses, and it declares a name and a description.

  • No obfuscated payloads: passed

    No encoded or obfuscated payloads.

    No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.

  • No credential access: passed

    Reads no keys, tokens, keychains or credential files.

    Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.

  • Pinned to a commit: passed

    Scanned keep-starknet-strange/starknet-agentic at 1da75f2f3b.

    The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.

Scanned
10 files, 1,731 lines
This is a static scan, not a review. It reads the skill's files; it does not run them, and it cannot tell you whether the skill is any good or whether the code does what its description says. A skill runs with whatever access you give your agent.
What each check looks for →

About this skill

What it does

This skill optimizes Cairo code for StarkNet, focusing on gas efficiency. It analyzes Cairo programs and suggests changes to reduce gas consumption without compromising functionality. The optimization process includes identifying redundant operations, simplifying logic, and leveraging specific StarkNet features for improved performance.

When to use it

  • Deploying contracts: Optimize contract code before deployment to minimize transaction costs.
  • Reducing transaction fees: Lower gas usage for user interactions with deployed smart contracts.
  • Improving scalability: Enhance the overall efficiency of StarkNet applications by reducing resource consumption.
  • Analyzing existing code: Understand potential areas for optimization in legacy Cairo projects.

Key capabilities

  • Gas cost analysis
  • Redundant operation identification
  • Logic simplification suggestions
  • StarkNet-specific optimization techniques

Example prompts

  • "Optimize this Cairo contract for gas efficiency: [contract code]"
  • "Analyze the gas costs of this function and suggest improvements: [function code]"
  • "Can you identify any redundant operations in this Cairo program?"

Tips & gotchas

The skill requires access to the Cairo code being optimized. While it provides suggestions, manual review and testing are crucial to ensure optimizations don't introduce unintended behavior or break existing functionality.