Перейти к основному содержимому

Lang Crystal

Test, format, and build Crystal via shards.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-crystal
Version1.0.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos

Reference: full SKILL.md​

к сведению

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Crystal Language Pack Skill

Drive Crystal work with the project index and standard CLI recipes. LSP hint: crystal (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Язык «как Ruby, но компилируемый». Удобен, если нравится Ruby-синтаксис, но нужна скорость нативного бинарника.

Лучше всего для:

  • быстрые веб-API (Kemal/Amber)
  • CLI-утилиты
  • Ruby-like DX + производительность
  • нативные бинарники

When to Use​

Выбирай этот pack, если:

  • есть shard.yml
  • хотите Ruby-like DX + скорость
  • пользователь просит Crystal

Manifests (автодетект репозитория): shard.yml, shard.lock

Обычно рядом: Часто Postgres; деплой как один бинарник.

См. также skill choose-language-pack и vibeos language recommend "…".

When NOT to use​

  • зрелая Rails экосистема → Ruby
  • максимальная safety → Rust
  • простой микросервис → Go

Prerequisites​

vibeos pack apply lang-crystal --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
crystal tool format --check
crystal spec
shards build

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-crystal --apply
Doctorvibeos language doctor crystal
Primary testcrystal spec
Choose guideskill choose-language-pack
Recommendvibeos language recommend "…"

Procedure​

  1. Для нового продукта сначала choose-language-pack / vibeos language recommend.
  2. Work from the project root that matches pack manifests.
  3. Prefer project-local toolchain already locked in the repo.
  4. Explain destructive/export/breaking changes; wait for explicit ask.
  5. Do not invent core tools; stay on terminal + read_file + index CLI.

Pitfalls​

  • Prefer shards over global crystal deps.
  • macOS/Linux first; Windows support is limited.

Verification​

vibeos language doctor crystal
vibeos project index status