shareful-search
Original:🇺🇸 English
Translated
Helps users discover and apply shared coding solutions when they ask "has anyone solved this", "search for a fix", "find a workaround", or want proven patterns before debugging from scratch. Uses `npx shareful-ai search` to find relevant shares, compare options, and recommend the best match.
7installs
Sourceshareful-ai/skills
Added on
NPX Install
npx skill4agent add shareful-ai/skills shareful-searchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Shareful Search
This skill helps discover and apply existing coding solutions from shareful.ai.
When to Use This Skill
Use this skill when the user:
- Asks "has anyone solved this" or "is there a known fix for X"
- Wants to search for existing solutions before deep debugging
- Has an error message and wants likely fixes quickly
- Needs a workaround for a framework/library gotcha
- Wants proven patterns from real examples
What is Shareful CLI Search?
npx shareful-ai searchKey commands:
- - Search by keywords
npx shareful-ai search [query] - - Filter by solution type
npx shareful-ai search [query] --type fix - - Filter by tags
npx shareful-ai search [query] --tags "tag1,tag2" - - Return more results
npx shareful-ai search [query] --limit 10 - - Report a share worked
npx shareful-ai confirm <owner/repo/slug> - - Report it didn't work
npx shareful-ai confirm <owner/repo/slug> --failed
Browse shares at: https://shareful.ai/
How to Help Users Find Shares
Step 1: Understand What They Need
When a user asks for help, identify:
- The technology stack (framework, language, key libraries)
- The specific issue (error string, symptom, or behavior)
- The likely share type (,
fix,workaround,pattern,reference)config
Step 2: Search for Shares
Run search with a focused query:
bash
npx shareful-ai search [query]Examples:
- User asks "how do I fix hydration mismatch?" ->
npx shareful-ai search nextjs hydration mismatch - User asks "known Prisma N+1 fix?" ->
npx shareful-ai search prisma n-plus-one --type fix - User asks "React stale closure issue" ->
npx shareful-ai search react stale closure --tags "react,hooks"
Step 3: Present Options to the User
When you find relevant shares, present:
- Share title and solution type
- Why it matches the user issue
- Link to the share URL
Example response:
text
I found a likely match: "Fix Next.js hydration error with dynamic imports" [fix, verified].
It matches your symptom (server/client mismatch around browser-only APIs).
Share: https://shareful.ai/s/owner/repo/fix-nextjs-hydration-dynamic-importsStep 4: Apply and Confirm
If the user wants to proceed:
- Apply the fix in their codebase
- Verify the original issue is resolved
- If fixed, confirm the share worked:
bash
npx shareful-ai confirm owner/repo/slug - If it didn't work, report failure and try the next result:
bash
npx shareful-ai confirm owner/repo/slug --failed
Common Search Categories
| Category | Example Queries |
|---|---|
| React/Next.js | hydration, server-components, suspense, ssr |
| Data/DB | prisma, postgres, query, migration, n-plus-one |
| TypeScript | generics, module-augmentation, satisfies, inference |
| Build/Deploy | docker, cache, ci, github-actions, vercel |
| Configuration | eslint, tsconfig, env-vars, runtime |
Tips for Effective Searches
- Use specific keywords: is better than
nextjs hydration mismatchnextjs error - Include error fragments: Copy a unique part of the error text
- Try alternate terms: ,
n+1,n-plus-onerelation loading - Use filters: Narrow with and
--typewhen result sets are broad--tags
When No Shares Are Found
If no relevant shares exist:
- Acknowledge no match was found
- Continue with direct debugging
- Suggest creating a new share via
shareful-create
Example response:
text
I searched for matching shares but didn’t find a reliable result.
I can debug this directly and still get you unstuck.
If we solve it, we can capture it with the `shareful-create` workflow so future searches find it.Related Skills
- for drafting a new SHARE.md after solving a new issue
shareful-create