refine-canvas-strokes

by machaomcVerified

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

51
Stars
0
Forks
Python
Language
8/24/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

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

Getting Started

Guides for using skills like refine-canvas-strokes.

Security Report

Verified

Last scanned: —

{
  "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.

Frequently Asked Questions

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.

Comments (0)

No comments yet. Be the first to share your thoughts!

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 Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

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 Agentsai-agentsanthropicclaude-code
View details

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 Agentsclaude-codeai-tools
View details

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 Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this 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 Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

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 Serversapisai-tools
View details

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 Agentsai-agentsanthropicclaude-code
View details

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 Agentsclaude-codeai-tools
View details