原始内容
code-submit
Project-local Pi skill and extension for submission-oriented workflows.
Repo: https://github.com/AlvaroRausell/code-submit
Install
pi install git:github.com/AlvaroRausell/code-submit
Or from npm (once published):
pi install npm:code-submit
What you get
- Skill
/skill:code-submit— implements changes, generates.submissions/<change-slug>.html, opens a GitHub draft PR - TUI command
/submissions— browses submission HTML files with filter, sort, and preview
TUI controls
| Key | Action |
|---|---|
↑ / ↓ |
Navigate the file list |
| type any text | Filter by title, path, headings, or summary |
Backspace |
Delete last filter character |
Ctrl+S |
Cycle sort order: name → newest → largest |
Enter |
Open selected submission in the browser |
Esc |
Clear filter, or cancel if filter is empty |
Sort modes
- name — alphabetical by filename (default)
- newest — most recently modified first
- largest — biggest file size first
Filter
Typing any printable character appends it to the filter query. The filter matches against the file path, report title, headings, and summary text. Matching is case-insensitive. The file list and preview update in real time as you type.
Skill usage
/skill:code-submit
The skill will:
- implement the requested changes
- run tests and lint if configured (non-blocking)
- derive a
<change-slug>from the task title (e.g.Fix cache bug→fix-cache-bug) - generate
.submissions/<change-slug>.html - create a branch and commit
- open a GitHub draft PR
- return a summary with branch, commit, PR URL, report path, and validation results
Interactive TUI harness
For local development:
./scripts/test-submissions-browser.sh
This seeds a sample submission and launches Pi so you can test /submissions interactively.