Agent skill

Polyglot Rust C

by lazyFrogLOL in lazyFrogLOL/Harness_Engineering

Guidance for creating polyglot source files that compile and run correctly as both Rust and C/C++ programs.

No licenceAuto-check passed

Install Polyglot Rust C

skills CLI
$ npx skills add lazyFrogLOL/Harness_Engineering --skill polyglot-rust-c -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lazyFrogLOL/Harness_Engineering polyglot-rust-c --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lazyFrogLOL/Harness_Engineering.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/polyglot-rust-c .claude/skills/polyglot-rust-c && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
polyglot-rust-c
GitHub stars
128
Token cost
~1.6k tokens
SKILL.md length
662 words
Files
1
Skills in repo
32
Repo updated
First seen
Licence
None found

At a glance

Guidance for creating polyglot source files that compile and run correctly as both Rust and C/C++ programs.

  • Works in 11 steps: Set Up Environment → Write Minimal Skeleton → Compile and Test → …
  • SKILL.md covers Overview, Critical Approach: Iterative…, Polyglot Mechanisms and Implementation Workflow, plus 4 more sections
  • Calls rustc

What it does

Polyglot Rust C is an agent skill from lazyFrogLOL/Harness_Engineering. Guidance for creating polyglot source files that compile and run correctly as both Rust and C/C++ programs. This skill should be used when asked to create code that is valid in multiple programming languages simultaneously, particularly Rust and C/C++ polyglots.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Rust and C++.

Example prompts

  • “/polyglot-rust-c”

Workflow steps

11 steps, taken from the step headings in SKILL.md.

  1. Set Up Environment
  2. Write Minimal Skeleton
  3. Compile and Test
  4. Iterate on Errors
  5. Add Actual Logic
  6. Overthinking Without Testing
  7. Forgetting to Use Tools
  8. Not Tracking Attempts
  9. Ignoring Compiler Error Messages
  10. Overcomplicating the Structure
  11. Function Definition Differences

What it can do on your machine

Read from SKILL.md and the folder at commit cae3b25. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rustc

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Polyglot Rust C loads about 1.6k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 662 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 662 words (~1,561 tokens).

“This skill provides guidance for creating polyglot source files—single files that compile and execute correctly as programs in multiple languages. The focus is on Rust and C/C++ polyglots, which leverage comment syntax differences and preprocessor directives to hide language-specific code…”

— opening of SKILL.md by lazyFrogLOL
name
polyglot-rust-c

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/polyglot-rust-c of lazyFrogLOL/Harness_Engineering.

Open the folder on GitHubat commit cae3b25

Compare with similar skills

Polyglot Rust C next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Polyglot Rust C compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Polyglot Rust C this skilllazyFrogLOL/Harness_Engineering128—~1.6kAutomated safety check: PassNone
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
SeekDB Code Reviewoceanbase/seekdb3.1k—~2.1kAutomated safety check: PassApache-2.0
Fory Version Bumpapache/fory4.6k—~1.1kAutomated safety check: PassApache-2.0
Add Grammarafnanenayet/diffsitter2.4k—~1.9kAutomated safety check: NotesMIT
Fory Performance Optimizationapache/fory4.6k—~2.2kAutomated safety check: PassApache-2.0

Similar skills

  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • SeekDB Code Review

    oceanbase/seekdb

    Reviews seekdb pull requests and diffs for real defects in correctness, resources, concurrency, security and tests, reporting only Blocker or Major findings.

    3.1k GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Bump Apache Fory release or post-release development versions across Java, Kotlin, Scala, Python, Rust, Go, C++, C, Dart, JavaScript, Swift, integration tests, examples, and source docs.

    4.6k GitHub stars~1.1k tokensUpdated yesterday
    MobileAuto-check passed
  • Add Grammar

    afnanenayet/diffsitter

    Step-by-step guide for adding a new tree-sitter language grammar to diffsitter.

    2.4k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Run profile-driven bottleneck optimization across Apache Fory implementations (Java, C++, Python/Cython, Go, Rust, Swift, C, JavaScript/TypeScript, Dart, Kotlin, Scala).

    4.6k GitHub stars~2.2k tokensUpdated yesterday
    MobileAuto-check passed
  • Crossbind

    crossbind/crossbind

    A skill your agent uses when a user wants to call C++ or Rust from JavaScript or TypeScript; add a native library such as GDAL, SQLite, OpenSSL, GEOS or PROJ to a browser, Node.js, Cloudflare Worker…

    148 GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed

More from lazyFrogLOL/Harness_Engineering

All 32 skills in this repo
  • Chess Best Move

    lazyFrogLOL/Harness_Engineering

    Guide for analyzing chess positions from images and determining optimal moves.

    128 GitHub stars~1.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Crack 7z Hash

    lazyFrogLOL/Harness_Engineering

    This skill provides guidance for cracking 7z archive password hashes.

    128 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed
  • Distribution Search

    lazyFrogLOL/Harness_Engineering

    Guidance for finding probability distributions that satisfy specific statistical constraints such as KL divergence targets, entropy requirements, or moment conditions.

    128 GitHub stars~2.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Feal Linear Cryptanalysis

    lazyFrogLOL/Harness_Engineering

    This skill provides guidance for FEAL cipher linear cryptanalysis tasks.

    128 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Gcode To Text

    lazyFrogLOL/Harness_Engineering

    Decode and interpret text content from G-code files by analyzing toolpath geometry and coordinate patterns.

    128 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Gpt2 Codegolf

    lazyFrogLOL/Harness_Engineering

    Guidance for implementing neural network inference (like GPT-2) under extreme code size constraints.

    128 GitHub stars~1.8k tokensUpdated 4 mo ago
    Auto-check passed

Works with

Questions about Polyglot Rust C

What does Polyglot Rust C do?

Guidance for creating polyglot source files that compile and run correctly as both Rust and C/C++ programs. Polyglot Rust C is an agent skill from lazyFrogLOL/Harness_Engineering. Guidance for creating polyglot source files that compile and run correctly as both Rust and C/C++ programs.

How do I install Polyglot Rust C in Claude Code?

Run `npx skills add lazyFrogLOL/Harness_Engineering --skill polyglot-rust-c -a claude-code`. Or copy the skill folder (skills/polyglot-rust-c in lazyFrogLOL/Harness_Engineering) into .claude/skills/polyglot-rust-c in your project. Claude Code loads it when a task matches its description.

How do I install Polyglot Rust C in Codex?

Run `npx skills add lazyFrogLOL/Harness_Engineering --skill polyglot-rust-c -a codex`. Or copy the skill folder (skills/polyglot-rust-c in lazyFrogLOL/Harness_Engineering) into .agents/skills/polyglot-rust-c in your project. Codex loads it when a task matches its description.

Can I use Polyglot Rust C in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lazyFrogLOL/Harness_Engineering --skill polyglot-rust-c -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/polyglot-rust-c, .gemini/skills/polyglot-rust-c, .github/skills/polyglot-rust-c and .opencode/skills/polyglot-rust-c in your project.

What does Polyglot Rust C need to run?

Going by SKILL.md and its folder, Polyglot Rust C needs the command-line tools its instructions call (rustc).

Does Polyglot Rust C access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Polyglot Rust C safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Polyglot Rust C use?

No licence was found for Polyglot Rust C or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Polyglot Rust C use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Polyglot Rust C?

Skills that share tags, products or a category with Polyglot Rust C: Fory Release (apache/fory, 4.6k stars), SeekDB Code Review (oceanbase/seekdb, 3.1k stars), Fory Version Bump (apache/fory, 4.6k stars) and Add Grammar (afnanenayet/diffsitter, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Polyglot Rust C?

lazyFrogLOL (a GitHub user) maintains it in lazyFrogLOL/Harness_Engineering, which has 128 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on May 18, 2026.

Source: lazyFrogLOL/Harness_Engineering on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.