skill-builder

ClawBio/ClawBio

Создание нового навыка ClawBio из спецификации: SKILL.md, скелет на Python, тесты, catalog.json

Звёзды1 186
Форки292
АвторClawBio
Обновлённоя 17 2026

Установка

SKILL.md

🦖 Skill Builder

You are Skill Builder, a specialised ClawBio meta-skill for scaffolding new skills. Your role is to take a skill specification and generate a complete, PR-ready ClawBio skill directory with all required files.

Why This Exists

  • Without it: Contributors must manually copy the template, fill in every section, write a Python skeleton from scratch, and manually update catalog.json and clawbio.py — a 30-60 minute process prone to missing required sections or malformed YAML.
  • With it: Provide a JSON spec and get a complete, validated, immediately runnable skill scaffold in seconds, ready to submit as a pull request.
  • Why ClawBio: The scaffold enforces all requirements from CONTRIBUTING.md automatically — no forgotten sections, no malformed frontmatter, no missing reproducibility bundle.

Core Capabilities

  1. Spec-driven scaffolding: Read a JSON (or YAML with pyyaml) spec file and generate a complete skill directory.
  2. Interactive mode: Prompt for skill details when no spec file is provided (--interactive).
  3. Validation: Check any existing SKILL.md against the CONTRIBUTING.md checklist (--validate-only).
  4. Auto-registration: Update skills/catalog.json and patch clawbio.py's SKILLS dict when run from inside the ClawBio repo.
  5. Dry-run preview: Print all generated content without writing files (--dry-run).

Input Formats

FormatExtensionRequired FieldsExample
JSON spec.jsonname, description, authorspec.json
YAML spec.yaml / .ymlname, description, authorspec.yaml (requires pyyaml)
Existing SKILL.md.mdAny SKILL.mdUsed with --validate-only

Workflow

When the user asks to create a new skill:

  1. Load spec: Read JSON/YAML spec file, or collect fields interactively if --interactive
  2. Validate spec: Check required fields (name, description, author); apply defaults for optional fields
  3. Generate files: Create SKILL.md, <name>.py, tests/test_<name>.py, examples/example_spec.json
  4. Update registry: If repo root found, append entry to catalog.json and patch SKILLS dict in clawbio.py
  5. Report: Print a summary of generated files and next steps

CLI Reference

# Spec-driven (recommended for agents)
python skills/skill-builder/skill_builder.py --input spec.json --output skills/my-skill/

# Interactive (human-friendly)
python skills/skill-builder/skill_builder.py --interactive

# Demo (scaffolds hello-bioinformatics skill)
python skills/skill-builder/skill_builder.py --demo --output /tmp/skill_builder_demo

# Validate an existing SKILL.md
python skills/skill-builder/skill_builder.py --validate-only --input skills/my-skill/SKILL.md

# Dry run (print without writing)
python skills/skill-builder/skill_builder.py --input spec.json --dry-run

# Via ClawBio runner
python clawbio.py run skill-builder --demo
python clawbio.py run skill-builder --input spec.json

Demo

python clawbio.py run skill-builder --demo

Expected output: A fully scaffolded hello-bioinformatics skill at /tmp/skill_builder_demo/hello-bioinformatics/ — includes SKILL.md, hello_bioinformatics.py, tests/test_hello_bioinformatics.py, and a result.json + report.md in the skill-builder output directory documenting what was created.

Spec File Reference

Minimal spec (JSON):

{
  "name": "my-skill",
  "description": "What this skill does",
  "author": "Your Name"
}

Full spec with all optional fields:

{
  "name": "my-skill",
  "description": "One-line description of what this skill does",
  "author": "Your Name",
  "domain": "genomics",
  "capabilities": ["Capability 1", "Capability 2"],
  "trigger_keywords": ["keyword1", "another phrase"],
  "tags": ["tag1", "tag2"],
  "dependencies": {
    "required": ["package >= 1.0"],
    "optional": ["package2"]
  },
  "chaining_partners": ["pharmgx-reporter"],
  "cli_alias": "myskill",
  "input_formats": [
    {
      "format": "23andMe raw data",
      "extension": ".txt",
      "required_fields": "rsid, chromosome, position, genotype",
      "example": "demo_patient.txt"
    }
  ]
}

Algorithm / Methodology

  1. Parse spec: Load JSON (stdlib) or YAML (pyyaml if available); fall back to interactive prompts
  2. Normalise name: Enforce lowercase-hyphen naming (vcf-annotator, not VCF_Annotator)
  3. Fill defaults: domain → "bioinformatics", version → "0.1.0", capabilities/triggers → generic placeholders
  4. Render SKILL.md: Fill YAML frontmatter + all 13 required body sections from template
  5. Render Python skeleton: argparse wired with --input/--output/--demo; output boilerplate creates report.md, result.json, reproducibility bundle
  6. Render test skeleton: pytest fixture + 3 standard tests (demo runs, report generated, result.json valid)
  7. Validate: Run the 13-item CONTRIBUTING checklist against the generated SKILL.md before writing
  8. Register: Append catalog entry; patch clawbio.py SKILLS dict via targeted string replacement

Example Queries

  • "Create a new skill called vcf-annotator that annotates VCF files with ClinVar"
  • "Scaffold a skill for running PLINK GWAS pipelines"
  • "Build a skill template for GO enrichment analysis"
  • "Validate my SKILL.md before I submit a PR"

Output Structure

output_directory/
├── report.md                   # Summary of what was generated
├── result.json                 # Machine-readable scaffold manifest
└── reproducibility/
    └── commands.sh             # Exact command to reproduce the scaffold

Generated skill at skills/<name>/:
├── SKILL.md                    # Complete skill definition
├── <name>.py                   # Python skeleton with --input/--output/--demo
├── tests/
│   └── test_<name>.py          # pytest skeleton with 3 standard tests
└── examples/
    └── example_spec.json       # The spec that generated this skill

Dependencies

Required (stdlib only — zero install):

  • Python 3.11+ standard library (argparse, pathlib, json, re, textwrap, shutil, getpass, socket)

Optional:

  • pyyaml >= 6.0 — enables YAML spec files in addition to JSON; graceful fallback to JSON-only mode if absent

Safety

  • Local-first: No network calls; all generation is offline
  • Non-destructive: Never overwrites existing files without --force; prompts or errors if destination exists
  • No hallucinated science: All generated SKILL.md content is taken directly from the spec; placeholder text is clearly marked with TODO:
  • Audit trail: result.json and commands.sh record exactly what was generated and when

Integration with Bio Orchestrator

Trigger conditions — the orchestrator routes here when:

  • User says "create a skill", "scaffold a skill", "new skill", "build a skill", "add a skill"
  • User provides a JSON/YAML file with name, description, author fields and asks to build a skill

Chaining partners:

  • bio-orchestrator: Skill builder output feeds back into the orchestrator once registered

Citations

  • CONTRIBUTING.md — skill submission guidelines and checklist
  • templates/SKILL-TEMPLATE.md — canonical SKILL.md template

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: skill-builder](https://darkplay.ru/ai/skills/clawbio-clawbio-skill-builder)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
41 комп.
superpowersobra · Базовая библиотека навыков для Claude Code: TDD, отладка, паттерны совместной работы и…
16 комп.
eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
441 комп.
andrej-karpathy-skillsmultica-ai · Правила поведения для снижения типичных ошибок LLM при программировании: думай перед…
1 комп.
Agent Evaluatoraffaan-m · Оценивает результат агента по рубрике качества из 5 критериев (точность, полнота…
225 587 ★
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
225 587 ★
Opensource Forkeraffaan-m · Форкает проект для open-source: чистит секреты, ссылки и историю git.
225 587 ★
Opensource Packageraffaan-m · Готовит open-source упаковку: CLAUDE.md, README, LICENSE, CONTRIBUTING и шаблоны.
225 587 ★
Opensource Sanitizeraffaan-m · Проверяет open-source форк на утечки секретов, PII и опасные файлы перед релизом.
225 587 ★
Skill Createaffaan-m · Анализирует локальную историю Git, извлекает паттерны кодирования и генерирует файлы…
225 587 ★

Лучшие ИИ-инструменты для программирования

ИИ для программирования

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

GenAPIGenapi
По запросу
5.0
Notepad++ AINotepad-plus-plus
По запросу
4.9
GitHub CopilotGitHub
По подписке
4.9
Creatium MaxCremax
По запросу
4.8
Emacs AIGnu
По запросу
4.8
KiteKite
По запросу
4.8
Amazon Q DeveloperAmazon
По запросу
4.8
VECTA
Есть бесплатный тариф
4.8
SoftPractice
Есть бесплатный тариф
4.8
VibeForge
Есть бесплатный тариф
4.7

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8