Логотип Modsmith

Modsmith

Сообщество
DannyMac180
modsmith

Шаблоны, проверенные подходы и анализ затрат для Claude Mods (плагинов Claude Code, поведение которых задаётся модулем function-hooks). Дополняет встроенные средства создания модов тем, чего им не хватает: проверенными схемами (fork-check-draw, инструмент + журнал, реестр режимов, состояние на основе артефактов), анализом кэширования промптов и стоимости токенов, проверкой чужого мода и правилами для совместимых модов. ИСПОЛЬЗУЙТЕ, КОГДА нужно: создать мод; сделать мод для Claude; найти шаблоны модов; задавать мне вопросы после каждого хода; использовать инструмент assumptions или register_assumption; настроить супервизор для проверки хода; проверку следующих шагов; селектор режимов или реестр режимов; определять уровень усилий для разных предметных областей; настроить маршрутизатор моделей с сохранением кэша; оценить стоимость кэширования промптов для мода; узнать стоимость мода за ход; проверить или оценить чужой мод перед установкой; настроить совместную работу модов; использовать артефакт Kanban как общее состояние проекта. НЕ ИСПОЛЬЗУЙТЕ ДЛЯ: классических хуков командной оболочки в settings.json (PreToolUse и т. п.), обычного навыка или команды со слешем, создания сервера MCP или поиска сведений о самом API хуков (используйте рекомендации движка по созданию плагинов и сгенерированные типы).

Add to TypingMind

Обзор

ИздательDannyMac180
Репозиторийskills
Название навыкаmodsmith
Звёзды
538
Форки
49
Файлы в комплекте
41
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 41

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — DannyMac180. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Modsmith в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/DannyMac180/skills/tree/main/modsmith
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DannyMac180/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/modsmith .claude/skills/modsmith
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Modsmith в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Modsmith, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Modsmith не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

ModSmith

Claude Code ships its own mod authoring: the plugin-authoring skill and the generated declarations (claude-code.d.ts, written beside every mod as .claude-plugin/types/claude-code/index.d.ts and by /plugin-types). Those are the API. This skill does not re-teach it. It adds four things on top:

  1. Patterns that work, as complete templates you copy and change.
  2. Cost and prompt-cache review: what a mod costs per turn, what breaks the cache, and how to vet someone else's mod before installing it.
  3. Composition: how mods share a site, state and the cache.
  4. Decision notes: every mod ships a DECISIONS.md of what was chosen, what was rejected and what is still unverified.

Harnesses go out of date fast. When anything here disagrees with the generated declarations for the running build, the declarations win. Load the built-in plugin-authoring skill for any API question.

Step 1: Surface the unknowns

Before writing code, ask the few questions that decide the design. Use the question tool (AskUserQuestion) when it is available, one round, and skip any question the request already answers.

QuestionWhy it decides the design
What should it show or change, and where? (band above the prompt, footer label, pane, a tool Claude calls, a rewrite of what runs)Picks the event and the site
What triggers it? (every turn, turns that changed files, a slash command, a timer)Picks the gate
May it spend tokens per turn, and roughly how many? (none / one cached fork on qualifying turns / more)Fork, complete or no model call at all
Which mods must it work with? (quiz, supervisor, mode registry, token gauge...)Shared sites, state contracts, hotkey clashes

Say what you will assume for anything left unanswered, and record it in the mod's DECISIONS.md.

Step 2: Pick a pattern

People ask forPatternTemplateCost per turn
"Quiz me after each turn"fork-check-drawtemplates/quiz-after0 on chat/read-only/subagent turns; one cached fork after a main turn that changed something
"Check the work: goal met, lazy, needed approval?"fork-check-drawtemplates/next-steps-supervisor0 on chat/read-only turns; one cached fork after a turn that changed something or made 8+ calls
"Make Claude list its assumptions / what it skipped"tool + ledgertemplates/assumption-ledgerNo model calls; ~200 cached input tokens for the tool definition; ~40-80 output per entry Claude records
"A mode switch other plugins can join", "effort by domain"registrytemplates/mode-registry + templates/effort-modesNo model calls; each effort switch costs one cache rebuild (measured ~10k tokens in a 37k session)
"A shared board several Claudes update"artifact-backed statetemplates/artifact-dashboard + references/artifact-dashboard.md0 model tokens (reads are tool calls); ~130 tokens once per conversation
Anything elseminimaltemplates/minimal0

Figures are the templates' own estimates unless marked measured; each template's README has the detail.

Step 3: Build from the template

Copy the template folder, rename the plugin in .claude-plugin/plugin.json (and its PluginState key in types/index.d.ts), then change behaviour. The layout:

my-mod/
  .claude-plugin/plugin.json   name, version, description, author, license,
                               "types": "./types/index.d.ts" when it keeps $.state
  hooks/hooks.json             { "modules": ["./register.tsx"] }
  hooks/register.tsx           export const register: Register = (on, options) => { ... }
  types/index.d.ts             declare module 'claude-code' { interface PluginState { 'my-mod': {...} } }
  tests/*.test.ts(x)           claude plugin test
  README.md                    what it does in plain words, cost per turn, composes with, install
  DECISIONS.md                 chosen / rejected / unverified

Rules every template follows, and yours should too:

  • Call next(e) when not acting; answer without next only for your own command or tool, narrowed by a matcher.
  • At a tree site, draw {await next(e)} beside your own tree; step aside when e.props.hasSurvey.
  • Gate anything that costs tokens, and give it a slash command that turns it off (stored in $.store).
  • Catch every $ promise you don't return. Parse model JSON defensively.
  • Never claim something works that you didn't verify. It goes in DECISIONS.md under "not verified".

Step 4: Cost and cache review

Follow references/cost-review.md. In short:

sh
claude plugin validate <mod>                  # what the engine sees it hook and call
bun scripts/audit-mod.ts <mod>                # cost, cache and reach heuristics
# or: node --experimental-strip-types --no-warnings scripts/audit-mod.ts <mod>

Read every hook the audit flags, then show the user the short report from the end of cost-review.md (risk, tokens per turn, cache impact, off switch, what it can touch). Mark estimates as estimates; measure with the snippets in that file when it matters.

Vetting someone else's mod before installing. Same pass, stricter: read the whole hooks module and everything it imports (including Client modules), run validate and the audit on the folder, check each capability in the vetting table in cost-review.md ($.process, $.fs.write, $.mcp.call, tool.check allows, prompt rewrites are the ones to question hardest), then load it alone in a scratch project with claude --debug --plugin-dir <dir>. Give the user the report and let them decide; don't install it for them.

Step 5: Composition check

Per references/composition.md:

  • Does it pass the chain on everywhere it isn't the answer?
  • Does it draw with others ({await next(e)}, prop sites changed and passed on) and yield to surveys?
  • Does it own its state and let others change it only by hooking state.set? Is the contract in types/index.d.ts and named in plugin.json?
  • Do its hotkeys clash with mods it will sit beside? (quiz-after uses 1-3, s, x; next-steps-supervisor n, m; mode-registry 0-9 in its picker.) A bare digit typed into an empty prompt presses a band Button.
  • Does it change what the main thread sends (effort, model, system prompt)? Then it changes every fork-based mod's bill too: say so in the README.

Step 6: Validate, test, load, share

sh
claude plugin validate <mod>          # add --strict in CI
claude plugin test <mod>              # runs tests/*.test.ts(x) against the engine
claude --plugin-dir <mod>             # load from source; saving a file hot-reloads it

Type-check against the generated declarations with the tsconfig.json from the d.ts header (the engine writes one beside a mod it loads from a folder). references/testing.md covers the test kit's traps.

Share: a repo can be its own marketplace.

sh
claude plugin marketplace add <owner>/<repo>
claude plugin install <plugin>@<marketplace>

Tell people what it costs per turn and how to turn it off, in the README's first screen.

Gotchas (checked against 2.1.286)

  • Don't declare, import or take a parameter named h or Fragment, and don't add a @jsx pragma. JSX compiles to the global h; the engine prepends the pragma itself.
  • Client module paths are string literals. A variable is refused at load.
  • $.clock.now() returns Promise<number>. Await it.
  • Drawing above the prompt works on the terminal and the desktop app. AbovePrompt is raised on those two surfaces; test both with the kit's $.ui.mount over ['terminal', 'desktop'].
  • A render hook never writes state. $.state.set while drawing is denied; write from a press handler or another event. State a drawing reads belongs in $.state (a hot reload loses module variables).
  • The band is capped at half the terminal's rows, and redraws fold to ten a second (thirty for the band and the shown pane).
  • A hook has a 10 s budget; $ calls in flight don't count against it, but $.clock.sleep does. A failing hook is skipped and the chain goes on (fail open).
  • Headless runs: a claude -p run reports a module that did not load on stderr, including when the function-hooks switch is off there; set CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 in that process if so. Interactive sessions on this build needed no flag.

More, with symptoms: references/gotchas.md.

Files

PathWhat
references/cost-review.mdCache breakers, fork vs complete, per-turn gates, timers, growth, vetting table, measuring, the report
references/composition.mdChain, shared sites, $.state contracts, ordering, cache etiquette, testing with inline plugins
references/artifact-dashboard.mdArtifact database as shared project state: what a mod can reach, the pattern, limits
references/gotchas.mdTraps by symptom
references/testing.mdclaude plugin test and its traps
scripts/audit-mod.tsStatic cost/cache/reach audit of a mod folder
templates/*Seven mods; each has README.md and DECISIONS.md

Where the ideas come from

The patterns follow Thariq Shihipar (Anthropic) on the Latent.Space podcast: shareable mods that warn you about prompt-cache costs, forked subagents as the cheap way to ask questions about a turn, a quiz after the turn, an assumptions tool, a next-steps supervisor, mods that compose through a mode selector, and artifact dashboards as shared project state.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Modsmith?

Шаблоны, проверенные подходы и анализ затрат для Claude Mods (плагинов Claude Code, поведение которых задаётся модулем function-hooks). Дополняет встроенные средства создания модов тем, чего им не хватает: проверенными схемами (fork-check-draw, инструмент + журнал, реестр режимов, состояние на основе артефактов), анализом кэширования промптов и стоимости токенов, проверкой чужого мода и правилами для совместимых модов. ИСПОЛЬЗУЙТЕ, КОГДА нужно: создать мод; сделать мод для Claude; найти шаблоны модов; задавать мне вопросы после каждого хода; использовать инструмент assumptions или register_...

Зачем использовать Modsmith в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Modsmith — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Modsmith в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/DannyMac180/skills/tree/main/modsmith. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Modsmith?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Modsmith?

С любым количеством. В TypingMind вы можете использовать Modsmith с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Modsmith?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — DannyMac180. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇