Логотип Agent Spec

Agent Spec

Організація
vstorm-co
agent-spec

Change the agent spec — add or remove a field, rename one, tighten a rule, bump SPEC_VERSION, change publish-time validation, or touch YAML export/import. Use whenever editing app/agents/spec.py or anything that reads a stored spec. Every published agent and every client git repository holds a copy of this format, so a change that only works forwards breaks agents nobody touched.

Огляд

Видавецьvstorm-co
Репозиторійagenticos
Назва навичкиagent-spec
Зірки
137
Форки
27
Файли в пакеті
Лише інструкції
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: vstorm-co. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Agent Spec у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/agent-spec
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vstorm-co/agenticos.git /tmp/agenticos
mkdir -p .claude/skills
cp -r /tmp/agenticos/.claude/skills/agent-spec .claude/skills/agent-spec
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Agent Spec в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Agent Spec, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Agent Spec не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

The agent spec — the format you cannot break

app/agents/spec.py. Reference page: docs/reference/spec.md (generated from the docstrings, so the reasoning belongs in the docstring). Concepts: docs/concepts.md.

The most load-bearing type in the platform: the Builder edits it, the database versions it, the factory instantiates it, and clients export it as YAML into their own git repositories.

The constraint

Old specs must keep loading. A published agent's spec is stored as it was written. A change that only parses new documents is a 500 on every run of something nobody touched.

model_config = ConfigDict(extra="forbid") means an unknown key is a hard error, so this is not theoretical. SPEC_VERSION is currently 13.

What each change costs

ChangeCost
Add an optional field with a defaultFree. Old specs take the default
Add a required fieldNot allowed. Give it a default, or a mode="before" validator that supplies one
Rename a fieldA mode="before" validator that moves the old key. CapabilityBindingSpec._fold_the_knowledge_capabilitys_own_rename is the worked example
Remove a fieldDrop it in a mode="before" validator and log a warning — never let extra="forbid" raise on a stored spec. See _MODEL_SETTINGS_WITHDRAWN
Narrow a rule (shorter max, tighter pattern, new enum)The dangerous one — see below
Move behaviour to a capabilityFold the old value into a binding, don't just drop it. _with_thinking_binding is the pattern

Bump SPEC_VERSION whenever a stored document needs migrating, and write the migration in the same change.

Narrowing a rule is a data migration

A narrower rule does not only reject new input — it makes existing rows unreadable, and a Pydantic model that refuses to validate one field of one row takes down the whole listing endpoint with a 500.

IngestionConfig and its OCR language codes are the worked example outside the spec: ocr_language went from "anything 2–16 characters" to Tesseract's ^[a-z]{3}(\+[a-z]{3})*$, and every row written before it held "en". The data migration shipped in the same revision.

If you narrow anything in a spec field, the same applies: find every stored value first, and migrate it in the same change.

Two invariants a migration must preserve

Idempotence. An explicitly-set value wins over a migrated one, so re-reading a spec the validator already migrated changes nothing. Both existing validators are written this way; keep it.

Refusal at publish, never at run time. An unknown capability id, an ungranted scope, a tool_approval keyed on a tool that does not exist, an unrenderable tool name, a secret_id of the wrong kind or from another organization, a personal MCP connection — all refused while somebody is looking at a form. Validation added to the runner instead is a broken agent in production rather than a red field in the Builder.

app/services/agent_registry.py owns publish validation. _tool_override_problems is the shape to copy: collect every problem and report them together.

What the spec deliberately excludes

Anything about where it runs (surfaces, channels, exposures) and who may use it (owner, sharing). Those are deployment and access facts; keeping them out is what lets the same spec be exported, reviewed and reused across organizations.

It also carries no secret values — only secret_id references. A spec goes into a client's git repository.

YAML

to_yaml keeps spec order rather than sorting, so a diff reflects what changed rather than where it happens to sort, and UUIDs become strings so the file round-trips through any reader. from_yaml raises ValueError on a non-mapping document, because a list or a bare string reaches Pydantic as an unhelpful type error.

Round-trip is part of the contract: spec == AgentSpec.from_yaml(spec.to_yaml()).

Test

tests/test_agent_spec_and_factory.py. Every migration needs a test that loads a verbatim old document — not one built from the current model, which cannot fail. Plus the round-trip, the duplicate-capability refusal, and each publish refusal.

app/agents/** is held to 100%. See the backend-tests skill.

Поширені запитання

Що робить навичка ШІ Agent Spec?

Change the agent spec — add or remove a field, rename one, tighten a rule, bump SPEC_VERSION, change publish-time validation, or touch YAML export/import. Use whenever editing app/agents/spec.py or anything that reads a stored spec. Every published agent and every client git repository holds a copy of this format, so a change that only works forwards breaks agents nobody touched.

Навіщо використовувати Agent Spec у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Agent Spec — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Agent Spec у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/agent-spec. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Agent Spec?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Agent Spec?

Зі скількома забажаєте. У TypingMind ви можете використовувати Agent Spec із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Agent Spec?

Так. На GitHub цю навичку публікує vstorm-co за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇