feat: auto-discover Claude Code skills as Telegram bot commands#68
Open
zhou-zhichao wants to merge 1 commit intosix-ddc:mainfrom
Open
feat: auto-discover Claude Code skills as Telegram bot commands#68zhou-zhichao wants to merge 1 commit intosix-ddc:mainfrom
zhou-zhichao wants to merge 1 commit intosix-ddc:mainfrom
Conversation
Scan ~/.claude/skills/ on startup and register discovered skills as Telegram bot commands, so users see all available slash commands (like /commit, /review, /ship) in the "/" menu — matching what Claude Code shows locally. - Add claude_skills_path config (auto-detected or via CCBOT_CLAUDE_SKILLS_PATH) - Recursively walk skill directories to find bundled skill packs (e.g. gstack/) - Parse YAML frontmatter from each SKILL.md for name + description - Convert hyphen-case skill names to underscores for Telegram compatibility (agent-browser -> agent_browser), convert back when forwarding to Claude Code - Skip skills that collide with built-in bot commands - Respect Telegram's 100 command limit with truncation
frankjoshua
pushed a commit
to frankjoshua/ccbot
that referenced
this pull request
Apr 9, 2026
Extend skill discovery (from six-ddc#68) to also scan .claude/skills/ directories in active session cwds, not just the global ~/.claude/skills/. This picks up project-local skills that are only relevant to specific repos. Also remove upstream tests/ccbot/ directory that conflicts with our tests/ — the upstream tests target the pre-refactor single-session API. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
If you have too many skills with too long descriptions this causes crashes. Might need to put a limit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.claude/skills/recursively on startup to discover installed Claude Code skills/commit,/review,/ship) in the "/" menuagent-browser→agent_browser), convert back when forwarding to Claude CodeDetails
claude_skills_pathconfig (auto-detected from~/.claude/skills/or viaCCBOT_CLAUDE_SKILLS_PATHenv var)gstack/review/SKILL.md)SKILL.mdfornameanddescriptionfieldsTest plan
~/.claude/skills/and verify they appear in Telegram "/" menu/agent_browserforwards as/agent-browser)/history,/screenshot, etc.) still work