Skip to content

feat(v0.18): zero-friction natural skill activation and one-click UX - #140

Merged
rlaope merged 1 commit into
masterfrom
feat/v0.18-natural-skills-and-one-click-ux
Dec 1, 2026
Merged

rlaope merged 1 commit into
masterfrom
feat/v0.18-natural-skills-and-one-click-ux

Conversation

@rlaope

@rlaope rlaope commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Natural skill activation (zero slash commands required):
    • Compact standing [available skills] index (skillsIndex() in core/skills.ts, workspace skills only with actual relative paths, prompt-cache safe) and agent/AGENTS.md guidance so the agent naturally applies matching workflows and offers to save recurring procedures as skills.
    • Deterministic, zero-allocation natural-language matcher (matchSkillForMessage() + soft dynamic [suggested skill: <slug>], autoSkills: true default) with multilingual Korean/English/Chinese triggers: 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.
  • One-click ("딸깍") chat & TUI execution:
    • Chat /skills attaches up to 5 clickable skill:<slug> buttons (<= 54 bytes, zero-arg workspace skills prioritized, 2-per-row wrapping on Telegram) handled in handleAction with double-click debouncing, Discord thread parentOf support, inputHint usage guidance (no wasted empty turns), fail-closed tenant isolation, and clean empty-ts guards.
    • dsh TUI gains Alt+S instant 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

  • Full local gate passed (pnpm run build && pnpm run typecheck && pnpm test → EXIT=0).
  • Hermetic cross-platform regression suite test/v18-natural-skills-ux.test.ts wired into both Ubuntu and Windows CI jobs.
  • Independent adversarial code review completed and all 13 findings fixed.

Unverified

  • Live mobile rendering of Slack/Discord/Telegram skill buttons and real-model execution of soft [suggested skill: ...] prompts were not exercised in this headless test pass.

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>
@rlaope
rlaope merged commit ee60abe into master Dec 1, 2026
5 checks passed
@rlaope
rlaope deleted the feat/v0.18-natural-skills-and-one-click-ux branch December 1, 2026 08:42
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.

1 participant