orkid: Skill for Claude Code

.claude/skills/orkcore-python/SKILL.md

orkcore-python is a skill for Claude Code from tweakoz/orkid. It costs 66 tokens per session (2,049 once invoked), scanned A, original, MIT.

Reference guidance for connecting C++ code to Python in the Orkid project using pybind11, a library for creating Python bindings. It also covers data conversion and safe interaction with Python's interpreter lock.

In plain words
What is it for?
Use it to work on Python extensions, type codecs, VarMap and math bindings, raw pointers, module setup, and GIL-safe wrappers.
Why use it?
It helps developers follow the project's established patterns when exposing C++ types and functions to Python.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is tweakoz/orkid's own configuration. It tells Claude Code how to work on orkid itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything orkid configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tweakoz/orkid. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tweakoz/orkid/develop/.claude/skills/orkcore-python/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tweakoz/orkid

Made for: Claude Code.

Wrote 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.

agentmods badge for orkcore-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-python/github.svg)](https://agentmods.dev/skills/tweakoz/orkid/orkcore-python)
Your own site
<a href="https://agentmods.dev/skills/tweakoz/orkid/orkcore-python"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-python/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.

agentmods 80×15 button for orkcore-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/tweakoz/orkid/orkcore-python"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,049 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.02049
Opus 5.5 $0.00026 $0.00820
Sonnet 5.5 $0.00013 $0.00410
Haiku 4.5 $0.00007 $0.00205

Measured 2mo ago against content hash ba36f7889cb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orkcore-python scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

return cat->fetch(id);
.claude/skills/orkcore-python/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Orkid Python Binding System Reference

When answering questions about Python bindings in orkid, consult these files.

Key Files

Component Location
Type Codec Header ork.core/inc/ork/python/pycodec.h
Type Codec Impl ork.core/inc/ork/python/pycodec.inl
pybind11 Adapter ork.core/inc/ork/python/pycodec_pybind11.inl
GIL-Safe Wrapper ork.core/inc/ork/python/gil_safe_pyobj.h
Unmanaged Pointers ork.core/inc/ork/python/wraprawpointer.inl
VarMap Bindings ork.core/inc/ork/python/common_bindings/pyext_varmap.inl
Math Bindings ork.core/inc/ork/python/common_bindings/pyext_math_la.inl
CrcString Bindings ork.core/inc/ork/python/common_bindings/pyext_crcstring.inl
Core pyext.h ork.core/pyext/pyext.h
Lev2 pyext.h ork.lev2/pyext/src/pyext.h
Module Init (lev2) ork.lev2/pyext/src/pyext.cpp
UI Bindings ork.lev2/pyext/src/pyext_ui.cpp
Toolbar Bindings ork.lev2/pyext/src/pyext_ui_toolbar.cpp

Architecture Overview

Type Codec (pb11_typecodec_t)

Central type conversion between C++ and Python:

auto type_codec = python::pb11_typecodec_t::instance();

// Encode C++ → Python
py::object py_val = type_codec->encode(svar128_value);

// Decode Python → C++
svar128_t cpp_val = type_codec->decode(py_object);

// Register custom type
type_codec->registerStdCodec<my_ptr_t>(my_pybind_type);

Module Initialization Pattern

void pyinit_my_module(py::module& parent_module) {
  auto type_codec = python::pb11_typecodec_t::instance();
  
  auto my_type = py::class_<MyClass, myclass_ptr_t>(parent_module, "MyClass")
    .def(py::init<>())
    .def("method", ...)
    .def_property("prop", getter, setter);
  
  type_codec->registerStdCodec<myclass_ptr_t>(my_type);
}

Factory Patterns (Widget Creation)

Three standard factories on UI widget types:

// wfactory — standalone widget (for overlays, manual composition)
.def_static("wfactory", [type_codec](py::list py_args) -> widget_ptr_t {
  auto decoded_args = type_codec->decodeList(py_args);
  auto name = decoded_args[0].get<std::string>();
  return std::make_shared<MyWidget>(name);
})

// uifactory — add to layout group (returns layout item)
.def_static("uifactory", [type_codec](uilayoutgroup_ptr_t lg, py::list py_args) -> uilayoutitem_ptr_t {
  auto decoded_args = type_codec->decodeList(py_args);
  auto name = decoded_args[0].get<std::string>();
  return lg->makeChild<MyWidget>(name).as_shared();
})

Read the full file on GitHub · 215 lines

Changes

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.

  1. 2mo ago First seen · 215 lines · 66 tokens per session scan A ba36f7889cb1

Subscribe to this mod's changes

orkcore-python is a skill published in the GitHub repository tweakoz/orkid (35 stars, last pushed 2mo ago), licensed MIT. It adds 66 tokens to every session and 2,049 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

orkcore-python compared with skills from other repositories

orkcore-python next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orkcore-pythontweakoz/orkidSkill352mo agoMITA66Claude Code
fastapi-patternsaffaan-m/ECCSkill298k4d agoMITA35Claude Code, Kiro
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
azure-mgmt-botservice-pymicrosoft/skillsSkill3.2kyesterdayMITA59Claude Code
azure-messaging-webpubsubservice-pymicrosoft/skillsSkill3.2kyesterdayMITA64Claude Code
azure-messaging-webpubsubservice-pybenjaminasterA/antigravity-awesome-skillsSkill461yesterdayMITA0Claude Code, Codex
azure-appconfiguration-pybenjaminasterA/antigravity-awesome-skillsSkill461yesterdayMITA0Claude Code, Codex