Agent skill

Add Op

by hw-native-sys in hw-native-sys/pypto

Add new operator definitions to PyPTO across all layers (C++, Python IR, Python DSL, tests, codegen, docs).

Custom licenceAuto-check passedDevelopment

Install Add Op

skills CLI
$ npx skills add hw-native-sys/pypto --skill add-op -a claude-code

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

GitHub CLI
$ gh skill install hw-native-sys/pypto add-op --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/hw-native-sys/pypto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-op .claude/skills/add-op && 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
add-op
GitHub stars
126
Token cost
~2k tokens
SKILL.md length
835 words
Files
2
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Add new operator definitions to PyPTO across all layers (C++, Python IR, Python DSL, tests, codegen, docs).

  • The user asks to add a new op
  • SKILL.md covers Overview, Task Tracking, Phase A: Tile Op and Phase B: Tensor Op + Conversion, plus 2 more sections
  • Calls python3
  • Define a new operator

What it does

Add Op is an agent skill from hw-native-sys/pypto. Add new operator definitions to PyPTO across all layers (C++, Python IR, Python DSL, tests, codegen, docs). Covers tile ops, tensor ops, tensor-to-tile conversion, and codegen registration. Use when the user asks to add a new op, define a new operator, implement a new tile/tensor operation, or extend the operator system.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

It sits in Development, covering Project scaffolding. It works with C++ and Python. The repository describes itself as: A community-driven pypto implementation.

When your agent uses it

  • The user asks to add a new op
  • Define a new operator
  • Implement a new tile/tensor operation
  • Extend the operator system

Example prompts

  • “/add-op”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 5f71449. 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:

    • python3

    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

Add Op loads about 2k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 835 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 835 words (~2,050 tokens).

“Adding a new op follows a layered workflow with three phases:”

— opening of SKILL.md by hw-native-sys, Custom licence
name
add-op

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .claude/skills/add-op of hw-native-sys/pypto.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 5f71449

Compare with similar skills

Add Op 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.

Add Op compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Op this skillhw-native-sys/pypto126—~2kAutomated safety check: PassCustom licence
Tilelang Ascend Tile APItile-ai/tilelang-ascend400—~1.5kAutomated safety check: PassMIT
Audit AI Codejxnl/personal-monorepo-template562—~1.7kAutomated safety check: PassNone
State Snapshot InstrumenterArabelaTso/Skills-4-SE253—~2.2kAutomated safety check: PassApache-2.0
Code Repair Generation ComboArabelaTso/Skills-4-SE253—~1.3kAutomated safety check: PassApache-2.0
Failure Oriented InstrumentationArabelaTso/Skills-4-SE253—~2.1kAutomated safety check: PassApache-2.0

Similar skills

  • Tilelang Ascend Tile API

    tile-ai/tilelang-ascend

    TileLang-Ascend 新增 Ascend 专属 T.tile.xxx 小 API 的端到端开发流程。用户要求新增、封装、暴露、实现或测试 ascendtile.py 中的 T.tile API / Ascend tile primitive 时必须使用本 skill,尤其适用于需要同时打通 Python 前端、C++ lowering/codegen、Ascend C…

    400 GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Audit AI Code

    jxnl/personal-monorepo-template

    Audit, de-slop, parameterize, modularize, or safely clean up AI-generated or AI-shaped backend/general code.

    562 GitHub stars~1.7k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • State Snapshot Instrumenter

    ArabelaTso/Skills-4-SE

    Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Code Repair Generation Combo

    ArabelaTso/Skills-4-SE

    Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs.

    253 GitHub stars~1.3k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Failure Oriented Instrumentation

    ArabelaTso/Skills-4-SE

    Selectively instruments code to capture runtime data for debugging failures and bugs.

    253 GitHub stars~2.1k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.

    3.7k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed

More from hw-native-sys/pypto

  • Compare Codegen

    hw-native-sys/pypto

    Compare codegen output (.pto files and pass dumps) between origin/main and the current branch for a given test case.

    126 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed
  • Code Review

    hw-native-sys/pypto

    Review code changes against PyPTO project standards before committing.

    126 GitHub stars~1.8k tokensUpdated 8 days ago
    Auto-check: notes
  • Testing

    hw-native-sys/pypto

    Verify testing coverage and run tests for PyPTO project. An agent skill from hw-native-sys/pypto.

    126 GitHub stars~1.1k tokensUpdated 8 days ago
    Auto-check passed
  • Weekly Changelog

    hw-native-sys/pypto

    Generate a weekly changelog markdown file summarizing external API and feature changes from git commits in a date range.

    126 GitHub stars~2.1k tokensUpdated 8 days ago
    Auto-check passed

Works with

Questions about Add Op

What does Add Op do?

Add new operator definitions to PyPTO across all layers (C++, Python IR, Python DSL, tests, codegen, docs). Add Op is an agent skill from hw-native-sys/pypto. Add new operator definitions to PyPTO across all layers (C++, Python IR, Python DSL, tests, codegen, docs).

When should I use Add Op?

Add Op fits situations like: the user asks to add a new op; define a new operator; implement a new tile/tensor operation; extend the operator system.

How do I install Add Op in Claude Code?

Run `npx skills add hw-native-sys/pypto --skill add-op -a claude-code`. Or copy the skill folder (.claude/skills/add-op in hw-native-sys/pypto) into .claude/skills/add-op in your project. Claude Code loads it when a task matches its description.

How do I install Add Op in Codex?

Run `npx skills add hw-native-sys/pypto --skill add-op -a codex`. Or copy the skill folder (.claude/skills/add-op in hw-native-sys/pypto) into .agents/skills/add-op in your project. Codex loads it when a task matches its description.

Can I use Add Op 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 hw-native-sys/pypto --skill add-op -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-op, .gemini/skills/add-op, .github/skills/add-op and .opencode/skills/add-op in your project.

What does Add Op need to run?

Going by SKILL.md and its folder, Add Op needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Add Op 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 Add Op 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 Add Op use?

Add Op has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Add Op use?

About 2k tokens (SKILL.md is roughly 8.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 Add Op?

Skills that share tags, products or a category with Add Op: Tilelang Ascend Tile API (tile-ai/tilelang-ascend, 400 stars), Audit AI Code (jxnl/personal-monorepo-template, 562 stars), State Snapshot Instrumenter (ArabelaTso/Skills-4-SE, 253 stars) and Code Repair Generation Combo (ArabelaTso/Skills-4-SE, 253 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Op?

hw-native-sys (a GitHub organization) maintains it in hw-native-sys/pypto, which has 126 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 30, 2026.

Source: hw-native-sys/pypto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.