refine-canvas-strokes

作者 machaomc已验证

Polish editable canvas strokes with safe patches, validation, handwriting normalization, and host integration contracts.

51
Stars
0
Forks
Python
语言
2026/8/24
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/machaomc/refine-canvas-strokes

快速入门

使用 refine-canvas-strokes 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Refine Canvas Strokes

Validate License Python

Refine Canvas Strokes is an open Agent Skill and Codex plugin for designing, validating, and integrating safe refinement of editable 2D canvas strokes.

It helps whiteboards, note apps, drawing tools, annotation systems, and pen-input SDKs improve freehand strokes, grouped handwriting, geometric shapes, and constrained diagrams without treating a rendered bitmap as editable source data.

Refine Canvas Strokes overview

What It Provides

  • Dependency-free validation for canonical stroke inputs and refinement patches.
  • Conservative local smoothing for editable freehand strokes.
  • Automatic and optional font-guided handwriting layout normalization.
  • Before-and-after geometry comparison with endpoint, displacement, bounds, and metadata checks.
  • Contracts for same-ID replacement, split and merge mapping, preview, undo, rollback, and stale-revision handling.
  • Integration guidance for user-selected Text, Shape, Flow, and Automatic actions.

The bundled scripts execute cleanup, handwriting normalization, validation, metrics, and comparison. Primitive fitting beyond the baseline, semantic flow reconstruction, OCR, and raster generation require a host implementation or optional external engine.

Install

Codex Plugin Marketplace

Add this GitHub repository as a Codex marketplace:

codex plugin marketplace add machaomc/refine-canvas-strokes

Start Codex, enter /plugins, select the refine-canvas-strokes-marketplace source, and install Refine Canvas Strokes. Start a new session after installation.

Agent Skills CLI

Install only the portable skill with the cross-agent skills CLI:

npx skills add https://github.com/machaomc/refine-canvas-strokes/tree/main/plugins/refine-canvas-strokes/skills/refine-canvas-strokes

Repository Scope

Copy or link the skill directory into a supported project location such as .agents/skills/refine-canvas-strokes:

plugins/refine-canvas-strokes/skills/refine-canvas-strokes/

Quick Verification

From the repository root:

python3 scripts/check_release.py
python3 scripts/build_release.py

Run a bundled example directly:

cd plugins/refine-canvas-strokes/skills/refine-canvas-strokes
python3 scripts/refine_strokes.py references/example-input.json --output /tmp/refinement-patch.json
python3 scripts/validate_contract.py patch /tmp/refinement-patch.json --input references/example-input.json
python3 scripts/compare_stroke_patch.py references/example-input.json /tmp/refinement-patch.json --fail-on-violation

Python 3.10 or later is required. Core scripts use only the Python standard library. extract_font_profile.py optionally requires FontTools.

Examples

Automatic handwritingShape fitting guidance
Automatic handwriting comparisonShape refinement comparison

Editable source SVGs and additional comparison images are included under the skill's assets/examples/ directory. The handwriting and font examples use synthetic input and a synthetic font profile.

Safety Model

  • Source strokes remain recoverable until acceptance.
  • Whole-document processing requires explicit scope.
  • Explicit Text, Shape, or Flow actions override top-level automatic classification.
  • Same-topology refinement preserves stroke identity.
  • Split, merge, deletion, and conversion require source-to-result mapping.
  • A patch declares transaction requirements; the host must prove preview isolation, rollback, history, persistence, and cache behavior.
  • Bundled scripts do not send stroke, handwriting, or font data over the network.

Read Privacy, Security, and Terms before production integration.

Repository Layout

.agents/plugins/marketplace.json                 Codex repository marketplace
plugins/refine-canvas-strokes/.codex-plugin/     Codex plugin manifest
plugins/refine-canvas-strokes/skills/             Portable Agent Skill
review/                                           Public submission materials
scripts/                                          Release validation and packaging
docs/                                             Privacy, support, terms, publishing

Development

See CONTRIBUTING.md and CODE_OF_CONDUCT.md. All changes must preserve dependency-free core tests and pass the release validator. The release process and Codex submission checklist are documented in docs/PUBLISHING.md.

License

Apache License 2.0. See LICENSE and NOTICE.

常见问题

What is refine-canvas-strokes?

refine-canvas-strokes is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by machaomc. Polish editable canvas strokes with safe patches, validation, handwriting normalization, and host integration contracts. It has 51 GitHub stars.

Is refine-canvas-strokes safe to use?

Yes. refine-canvas-strokes passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install refine-canvas-strokes?

Clone the repository with "git clone https://github.com/machaomc/refine-canvas-strokes" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is refine-canvas-strokes written in?

refine-canvas-strokes is primarily written in Python. It is open-source under machaomc on GitHub, so you can review or fork the full source.

Are there alternatives to refine-canvas-strokes?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh refine-canvas-strokes against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情