Skip to content
Back to skills

Crystal

ASecurity

Use when working on Crystal projects. Detected by the presence of a shard.yml file.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
toolsbashtestinggit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add robacarp/dotfiles --skill crystal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crystal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crystal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/robacarp-crystal/badge)](https://www.skillsdirectory.com/skills/robacarp-crystal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: crystal
description: Use when working on Crystal projects. Detected by the presence of a shard.yml file.
disable-model-invocation: false
user-invocable: false
allowed-tools: Bash
---

# Crystal Project Workflow

## Shard management

- Never manually edit `shard.lock` — run `shards install` to regenerate it after changing `shard.yml`.
- When pointing a shard at a GitHub repo without a published version tag, add `branch: master` to `shard.yml` so the resolver can find it.
- Local `path:` dependencies are for development only — always switch to `github:` before committing.

## Building and running

- `shards run --error-trace <target>` — compile and run a target listed in `shard.yml` in one step.
- `crystal tool format` — format all Crystal files in the project.
- `crystal spec spec/path/to/test_spec.cr:LINE_NUMBER --error-trace` — run a specific test with error traces.

## Testing patterns

- Tests use Minitest, not Crystal's built-in `spec` framework.
- To test private methods, add a public proxy method on the class that delegates to the private one (see existing specs for examples).
- Test files live in `spec/` mirroring the `src/` directory structure.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.