pi-inline-skill-autocomplete
v0.1.0
Published
Inline / skill autocomplete for pi, so skills complete anywhere in the editor instead of only at command start.
Maintainers
Readme
pi-inline-skill-autocomplete
pi-inline-skill-autocomplete adds Claude-style inline skill completion to pi.
Pi already completes slash commands at the beginning of the editor. This extension layers on top of that behavior and completes skill names when you type a slash after other prompt text, for example:
Review this with /td # suggests /tdd, inserts /skill:tdd
Explain briefly using /ca # suggests /caveman, inserts /skill:cavemanFeatures
- completes only pi resources whose command source is
skill - leaves command-position
/...completion to pi's built-in provider - works on later lines after earlier prompt text
- filters by bare skill name first, then full command name and description
- delegates back to pi's provider when there is no inline skill match
- ships as a dependency-free pi package
Install
From npm after publish:
pi install npm:pi-inline-skill-autocompleteFor local development from this repo:
pi install ./packages/pi-inline-skill-autocompleteOr test for one run:
pi -e ./packages/pi-inline-skill-autocompleteUsage
Type / after some ordinary prompt text and the extension will show skill-name completions:
Can you debug this with /diaThe menu labels use bare skill names such as /diagnose; selecting one inserts pi's actual skill command, such as /skill:diagnose.
At the start of the editor, pi's normal slash-command autocomplete still handles /.
Development
npm run check
npm test
npm run verify