Community图像github.com

设置信笺抬头

一次性设置公司信笺抬头。通过询问用户获取公司详细信息,检查Logo和签名文件,写入company/config.json,制作信笺模板,并设置私有公司仓库。适用于company/config.json缺失、用户表示“设置”“创建我们的信笺”或希望更改公司详情、颜色或模板时使用。

设置信笺抬头 是什么?

该技能用于为一家公司快速搭建完整的信笺抬头系统。它会引导用户提供公司法律名称、实体类型、注册地址、授权签署人、参考编号规则等关键信息,并自动扫描Logo和签名文件(支持SVG和PNG),写入配置文件 `company/config.json`。技能内置多套经典模板,用户可通过浏览器预览并挑选喜欢的样式,还支持自定义CSS微调。完成后,技能会在 `company/` 目录下创建私有Git仓库(需用户自行推送至私人远程),确保签名图片等敏感资产安全。它同时支持独立工具模式(通过CLI命令)和插件模式(如集成到Claude Code等AI助手),无需手动安装依赖。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ithortechnology-code/letterhead-skills/tree/HEAD/.claude/skills/setup-letterhead

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Set up a company letterhead

Goal: a working company/ folder (config, assets, private git repo) and a letterhead the user has approved by eye. Be conversational and short. Ask for several things at once, not one by one. Never invent company data.

Running commands

Commands in this skill are written for the cloned repo: npm run <name> -- <args>. If there is no package.json in the working folder (the skill came from the plugin), run the same thing through the bundled engine, from the user's own folder (the one that holds, or will hold, company/; never inside the plugin folder): node "${CLAUDE_PLUGIN_ROOT}/dist/letterhead.mjs" --<name> <args> e.g. npm run new -- slug --template classic becomes ... --new slug --template classic; npm run letter -- <file> becomes ... <file>; doctor, templates, preview, approve, trim-svg, blank, all, index keep their name with -- in front. Nothing needs installing in plugin mode.

0. Check the state

  • In the cloned repo: run npm install if node_modules/ is missing, then npm run doctor. As a plugin there is nothing to install: run the doctor through the bundled engine (see Running commands).
  • If company/config.json already exists, read it, show the user a one-line summary, and ask what they want to change instead of starting over.

1. Collect details (one message)

Ask for, and wait for answers:

  1. Legal name exactly as registered (including "LLP" / "Private Limited").
  2. Entity type (LLP, Pvt Ltd, Public Ltd, Partnership, Proprietorship, other). Read india-notes.md in this skill's folder and tell the user, in a sentence or two, which registration numbers their letters should carry (LLPIN, CIN, GSTIN...). Use the correct label ("LLPIN", not "LLPNO"). Say it's general guidance to confirm with their CA/CS.
  3. Registered office address, email, phone, website (optional).
  4. Registration numbers (those relevant to the entity).
  5. Authorised signatory: full name, designation (and role text if not "Authorised Signatory").
  6. Reference prefix (short, e.g. company initials) and numbering: financial year (April–March, default), calendar year, or none.
  7. Default place shown on letters (usually the city of the registered office).
  8. Seal: which do they use: none, round company seal, square signatory stamp ("For / Director / Authorised Signatory"), or both? (Optional by law; see notes.) Round: centre / sub-text (e.g. city). Square: the lines under the blank space (e.g. "Director", "Authorised Signatory"), and whether the printed name goes in it. Set seal.shape (round | square | both) and seal.square.bottom / showName. For LLPs use "Designated Partner" rather than "Director".
  9. Brand colour (hex, or "pick from my logo").

2. Assets

Tell the user to put these in company/assets/ (create it if needed) and wait until they confirm:

  • logo.svg (best) or logo.png: transparent background, tightly cropped (little empty space around the mark).
  • signature.svg (preferred) or signature.png: transparent background. Skip if the company doesn't want signature images. Walk the user through signature-svg.md (in this skill's folder): get an SVG from a free AI tool or by tracing their scan, save it, run npm run trim-svg, then npm run doctor. Say plainly that an AI redraw is an approximation and that banks/authorities comparing against a specimen need a faithful trace or a clean scan of the real signature. For PNG, at least 800 px wide, cropped tight. PDF files are not supported. Ask for SVG/PNG instead. If the logo SVG has lots of empty space, run npm run trim-svg -- <in> <out> to crop it (keep the original in company/assets/source/). For "pick from my logo": read the SVG's fill colours and propose the strongest one as brand.accent.

3. Write the config

mkdir -p company/assets company/letters company/generated company/approved and copy starter/START-HERE.md to company/START-HERE.md, copy starter/config.example.json to company/config.json, and fill in every field from the answers (keep the structure; registrations is an ordered label → value map shown in the header and footer). Remove fields that don't apply. Then npm run doctor and fix anything it reports.

4. Generate and review the templates

  • npm run preview -- --open builds a sample letter in every template and size and opens a gallery in the browser. Ask the user which look they prefer. (npm run blank makes empty letterheads, but stationery has no header so looks empty.)
  • Check the result yourself first: header fits on one line, logo not tiny, nothing clipped. If it is wrong, adjust company/config.json (colours, text) before touching CSS.
  • Custom design requests ("make the header bigger", "put the logo on the right"): copy the closest built-in template to company/templates/<new-id>/ (with a template.json having title, description, sizes), edit that CSS, and rebuild. Never edit templates/ or src/ for one company's look. Verify with a rendered preview.
  • Set defaultTemplate / defaultSize in the config to the user's choice.

5. Make a sample, then set up the private repo

  • Create a sample letter with /new-letter rules (recipient "Sample Recipient", sign: true, seal per their choice) so they can see signature and seal in place. Delete the sample's .md and outputs afterwards so numbering starts at 001.
  • company/ must be its own private git repo: if company/.git is missing, run git init -b main inside it. Tell the user to create a private remote and push there. Do not create or push remotes without being asked. Explain: the signature image lives in this repo, so access should be limited to people allowed to issue letters.
  • Confirm the parent (engine) repo ignores company/ (it does by .gitignore; check with git check-ignore company).

6. Hand over

Summarise in 5 lines what exists and how to make a letter: "Just tell me who it's for and what it should say, e.g. 'a letter to the bank manager asking for ...'". Mention the index.html archive in company/generated/ and the print tip (Margins Default, Scale 100%, Headers and footers off).

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相关技能