Repository navigation
feat(v0.18): zero-friction natural skill activation and one-click UX - #140
Merged
Merged
Conversation
Problem: - Users had to know and type `/s:<name>` or `/skills` to benefit from installed skills; natural requests like "오늘 브리핑 해줘" or "회의록 정리해줘" did not surface installed skills automatically, and chat `/skills` offered no one-click buttons. - In `dsh`, launching skills required typing `/skills`, and picking an input-taking skill (like `meeting-notes`) fired an empty turn immediately. Changes: - Extended `core/skills.ts` with quote/comment-aware YAML `triggers:` and `input:` frontmatter parsing, prompt-cache-safe standing `skillsIndex()` (workspace skills with actual relative paths), zero-allocation deterministic `matchSkillForMessage()` (mixed ASCII+CJK boundary checks, explicit triggers outranking implicit slugs, tie-to-null safety, synthetic turn exclusion), soft dynamic `buildSuggestedSkillBlock()`, and Telegram-safe `skillActionButtons()` (<= 54 bytes, zero-arg workspace skills first). - Added multilingual Korean/English/Chinese `triggers:` (and `input:` hints for `meeting-notes` and `deep-research`) to the 4 bundled starter skills under `agent/skills/*/SKILL.md` and updated `agent/AGENTS.md`. - Wired `autoSkills: true` (opt-out) and standing `[available skills]` into `index.ts` (respecting tenant isolation and skipping heartbeats/webhooks/ wordless file prompts), attached clickable `skill:<slug>` buttons to chat `/skills` (with 2-per-row mobile wrapping in `transports/telegram.ts`), and handled `skill:<slug>` clicks in `handleAction` (double-click debounce, Discord thread `parentOf` preservation, `inputHint` usage reply, fail-closed tenant guard, and clean empty-`ts` guards for marks/history/reactions/replyTo). - Added `Alt+S` instant skills launcher in `tui/app.ts` (never leaking `'s'` into the editor in non-main views), smart run-vs-prefill picker behavior in `tui/cli.ts`, and updated welcome/shortcut hints in `tui/strings.ts`. - Added hermetic cross-platform regression suite `test/v18-natural-skills-ux.test.ts`, wired CI (Ubuntu + Windows), and updated `CHANGELOG.md`, `PLAN.md`, and `docs/setup.md`. Verified: - `pnpm run build && pnpm run typecheck && pnpm test` passed locally (EXIT=0), including `test/v18-natural-skills-ux.test.ts`, `test/v17-skills-ux.test.ts`, `test/tui-app.test.ts`, `test/telegram.test.ts`, and `test/secrets.test.ts`. - Independent adversarial review completed and all 13 findings fixed. Unverified: - Live Slack/Discord/Telegram button rendering on mobile clients and real-model responses to soft `[suggested skill: ...]` prompts were not exercised in this headless run. Signed-off-by: rlaope <rlaope@users.noreply.github.com>
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
[available skills]index (skillsIndex()incore/skills.ts, workspace skills only with actual relative paths, prompt-cache safe) andagent/AGENTS.mdguidance so the agent naturally applies matching workflows and offers to save recurring procedures as skills.matchSkillForMessage()+ soft dynamic[suggested skill: <slug>],autoSkills: truedefault) with multilingual Korean/English/Chinesetriggers:on all 4 bundled starter skills (daily-brief,meeting-notes,weekly-review,deep-research), mixed ASCII+CJK boundary enforcement, trigger-over-slug priority, tie-to-null safety, and exclusion of heartbeats/webhooks/file-only turns./skillsattaches up to 5 clickableskill:<slug>buttons (<= 54bytes, zero-arg workspace skills prioritized, 2-per-row wrapping on Telegram) handled inhandleActionwith double-click debouncing, Discord threadparentOfsupport,inputHintusage guidance (no wasted empty turns), fail-closed tenant isolation, and clean empty-tsguards.dshTUI gainsAlt+Sinstant skills launcher (non-leaking in sub-views), smart run-vs-prefill picker behavior (Enter runs zero-arg skills immediately;input:-annotated skills prefill/s:<name>into the editor), and updated welcome/shortcut hints.Verification
pnpm run build && pnpm run typecheck && pnpm test→EXIT=0).test/v18-natural-skills-ux.test.tswired into both Ubuntu and Windows CI jobs.Unverified
[suggested skill: ...]prompts were not exercised in this headless test pass.