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 installifnode_modules/is missing, thennpm run doctor. As a plugin there is nothing to install: run the doctor through the bundled engine (see Running commands). - If
company/config.jsonalready 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:
- Legal name exactly as registered (including "LLP" / "Private Limited").
- Entity type (LLP, Pvt Ltd, Public Ltd, Partnership, Proprietorship, other). Read
india-notes.mdin 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. - Registered office address, email, phone, website (optional).
- Registration numbers (those relevant to the entity).
- Authorised signatory: full name, designation (and role text if not "Authorised Signatory").
- Reference prefix (short, e.g. company initials) and numbering: financial year (April–March, default), calendar year, or none.
- Default place shown on letters (usually the city of the registered office).
- 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) andseal.square.bottom/showName. For LLPs use "Designated Partner" rather than "Director". - 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) orlogo.png: transparent background, tightly cropped (little empty space around the mark).signature.svg(preferred) orsignature.png: transparent background. Skip if the company doesn't want signature images. Walk the user throughsignature-svg.md(in this skill's folder): get an SVG from a free AI tool or by tracing their scan, save it, runnpm run trim-svg, thennpm 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, runnpm run trim-svg -- <in> <out>to crop it (keep the original incompany/assets/source/). For "pick from my logo": read the SVG's fill colours and propose the strongest one asbrand.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 -- --openbuilds a sample letter in every template and size and opens a gallery in the browser. Ask the user which look they prefer. (npm run blankmakes empty letterheads, butstationeryhas 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 atemplate.jsonhavingtitle,description,sizes), edit that CSS, and rebuild. Never edittemplates/orsrc/for one company's look. Verify with a rendered preview. - Set
defaultTemplate/defaultSizein the config to the user's choice.
5. Make a sample, then set up the private repo
- Create a sample letter with
/new-letterrules (recipient "Sample Recipient",sign: true,sealper their choice) so they can see signature and seal in place. Delete the sample's.mdand outputs afterwards so numbering starts at 001. company/must be its own private git repo: ifcompany/.gitis missing, rungit init -b maininside 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 withgit 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).