[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X7JA3NARSCTR8RJ2WY3B0T":3,"skill-same:01M6X7JA3NARSCTR8RJ2WY3B0T":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6X7JA3NARSCTR8RJ2WY3B0T","skill",null,"Manage local skills - list, add, remove, search, edit, setup wizard","Cheggin\u002Frequest-for-startups","Cheggin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F79483996?v=4","01M6X6MGT5512GJHE8DY5B1ZQJ","Reagan Hsu","01M6X6MGY03X7ZJNVRFM3R1040",1,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fskill\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33],"setup","search","wizard","command","edit","list","remove","manage","local","add","2026-11-10 10:12:30",false,"---\nname: skill\ndescription: Manage local skills - list, add, remove, search, edit, setup wizard\nargument-hint: \"\u003Ccommand> [args]\"\nlevel: 2\n---\n\n# Skill Management CLI\n\nMeta-skill for managing oh-my-claudecode skills via CLI-like commands.\n\n## Subcommands\n\n### \u002Fskill list\n\nShow all available skills organized by scope.\n\n**Behavior:**\n1. Scan bundled built-in skills in the plugin `skills\u002F` directory (read-only)\n2. Scan user skills at `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F`\n3. Scan project skills at `.omc\u002Fskills\u002F`\n4. Parse YAML frontmatter for metadata\n5. Display in organized table format:\n\n```\nBUILT-IN SKILLS (bundled with oh-my-claudecode):\n| Name              | Description                    | Scope    |\n|-------------------|--------------------------------|----------|\n| visual-verdict    | Structured visual QA verdicts  | built-in |\n| ralph             | Persistence loop               | built-in |\n\nUSER SKILLS (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F):\n| Name              | Triggers           | Quality | Usage | Scope |\n|-------------------|--------------------|---------|-------|-------|\n| error-handler     | fix, error         | 95%     | 42    | user  |\n| api-builder       | api, endpoint      | 88%     | 23    | user  |\n\nPROJECT SKILLS (.omc\u002Fskills\u002F):\n| Name              | Triggers           | Quality | Usage | Scope   |\n|-------------------|--------------------|---------|-------|---------|\n| test-runner       | test, run          | 92%     | 15    | project |\n```\n\n**Fallback:** If quality\u002Fusage stats not available, show \"N\u002FA\"\n\n**Built-in skill note:** Built-in skills are bundled with oh-my-claudecode and are discoverable\u002Freadable, but not removed or edited through `\u002Fskill remove` or `\u002Fskill edit`.\n\n---\n\n### \u002Fskill add [name]\n\nInteractive wizard for creating a new skill.\n\n**Behavior:**\n1. **Ask for skill name** (if not provided in command)\n   - Validate: lowercase, hyphens only, no spaces\n2. **Ask for description**\n   - Clear, concise one-liner\n3. **Ask for triggers** (comma-separated keywords)\n   - Example: \"error, fix, debug\"\n4. **Ask for argument hint** (optional)\n   - Example: \"\u003Cfile> [options]\"\n5. **Ask for scope:**\n   - `user` → `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F\u003Cname>\u002FSKILL.md`\n   - `project` → `.omc\u002Fskills\u002F\u003Cname>\u002FSKILL.md`\n6. **Create skill file** with template:\n\n```yaml\n---\nname: \u003Cname>\ndescription: \u003Cdescription>\ntriggers:\n  - \u003Ctrigger1>\n  - \u003Ctrigger2>\nargument-hint: \"\u003Cargs>\"\n---\n\n# \u003CName> Skill\n\n## Purpose\n\n[Describe what this skill does]\n\n## When to Activate\n\n[Describe triggers and conditions]\n\n## Workflow\n\n1. [Step 1]\n2. [Step 2]\n3. [Step 3]\n\n## Examples\n\n```\n\u002Fstartup-harness:\u003Cname> example-arg\n```\n\n## Notes\n\n[Additional context, edge cases, gotchas]\n```\n\n7. **Report success** with file path\n8. **Suggest:** \"Edit `\u002Fskill edit \u003Cname>` to customize content\"\n\n**Example:**\n```\nUser: \u002Fskill add custom-logger\nAssistant: Creating new skill 'custom-logger'...\n\nDescription: Enhanced logging with structured output\nTriggers (comma-separated): log, logger, logging\nArgument hint (optional): \u003Clevel> [message]\nScope (user\u002Fproject): user\n\n✓ Created skill at ~\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002FSKILL.md\n→ Edit with: \u002Fskill edit custom-logger\n```\n\n---\n\n### \u002Fskill remove \u003Cname>\n\nRemove a skill by name.\n\n**Behavior:**\n1. **Search for skill** in both scopes:\n   - `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F\u003Cname>\u002FSKILL.md`\n   - `.omc\u002Fskills\u002F\u003Cname>\u002FSKILL.md`\n2. **If found:**\n   - Display skill info (name, description, scope)\n   - **Ask for confirmation:** \"Delete '\u003Cname>' skill from \u003Cscope>? (yes\u002Fno)\"\n3. **If confirmed:**\n   - Delete entire skill directory (e.g., `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F\u003Cname>\u002F`)\n   - Report: \"✓ Removed skill '\u003Cname>' from \u003Cscope>\"\n4. **If not found:**\n   - Report: \"✗ Skill '\u003Cname>' not found in user or project scope\"\n\n**Safety:** Never delete without explicit user confirmation.\n\n**Example:**\n```\nUser: \u002Fskill remove old-logger\nAssistant: Found skill 'old-logger' in user scope:\n  Description: Legacy logging utility\n  Scope: user (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F)\n\nDelete 'old-logger' skill? (yes\u002Fno)\n\nUser: yes\nAssistant: ✓ Removed skill 'old-logger' from user scope\n```\n\n---\n\n### \u002Fskill edit \u003Cname>\n\nEdit an existing skill interactively.\n\n**Behavior:**\n1. **Find skill** by name (search both scopes)\n2. **Read current content** via Read tool\n3. **Display current values:**\n   ```\n   Current skill 'custom-logger':\n   - Description: Enhanced logging with structured output\n   - Triggers: log, logger, logging\n   - Argument hint: \u003Clevel> [message]\n   - Scope: user\n   ```\n4. **Ask what to change:**\n   - `description` - Update description\n   - `triggers` - Update trigger keywords\n   - `argument-hint` - Update argument hint\n   - `content` - Edit full markdown content\n   - `rename` - Rename skill (move file)\n   - `cancel` - Exit without changes\n5. **For selected field:**\n   - Show current value\n   - Ask for new value\n   - Update YAML frontmatter or content\n   - Write back to file\n6. **Report success** with summary of changes\n\n**Example:**\n```\nUser: \u002Fskill edit custom-logger\nAssistant: Current skill 'custom-logger':\n  - Description: Enhanced logging with structured output\n  - Triggers: log, logger, logging\n  - Argument hint: \u003Clevel> [message]\n\nWhat would you like to edit? (description\u002Ftriggers\u002Fargument-hint\u002Fcontent\u002Frename\u002Fcancel)\n\nUser: triggers\nAssistant: Current triggers: log, logger, logging\nNew triggers (comma-separated): log, logger, logging, trace\n\n✓ Updated triggers for 'custom-logger'\n```\n\n---\n\n### \u002Fskill search \u003Cquery>\n\nSearch skills by content, triggers, name, or description.\n\n**Behavior:**\n1. **Scan all skills** in both scopes\n2. **Match query** (case-insensitive) against:\n   - Skill name\n   - Description\n   - Triggers\n   - Full markdown content\n3. **Display matches** with context:\n\n```\nFound 3 skills matching \"typescript error\":\n\n1. typescript-fixer (user)\n   Description: Fix common TypeScript errors\n   Match: \"typescript error handling patterns\"\n\n2. error-handler (user)\n   Description: Generic error handling utilities\n   Match: \"Supports TypeScript and JavaScript errors\"\n\n3. lint-fix (project)\n   Description: Auto-fix linting errors\n   Match: \"TypeScript ESLint error resolution\"\n```\n\n**Ranking:** Prioritize matches in name\u002Ftriggers over content matches\n\n**Example:**\n```\nUser: \u002Fskill search api endpoint\nAssistant: Found 2 skills matching \"api endpoint\":\n\n1. api-builder (user)\n   Description: Generate REST API endpoints\n   Triggers: api, endpoint, rest\n\n2. backend-scaffold (project)\n   Description: Scaffold backend services\n   Match: \"Creates API endpoint boilerplate\"\n```\n\n---\n\n### \u002Fskill info \u003Cname>\n\nShow detailed information about a skill.\n\n**Behavior:**\n1. **Find skill** by name (search both scopes)\n2. **Parse YAML frontmatter** and content\n3. **Display complete details:**\n\n```\nSkill: custom-logger\nScope: user (~\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002F)\nDescription: Enhanced logging with structured output\nTriggers: log, logger, logging\nArgument Hint: \u003Clevel> [message]\nQuality: 95% (if available)\nUsage Count: 42 times (if available)\nFile Path: \u002Fhome\u002Fuser\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002FSKILL.md\n\n--- FULL CONTENT ---\n[entire markdown content]\n```\n\n**If not found:** Report error with suggestion to use `\u002Fskill search`\n\n**Example:**\n```\nUser: \u002Fskill info custom-logger\nAssistant: Skill: custom-logger\nScope: user\nDescription: Enhanced logging with structured output\nTriggers: log, logger, logging\nFile: ~\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002FSKILL.md\n\n--- CONTENT ---\n# Custom Logger Skill\n\n## Purpose\nEnhanced logging with structured JSON output...\n[rest of content]\n```\n\n---\n\n### \u002Fskill sync\n\nSync skills between user and project scopes.\n\n**Behavior:**\n1. **Scan both scopes:**\n   - User skills: `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F`\n   - Project skills: `.omc\u002Fskills\u002F`\n2. **Compare and categorize:**\n   - User-only skills (not in project)\n   - Project-only skills (not in user)\n   - Common skills (in both)\n3. **Display sync opportunities:**\n\n```\nSYNC REPORT:\n\nUser-only skills (5):\n  - error-handler\n  - api-builder\n  - custom-logger\n  - test-generator\n  - deploy-helper\n\nProject-only skills (2):\n  - test-runner\n  - backend-scaffold\n\nCommon skills (3):\n  - frontend-ui-ux\n  - git-master\n  - planner\n\nOptions:\n  [1] Copy user skill to project\n  [2] Copy project skill to user\n  [3] View differences\n  [4] Cancel\n```\n\n4. **Handle user choice:**\n   - Option 1: Select skill(s) to copy to project\n   - Option 2: Select skill(s) to copy to user\n   - Option 3: Show side-by-side diff for common skills\n   - Option 4: Exit\n\n**Safety:** Never overwrite without confirmation\n\n**Example:**\n```\nUser: \u002Fskill sync\nAssistant: Found 5 user-only skills and 2 project-only skills.\n\nCopy 'error-handler' from user to project? (yes\u002Fno\u002Fskip)\nUser: yes\nAssistant: ✓ Copied 'error-handler' to .omc\u002Fskills\u002F\n\nCopy 'api-builder' from user to project? (yes\u002Fno\u002Fskip)\nUser: skip\n...\n```\n\n---\n\n### \u002Fskill setup\n\nInteractive wizard for setting up and managing local skills (formerly local-skills-setup).\n\n**Behavior:**\n\n#### Step 1: Directory Check and Setup\n\nFirst, check if skill directories exist and create them if needed:\n\n```bash\n# Check and create user-level skills directory\nUSER_SKILLS_DIR=\"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\"\nif [ -d \"$USER_SKILLS_DIR\" ]; then\n  echo \"User skills directory exists: $USER_SKILLS_DIR\"\nelse\n  mkdir -p \"$USER_SKILLS_DIR\"\n  echo \"Created user skills directory: $USER_SKILLS_DIR\"\nfi\n\n# Check and create project-level skills directory\nPROJECT_SKILLS_DIR=\".omc\u002Fskills\"\nif [ -d \"$PROJECT_SKILLS_DIR\" ]; then\n  echo \"Project skills directory exists: $PROJECT_SKILLS_DIR\"\nelse\n  mkdir -p \"$PROJECT_SKILLS_DIR\"\n  echo \"Created project skills directory: $PROJECT_SKILLS_DIR\"\nfi\n```\n\n#### Step 2: Skill Scan and Inventory\n\nScan both directories and show a comprehensive inventory:\n\n```bash\n# Scan user-level skills\necho \"=== USER-LEVEL SKILLS (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F) ===\"\nif [ -d \"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\" ]; then\n  USER_COUNT=$(find \"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\" -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l)\n  echo \"Total skills: $USER_COUNT\"\n\n  if [ $USER_COUNT -gt 0 ]; then\n    echo \"\"\n    echo \"Skills found:\"\n    find \"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\" -name \"*.md\" -type f -exec sh -c '\n      FILE=\"$1\"\n      NAME=$(grep -m1 \"^name:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fname: \u002F\u002F\")\n      DESC=$(grep -m1 \"^description:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fdescription: \u002F\u002F\")\n      MODIFIED=$(stat -c \"%y\" \"$FILE\" 2>\u002Fdev\u002Fnull || stat -f \"%Sm\" \"$FILE\" 2>\u002Fdev\u002Fnull)\n      echo \"  - $NAME\"\n      [ -n \"$DESC\" ] && echo \"    Description: $DESC\"\n      echo \"    Modified: $MODIFIED\"\n      echo \"\"\n    ' sh {} \\;\n  fi\nelse\n  echo \"Directory not found\"\nfi\n\necho \"\"\necho \"=== PROJECT-LEVEL SKILLS (.omc\u002Fskills\u002F) ===\"\nif [ -d \".omc\u002Fskills\" ]; then\n  PROJECT_COUNT=$(find \".omc\u002Fskills\" -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l)\n  echo \"Total skills: $PROJECT_COUNT\"\n\n  if [ $PROJECT_COUNT -gt 0 ]; then\n    echo \"\"\n    echo \"Skills found:\"\n    find \".omc\u002Fskills\" -name \"*.md\" -type f -exec sh -c '\n      FILE=\"$1\"\n      NAME=$(grep -m1 \"^name:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fname: \u002F\u002F\")\n      DESC=$(grep -m1 \"^description:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fdescription: \u002F\u002F\")\n      MODIFIED=$(stat -c \"%y\" \"$FILE\" 2>\u002Fdev\u002Fnull || stat -f \"%Sm\" \"$FILE\" 2>\u002Fdev\u002Fnull)\n      echo \"  - $NAME\"\n      [ -n \"$DESC\" ] && echo \"    Description: $DESC\"\n      echo \"    Modified: $MODIFIED\"\n      echo \"\"\n    ' sh {} \\;\n  fi\nelse\n  echo \"Directory not found\"\nfi\n\n# Summary\nTOTAL=$((USER_COUNT + PROJECT_COUNT))\necho \"=== SUMMARY ===\"\necho \"Total skills across all directories: $TOTAL\"\n```\n\n#### Step 3: Quick Actions Menu\n\nAfter scanning, use the AskUserQuestion tool to offer these options:\n\n**Question:** \"What would you like to do with your local skills?\"\n\n**Options:**\n1. **Add new skill** - Start the skill creation wizard (invoke `\u002Fskill add`)\n2. **List all skills with details** - Show comprehensive skill inventory (invoke `\u002Fskill list`)\n3. **Scan conversation for patterns** - Analyze current conversation for skill-worthy patterns\n4. **Import skill** - Import a skill from URL or paste content\n5. **Done** - Exit the wizard\n\n**Option 3: Scan Conversation for Patterns**\n\nAnalyze the current conversation context to identify potential skill-worthy patterns. Look for:\n- Recent debugging sessions with non-obvious solutions\n- Tricky bugs that required investigation\n- Codebase-specific workarounds discovered\n- Error patterns that took time to resolve\n\nReport findings and ask if user wants to extract any as skills (invoke `\u002Flearner` if yes).\n\n**Option 4: Import Skill**\n\nAsk user to provide either:\n- **URL**: Download skill from a URL (e.g., GitHub gist)\n- **Paste content**: Paste skill markdown content directly\n\nThen ask for scope:\n- **User-level** (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F) - Available across all projects\n- **Project-level** (.omc\u002Fskills\u002F) - Only for this project\n\nValidate the skill format and save to the chosen location.\n\n---\n\n### \u002Fskill scan\n\nQuick command to scan both skill directories (subset of `\u002Fskill setup`).\n\n**Behavior:**\nRun the scan from Step 2 of `\u002Fskill setup` without the interactive wizard.\n\n---\n\n## Skill Templates\n\nWhen creating skills via `\u002Fskill add` or `\u002Fskill setup`, offer quick templates for common skill types:\n\n### Error Solution Template\n\n```markdown\n---\nid: error-[unique-id]\nname: [Error Name]\ndescription: Solution for [specific error in specific context]\nsource: conversation\ntriggers: [\"error message fragment\", \"file path\", \"symptom\"]\nquality: high\n---\n\n# [Error Name]\n\n## The Insight\nWhat is the underlying cause of this error? What principle did you discover?\n\n## Why This Matters\nWhat goes wrong if you don't know this? What symptom led here?\n\n## Recognition Pattern\nHow do you know when this applies? What are the signs?\n- Error message: \"[exact error]\"\n- File: [specific file path]\n- Context: [when does this occur]\n\n## The Approach\nStep-by-step solution:\n1. [Specific action with file\u002Fline reference]\n2. [Specific action with file\u002Fline reference]\n3. [Verification step]\n\n## Example\n\\`\\`\\`typescript\n\u002F\u002F Before (broken)\n[problematic code]\n\n\u002F\u002F After (fixed)\n[corrected code]\n\\`\\`\\`\n```\n\n### Workflow Skill Template\n\n```markdown\n---\nid: workflow-[unique-id]\nname: [Workflow Name]\ndescription: Process for [specific task in this codebase]\nsource: conversation\ntriggers: [\"task description\", \"file pattern\", \"goal keyword\"]\nquality: high\n---\n\n# [Workflow Name]\n\n## The Insight\nWhat makes this workflow different from the obvious approach?\n\n## Why This Matters\nWhat fails if you don't follow this process?\n\n## Recognition Pattern\nWhen should you use this workflow?\n- Task type: [specific task]\n- Files involved: [specific patterns]\n- Indicators: [how to recognize]\n\n## The Approach\n1. [Step with specific commands\u002Ffiles]\n2. [Step with specific commands\u002Ffiles]\n3. [Verification]\n\n## Gotchas\n- [Common mistake and how to avoid it]\n- [Edge case and how to handle it]\n```\n\n### Code Pattern Template\n\n```markdown\n---\nid: pattern-[unique-id]\nname: [Pattern Name]\ndescription: Pattern for [specific use case in this codebase]\nsource: conversation\ntriggers: [\"code pattern\", \"file type\", \"problem domain\"]\nquality: high\n---\n\n# [Pattern Name]\n\n## The Insight\nWhat's the key principle behind this pattern?\n\n## Why This Matters\nWhat problems does this pattern solve in THIS codebase?\n\n## Recognition Pattern\nWhen do you apply this pattern?\n- File types: [specific files]\n- Problem: [specific problem]\n- Context: [codebase-specific context]\n\n## The Approach\nDecision-making heuristic, not just code:\n1. [Principle-based step]\n2. [Principle-based step]\n\n## Example\n\\`\\`\\`typescript\n[Illustrative example showing the principle]\n\\`\\`\\`\n\n## Anti-Pattern\nWhat NOT to do and why:\n\\`\\`\\`typescript\n[Common mistake to avoid]\n\\`\\`\\`\n```\n\n### Integration Skill Template\n\n```markdown\n---\nid: integration-[unique-id]\nname: [Integration Name]\ndescription: How [system A] integrates with [system B] in this codebase\nsource: conversation\ntriggers: [\"system name\", \"integration point\", \"config file\"]\nquality: high\n---\n\n# [Integration Name]\n\n## The Insight\nWhat's non-obvious about how these systems connect?\n\n## Why This Matters\nWhat breaks if you don't understand this integration?\n\n## Recognition Pattern\nWhen are you working with this integration?\n- Files: [specific integration files]\n- Config: [specific config locations]\n- Symptoms: [what indicates integration issues]\n\n## The Approach\nHow to work with this integration correctly:\n1. [Configuration step with file paths]\n2. [Setup step with specific details]\n3. [Verification step]\n\n## Gotchas\n- [Integration-specific pitfall #1]\n- [Integration-specific pitfall #2]\n```\n\n---\n\n## Error Handling\n\n**All commands must handle:**\n- File\u002Fdirectory doesn't exist\n- Permission errors\n- Invalid YAML frontmatter\n- Duplicate skill names\n- Invalid skill names (spaces, special chars)\n\n**Error format:**\n```\n✗ Error: \u003Cclear message>\n→ Suggestion: \u003Chelpful next step>\n```\n\n---\n\n## Usage Examples\n\n```bash\n# List all skills\n\u002Fskill list\n\n# Create a new skill\n\u002Fskill add my-custom-skill\n\n# Remove a skill\n\u002Fskill remove old-skill\n\n# Edit existing skill\n\u002Fskill edit error-handler\n\n# Search for skills\n\u002Fskill search typescript error\n\n# Get detailed info\n\u002Fskill info my-custom-skill\n\n# Sync between scopes\n\u002Fskill sync\n\n# Run setup wizard\n\u002Fskill setup\n\n# Quick scan\n\u002Fskill scan\n```\n\n## Usage Modes\n\n### Direct Command Mode\n\nWhen invoked with an argument, skip the interactive wizard:\n\n- `\u002Fstartup-harness:skill list` - Show detailed skill inventory\n- `\u002Fstartup-harness:skill add` - Start skill creation (invoke learner)\n- `\u002Fstartup-harness:skill scan` - Scan both skill directories\n\n### Interactive Mode\n\nWhen invoked without arguments, run the full guided wizard.\n\n---\n\n## Benefits of Local Skills\n\n**Automatic Application**: Claude detects triggers and applies skills automatically - no need to remember or search for solutions.\n\n**Version Control**: Project-level skills (.omc\u002Fskills\u002F) are committed with your code, so the whole team benefits.\n\n**Evolving Knowledge**: Skills improve over time as you discover better approaches and refine triggers.\n\n**Reduced Token Usage**: Instead of re-solving the same problems, Claude applies known patterns efficiently.\n\n**Codebase Memory**: Preserves institutional knowledge that would otherwise be lost in conversation history.\n\n---\n\n## Skill Quality Guidelines\n\nGood skills are:\n\n1. **Non-Googleable** - Can't easily find via search\n   - BAD: \"How to read files in TypeScript\"\n   - GOOD: \"This codebase uses custom path resolution requiring fileURLToPath\"\n\n2. **Context-Specific** - References actual files\u002Ferrors from THIS codebase\n   - BAD: \"Use try\u002Fcatch for error handling\"\n   - GOOD: \"The aiohttp proxy in server.py:42 crashes on ClientDisconnectedError\"\n\n3. **Actionable with Precision** - Tells exactly WHAT to do and WHERE\n   - BAD: \"Handle edge cases\"\n   - GOOD: \"When seeing 'Cannot find module' in dist\u002F, check tsconfig.json moduleResolution\"\n\n4. **Hard-Won** - Required significant debugging effort\n   - BAD: Generic programming patterns\n   - GOOD: \"Race condition in worker.ts - Promise.all at line 89 needs await\"\n\n---\n\n## Related Skills\n\n- `\u002Fstartup-harness:learner` - Extract a skill from current conversation\n- `\u002Fstartup-harness:note` - Save quick notes (less formal than skills)\n- `\u002Fstartup-harness:deepinit` - Generate AGENTS.md codebase hierarchy\n\n---\n\n## Example Session\n\n```\n> \u002Fstartup-harness:skill list\n\nChecking skill directories...\n✓ User skills directory exists: ~\u002F.claude\u002Fskills\u002Fomc-learned\u002F\n✓ Project skills directory exists: .omc\u002Fskills\u002F\n\nScanning for skills...\n\n=== USER-LEVEL SKILLS ===\nTotal skills: 3\n  - async-network-error-handling\n    Description: Pattern for handling independent I\u002FO failures in async network code\n    Modified: 2026-01-20 14:32:15\n\n  - esm-path-resolution\n    Description: Custom path resolution in ESM requiring fileURLToPath\n    Modified: 2026-01-19 09:15:42\n\n=== PROJECT-LEVEL SKILLS ===\nTotal skills: 5\n  - session-timeout-fix\n    Description: Fix for sessionId undefined after restart in session.ts\n    Modified: 2026-01-22 16:45:23\n\n  - build-cache-invalidation\n    Description: When to clear TypeScript build cache to fix phantom errors\n    Modified: 2026-01-21 11:28:37\n\n=== SUMMARY ===\nTotal skills: 8\n\nWhat would you like to do?\n1. Add new skill\n2. List all skills with details\n3. Scan conversation for patterns\n4. Import skill\n5. Done\n```\n\n---\n\n## Tips for Users\n\n- Run `\u002Fstartup-harness:skill list` periodically to review your skill library\n- After solving a tricky bug, immediately run learner to capture it\n- Use project-level skills for codebase-specific knowledge\n- Use user-level skills for general patterns that apply everywhere\n- Review and refine triggers over time to improve matching accuracy\n\n---\n\n## Implementation Notes\n\n1. **YAML Parsing:** Use frontmatter extraction for metadata\n2. **File Operations:** Use Read\u002FWrite tools, never Edit for new files\n3. **User Confirmation:** Always confirm destructive operations\n4. **Clear Feedback:** Use checkmarks (✓), crosses (✗), arrows (→) for clarity\n5. **Scope Resolution:** Always check both user and project scopes\n6. **Validation:** Enforce naming conventions (lowercase, hyphens only)\n\n---\n\n## Related Skills\n\n- `\u002Fstartup-harness:learner` - Extract a skill from current conversation\n- `\u002Fstartup-harness:note` - Save quick notes (less formal than skills)\n- `\u002Fstartup-harness:deepinit` - Generate AGENTS.md codebase hierarchy\n\n---\n\n## Skill Configuration (Enable\u002FDisable)\n\nControl which skills are active across all runtimes via `.harness\u002Fskills.yml`.\n\n### \u002Fskill enable \u003Cname>\n\nRe-enable a previously disabled skill.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs enable \u003Cname>`\n2. Removes the skill from the `disabled` list in `.harness\u002Fskills.yml`\n3. Report result\n\n### \u002Fskill disable \u003Cname>\n\nDisable a skill so it won't be loaded by any agent.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs disable \u003Cname>`\n2. Adds the skill to the `disabled` list in `.harness\u002Fskills.yml`\n3. Report result\n\n### \u002Fskill status \u003Cname>\n\nCheck if a skill is enabled or disabled.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs status \u003Cname>`\n2. Reports ENABLED or DISABLED\n\n---\n\n## Skill Chain Management\n\nManage deterministic multi-phase skill chains. Built-in chains live in `chains\u002Fskill-chains.json`. Custom chains live in `.harness\u002Fskills.yml`.\n\n### \u002Fskill chain list\n\nShow all skill chains (built-in and custom).\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain list`\n2. Displays built-in chains from `chains\u002Fskill-chains.json` and custom chains from `.harness\u002Fskills.yml`\n\n### \u002Fskill chain show \u003Cname>\n\nShow full details of a chain including all phases and their required skills.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain show \u003Cname>`\n2. Shows description, trigger, gate patterns, and all phases with skills\n\n### \u002Fskill chain create \u003Cname> \u003Ctrigger-skill> \u003Cdescription>\n\nCreate a new custom skill chain.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain create \u003Cname> \u003Ctrigger> \u003Cdescription>`\n2. Creates an empty chain in `.harness\u002Fskills.yml`\n3. Follow up with `chain add-gates` and `chain add-phase` to build it out\n\n### \u002Fskill chain add-phase \u003Cchain> \u003Cphase-name> \u003Cskill1,skill2,...>\n\nAdd a phase to a custom chain.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain add-phase \u003Cchain> \u003Cphase> \u003Cskills>`\n2. Validates all skill names exist\n3. Appends the phase to the chain\n\n### \u002Fskill chain add-gates \u003Cchain> \u003Cpattern1,pattern2,...>\n\nAdd file gate patterns to a custom chain.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain add-gates \u003Cchain> \u003Cpatterns>`\n2. Appends glob patterns that trigger phase enforcement\n\n### \u002Fskill chain delete \u003Cname>\n\nDelete a custom chain. Built-in chains cannot be deleted.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain delete \u003Cname>`\n2. Removes the chain from `.harness\u002Fskills.yml`\n\n---\n\n## Example: Custom Chain Workflow\n\n```bash\n# Create a new chain\n\u002Fskill chain create api-build convex-schema-validator API-first build\n\n# Add file gate patterns\n\u002Fskill chain add-gates api-build convex\u002F**,api\u002F**,server\u002F**\n\n# Add phases in order\n\u002Fskill chain add-phase api-build schema convex-schema-validator\n\u002Fskill chain add-phase api-build functions convex-functions,convex-http-actions\n\u002Fskill chain add-phase api-build test test-generator\n\u002Fskill chain add-phase api-build ship deploy-pipeline\n\n# Verify\n\u002Fskill chain show api-build\n```\n","# Skill Management CLI\n\nMeta-skill for managing oh-my-claudecode skills via CLI-like commands.\n\n## Subcommands\n\n### \u002Fskill list\n\nShow all available skills organized by scope.\n\n**Behavior:**\n1. Scan bundled built-in skills in the plugin `skills\u002F` directory (read-only)\n2. Scan user skills at `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F`\n3. Scan project skills at `.omc\u002Fskills\u002F`\n4. Parse YAML frontmatter for metadata\n5. Display in organized table format:\n\n```\nBUILT-IN SKILLS (bundled with oh-my-claudecode):\n| Name              | Description                    | Scope    |\n|-------------------|--------------------------------|----------|\n| visual-verdict    | Structured visual QA verdicts  | built-in |\n| ralph             | Persistence loop               | built-in |\n\nUSER SKILLS (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F):\n| Name              | Triggers           | Quality | Usage | Scope |\n|-------------------|--------------------|---------|-------|-------|\n| error-handler     | fix, error         | 95%     | 42    | user  |\n| api-builder       | api, endpoint      | 88%     | 23    | user  |\n\nPROJECT SKILLS (.omc\u002Fskills\u002F):\n| Name              | Triggers           | Quality | Usage | Scope   |\n|-------------------|--------------------|---------|-------|---------|\n| test-runner       | test, run          | 92%     | 15    | project |\n```\n\n**Fallback:** If quality\u002Fusage stats not available, show \"N\u002FA\"\n\n**Built-in skill note:** Built-in skills are bundled with oh-my-claudecode and are discoverable\u002Freadable, but not removed or edited through `\u002Fskill remove` or `\u002Fskill edit`.\n\n---\n\n### \u002Fskill add [name]\n\nInteractive wizard for creating a new skill.\n\n**Behavior:**\n1. **Ask for skill name** (if not provided in command)\n   - Validate: lowercase, hyphens only, no spaces\n2. **Ask for description**\n   - Clear, concise one-liner\n3. **Ask for triggers** (comma-separated keywords)\n   - Example: \"error, fix, debug\"\n4. **Ask for argument hint** (optional)\n   - Example: \"\u003Cfile> [options]\"\n5. **Ask for scope:**\n   - `user` → `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F\u003Cname>\u002FSKILL.md`\n   - `project` → `.omc\u002Fskills\u002F\u003Cname>\u002FSKILL.md`\n6. **Create skill file** with template:\n\n```yaml\n---\nname: \u003Cname>\ndescription: \u003Cdescription>\ntriggers:\n  - \u003Ctrigger1>\n  - \u003Ctrigger2>\nargument-hint: \"\u003Cargs>\"\n---\n\n# \u003CName> Skill\n\n## Purpose\n\n[Describe what this skill does]\n\n## When to Activate\n\n[Describe triggers and conditions]\n\n## Workflow\n\n1. [Step 1]\n2. [Step 2]\n3. [Step 3]\n\n## Examples\n\n```\n\u002Fstartup-harness:\u003Cname> example-arg\n```\n\n## Notes\n\n[Additional context, edge cases, gotchas]\n```\n\n7. **Report success** with file path\n8. **Suggest:** \"Edit `\u002Fskill edit \u003Cname>` to customize content\"\n\n**Example:**\n```\nUser: \u002Fskill add custom-logger\nAssistant: Creating new skill 'custom-logger'...\n\nDescription: Enhanced logging with structured output\nTriggers (comma-separated): log, logger, logging\nArgument hint (optional): \u003Clevel> [message]\nScope (user\u002Fproject): user\n\n✓ Created skill at ~\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002FSKILL.md\n→ Edit with: \u002Fskill edit custom-logger\n```\n\n---\n\n### \u002Fskill remove \u003Cname>\n\nRemove a skill by name.\n\n**Behavior:**\n1. **Search for skill** in both scopes:\n   - `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F\u003Cname>\u002FSKILL.md`\n   - `.omc\u002Fskills\u002F\u003Cname>\u002FSKILL.md`\n2. **If found:**\n   - Display skill info (name, description, scope)\n   - **Ask for confirmation:** \"Delete '\u003Cname>' skill from \u003Cscope>? (yes\u002Fno)\"\n3. **If confirmed:**\n   - Delete entire skill directory (e.g., `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F\u003Cname>\u002F`)\n   - Report: \"✓ Removed skill '\u003Cname>' from \u003Cscope>\"\n4. **If not found:**\n   - Report: \"✗ Skill '\u003Cname>' not found in user or project scope\"\n\n**Safety:** Never delete without explicit user confirmation.\n\n**Example:**\n```\nUser: \u002Fskill remove old-logger\nAssistant: Found skill 'old-logger' in user scope:\n  Description: Legacy logging utility\n  Scope: user (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F)\n\nDelete 'old-logger' skill? (yes\u002Fno)\n\nUser: yes\nAssistant: ✓ Removed skill 'old-logger' from user scope\n```\n\n---\n\n### \u002Fskill edit \u003Cname>\n\nEdit an existing skill interactively.\n\n**Behavior:**\n1. **Find skill** by name (search both scopes)\n2. **Read current content** via Read tool\n3. **Display current values:**\n   ```\n   Current skill 'custom-logger':\n   - Description: Enhanced logging with structured output\n   - Triggers: log, logger, logging\n   - Argument hint: \u003Clevel> [message]\n   - Scope: user\n   ```\n4. **Ask what to change:**\n   - `description` - Update description\n   - `triggers` - Update trigger keywords\n   - `argument-hint` - Update argument hint\n   - `content` - Edit full markdown content\n   - `rename` - Rename skill (move file)\n   - `cancel` - Exit without changes\n5. **For selected field:**\n   - Show current value\n   - Ask for new value\n   - Update YAML frontmatter or content\n   - Write back to file\n6. **Report success** with summary of changes\n\n**Example:**\n```\nUser: \u002Fskill edit custom-logger\nAssistant: Current skill 'custom-logger':\n  - Description: Enhanced logging with structured output\n  - Triggers: log, logger, logging\n  - Argument hint: \u003Clevel> [message]\n\nWhat would you like to edit? (description\u002Ftriggers\u002Fargument-hint\u002Fcontent\u002Frename\u002Fcancel)\n\nUser: triggers\nAssistant: Current triggers: log, logger, logging\nNew triggers (comma-separated): log, logger, logging, trace\n\n✓ Updated triggers for 'custom-logger'\n```\n\n---\n\n### \u002Fskill search \u003Cquery>\n\nSearch skills by content, triggers, name, or description.\n\n**Behavior:**\n1. **Scan all skills** in both scopes\n2. **Match query** (case-insensitive) against:\n   - Skill name\n   - Description\n   - Triggers\n   - Full markdown content\n3. **Display matches** with context:\n\n```\nFound 3 skills matching \"typescript error\":\n\n1. typescript-fixer (user)\n   Description: Fix common TypeScript errors\n   Match: \"typescript error handling patterns\"\n\n2. error-handler (user)\n   Description: Generic error handling utilities\n   Match: \"Supports TypeScript and JavaScript errors\"\n\n3. lint-fix (project)\n   Description: Auto-fix linting errors\n   Match: \"TypeScript ESLint error resolution\"\n```\n\n**Ranking:** Prioritize matches in name\u002Ftriggers over content matches\n\n**Example:**\n```\nUser: \u002Fskill search api endpoint\nAssistant: Found 2 skills matching \"api endpoint\":\n\n1. api-builder (user)\n   Description: Generate REST API endpoints\n   Triggers: api, endpoint, rest\n\n2. backend-scaffold (project)\n   Description: Scaffold backend services\n   Match: \"Creates API endpoint boilerplate\"\n```\n\n---\n\n### \u002Fskill info \u003Cname>\n\nShow detailed information about a skill.\n\n**Behavior:**\n1. **Find skill** by name (search both scopes)\n2. **Parse YAML frontmatter** and content\n3. **Display complete details:**\n\n```\nSkill: custom-logger\nScope: user (~\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002F)\nDescription: Enhanced logging with structured output\nTriggers: log, logger, logging\nArgument Hint: \u003Clevel> [message]\nQuality: 95% (if available)\nUsage Count: 42 times (if available)\nFile Path: \u002Fhome\u002Fuser\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002FSKILL.md\n\n--- FULL CONTENT ---\n[entire markdown content]\n```\n\n**If not found:** Report error with suggestion to use `\u002Fskill search`\n\n**Example:**\n```\nUser: \u002Fskill info custom-logger\nAssistant: Skill: custom-logger\nScope: user\nDescription: Enhanced logging with structured output\nTriggers: log, logger, logging\nFile: ~\u002F.claude\u002Fskills\u002Fomc-learned\u002Fcustom-logger\u002FSKILL.md\n\n--- CONTENT ---\n# Custom Logger Skill\n\n## Purpose\nEnhanced logging with structured JSON output...\n[rest of content]\n```\n\n---\n\n### \u002Fskill sync\n\nSync skills between user and project scopes.\n\n**Behavior:**\n1. **Scan both scopes:**\n   - User skills: `${CLAUDE_CONFIG_DIR:-~\u002F.claude}\u002Fskills\u002Fomc-learned\u002F`\n   - Project skills: `.omc\u002Fskills\u002F`\n2. **Compare and categorize:**\n   - User-only skills (not in project)\n   - Project-only skills (not in user)\n   - Common skills (in both)\n3. **Display sync opportunities:**\n\n```\nSYNC REPORT:\n\nUser-only skills (5):\n  - error-handler\n  - api-builder\n  - custom-logger\n  - test-generator\n  - deploy-helper\n\nProject-only skills (2):\n  - test-runner\n  - backend-scaffold\n\nCommon skills (3):\n  - frontend-ui-ux\n  - git-master\n  - planner\n\nOptions:\n  [1] Copy user skill to project\n  [2] Copy project skill to user\n  [3] View differences\n  [4] Cancel\n```\n\n4. **Handle user choice:**\n   - Option 1: Select skill(s) to copy to project\n   - Option 2: Select skill(s) to copy to user\n   - Option 3: Show side-by-side diff for common skills\n   - Option 4: Exit\n\n**Safety:** Never overwrite without confirmation\n\n**Example:**\n```\nUser: \u002Fskill sync\nAssistant: Found 5 user-only skills and 2 project-only skills.\n\nCopy 'error-handler' from user to project? (yes\u002Fno\u002Fskip)\nUser: yes\nAssistant: ✓ Copied 'error-handler' to .omc\u002Fskills\u002F\n\nCopy 'api-builder' from user to project? (yes\u002Fno\u002Fskip)\nUser: skip\n...\n```\n\n---\n\n### \u002Fskill setup\n\nInteractive wizard for setting up and managing local skills (formerly local-skills-setup).\n\n**Behavior:**\n\n#### Step 1: Directory Check and Setup\n\nFirst, check if skill directories exist and create them if needed:\n\n```bash\n# Check and create user-level skills directory\nUSER_SKILLS_DIR=\"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\"\nif [ -d \"$USER_SKILLS_DIR\" ]; then\n  echo \"User skills directory exists: $USER_SKILLS_DIR\"\nelse\n  mkdir -p \"$USER_SKILLS_DIR\"\n  echo \"Created user skills directory: $USER_SKILLS_DIR\"\nfi\n\n# Check and create project-level skills directory\nPROJECT_SKILLS_DIR=\".omc\u002Fskills\"\nif [ -d \"$PROJECT_SKILLS_DIR\" ]; then\n  echo \"Project skills directory exists: $PROJECT_SKILLS_DIR\"\nelse\n  mkdir -p \"$PROJECT_SKILLS_DIR\"\n  echo \"Created project skills directory: $PROJECT_SKILLS_DIR\"\nfi\n```\n\n#### Step 2: Skill Scan and Inventory\n\nScan both directories and show a comprehensive inventory:\n\n```bash\n# Scan user-level skills\necho \"=== USER-LEVEL SKILLS (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F) ===\"\nif [ -d \"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\" ]; then\n  USER_COUNT=$(find \"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\" -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l)\n  echo \"Total skills: $USER_COUNT\"\n\n  if [ $USER_COUNT -gt 0 ]; then\n    echo \"\"\n    echo \"Skills found:\"\n    find \"${CLAUDE_CONFIG_DIR:-$HOME\u002F.claude}\u002Fskills\u002Fomc-learned\" -name \"*.md\" -type f -exec sh -c '\n      FILE=\"$1\"\n      NAME=$(grep -m1 \"^name:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fname: \u002F\u002F\")\n      DESC=$(grep -m1 \"^description:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fdescription: \u002F\u002F\")\n      MODIFIED=$(stat -c \"%y\" \"$FILE\" 2>\u002Fdev\u002Fnull || stat -f \"%Sm\" \"$FILE\" 2>\u002Fdev\u002Fnull)\n      echo \"  - $NAME\"\n      [ -n \"$DESC\" ] && echo \"    Description: $DESC\"\n      echo \"    Modified: $MODIFIED\"\n      echo \"\"\n    ' sh {} \\;\n  fi\nelse\n  echo \"Directory not found\"\nfi\n\necho \"\"\necho \"=== PROJECT-LEVEL SKILLS (.omc\u002Fskills\u002F) ===\"\nif [ -d \".omc\u002Fskills\" ]; then\n  PROJECT_COUNT=$(find \".omc\u002Fskills\" -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l)\n  echo \"Total skills: $PROJECT_COUNT\"\n\n  if [ $PROJECT_COUNT -gt 0 ]; then\n    echo \"\"\n    echo \"Skills found:\"\n    find \".omc\u002Fskills\" -name \"*.md\" -type f -exec sh -c '\n      FILE=\"$1\"\n      NAME=$(grep -m1 \"^name:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fname: \u002F\u002F\")\n      DESC=$(grep -m1 \"^description:\" \"$FILE\" 2>\u002Fdev\u002Fnull | sed \"s\u002Fdescription: \u002F\u002F\")\n      MODIFIED=$(stat -c \"%y\" \"$FILE\" 2>\u002Fdev\u002Fnull || stat -f \"%Sm\" \"$FILE\" 2>\u002Fdev\u002Fnull)\n      echo \"  - $NAME\"\n      [ -n \"$DESC\" ] && echo \"    Description: $DESC\"\n      echo \"    Modified: $MODIFIED\"\n      echo \"\"\n    ' sh {} \\;\n  fi\nelse\n  echo \"Directory not found\"\nfi\n\n# Summary\nTOTAL=$((USER_COUNT + PROJECT_COUNT))\necho \"=== SUMMARY ===\"\necho \"Total skills across all directories: $TOTAL\"\n```\n\n#### Step 3: Quick Actions Menu\n\nAfter scanning, use the AskUserQuestion tool to offer these options:\n\n**Question:** \"What would you like to do with your local skills?\"\n\n**Options:**\n1. **Add new skill** - Start the skill creation wizard (invoke `\u002Fskill add`)\n2. **List all skills with details** - Show comprehensive skill inventory (invoke `\u002Fskill list`)\n3. **Scan conversation for patterns** - Analyze current conversation for skill-worthy patterns\n4. **Import skill** - Import a skill from URL or paste content\n5. **Done** - Exit the wizard\n\n**Option 3: Scan Conversation for Patterns**\n\nAnalyze the current conversation context to identify potential skill-worthy patterns. Look for:\n- Recent debugging sessions with non-obvious solutions\n- Tricky bugs that required investigation\n- Codebase-specific workarounds discovered\n- Error patterns that took time to resolve\n\nReport findings and ask if user wants to extract any as skills (invoke `\u002Flearner` if yes).\n\n**Option 4: Import Skill**\n\nAsk user to provide either:\n- **URL**: Download skill from a URL (e.g., GitHub gist)\n- **Paste content**: Paste skill markdown content directly\n\nThen ask for scope:\n- **User-level** (~\u002F.claude\u002Fskills\u002Fomc-learned\u002F) - Available across all projects\n- **Project-level** (.omc\u002Fskills\u002F) - Only for this project\n\nValidate the skill format and save to the chosen location.\n\n---\n\n### \u002Fskill scan\n\nQuick command to scan both skill directories (subset of `\u002Fskill setup`).\n\n**Behavior:**\nRun the scan from Step 2 of `\u002Fskill setup` without the interactive wizard.\n\n---\n\n## Skill Templates\n\nWhen creating skills via `\u002Fskill add` or `\u002Fskill setup`, offer quick templates for common skill types:\n\n### Error Solution Template\n\n```markdown\n---\nid: error-[unique-id]\nname: [Error Name]\ndescription: Solution for [specific error in specific context]\nsource: conversation\ntriggers: [\"error message fragment\", \"file path\", \"symptom\"]\nquality: high\n---\n\n# [Error Name]\n\n## The Insight\nWhat is the underlying cause of this error? What principle did you discover?\n\n## Why This Matters\nWhat goes wrong if you don't know this? What symptom led here?\n\n## Recognition Pattern\nHow do you know when this applies? What are the signs?\n- Error message: \"[exact error]\"\n- File: [specific file path]\n- Context: [when does this occur]\n\n## The Approach\nStep-by-step solution:\n1. [Specific action with file\u002Fline reference]\n2. [Specific action with file\u002Fline reference]\n3. [Verification step]\n\n## Example\n\\`\\`\\`typescript\n\u002F\u002F Before (broken)\n[problematic code]\n\n\u002F\u002F After (fixed)\n[corrected code]\n\\`\\`\\`\n```\n\n### Workflow Skill Template\n\n```markdown\n---\nid: workflow-[unique-id]\nname: [Workflow Name]\ndescription: Process for [specific task in this codebase]\nsource: conversation\ntriggers: [\"task description\", \"file pattern\", \"goal keyword\"]\nquality: high\n---\n\n# [Workflow Name]\n\n## The Insight\nWhat makes this workflow different from the obvious approach?\n\n## Why This Matters\nWhat fails if you don't follow this process?\n\n## Recognition Pattern\nWhen should you use this workflow?\n- Task type: [specific task]\n- Files involved: [specific patterns]\n- Indicators: [how to recognize]\n\n## The Approach\n1. [Step with specific commands\u002Ffiles]\n2. [Step with specific commands\u002Ffiles]\n3. [Verification]\n\n## Gotchas\n- [Common mistake and how to avoid it]\n- [Edge case and how to handle it]\n```\n\n### Code Pattern Template\n\n```markdown\n---\nid: pattern-[unique-id]\nname: [Pattern Name]\ndescription: Pattern for [specific use case in this codebase]\nsource: conversation\ntriggers: [\"code pattern\", \"file type\", \"problem domain\"]\nquality: high\n---\n\n# [Pattern Name]\n\n## The Insight\nWhat's the key principle behind this pattern?\n\n## Why This Matters\nWhat problems does this pattern solve in THIS codebase?\n\n## Recognition Pattern\nWhen do you apply this pattern?\n- File types: [specific files]\n- Problem: [specific problem]\n- Context: [codebase-specific context]\n\n## The Approach\nDecision-making heuristic, not just code:\n1. [Principle-based step]\n2. [Principle-based step]\n\n## Example\n\\`\\`\\`typescript\n[Illustrative example showing the principle]\n\\`\\`\\`\n\n## Anti-Pattern\nWhat NOT to do and why:\n\\`\\`\\`typescript\n[Common mistake to avoid]\n\\`\\`\\`\n```\n\n### Integration Skill Template\n\n```markdown\n---\nid: integration-[unique-id]\nname: [Integration Name]\ndescription: How [system A] integrates with [system B] in this codebase\nsource: conversation\ntriggers: [\"system name\", \"integration point\", \"config file\"]\nquality: high\n---\n\n# [Integration Name]\n\n## The Insight\nWhat's non-obvious about how these systems connect?\n\n## Why This Matters\nWhat breaks if you don't understand this integration?\n\n## Recognition Pattern\nWhen are you working with this integration?\n- Files: [specific integration files]\n- Config: [specific config locations]\n- Symptoms: [what indicates integration issues]\n\n## The Approach\nHow to work with this integration correctly:\n1. [Configuration step with file paths]\n2. [Setup step with specific details]\n3. [Verification step]\n\n## Gotchas\n- [Integration-specific pitfall #1]\n- [Integration-specific pitfall #2]\n```\n\n---\n\n## Error Handling\n\n**All commands must handle:**\n- File\u002Fdirectory doesn't exist\n- Permission errors\n- Invalid YAML frontmatter\n- Duplicate skill names\n- Invalid skill names (spaces, special chars)\n\n**Error format:**\n```\n✗ Error: \u003Cclear message>\n→ Suggestion: \u003Chelpful next step>\n```\n\n---\n\n## Usage Examples\n\n```bash\n# List all skills\n\u002Fskill list\n\n# Create a new skill\n\u002Fskill add my-custom-skill\n\n# Remove a skill\n\u002Fskill remove old-skill\n\n# Edit existing skill\n\u002Fskill edit error-handler\n\n# Search for skills\n\u002Fskill search typescript error\n\n# Get detailed info\n\u002Fskill info my-custom-skill\n\n# Sync between scopes\n\u002Fskill sync\n\n# Run setup wizard\n\u002Fskill setup\n\n# Quick scan\n\u002Fskill scan\n```\n\n## Usage Modes\n\n### Direct Command Mode\n\nWhen invoked with an argument, skip the interactive wizard:\n\n- `\u002Fstartup-harness:skill list` - Show detailed skill inventory\n- `\u002Fstartup-harness:skill add` - Start skill creation (invoke learner)\n- `\u002Fstartup-harness:skill scan` - Scan both skill directories\n\n### Interactive Mode\n\nWhen invoked without arguments, run the full guided wizard.\n\n---\n\n## Benefits of Local Skills\n\n**Automatic Application**: Claude detects triggers and applies skills automatically - no need to remember or search for solutions.\n\n**Version Control**: Project-level skills (.omc\u002Fskills\u002F) are committed with your code, so the whole team benefits.\n\n**Evolving Knowledge**: Skills improve over time as you discover better approaches and refine triggers.\n\n**Reduced Token Usage**: Instead of re-solving the same problems, Claude applies known patterns efficiently.\n\n**Codebase Memory**: Preserves institutional knowledge that would otherwise be lost in conversation history.\n\n---\n\n## Skill Quality Guidelines\n\nGood skills are:\n\n1. **Non-Googleable** - Can't easily find via search\n   - BAD: \"How to read files in TypeScript\"\n   - GOOD: \"This codebase uses custom path resolution requiring fileURLToPath\"\n\n2. **Context-Specific** - References actual files\u002Ferrors from THIS codebase\n   - BAD: \"Use try\u002Fcatch for error handling\"\n   - GOOD: \"The aiohttp proxy in server.py:42 crashes on ClientDisconnectedError\"\n\n3. **Actionable with Precision** - Tells exactly WHAT to do and WHERE\n   - BAD: \"Handle edge cases\"\n   - GOOD: \"When seeing 'Cannot find module' in dist\u002F, check tsconfig.json moduleResolution\"\n\n4. **Hard-Won** - Required significant debugging effort\n   - BAD: Generic programming patterns\n   - GOOD: \"Race condition in worker.ts - Promise.all at line 89 needs await\"\n\n---\n\n## Related Skills\n\n- `\u002Fstartup-harness:learner` - Extract a skill from current conversation\n- `\u002Fstartup-harness:note` - Save quick notes (less formal than skills)\n- `\u002Fstartup-harness:deepinit` - Generate AGENTS.md codebase hierarchy\n\n---\n\n## Example Session\n\n```\n> \u002Fstartup-harness:skill list\n\nChecking skill directories...\n✓ User skills directory exists: ~\u002F.claude\u002Fskills\u002Fomc-learned\u002F\n✓ Project skills directory exists: .omc\u002Fskills\u002F\n\nScanning for skills...\n\n=== USER-LEVEL SKILLS ===\nTotal skills: 3\n  - async-network-error-handling\n    Description: Pattern for handling independent I\u002FO failures in async network code\n    Modified: 2026-01-20 14:32:15\n\n  - esm-path-resolution\n    Description: Custom path resolution in ESM requiring fileURLToPath\n    Modified: 2026-01-19 09:15:42\n\n=== PROJECT-LEVEL SKILLS ===\nTotal skills: 5\n  - session-timeout-fix\n    Description: Fix for sessionId undefined after restart in session.ts\n    Modified: 2026-01-22 16:45:23\n\n  - build-cache-invalidation\n    Description: When to clear TypeScript build cache to fix phantom errors\n    Modified: 2026-01-21 11:28:37\n\n=== SUMMARY ===\nTotal skills: 8\n\nWhat would you like to do?\n1. Add new skill\n2. List all skills with details\n3. Scan conversation for patterns\n4. Import skill\n5. Done\n```\n\n---\n\n## Tips for Users\n\n- Run `\u002Fstartup-harness:skill list` periodically to review your skill library\n- After solving a tricky bug, immediately run learner to capture it\n- Use project-level skills for codebase-specific knowledge\n- Use user-level skills for general patterns that apply everywhere\n- Review and refine triggers over time to improve matching accuracy\n\n---\n\n## Implementation Notes\n\n1. **YAML Parsing:** Use frontmatter extraction for metadata\n2. **File Operations:** Use Read\u002FWrite tools, never Edit for new files\n3. **User Confirmation:** Always confirm destructive operations\n4. **Clear Feedback:** Use checkmarks (✓), crosses (✗), arrows (→) for clarity\n5. **Scope Resolution:** Always check both user and project scopes\n6. **Validation:** Enforce naming conventions (lowercase, hyphens only)\n\n---\n\n## Related Skills\n\n- `\u002Fstartup-harness:learner` - Extract a skill from current conversation\n- `\u002Fstartup-harness:note` - Save quick notes (less formal than skills)\n- `\u002Fstartup-harness:deepinit` - Generate AGENTS.md codebase hierarchy\n\n---\n\n## Skill Configuration (Enable\u002FDisable)\n\nControl which skills are active across all runtimes via `.harness\u002Fskills.yml`.\n\n### \u002Fskill enable \u003Cname>\n\nRe-enable a previously disabled skill.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs enable \u003Cname>`\n2. Removes the skill from the `disabled` list in `.harness\u002Fskills.yml`\n3. Report result\n\n### \u002Fskill disable \u003Cname>\n\nDisable a skill so it won't be loaded by any agent.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs disable \u003Cname>`\n2. Adds the skill to the `disabled` list in `.harness\u002Fskills.yml`\n3. Report result\n\n### \u002Fskill status \u003Cname>\n\nCheck if a skill is enabled or disabled.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs status \u003Cname>`\n2. Reports ENABLED or DISABLED\n\n---\n\n## Skill Chain Management\n\nManage deterministic multi-phase skill chains. Built-in chains live in `chains\u002Fskill-chains.json`. Custom chains live in `.harness\u002Fskills.yml`.\n\n### \u002Fskill chain list\n\nShow all skill chains (built-in and custom).\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain list`\n2. Displays built-in chains from `chains\u002Fskill-chains.json` and custom chains from `.harness\u002Fskills.yml`\n\n### \u002Fskill chain show \u003Cname>\n\nShow full details of a chain including all phases and their required skills.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain show \u003Cname>`\n2. Shows description, trigger, gate patterns, and all phases with skills\n\n### \u002Fskill chain create \u003Cname> \u003Ctrigger-skill> \u003Cdescription>\n\nCreate a new custom skill chain.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain create \u003Cname> \u003Ctrigger> \u003Cdescription>`\n2. Creates an empty chain in `.harness\u002Fskills.yml`\n3. Follow up with `chain add-gates` and `chain add-phase` to build it out\n\n### \u002Fskill chain add-phase \u003Cchain> \u003Cphase-name> \u003Cskill1,skill2,...>\n\nAdd a phase to a custom chain.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain add-phase \u003Cchain> \u003Cphase> \u003Cskills>`\n2. Validates all skill names exist\n3. Appends the phase to the chain\n\n### \u002Fskill chain add-gates \u003Cchain> \u003Cpattern1,pattern2,...>\n\nAdd file gate patterns to a custom chain.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain add-gates \u003Cchain> \u003Cpatterns>`\n2. Appends glob patterns that trigger phase enforcement\n\n### \u002Fskill chain delete \u003Cname>\n\nDelete a custom chain. Built-in chains cannot be deleted.\n\n**Behavior:**\n1. Run: `node .harness\u002Fhooks\u002Fskill-config.mjs chain delete \u003Cname>`\n2. Removes the chain from `.harness\u002Fskills.yml`\n\n---\n\n## Example: Custom Chain Workflow\n\n```bash\n# Create a new chain\n\u002Fskill chain create api-build convex-schema-validator API-first build\n\n# Add file gate patterns\n\u002Fskill chain add-gates api-build convex\u002F**,api\u002F**,server\u002F**\n\n# Add phases in order\n\u002Fskill chain add-phase api-build schema convex-schema-validator\n\u002Fskill chain add-phase api-build functions convex-functions,convex-http-actions\n\u002Fskill chain add-phase api-build test test-generator\n\u002Fskill chain add-phase api-build ship deploy-pipeline\n\n# Verify\n\u002Fskill chain show api-build\n```\n",{"name":5,"level":39,"description":7,"argument-hint":40},2,"\u003Ccommand> [args]","main","92dddf7f6e7b55d1424795ce11586b05dba9d8c8","skills\u002Fskill",3,"https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups","https:\u002F\u002Fgithub.com\u002FCheggin","reaganhsu.com","MTS @datacurve-ai, prev. founding eng @browser-use ","2026-04-24 08:33:47",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add Cheggin\u002Frequest-for-startups --skill skill",{"tool":56,"command":57},"bunx","bunx skills add Cheggin\u002Frequest-for-startups --skill skill",{"tool":59,"command":60},"pnpm","pnpm dlx skills add Cheggin\u002Frequest-for-startups --skill skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fskill\u002FSKILL.md",true,[],[65,89,108,149,164,187],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":34},"01M6X7PHK069RZH25A3RXN5049","writer-memory","Agentic memory system for writers - track characters, relationships, scenes, and themes","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fwriter-memory\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88],"memory","writer","writer memory","system","characters","track","for","themes","memory system","scenes","relationships","query","export","status","validate","init","agentic",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":34},"01M6X7PC3G9228Z323X5YAKTVW","wiki","LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fwiki\u002FSKILL.md",[],[91,96,97,98,99,100,101,102,103,104,105,33,106,83,107],"wiki lint","knowledge","model","llm wiki","markdown","wiki query","knowledge base","lint","sessions","karpathy","across","base",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":128,"publishedAt":34},"01M6X7P5XFW5C16H3JE4NFQ7MF","website-creation","Build production-quality SaaS websites with opinionated design presets. Use when creating any startup website. The user MUST pick a design style before building. Enforces shadcn\u002Fui, Figma design principles, specific CSS values per style, and anti-AI-writing. Load alongside anti-ai-writing skill. LIGHT MODE ONLY.","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fwebsite-creation\u002FSKILL.md",[114,117,120,125],{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":118,"categoryName":119,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":121,"categoryName":122,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",{"categoryNo":126,"categoryName":127,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000036","内容创作者",[129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],"website creation","website","creation","when","design style","mode","brand-guidelines","full","ui","writing","design principles","only","pick","polish","audit","shadcn","figma","css","Anti-AI","design",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":34},"01M6X7P3PCEAKA2SBETXHHTNBA","visual-verdict","Structured visual QA verdict for screenshot-to-reference comparisons","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-verdict\u002FSKILL.md",[],[156,157,158,78,159,160,161,162,163],"visual verdict","verdict","visual","visual qa","structured","reference","screenshot","qa",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":178,"publishedAt":34},"01M6X7NXEWWC4NFT0ZK1RRSGES","visual-qa-pipeline","Screenshot every page with Playwright, feed to visual QA agent for design evaluation, report results to Slack. Use after every build phase to verify UI matches the chosen design preset. Integrates with the Playwright skill and the website-creation preset system.","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fvisual-qa-pipeline\u002FSKILL.md",[170,173,176,177],{"categoryNo":171,"categoryName":172,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000005","邮件与沟通",{"categoryNo":174,"categoryName":175,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":115,"categoryName":116,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":121,"categoryName":122,"taxonomyType":123,"taxonomyTypeDesc":124},[158,179,159,163,180,181,110,131,136,182,142,183,137,130,162,78,184,148,185,186],"pipeline","visual qa pipeline","slack","page","Evaluation","review","verify ui","phase",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":34},"01M6X7NSNW00RQ8J531F52YHV9","verify","Verify that a change really works before you claim completion","https:\u002F\u002Fgithub.com\u002FCheggin\u002Frequest-for-startups\u002Fblob\u002Fmain\u002Fskills\u002Fverify\u002FSKILL.md",[],[189,194,195,196,197,198,179,199,200],"deploy-pipeline","true","you","claim","quality","deploy","change"]