clipper1

clipper1 is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 46 tokens per session (2,352 once invoked), scanned A, original, MIT.

An older polygon-processing library for combining, cutting, intersecting and resizing 2D shapes. It uses whole-number coordinates, so decimal coordinates must be multiplied by a scale factor first.

In plain words
What is it for?
Use it to union, intersect, subtract or simplify polygons and create outlines at a chosen distance in C++, C#, Delphi, JavaScript or Python. For new projects, the supplied guidance recommends Clipper2 instead.
Why use it?
It helps legacy software perform reliable shape calculations when that software already depends on the Clipper 1.x programming interface. It avoids having to rewrite that code immediately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **新项目优先使用 [Clipper2](../clipper2/SKILL.md)**,其性能与 API 均优于 Clipper1。本 SKILL 主要用于维护遗留代码。.

Good fit Use it to union, intersect, subtract or simplify polygons and create outlines at a chosen distance in C++, C#, Delphi, JavaScript or Python. For new projects, the supplied guidance recommends Clipper2 instead.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills
agentmods
npx agentmods add skills/znlgis/opengis-skills/clipper1

Made for: Claude Code, Codex.

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 clipper1

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/clipper1"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/clipper1.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,352 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00046 $0.02352
Opus 5 $0.00023 $0.01176
Sonnet 5 $0.00009 $0.00470
Haiku 4.5 $0.00005 $0.00235

Measured yesterday against content hash 3cefef4ae2a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

clipper1 scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cad/clipper1/SKILL.md · 247 lines

How it starts

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

项目地址: https://github.com/AngusJohnson/Clipper

官方文档: http://www.angusj.com/delphi/clipper.php

NuGet: Clipper(多个第三方移植版)

许可证: Boost Software License 1.0

概述

Clipper1 主要特征:

  • 整数算法IntPoint),通过 scale 系数模拟浮点
  • 核心 APIClipperClipperOffsetClipperBase
  • 支持:布尔运算 + 偏移 + 多边形简化
  • 多语言移植:C++(含 Header-only)、C#、Delphi/Pascal、JS、Python

新项目优先使用 Clipper2,其性能与 API 均优于 Clipper1。本 SKILL 主要用于维护遗留代码。


安装

# C#
dotnet add package Clipper

# JavaScript
npm install js-clipper          # 或 clipper-lib

# Python
pip install pyclipper

C++ 通常直接拷贝 clipper.hpp/.cpp 到工程。


核心数据结构

using ClipperLib;
using IntPoint = ClipperLib.IntPoint;

const long Scale = 1000000;     // 浮点 → 整数缩放因子

List<IntPoint> path = new() {
    new IntPoint(0, 0),
    new IntPoint(100 * Scale, 0),
    new IntPoint(100 * Scale, 100 * Scale),
    new IntPoint(0, 100 * Scale),
};
List<List<IntPoint>> paths = new() { path };

布尔运算

var clipper = new Clipper();
clipper.AddPath(subject, PolyType.ptSubject, true);   // true = 闭合
clipper.AddPath(clip,    PolyType.ptClip,    true);

var solution = new List<List<IntPoint>>();
clipper.Execute(ClipType.ctUnion, solution,
    PolyFillType.pftNonZero, PolyFillType.pftNonZero);

ClipTypectIntersectionctUnionctDifferencectXor PolyFillTypepftEvenOddpftNonZeropftPositivepftNegative


多边形偏移(ClipperOffset)

var co = new ClipperOffset();
co.AddPaths(paths, JoinType.jtRound, EndType.etClosedPolygon);

var solution = new List<List<IntPoint>>();
co.Execute(ref solution, 10 * Scale);     // 正:外扩;负:内缩

JoinTypejtSquarejtMiterjtRound EndTypeetClosedPolygonetClosedLineetOpenButtetOpenSquareetOpenRound


PolyTree(保留环层级)

var tree = new PolyTree();
clipper.Execute(ClipType.ctUnion, tree,
    PolyFillType.pftNonZero, PolyFillType.pftNonZero);

foreach (var node in tree.Childs)        // 顶层是外环
    foreach (var hole in node.Childs)    // 子节点是孔
        Console.WriteLine(hole.Contour.Count);

Read the full file on GitHub · 247 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. 7d ago Changed 8cb9bfbc4460
  2. 11d ago First seen · 247 lines · 46 tokens per session scan A 3cefef4ae2a7

Subscribe to this mod's changes

clipper1 is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 2,352 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

agui-dotnet-streaming-chat

Get started with the AG-UI .NET SDK: bootstrap and run your first streaming-chat app (client + server) with the AG-UI .NET NuGet packages (AGUI.Client, AGUI.Server, AGUI.Formatting, AGUI.Abstractions). USE FOR: which packages to install and how to wire them; constructing an AGUIChatClient against an endpoint and…

ag-ui-protocol/ag-ui · 223 tokens

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

azure-mgmt-apicenter-dotnet

Azure API Center SDK for .NET. Centralized API inventory management with governance, versioning, and discovery. Use for creating API services, workspaces, APIs, versions, definitions, environments, deployments, and metadata schemas. Triggers: "API Center", "ApiCenterService", "ApiCenterWorkspace", "ApiCenterApi", "API…

microsoft/skills · 97 tokens

azure-messaging-webpubsubservice-py

Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".

microsoft/skills · 64 tokens

aspnet-core

Build, debug, modernize, or review ASP.NET Core applications with correct hosting, middleware, security, configuration, logging, and deployment patterns on current .NET. USE FOR: working on ASP.NET Core apps, services, or middleware; changing auth, routing, configuration, hosting, or deployment behavior; deciding…

managedcode/dotnet-skills · 122 tokens