Logo: Local Skills Setup

Local Skills Setup

Communautéit
MeroZemory
local-skills-setup

Set up and manage local skills for automatic matching and invocation

Iwwersiicht

EditeurMeroZemory
Repositoryoh-my-droid
Skill-Nummlocal-skills-setup
Stären
29
Forks
7
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    MeroZemory huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Local Skills Setup an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/MeroZemory/oh-my-droid/tree/main/skills/local-skills-setup
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MeroZemory/oh-my-droid.git /tmp/oh-my-droid
mkdir -p .claude/skills
cp -r /tmp/oh-my-droid/skills/local-skills-setup .claude/skills/local-skills-setup
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Local Skills Setup an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Local Skills Setup automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Local Skills Setup net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Local Skills Setup

This skill provides a guided wizard for setting up and managing your local learned skills. Skills are reusable problem-solving patterns that the agent automatically applies when it detects matching triggers.

Why Local Skills?

Local skills allow you to capture hard-won insights and solutions that are specific to your codebase or workflow:

  • Project-level skills (.agents/skills/droid-learned/) - Version-controlled with your repo
  • User-level skills (~/.agents/skills/droid-learned/) - Portable across all your projects

When you solve a tricky bug or discover a non-obvious workaround, you can extract it as a skill. The agent will automatically detect and apply these skills in future conversations when it sees matching triggers.

Interactive Workflow

Step 1: Directory Check and Setup

First, check if skill directories exist and create them if needed:

bash
# Check and create user-level skills directory
USER_SKILLS_DIR="$HOME/.agents/skills/droid-learned"
if [ -d "$USER_SKILLS_DIR" ]; then
  echo "User skills directory exists: $USER_SKILLS_DIR"
else
  mkdir -p "$USER_SKILLS_DIR"
  echo "Created user skills directory: $USER_SKILLS_DIR"
fi

# Check and create project-level skills directory
PROJECT_SKILLS_DIR=".agents/skills/droid-learned"
if [ -d "$PROJECT_SKILLS_DIR" ]; then
  echo "Project skills directory exists: $PROJECT_SKILLS_DIR"
else
  mkdir -p "$PROJECT_SKILLS_DIR"
  echo "Created project skills directory: $PROJECT_SKILLS_DIR"
fi

Step 2: Skill Scan and Inventory

Scan canonical directories first, then legacy fallbacks. Deduplicate by the path relative to each source directory so migrated copies win while distinct nested skills remain visible.

bash
SEEN_FILE=$(mktemp)
trap 'rm -f "$SEEN_FILE"' EXIT

scan_skill_dir() {
  SCOPE="$1"
  DIR="$2"
  [ -d "$DIR" ] || return

  while IFS= read -r FILE; do
    RELATIVE_PATH="${FILE#"$DIR"/}"
    IDENTITY="$SCOPE:$RELATIVE_PATH"
    grep -Fqx "$IDENTITY" "$SEEN_FILE" && continue
    printf '%s\n' "$IDENTITY" >> "$SEEN_FILE"

    NAME=$(grep -m1 "^name:" "$FILE" 2>/dev/null | sed "s/name: //")
    DESC=$(grep -m1 "^description:" "$FILE" 2>/dev/null | sed "s/description: //")
    MODIFIED=$(stat -c "%y" "$FILE" 2>/dev/null || stat -f "%Sm" "$FILE" 2>/dev/null)
    echo "  - ${NAME:-$(basename "$FILE")}"
    [ -n "$DESC" ] && echo "    Description: $DESC"
    echo "    Path: $FILE"
    echo "    Modified: $MODIFIED"
    echo ""
  done < <(find "$DIR" -name "*.md" -type f 2>/dev/null)
}

echo "=== USER-LEVEL SKILLS ==="
scan_skill_dir user "$HOME/.agents/skills/droid-learned"
scan_skill_dir user "$HOME/.factory/skills/droid-learned"
scan_skill_dir user "$HOME/.factory/skills/omc-learned"
scan_skill_dir user "$HOME/.omd/skills"

echo "=== PROJECT-LEVEL SKILLS ==="
scan_skill_dir project ".agents/skills/droid-learned"
scan_skill_dir project ".omd/skills"

USER_COUNT=$(grep -c '^user:' "$SEEN_FILE" 2>/dev/null || true)
PROJECT_COUNT=$(grep -c '^project:' "$SEEN_FILE" 2>/dev/null || true)
TOTAL=$((USER_COUNT + PROJECT_COUNT))
echo "=== SUMMARY ==="
echo "Total skills across all directories: $TOTAL"

Step 3: Quick Actions Menu

After scanning, use the AskUserQuestion tool to offer these options:

Question: "What would you like to do with your local skills?"

Options:

  1. Add new skill - Start the skill creation wizard
  2. List all skills with details - Show comprehensive skill inventory with triggers
  3. Scan conversation for patterns - Analyze current conversation for skill-worthy patterns
  4. Import skill - Import a skill from URL or paste content
  5. Done - Exit the wizard
Option 1: Add New Skill

If user chooses "Add new skill", invoke the learner skill:

Use the Skill tool to invoke: learner

This will guide them through the extraction process with quality validation.

Option 2: List All Skills with Details

Show detailed information including trigger keywords:

bash
echo "=== DETAILED SKILL INVENTORY ==="
echo ""

# Function to show skill details
show_skill_details() {
  FILE="$1"
  LOCATION="$2"

  echo "---"
  echo "Location: $LOCATION"
  echo "File: $(basename "$FILE")"

  # Extract frontmatter
  NAME=$(grep -m1 "^name:" "$FILE" 2>/dev/null | sed "s/name: //")
  DESC=$(grep -m1 "^description:" "$FILE" 2>/dev/null | sed "s/description: //")
  TRIGGERS=$(grep -m1 "^triggers:" "$FILE" 2>/dev/null | sed "s/triggers: //")
  QUALITY=$(grep -m1 "^quality:" "$FILE" 2>/dev/null | sed "s/quality: //")

  [ -n "$NAME" ] && echo "Name: $NAME"
  [ -n "$DESC" ] && echo "Description: $DESC"
  [ -n "$TRIGGERS" ] && echo "Triggers: $TRIGGERS"
  [ -n "$QUALITY" ] && echo "Quality: $QUALITY"

  # Last modified
  MODIFIED=$(stat -c "%y" "$FILE" 2>/dev/null | cut -d. -f1 || stat -f "%Sm" "$FILE" 2>/dev/null)
  echo "Last modified: $MODIFIED"
  echo ""
}

# Export function for subshell
export -f show_skill_details

# Show canonical skills first, then legacy fallbacks. Skip a legacy file when
# its relative path has already been shown for the same scope.
SEEN_FILE=$(mktemp)
trap 'rm -f "$SEEN_FILE"' EXIT

show_scope() {
  SCOPE="$1"
  LOCATION="$2"
  DIR="$3"
  [ -d "$DIR" ] || return

  while IFS= read -r FILE; do
    RELATIVE_PATH="${FILE#"$DIR"/}"
    IDENTITY="$SCOPE:$RELATIVE_PATH"
    grep -Fqx "$IDENTITY" "$SEEN_FILE" && continue
    printf '%s\n' "$IDENTITY" >> "$SEEN_FILE"
    show_skill_details "$FILE" "$LOCATION"
  done < <(find "$DIR" -name "*.md" -type f 2>/dev/null)
}

show_scope user "user-level" "$HOME/.agents/skills/droid-learned"
show_scope user "user-level (legacy)" "$HOME/.factory/skills/droid-learned"
show_scope user "user-level (legacy)" "$HOME/.factory/skills/omc-learned"
show_scope user "user-level (legacy)" "$HOME/.omd/skills"
show_scope project "project-level" ".agents/skills/droid-learned"
show_scope project "project-level (legacy)" ".omd/skills"
Option 3: Scan Conversation for Patterns

Analyze the current conversation context to identify potential skill-worthy patterns. Look for:

  • Recent debugging sessions with non-obvious solutions
  • Tricky bugs that required investigation
  • Codebase-specific workarounds discovered
  • Error patterns that took time to resolve

Report findings and ask if user wants to extract any as skills.

Option 4: Import Skill

Ask user to provide either:

  • URL: Download skill from a URL (e.g., GitHub gist)
  • Paste content: Paste skill markdown content directly

Then ask for scope:

  • User-level (~/.agents/skills/droid-learned/) - Available across all projects
  • Project-level (.agents/skills/droid-learned/) - Only for this project

Validate the skill format and save to the chosen location.

Step 4: Skill Templates

Provide quick templates for common skill types. When user wants to create a skill, offer these starting points:

Error Solution Template
markdown
---
id: error-[unique-id]
name: [Error Name]
description: Solution for [specific error in specific context]
source: conversation
triggers: ["error message fragment", "file path", "symptom"]
quality: high
---

# [Error Name]

## The Insight
What is the underlying cause of this error? What principle did you discover?

## Why This Matters
What goes wrong if you don't know this? What symptom led here?

## Recognition Pattern
How do you know when this applies? What are the signs?
- Error message: "[exact error]"
- File: [specific file path]
- Context: [when does this occur]

## The Approach
Step-by-step solution:
1. [Specific action with file/line reference]
2. [Specific action with file/line reference]
3. [Verification step]

## Example
\`\`\`typescript
// Before (broken)
[problematic code]

// After (fixed)
[corrected code]
\`\`\`
Workflow Skill Template
markdown
---
id: workflow-[unique-id]
name: [Workflow Name]
description: Process for [specific task in this codebase]
source: conversation
triggers: ["task description", "file pattern", "goal keyword"]
quality: high
---

# [Workflow Name]

## The Insight
What makes this workflow different from the obvious approach?

## Why This Matters
What fails if you don't follow this process?

## Recognition Pattern
When should you use this workflow?
- Task type: [specific task]
- Files involved: [specific patterns]
- Indicators: [how to recognize]

## The Approach
1. [Step with specific commands/files]
2. [Step with specific commands/files]
3. [Verification]

## Gotchas
- [Common mistake and how to avoid it]
- [Edge case and how to handle it]
Code Pattern Template
markdown
---
id: pattern-[unique-id]
name: [Pattern Name]
description: Pattern for [specific use case in this codebase]
source: conversation
triggers: ["code pattern", "file type", "problem domain"]
quality: high
---

# [Pattern Name]

## The Insight
What's the key principle behind this pattern?

## Why This Matters
What problems does this pattern solve in THIS codebase?

## Recognition Pattern
When do you apply this pattern?
- File types: [specific files]
- Problem: [specific problem]
- Context: [codebase-specific context]

## The Approach
Decision-making heuristic, not just code:
1. [Principle-based step]
2. [Principle-based step]

## Example
\`\`\`typescript
[Illustrative example showing the principle]
\`\`\`

## Anti-Pattern
What NOT to do and why:
\`\`\`typescript
[Common mistake to avoid]
\`\`\`
Integration Skill Template
markdown
---
id: integration-[unique-id]
name: [Integration Name]
description: How [system A] integrates with [system B] in this codebase
source: conversation
triggers: ["system name", "integration point", "config file"]
quality: high
---

# [Integration Name]

## The Insight
What's non-obvious about how these systems connect?

## Why This Matters
What breaks if you don't understand this integration?

## Recognition Pattern
When are you working with this integration?
- Files: [specific integration files]
- Config: [specific config locations]
- Symptoms: [what indicates integration issues]

## The Approach
How to work with this integration correctly:
1. [Configuration step with file paths]
2. [Setup step with specific details]
3. [Verification step]

## Gotchas
- [Integration-specific pitfall #1]
- [Integration-specific pitfall #2]

Usage Modes

Direct Command Mode

When invoked with an argument, skip the interactive wizard:

  • /local-skills-setup list - Show detailed skill inventory
  • /local-skills-setup add - Start skill creation (invoke learner)
  • /local-skills-setup scan - Scan both skill directories

Interactive Mode

When invoked without arguments, run the full guided wizard (Steps 1-4).

Skill Quality Guidelines

Remind users that good skills are:

  1. Non-Googleable - Can't easily find via search

    • BAD: "How to read files in TypeScript" ❌
    • GOOD: "This codebase uses custom path resolution requiring fileURLToPath" ✓
  2. Context-Specific - References actual files/errors from THIS codebase

    • BAD: "Use try/catch for error handling" ❌
    • GOOD: "The aiohttp proxy in server.py:42 crashes on ClientDisconnectedError" ✓
  3. Actionable with Precision - Tells exactly WHAT to do and WHERE

    • BAD: "Handle edge cases" ❌
    • GOOD: "When seeing 'Cannot find module' in dist/, check tsconfig.json moduleResolution" ✓
  4. Hard-Won - Required significant debugging effort

    • BAD: Generic programming patterns ❌
    • GOOD: "Race condition in worker.ts - Promise.all at line 89 needs await" ✓

Benefits of Local Skills

When introducing the skill system, explain these benefits:

Automatic Application: The agent detects triggers and applies skills automatically - no need to remember or search for solutions.

Version Control: Project-level skills (.agents/skills/droid-learned/) are committed with your code, so the whole team benefits.

Evolving Knowledge: Skills improve over time as you discover better approaches and refine triggers.

Reduced Token Usage: Instead of re-solving the same problems, the agent applies known patterns efficiently.

Codebase Memory: Preserves institutional knowledge that would otherwise be lost in conversation history.

Related Skills

  • /learner - Extract a skill from current conversation
  • /note - Save quick notes (less formal than skills)
  • /deepinit - Generate AGENTS.md codebase hierarchy

Example Session

Show users what a typical session looks like:

> /local-skills-setup

Checking skill directories...
✓ User skills directory exists: ~/.agents/skills/droid-learned/
✓ Project skills directory exists: .agents/skills/droid-learned/

Scanning for skills...

=== USER-LEVEL SKILLS ===
Total skills: 3
  - async-network-error-handling
    Description: Pattern for handling independent I/O failures in async network code
    Modified: 2026-01-20 14:32:15

  - esm-path-resolution
    Description: Custom path resolution in ESM requiring fileURLToPath
    Modified: 2026-01-19 09:15:42

=== PROJECT-LEVEL SKILLS ===
Total skills: 5
  - session-timeout-fix
    Description: Fix for sessionId undefined after restart in session.ts
    Modified: 2026-01-22 16:45:23

  - build-cache-invalidation
    Description: When to clear TypeScript build cache to fix phantom errors
    Modified: 2026-01-21 11:28:37

=== SUMMARY ===
Total skills: 8

What would you like to do?
1. Add new skill
2. List all skills with details
3. Scan conversation for patterns
4. Import skill
5. Done

Tips for Users

  • Run /local-skills-setup scan periodically to review your skill library
  • After solving a tricky bug, immediately run learner to capture it
  • Use project-level skills for codebase-specific knowledge
  • Use user-level skills for general patterns that apply everywhere
  • Review and refine triggers over time to improve matching accuracy

Heefeg gestallte Froen

Wat mécht de KI-Skill Local Skills Setup?

Set up and manage local skills for automatic matching and invocation

Firwat Local Skills Setup op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Local Skills Setup besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Local Skills Setup an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/MeroZemory/oh-my-droid/tree/main/skills/local-skills-setup an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Local Skills Setup benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Local Skills Setup benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Local Skills Setup domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Local Skills Setup gratis?

Jo. MeroZemory huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇