Skip to content

feat: add TUI autocomplete for Inline Skill References #317

Description

@bkyssn

Parent

What to build

Add TUI autocomplete for Inline Skill References so a user can discover and insert $skill-name while composing a message. Accepting a candidate must keep the editor open, and submitting the completed message must use the Session expansion delivered by #316.

The autocomplete provider must compose with Pi's current provider. Native /skill:name completion and @path/to/file completion remain unchanged.

Acceptance criteria

  • Typing $ at the start of input or after horizontal whitespace opens Inline Skill completion in the TUI.
  • Candidates contain only Skills currently loaded in the Session.
  • Each candidate preserves the Skill description supplied by Pi.
  • Accepting a candidate inserts the literal $skill-name at the active reference.
  • Tab accepts the selected candidate without submitting the message.
  • Completion reads Pi's current Skill command projection dynamically and does not maintain a separate cache.
  • Reloaded Skill state is reflected in later completion requests.
  • Inputs that are not Inline Skill References delegate to Pi's existing autocomplete provider.
  • Native /skill:name completion remains unchanged.
  • Native @path/to/file completion and file-reference behavior remain unchanged.
  • Provider-level tests cover candidate filtering, insertion, dynamic Skill state, and delegation.
  • A TUI Editor test proves Tab acceptance updates the editor without invoking submit.
  • Manual validation follows the runtime provenance procedure and proves exactly one OpenPI source points at the tested checkout.
  • The repository's complete check and test commands pass from the current main branch.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions