DEV Community

Neha Sharma
Neha Sharma

Posted on • Originally published at Medium

Claude skills vs Commands

If you are using Claude for “vibe coding”, you may have come across Skills and Commands. Both are mechanisms to automate workflows, but they differ significantly in how they are invoked and used.

AI usage for this blog: This blog was human written. I used AI for clarity, image creation, and Grammar check

This blog provides a concise overview and a practical comparison.

Skills.md

Skills are reusable instruction sets that Claude can apply implicitly. They are typically defined as .md files containing structured instructions for specific tasks.

Skills characteristics:

  1. Implicitly available: Claude loads and considers skills without explicit invocation

  2. Context-driven execution: Triggered based on natural language prompts

  3. Reusable patterns: Ideal for consistent workflows (e.g., accessibility reviews, code audits)

eg: If you define an accessibility skill, a prompt like: “Review this for accessibility” . will automatically trigger the skill without needing any special syntax.

Accessibility skill — https://github.com/Neha/check-fix-accessibility/blob/main/review-fix-a11y/SKILL.md

Skills are effectively preloaded context. They reduce the need for repeated prompt engineering. They can be scoped to avoid always being active (depending on configuration)

Starter template:

https://github.com/Neha/skill-starter-template

Commands

Commands are explicitly invoked automation scripts. They are also defined as .md files, but unlike skills, they are only executed when explicitly called. In Claude, there are inbuilt commands eg: /init, /compact, /clearetc. One can build own custom commands too.

Commands Characteristics

  1. Explicit invocation: Triggered using /

  2. Deterministic execution: Runs only when called

  3. Scoped usage: Can be local, global, or system-level

Skills vs Commands

Now the question is which to use when? Both are MD files then what’s the difference between the both? The core distinction lies in how they are invoked and discovered by Claude.

When to Use What?

Use Skills when:

You want automatic behavior

  1. The task should be context-aware

  2. You want to reduce prompt verbosity

  3. eg: code review standards, accessibility checks

Use Commands when:
You need explicit control

  1. The task is procedural or multi-step

  2. You don’t want it triggered unintentionally

  3. eg: generating reports, running transformations

Happy learning!!

You can connect me with at Linkedln, Twitter, Medium, my website

Top comments (0)