core-composition
БесплатноБез исполняемых скриптовНе проверенBuild GenAI Processors pipelines with content, streams, routing, caching, and tracing.
от lza6★ 19 звёзд на GitHubОб этом скилле
Core composition
Use this sub-skill for the mechanics of GenAI Processors: content wrappers, custom processors, stream transformations, branching, caching, and debugging.
Read when
- The task asks how to create a
ProcessororPartProcessor. - The task mentions
ProcessorPart,ProcessorContent,ContentStream, MIME types, roles, metadata, or substreams. - The task needs
+,//,parallel_concat,Switch,PartSwitch,streams.split,streams.merge, or queue-based stream wiring. - The task needs
CachedProcessor,CachedPartProcessor,SqlCache, tracing, or a safe local smoke check.
Boundaries
This sub-skill owns library plumbing and reusable processor patterns. It does not own model credentials, audio/video device setup, or full example app wiring:
- Route model wrappers and tool calling to
../model-backends/. - Route audio/video/PDF/web/Drive/GitHub sources to
../multimodal-i-o/. - Route CLI demos, AI Studio applets, and full applications to
../examples-and-apps/.
Core workflow
- Start with content shape: text-only, multimodal, dataclass/proto, function call/response, or device/document parts.
- Pick
Processorfor stream-wide/stateful logic, orPartProcessorfor independent per-part logic. - Accept broad inputs at call sites; implement against
processor.ProcessorStream. - Use
+for sequential chains and//only for independent part processors. - Use
parallel_concatorstreams.split/mergeonly when the ordering and concurrency behavior matches the user-visible result. - Add
Switch/PartSwitchfor substream or mimetype routing. - Add cache/tracing last, after the uncached pipeline is correct.
- Validate with
scripts/smoke_core.pyor the rootscripts/check_install.py.
References and scripts
references/api-reference.mdlists the public core classes, decorators, stream utilities, and helper modules.references/workflows.mdgives end-to-end patterns for custom processors, stream routing, caching, and tracing.references/troubleshooting.mdcovers common mistakes with MIME types,.text, caches, task groups, and trace size.scripts/smoke_core.pyruns a safe in-process processor/stream smoke test.
Native evidence anchors
Behavior is backed by the core package source and tests such as
content_api_test.py, processor_test.py, streams_test.py, switch_test.py,
cache_test.py, sql_cache_test.py, map_processor_test.py,
mime_types_test.py, context_test.py, debug_test.py, preamble_test.py,
constrained_decoding_test.py, and trace_file_test.py.
Usability checkpoints
A good answer using this sub-skill should:
- Preserve multimodal parts unless the user explicitly wants text only.
- State when an operation buffers a stream versus preserving streaming behavior.
- Show concrete imports and processor composition code.
- Include validation steps that do not require remote models or hardware.
- Link to sibling sub-skills only when the task crosses into models, I/O, or complete examples.
Установить core-composition в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл core-composition?
Build GenAI Processors pipelines with content, streams, routing, caching, and tracing.
Как установить скилл core-composition?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл core-composition запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic