WeSearch

how to use skills from Claude Code A.K.A Claudinho.

·2 min read · 0 reactions · 0 comments · 0 views
how to use skills from Claude Code A.K.A Claudinho.

As a start to using Claude, I’ve been trying to make the most of its features. While talking with a...

Original article
DEV Community
Read full at DEV Community →
Full article excerpt tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 210156) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } CunhaDaniel Posted on Apr 28 how to use skills from Claude Code A.K.A Claudinho. #ai #claude #agents #tutorial As a start to using Claude, I’ve been trying to make the most of its features. While talking with a friend, we started discussing skills. In the Claude docs, skills are more personalized agents with a bit more context. For example, before asking the chat to create a new report, you can say: “Act as a nutritionist with a cutting goal and create the best regimen for me.” After that, the agent will be more accurate for this objective. But if you want to reuse that context for future tasks, skills are your best option. For different objectives, it’s possible to create a single command to reuse the context. At work, we have some issues with RuboCop because the project has some legacy code, and it often needs to be refactored to follow RuboCop rules. This is very boring, so I created a skill to handle that for me before we send the code to GitHub. So, I added this command to my Claude terminal session to create a skill: Create a /review-code skill to review Ruby and JavaScript code. Read the project's .rubocop.yml and .eslintrc.js files and extract the configured rules. Build the skill with: Instructions to identify what to review: if no argument is passed, run git diff main...HEAD --name-only and read each relevant file before reviewing Ruby section with rules grouped by category (Lint, Security, Metrics, Naming, Style, Layout) — separating what blocks merge from what is a warning JavaScript section with rules grouped (Errors, Warnings, Modern code in app/webpack/, Vue, Legacy code in app/assets/javascripts/) Report format with: 🔴 Blockers, 🟡 Warnings, 🟢 Good practices observed, 📋 Summary Be direct and specific: quote the problematic snippet and show how it would look corrected. Do not list rules that were not violated. Enter fullscreen mode Exit fullscreen mode After that, the command will be available in your Claude project session. You can invoke it by typing /, as shown below: Top comments (0) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse

This excerpt is published under fair use for community discussion. Read the full article at DEV Community.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Email

Discussion

0 comments

More from DEV Community