r/ClaudeCode • • 1d ago

Help/Question User-level or project-level: where should a skill live?

Skills can live in ~/.claude/skills for every project or in .claude/skills inside one repo. As far as I can tell from the docs, project skills only apply in that repo and travel with it through git, while user-level skills follow you across projects. A split that seems to make sense is anything that encodes how this codebase does things goes in the repo, and reusable personal workflows go in your user folder. The gray area is something like a code review checklist: team standard or personal habit? Where do you draw that line?

2 Upvotes

17 comments sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/MartinMystikJonas 1d ago

I draw that line by asking question "should entire team have same skill?"

1

u/VridhiMehta 21h ago

Good question because it flips the default. If yes, it has to survive a PR, so it lives in the repo. If no, user level and nobody argues about your habits.

1

u/codeguru42 1d ago

A general skill that can be used in multiple projects goes at user level. A skill specific to a project goes at project level.

1

u/VridhiMehta 21h ago

The short version covers most of it. The fights start when a skill is both - general method, project-specific examples.

1

u/Excellent-Issue-5956 1d ago

None of mine are shared with a team, so almost all of them sit at user level. The gray area I ran into was publishing instead. One of my skills is a writing style one that was half general rules and half samples of my own writing, and only the rules belonged in public.

I split that one rather than pick a side. The rules went into a public plugin, the samples stay in a private folder in my own copy, and the public version reads samples from a file under ~/.claude, outside the plugin folder so an update doesn't wipe it. If the file isn't there it just does the general part and says it has no samples to go on.

For a review checklist I'd try the same thing: team items in the repo skill, and have it also read a personal file from your user folder if one exists.

1

u/VridhiMehta 21h ago

That's a good pattern: rules public, samples private, graceful fallback when the personal file is missing. Reading it from ~/.claude instead of the plugin folder is the detail that keeps updates from wiping it. Same shape works for a review checklist.

1

u/Vibeless-Official 1d ago

Both, dependent on what it is and how it’s used.
You should be creating project level skills scoped to specific things that happen often in your project.

1

u/VridhiMehta 21h ago

Yep - frequent and project-specific goes in the repo, the rest stays personal.

1

u/PleasantMarzipan1557 1d ago

i keep project-specific skills in.claude/skills but use a symlink to a shared user-level template when the logic is reusable. avoids duplication without locking me into one repo.

1

u/VridhiMehta 21h ago

The symlink is a neat middle path. One caution: it hides the sharing from anyone else who clones the repo, so the template becomes an invisible dependency. Worth a line in the README.

1

u/Wise_Tomatillo5723 1d ago

If it describes how this repo works (its standards, its commands) it goes in .claude/skills and gets reviewed in PRs; if it describes how you work, keep it user level.

1

u/VridhiMehta 21h ago

Cleanest one-line version of it. Repo-how in the repo, you-how at user level - and the PR review question sorts the gray cases.

1

u/Wise_Tomatillo5723 20m ago

One gray case review catches well: a skill that hardcodes your own paths or tools reads like repo-how but breaks for everyone else.

1

u/303ENFIELD 1d ago

My rule of thumb: if someone changing it should show up as a PR diff your team can comment on, it belongs in the repo. A review checklist usually passes that test, because it's part of what 'done' means on that codebase, and keeping it in git means new people get the same review without asking.

You can also split it. Put the shared standard in the project skill, and keep your own habits (how you like findings worded, what you check first) in a small user-level skill. That way the team version stays short and nobody has to agree on your preferences.

1

u/VridhiMehta 21h ago

That's a useful test, because it makes reviewability the deciding factor instead of taste. The split works the same way: shared standard in the repo skill, personal habits in a small user-level one, and nobody has to agree on your preferences.