Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

purchasing-guide-generator

БесплатноЗапускает вложенные скриптыНе проверен

Write or update the Purchasing Guide subsection of a hardware textbook's Teacher's Guide (Instructor's Guide in college and professional-development books) at…

dmccrearyот dmccreary★ 115 звёзд на GitHub

Об этом скилле

Purchasing Guide Generator

A Purchasing Guide is the page a teacher opens with a district purchase order in one hand. It has to answer three questions without them leaving the page: what exactly do I order, what will it cost me for a class of 20, and where do I click to buy it. Everything in this skill exists to make one of those three answers unambiguous.

The input is small — usually a handful of part names the user pastes in, or the "Parts" sections already sitting in each kit's index.md. One Purchasing Guide covers all the kits in the book, so a part shared by three kits is described once and its section says which kits use it. The output is a long, image-rich, link-rich page. Most of the work is sourcing: finding a clean photo, finding a real price band, and finding the search phrase that actually surfaces the right part instead of forty wrong ones.

Where the output goes

docs/learning-graph/teachers-guide/index.md

The Purchasing Guide is a subsection (## Purchasing Guide) of the book's Teacher's Guide page. College textbooks and professional-development books call that page the Instructor's Guide — use whichever name the book already uses (check the page's # title and the mkdocs.yml nav entry) and never mix the two within one book.

  • If teachers-guide/index.md exists, add or replace only the ## Purchasing Guide section and leave the rest of the page alone.
  • If it does not exist, create it with a # Teacher's Guide (or # Instructor's Guide) title and the Purchasing Guide as its first ## section, and add it to mkdocs.yml.

Front matter. The Teacher's Guide page should open with mkdocs front matter carrying a title and a description. If the page has none, add it; if it has one, make sure the description mentions the Purchasing Guide so search and social previews surface it:

---
title: Teacher's Guide
description: Teaching notes for {Book}, including a Purchasing Guide with every kit part, single, classroom and district prices, and where to buy each one.
---

Part photos and image briefs live in that same directory, docs/learning-graph/teachers-guide/, and are referenced as ./name.png. Images that already exist in the book's docs/img/ stay where they are and are referenced as ../../img/name.png (two levels up from the guide).

A model example to match for tone and depth lives in the moving-rainbow repo at ~/Documents/ws/moving-rainbow/docs/kits/moving-rainbow-base/purchasing-guide/index.md. It predates both the search-link requirement and the move into the Teacher's Guide, so it is the right register but an outdated structure and location — read it for voice, follow this skill for structure and placement.

Audience and register

Purchasing guides are teacher-facing and live in the Teacher's Guide. Write them the way the book's CONTENT-GENERATION-GUIDE.md (if present) describes the Teacher's Guide register: professional, collegial, peer-to-peer, technically precise. The book's mascot never appears in a purchasing guide (Pixel, in Moving Rainbow) — nobody wants a mascot cheering while they reconcile a purchase order. Use "we" for house practice ("We buy ours in packs of ten"), third person for students.

Workflow

1. Pin down the parts list and split it

Get the list from the user, or read each kit's index.md — most kits already have a "Parts" or "What you'll need" section, and reusing it keeps the pages consistent. Merge the kits' lists into one deduplicated list, recording which kits use each part and how many per kit. Then split it in two:

  • Required — the kit does not function without it.
  • Optional — durability, convenience, or enrichment (screw headers, acrylic bases, battery packs, spare buttons).

Required parts come first in both the summary list and the body sections. A teacher on a tight budget should be able to stop reading halfway down the page and still have ordered a working kit.

If a part in the list is ambiguous ("LED strip"), resolve it against the kit's code and wiring before writing — 60 pixels/meter and 144 pixels/meter are different orders, and a purchasing guide that gets that wrong costs real money.

2. Source a photo for every part

Order of preference, best first:

  1. An image already in this workspace. Run the finder — it searches this repo and every sibling repo's docs/img/:

    python3 .claude/skills/purchasing-guide-generator/scripts/find_part_image.py momentary push button
    

    Run it from the book's repo root (the .claude/skills/ link resolves there). Images from sibling repos are already license-clean and match the house look. Copy the file into docs/learning-graph/teachers-guide/ rather than linking across repos.

  2. Wikimedia Commons or another explicitly free source, when nothing local fits. See references/image-sourcing.md for the license rules, the attribution line, and the watermark check.

  3. **A gener

Полный SKILL.md на GitHub

Установить purchasing-guide-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/image-description-template.mdassets/purchasing-guide-template.mdreferences/image-sourcing.mdreferences/part-catalog.mdreferences/sourcing-strategy.mdscripts/find_part_image.pyscripts/make_search_urls.py

FAQ

Что делает скилл purchasing-guide-generator?

Write or update the Purchasing Guide subsection of a hardware textbook's Teacher's Guide (Instructor's Guide in college and professional-development books) at docs/learning-graph/teachers-guide/index.md, covering every part in every kit the book uses — a summary bill of materials with required parts first and optional parts after, then one section per part with a photo, what the part does in the kit, any prep work (soldering 22-gauge leads, cutting a strip to length), single-unit, classroom-of-20 and district price estimates, the exact search keywords that find it, and live eBay / AliExpress / Amazon search links. Use this skill whenever the user asks for a purchasing guide, parts list, parts page, bill of materials, BOM, shopping list, sourcing guide, "where do I buy this", "how much does this kit cost", "what do I need to order for 20 students", or wants to add or refresh purchasing information for a kit — even if they never say the words "purchasing guide". Also use it when updating an existing purchasing guide with prices, images, or search links. Only for books whose kits include physical parts to buy.

Как установить скилл purchasing-guide-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл purchasing-guide-generator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить purchasing-guide-generator с