Stamp Edge logo

Stamp Edge

Community
xianxie6
stamp-edge

把任意图片处理成邮票风格——直接在原图四周边缘打半圆锯齿孔洞 + 柔和投影,默认无白边、输出真透明背景 PNG(锯齿孔洞和四周 alpha=0),可直接叠加到任何背景;可选加白色纸边;还能把多张邮票拼成等宽列瀑布流合集图(stamp sheet)。当用户提到"邮票边"、"邮票风格"、"邮票质感"、"锯齿边"、"打孔边"、"perforated edge"、"stamp style"、"postage stamp"、"邮票合集"、"邮票排版"、"stamp sheet",或要求把截图/帖子/图片做成邮票效果时使用。

Overview

Publisherxianxie6
Repositorystamp-edge-skill
Skill namestamp-edge
Stars
153
Forks
10
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xianxie6 on GitHub. Read the source before you install it.

Installation

Install the Stamp Edge AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xianxie6/stamp-edge-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xianxie6/stamp-edge-skill.git \
  .claude/skills/stamp-edge
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Stamp Edge in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Stamp Edge on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Stamp Edge is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

邮票风格边框 Skill

把图片处理成邮票样式:默认直接在原图四周边缘打半圆锯齿孔洞(无白边),底部柔和投影,输出真透明背景 PNG(孔洞与四周 alpha=0),可直接当贴纸/素材叠加使用。需要白色纸边时加 margin 选项。

使用方式

直接运行本目录下的脚本(依赖 Pillow):

bash
python3 ~/.agents/skills/stamp-edge/stamp_effect.py <输入图> <输出图.png>          # 无白边 + 透明背景(默认)
python3 ~/.agents/skills/stamp-edge/stamp_effect.py <输入图> <输出图.png> margin   # 加白边
python3 ~/.agents/skills/stamp-edge/stamp_effect.py <输入图> <输出图.png> bg       # 浅灰白背景

选项可组合,如 margin bg。

  • 输入:任意常见格式截图/图片(PNG/JPG 等)
  • 输出:PNG;默认 RGBA 真透明,加 bg 参数则为浅灰白底成品图
  • 输出文件默认建议存到 ~/Desktop/,文件名用内容语义命名(如 analytics_stamp.png)

拼合集图(stamp_sheet.py)

多张邮票生成后,用本目录下的 stamp_sheet.py 拼成一张合集:等宽列瀑布流,每张邮票撑满列宽、无留白,列高自动贪心均衡:

bash
python3 ~/.agents/skills/stamp-edge/stamp_sheet.py ~/Desktop/stamp_grid.png *_stamp.png                 # 默认 4 列深色底
python3 ~/.agents/skills/stamp-edge/stamp_sheet.py ~/Desktop/sheet.png --cols 3 --bg "#f5f2ea" -- *_stamp.png     # 自定义列数/底色
  • --cols:列数(默认 4);--bg:背景色 hex(默认 #0e0e0e 近黑,配投影效果好;米白纸面风用 #f5f2ea);--colw:列宽 px(默认 780)
  • 邮票默认真透明背景,直接叠任意底色;排完后用 ReadMediaFile 读回确认效果
  • 注意:贪心均衡会打乱传入顺序以平衡列高,这是预期行为

工作流

  1. 从用户消息中定位输入图片路径(用户粘贴的图片通常在 ~/.kimi-code/files/ 下取最新文件)
  2. 运行脚本生成邮票图(默认:无白边、透明背景;用户明确要白边时加 margin)
  3. 用 ReadMediaFile 读回成品确认效果(透明背景可先在脚本外套棋盘格预览验证)
  4. 告知用户输出路径

可调参数(脚本顶部)

参数默认值说明
margin0(传 margin 选项时 46)内容到锯齿边的白边宽度
hole_r14打孔半圆半径
pitch46打孔间距(= hole_r*2+18)
outer_pad90邮票外留白(投影空间)
shadow_alpha70投影不透明度

用户要求"孔更密/更疏、白边更宽、投影更淡"等时,改对应参数重跑即可,不要重写脚本。

注意事项

  • 投影是半透明灰色,叠深色背景无压力;叠纯白背景会看到淡影(正常设计)
  • 微信等平台直接发图会把透明 PNG 压成 JPG 丢失透明,需要保透明时提醒用户以文件形式发送
  • 批量处理多张图时,逐张调用脚本,不要改脚本去支持批量

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Stamp Edge AI skill do?

把任意图片处理成邮票风格——直接在原图四周边缘打半圆锯齿孔洞 + 柔和投影,默认无白边、输出真透明背景 PNG(锯齿孔洞和四周 alpha=0),可直接叠加到任何背景;可选加白色纸边;还能把多张邮票拼成等宽列瀑布流合集图(stamp sheet)。当用户提到"邮票边"、"邮票风格"、"邮票质感"、"锯齿边"、"打孔边"、"perforated edge"、"stamp style"、"postage stamp"、"邮票合集"、"邮票排版"、"stamp sheet",或要求把截图/帖子/图片做成邮票效果时使用。

Why use Stamp Edge on TypingMind?

Because you install it once and use it with any model. Stamp Edge is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Stamp Edge in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xianxie6/stamp-edge-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Stamp Edge?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Stamp Edge?

As many as you like. As long as a model supports skills, you can use Stamp Edge with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Stamp Edge AI skill free?

Yes. It is published on GitHub by xianxie6 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇