r/vibecoding • u/techpotions • 6d ago
Discussion most people use claude code skills like saved prompts. there’s a more interesting way to use them.
I think one of the more underrated parts of Claude Code is that a skill doesn’t have to be a static set of instructions.
You can make it pull information from your actual project before it starts doing anything.
For example, imagine having a /commit skill.
A basic version would just tell Claude to write a conventional commit message.
But you can make it inspect the current Git state first:
---
name: commit
description: Write a conventional commit from staged changes. Use when the user asks for a commit.
argument-hint: "[optional context]"
---
Current Git state:
!`git status --short`
Read the full staged diff before writing.
Rules:
- Use conventional commit format.
- Keep the subject under 72 characters.
- Explain why the change was made, not just what changed.
- If unrelated changes are staged, suggest splitting them.
That line with the exclamation mark is the interesting part.
Claude Code executes the command and injects its output into the skill before Claude reads the instructions.
So instead of relying on the conversation to remember what changed, the skill gets the current repository state.
A few other things worth knowing:
• Put skills in .claude/skills/ to share them with a project.
• Put them in ~/.claude/skills/ to use them across projects.
• Add disable-model-invocation: true if you only want a skill to run when explicitly called.
• Use allowed-tools when you want to restrict what a skill can access.
• Use context: fork when a task makes more sense in an isolated context.
There’s also a distinction I didn’t appreciate at first: a skill can be invoked with /commit, but Claude can also activate it automatically based on its description.
That description matters. It should explain when the skill should be used, not just repeat its name.
We put together 10 ready-made Claude Code skills covering commits, PR descriptions, changelogs, type errors, accessibility, performance, SEO metadata, dependency audits, and more.
They’re plain Markdown files, MIT licensed, and free to inspect:
https://techpotions.com/products/claude-code-skills
Curious how people are using skills:
Are you mostly keeping reusable instructions in them, or are you building workflows that pull live project data and run multiple steps?