Skip to content

fix(skill): show real error and helpful tip when skill install fails#213

Merged
Panniantong merged 1 commit intomainfrom
fix/skill-install-error-message
Mar 31, 2026
Merged

fix(skill): show real error and helpful tip when skill install fails#213
Panniantong merged 1 commit intomainfrom
fix/skill-install-error-message

Conversation

@Panniantong
Copy link
Copy Markdown
Owner

Problem

Fixes #212

When no agent framework directory exists (~/.openclaw/skills, ~/.claude/skills, ~/.agents/skills), the fallback os.makedirs call silently swallows the real exception and prints a generic message:

-- Could not install agent skill (optional)

Users have no idea why it failed or what to do next.

Changes

  • Print the actual exception message alongside the existing notice
  • Add a helpful tip pointing users to install OpenClaw/Claude Code or create ~/.agents/skills/ manually

Testing

72 passed (1 pre-existing XiaoHongShu MCP test skipped — unrelated local env issue, passes on clean checkout)

@Panniantong Panniantong merged commit e51bd91 into main Mar 31, 2026
8 checks passed
@Panniantong Panniantong deleted the fix/skill-install-error-message branch March 31, 2026 03:14
Panniantong added a commit that referenced this pull request Mar 31, 2026
Kept PR #192 router skill structure + main's improved error messaging
and xueqiu docs. Also fixed xreach→bird in SKILL.md quick commands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Panniantong added a commit that referenced this pull request Mar 31, 2026
…#192)

Refactors SKILL.md into a router + reference documentation system:
- Main SKILL.md now contains routing table and quick commands
- Detailed docs split into references/ (search, social, career, dev, web, video)
- CLI skill install copies entire directory including references/
- Resolves conflicts with recent merges (#210, #213)
- Fixes xreach→bird in quick commands

Original PR by @Citrus086, merged with conflict resolution.

Co-Authored-By: Citrus086 <Citrus086@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

安装skill失败

1 participant