mitsupi 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +95 -0
- package/TODO.md +11 -0
- package/commands/handoff.md +100 -0
- package/commands/make-release.md +75 -0
- package/commands/pickup.md +30 -0
- package/commands/update-changelog.md +78 -0
- package/package.json +22 -0
- package/pi-extensions/answer.ts +527 -0
- package/pi-extensions/codex-tuning.ts +632 -0
- package/pi-extensions/commit.ts +248 -0
- package/pi-extensions/cwd-history.ts +237 -0
- package/pi-extensions/issues.ts +548 -0
- package/pi-extensions/loop.ts +446 -0
- package/pi-extensions/qna.ts +167 -0
- package/pi-extensions/reveal.ts +689 -0
- package/pi-extensions/review.ts +807 -0
- package/pi-themes/armin.json +81 -0
- package/pi-themes/nightowl.json +82 -0
- package/skills/anachb/SKILL.md +183 -0
- package/skills/anachb/departures.sh +79 -0
- package/skills/anachb/disruptions.sh +53 -0
- package/skills/anachb/route.sh +87 -0
- package/skills/anachb/search.sh +43 -0
- package/skills/ghidra/SKILL.md +254 -0
- package/skills/ghidra/scripts/find-ghidra.sh +54 -0
- package/skills/ghidra/scripts/ghidra-analyze.sh +239 -0
- package/skills/ghidra/scripts/ghidra_scripts/ExportAll.java +278 -0
- package/skills/ghidra/scripts/ghidra_scripts/ExportCalls.java +148 -0
- package/skills/ghidra/scripts/ghidra_scripts/ExportDecompiled.java +84 -0
- package/skills/ghidra/scripts/ghidra_scripts/ExportFunctions.java +114 -0
- package/skills/ghidra/scripts/ghidra_scripts/ExportStrings.java +123 -0
- package/skills/ghidra/scripts/ghidra_scripts/ExportSymbols.java +135 -0
- package/skills/github/SKILL.md +47 -0
- package/skills/improve-skill/SKILL.md +155 -0
- package/skills/improve-skill/scripts/extract-session.js +349 -0
- package/skills/oebb-scotty/SKILL.md +429 -0
- package/skills/oebb-scotty/arrivals.sh +83 -0
- package/skills/oebb-scotty/departures.sh +83 -0
- package/skills/oebb-scotty/disruptions.sh +33 -0
- package/skills/oebb-scotty/search-station.sh +36 -0
- package/skills/oebb-scotty/trip.sh +119 -0
- package/skills/openscad/SKILL.md +232 -0
- package/skills/openscad/examples/parametric_box.scad +92 -0
- package/skills/openscad/examples/phone_stand.scad +95 -0
- package/skills/openscad/tools/common.sh +50 -0
- package/skills/openscad/tools/export-stl.sh +56 -0
- package/skills/openscad/tools/extract-params.sh +147 -0
- package/skills/openscad/tools/multi-preview.sh +68 -0
- package/skills/openscad/tools/preview.sh +74 -0
- package/skills/openscad/tools/render-with-params.sh +91 -0
- package/skills/openscad/tools/validate.sh +46 -0
- package/skills/pi-share/SKILL.md +105 -0
- package/skills/pi-share/fetch-session.mjs +322 -0
- package/skills/sentry/SKILL.md +239 -0
- package/skills/sentry/lib/auth.js +99 -0
- package/skills/sentry/scripts/fetch-event.js +329 -0
- package/skills/sentry/scripts/fetch-issue.js +356 -0
- package/skills/sentry/scripts/list-issues.js +239 -0
- package/skills/sentry/scripts/search-events.js +291 -0
- package/skills/sentry/scripts/search-logs.js +240 -0
- package/skills/tmux/SKILL.md +105 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/web-browser/SKILL.md +91 -0
- package/skills/web-browser/scripts/cdp.js +210 -0
- package/skills/web-browser/scripts/dismiss-cookies.js +373 -0
- package/skills/web-browser/scripts/eval.js +68 -0
- package/skills/web-browser/scripts/logs-tail.js +69 -0
- package/skills/web-browser/scripts/nav.js +65 -0
- package/skills/web-browser/scripts/net-summary.js +94 -0
- package/skills/web-browser/scripts/package-lock.json +33 -0
- package/skills/web-browser/scripts/package.json +6 -0
- package/skills/web-browser/scripts/pick.js +165 -0
- package/skills/web-browser/scripts/screenshot.js +52 -0
- package/skills/web-browser/scripts/start.js +80 -0
- package/skills/web-browser/scripts/watch.js +266 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Agent Stuff
|
|
2
|
+
|
|
3
|
+
This repository contains command files and skills that I use in some form with projects. Note that I usually fine-tune these for projects so they might not work without modification for you.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
All command files are in the [`commands`](commands) folder:
|
|
8
|
+
|
|
9
|
+
* [`/handoff`](commands/handoff.md) - Creates detailed handoff plan for session continuation
|
|
10
|
+
* [`/pickup`](commands/pickup.md) - Resumes work from previous handoff session
|
|
11
|
+
* [`/make-release`](commands/make-release.md) - Automates repository release with version management
|
|
12
|
+
* [`/update-changelog`](commands/update-changelog.md) - Updates changelog with recent commits
|
|
13
|
+
|
|
14
|
+
### Handoff/Pickup Usage
|
|
15
|
+
|
|
16
|
+
These are inspired by the idea of Ampcode to replace `/compact` with handoff. I generally do this already by hand with copy/paste but this is an attempt of automating this:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/handoff "implement phase 1 of our plan"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
It will write a handoff plan into .claude/handoffs which you can then continue in a new session:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
/pickup name-of-handoff
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Release Management
|
|
29
|
+
|
|
30
|
+
The release management commands do not work without tuning! But you can put claude to them and derive actually working ones. I for instance use them in [absurd](https://github.com/earendil-works/absurd) and you can look at the repo to see them in use.
|
|
31
|
+
|
|
32
|
+
## Skills
|
|
33
|
+
|
|
34
|
+
All skill files are in the [`skills`](skills) folder:
|
|
35
|
+
|
|
36
|
+
* [`/ghidra`](skills/ghidra) - Claude Skill for reverse engineering binaries using Ghidra's headless analyzer
|
|
37
|
+
* [`/web-browser`](skills/web-browser) - Claude Skill for using Puppeteer in a Node environment to browse the web
|
|
38
|
+
* [`/tmux`](skills/tmux) - Claude Skill for driving tmux directly with keystrokes and pane output scraping
|
|
39
|
+
* [`/sentry`](skills/sentry) - Alternative way to access Sentry as a Claude Skill for reading issues
|
|
40
|
+
* [`/improve-skill`](skills/improve-skill) - Claude Skill for analyzing coding agent sessions to improve or create new skills
|
|
41
|
+
* [`/pi-share`](skills/pi-share) - Claude Skill for loading and parsing session transcripts from shittycodingagent.ai
|
|
42
|
+
* [`/anachb`](skills/anachb) - Claude Skill for querying Austrian public transport (VOR AnachB) for departures, routes, and disruptions
|
|
43
|
+
* [`/oebb-scotty`](skills/oebb-scotty) - Claude Skill for Austrian rail travel planning via ÖBB Scotty API
|
|
44
|
+
|
|
45
|
+
### Browser
|
|
46
|
+
|
|
47
|
+
In the [`skills/web-browser`](skills/web-browser) folder is a Claude Skill that helps it to use puppeteer in a node environment to browse the web. This significantly improves on using a browser MCP. You will need to go into the scripts folder once to run `npm i`. This was stolen from [Mario Zechner](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/).
|
|
48
|
+
|
|
49
|
+
### tmux
|
|
50
|
+
|
|
51
|
+
In the [`skills/tmux`](skills/tmux) folder is a Claude Skill that lets it drive tmux directly for interactive CLI workflows (python, gdb, etc.) by sending keystrokes and scraping pane output. It uses stock tmux on macOS/Linux and includes helper scripts in `scripts` to find sessions and wait for prompts.
|
|
52
|
+
|
|
53
|
+
### sentry
|
|
54
|
+
|
|
55
|
+
In the [`skills/sentry`](skills/sentry) folder there is an alternative way to access Sentry as a Claude Skill. I found the other methods to talk to Sentry token inefficient and just not great. Right now it can only read issues though and might not be ideal yet.
|
|
56
|
+
|
|
57
|
+
### improve-skill
|
|
58
|
+
|
|
59
|
+
In the [`skills/improve-skill`](skills/improve-skill) folder is a skill that helps analyze coding agent sessions to improve or create new skills. It works with Claude Code, Pi, and Codex session files. Ask the agent to "improve the sentry skill based on this session" or "create a new skill from this session" to use it.
|
|
60
|
+
|
|
61
|
+
### ghidra
|
|
62
|
+
|
|
63
|
+
In the [`skills/ghidra`](skills/ghidra) folder is a skill for automated reverse engineering using Ghidra's headless analyzer. It can decompile binaries to C code, extract functions, strings, symbols, and analyze call graphs without needing the GUI. Requires Ghidra installed (on macOS: `brew install --cask ghidra`).
|
|
64
|
+
|
|
65
|
+
### pi-share
|
|
66
|
+
|
|
67
|
+
In the [`skills/pi-share`](skills/pi-share) folder is a skill for loading and parsing session transcripts from shittycodingagent.ai (pi-share) URLs. It fetches gists, decodes embedded session data, and extracts conversation history including messages, tool calls, and system prompts.
|
|
68
|
+
|
|
69
|
+
### google-meet
|
|
70
|
+
|
|
71
|
+
In the [`skills/google-meet`](skills/google-meet) folder is a skill for creating Google Meet spaces with auto recording/transcription enabled. It is currently hardcoded for earendil.com accounts only.
|
|
72
|
+
|
|
73
|
+
### anachb
|
|
74
|
+
|
|
75
|
+
In the [`skills/anachb`](skills/anachb) folder is a skill for querying Austrian public transport via the VOR AnachB API. It includes shell scripts for searching stations, getting real-time departures, planning routes between locations, and checking service disruptions. Covers all Austrian public transport including trains, U-Bahn, trams, and buses.
|
|
76
|
+
|
|
77
|
+
### oebb-scotty
|
|
78
|
+
|
|
79
|
+
In the [`skills/oebb-scotty`](skills/oebb-scotty) folder is a skill for Austrian rail travel planning via the ÖBB Scotty HAFAS API. It documents how to search locations, plan trips between stations, get departure/arrival boards, and fetch service alerts. Includes jq filters for extracting concise trip summaries from verbose API responses.
|
|
80
|
+
|
|
81
|
+
## PI Coding Agent Extensions
|
|
82
|
+
|
|
83
|
+
Custom extensions for the PI Coding Agent can be found in the [`pi-extensions`](pi-extensions) folder:
|
|
84
|
+
|
|
85
|
+
* [`qna.ts`](pi-extensions/qna.ts) - Extracts questions from the last assistant message into the editor for easy answering. Uses Claude Haiku for cost-efficient extraction when available.
|
|
86
|
+
* [`answer.ts`](pi-extensions/answer.ts) - Alternative to `qna.ts` with a custom interactive TUI for answering questions one by one.
|
|
87
|
+
* [`review.ts`](pi-extensions/review.ts) - Code review command inspired by Codex. Supports reviewing uncommitted changes, against a base branch (PR style), specific commits, or with custom instructions. Includes Ctrl+R shortcut.
|
|
88
|
+
* [`loop.ts`](pi-extensions/loop.ts) - Runs a prompt loop for rapid iterative coding with optional auto-continue control.
|
|
89
|
+
* [`reveal.ts`](pi-extensions/reveal.ts) - Finder/Quick Look helper that browses session file references via Ctrl+F or `/files`, with Ctrl+R revealing the latest file and Ctrl+Shift+R opening Quick Look on macOS.
|
|
90
|
+
* [`cwd-history.ts`](pi-extensions/cwd-history.ts) - Displays and manages recent working directory history inside the PI Coding Agent.
|
|
91
|
+
* [`codex-tuning.ts`](pi-extensions/codex-tuning.ts) - Codex tuning helper for collecting samples and tagging outcomes during agent sessions.
|
|
92
|
+
|
|
93
|
+
## PI Coding Agent Themes
|
|
94
|
+
|
|
95
|
+
This repository includes custom themes for the PI Coding Agent. The themes can be found in the [`pi-themes`](pi-themes) folder and customize the appearance and behavior of the agent interface.
|
package/TODO.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
- [ ] We need a way for the div viewer to select small hunks because when the review div tool actually comes by and is used for large changes it just throws way too much stuff into the UI.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
1. Global state is module-scoped — If the extension is loaded once but used across multiple concurrent sessions (hypothetically),
|
|
5
|
+
they'd share state. Is that a concern in pi's architecture?
|
|
6
|
+
2. session_switch skips UI restoration (restoreUI = false) — Why? If I switch to a session that was mid-review, I'd expect the widget
|
|
7
|
+
to reappear.
|
|
8
|
+
3. Comments aren't cleared when entering a new review — executeReview() sets reviewActive = true but doesn't reset comments = []. If a
|
|
9
|
+
previous review left stale comments and reconstructState didn't run (e.g., same session), they'd accumulate.
|
|
10
|
+
4. No explicit persistence of comments — They survive only because tool results are in the session log. But if the session is truncated
|
|
11
|
+
or the tool result is pruned, comments could be lost silently.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Creates a detailed handoff plan of the conversation for continuing the work in a new session.
|
|
2
|
+
|
|
3
|
+
The user specified purpose:
|
|
4
|
+
|
|
5
|
+
<purpose>$ARGUMENTS</purpose>
|
|
6
|
+
|
|
7
|
+
You are creating a summary specifically so that it can be continued by another agent. For this to work you MUST have a purpose. If no specified purpose was provided in the `<purpose>...</purpose>` tag you must STOP IMMEDIATELY and ask the user what the purpose is.
|
|
8
|
+
|
|
9
|
+
Do not continue before asking for the purpose as you will otherwise not understand the instructions and do not assume a purpose!
|
|
10
|
+
|
|
11
|
+
## Goal
|
|
12
|
+
|
|
13
|
+
Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit purpose for the next steps.
|
|
14
|
+
This handoff plan should be thorough in capturing technical details, code patterns, and architectural decisions that will be essential for continuing development work without losing context.
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
Before providing your final plan, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:
|
|
19
|
+
|
|
20
|
+
1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
|
|
21
|
+
- The user's explicit requests and intents
|
|
22
|
+
- Your approach to addressing the user's requests
|
|
23
|
+
- Key decisions, technical concepts and code patterns
|
|
24
|
+
- Specific details like file names, full code snippets, function signatures, file edits, etc
|
|
25
|
+
2. Double-check for technical accuracy and completeness, addressing each required element thoroughly.
|
|
26
|
+
|
|
27
|
+
Your plan should include the following sections:
|
|
28
|
+
|
|
29
|
+
1. **Primary Request and Intent**: Capture all of the user's explicit requests and intents in detail
|
|
30
|
+
2. **Key Technical Concepts**: List all important technical concepts, technologies, and frameworks discussed.
|
|
31
|
+
3. **Files and Code Sections**: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
|
|
32
|
+
4. **Problem Solving**: Document problems solved and any ongoing troubleshooting efforts.
|
|
33
|
+
5. **Pending Tasks**: Outline any pending tasks that you have explicitly been asked to work on.
|
|
34
|
+
6. **Current Work**: Describe in detail precisely what was being worked on immediately before this handoff request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
|
|
35
|
+
7. **Optional Next Step**: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's explicit requests, and the task you were working on immediately before this handoff request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests without confirming with the user first.
|
|
36
|
+
|
|
37
|
+
Additionally create a "slug" for this handoff. The "slug" is how we will refer to it later in a few places. Examples:
|
|
38
|
+
|
|
39
|
+
* current-user-api-handler
|
|
40
|
+
* implement-auth
|
|
41
|
+
* fix-issue-42
|
|
42
|
+
|
|
43
|
+
Together with the slug create a "Readable Summary". Examples:
|
|
44
|
+
|
|
45
|
+
* Implement Current User API Handler
|
|
46
|
+
* Implement Authentication
|
|
47
|
+
* Fix Issue #42
|
|
48
|
+
|
|
49
|
+
## Output Structure
|
|
50
|
+
|
|
51
|
+
Here's an example of how your output should be structured:
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
# Readable Summary
|
|
55
|
+
|
|
56
|
+
<analysis>
|
|
57
|
+
[Your thought process, ensuring all points are covered thoroughly and accurately]
|
|
58
|
+
</analysis>
|
|
59
|
+
|
|
60
|
+
<plan>
|
|
61
|
+
# Session Handoff Plan
|
|
62
|
+
|
|
63
|
+
## 1. Primary Request and Intent
|
|
64
|
+
[Detailed description of all user requests and intents]
|
|
65
|
+
|
|
66
|
+
## 2. Key Technical Concepts
|
|
67
|
+
- [Concept 1]
|
|
68
|
+
- [Concept 2]
|
|
69
|
+
- [...]
|
|
70
|
+
|
|
71
|
+
## 3. Files and Code Sections
|
|
72
|
+
### [File Name 1]
|
|
73
|
+
- **Why important**: [Summary of why this file is important]
|
|
74
|
+
- **Changes made**: [Summary of the changes made to this file, if any]
|
|
75
|
+
- **Code snippet**:
|
|
76
|
+
```language
|
|
77
|
+
[Important Code Snippet]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### [File Name 2]
|
|
81
|
+
- **Code snippet**:
|
|
82
|
+
```language
|
|
83
|
+
[Important Code Snippet]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
[...]
|
|
87
|
+
|
|
88
|
+
## 4. Problem Solving
|
|
89
|
+
[Description of solved problems and ongoing troubleshooting]
|
|
90
|
+
|
|
91
|
+
## 5. Next Step
|
|
92
|
+
[Required next step to take, directly aligned with user's explicit handoff purpose]
|
|
93
|
+
</plan>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Final Step
|
|
97
|
+
|
|
98
|
+
After providing your analysis and summary, write the handoff summary to a markdown file at `.claude/handoffs/[timestamp]-[slug].md` where [timestamp] is the current date in format YYYY-MM-DD and the slug is what we defined before.
|
|
99
|
+
|
|
100
|
+
Then tell the user about this file and that they can use `/pickup FILENAME` to continue.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Make a release of this repository.
|
|
2
|
+
|
|
3
|
+
Version or release type: "$ARGUMENTS"
|
|
4
|
+
|
|
5
|
+
## Step-by-Step Process:
|
|
6
|
+
|
|
7
|
+
### 1. Determine the target version
|
|
8
|
+
|
|
9
|
+
The `$ARGUMENTS` can be either:
|
|
10
|
+
- An explicit version number (e.g., `0.0.4`) - recommended for making a specific release
|
|
11
|
+
- A release type: `patch`, `minor`, or `major` - which will bump from the current version
|
|
12
|
+
|
|
13
|
+
If `$ARGUMENTS` is an explicit version (e.g., `0.0.4`):
|
|
14
|
+
- Use that version directly as `$NEW_VERSION`
|
|
15
|
+
- This is the recommended approach as it allows retrying failed releases
|
|
16
|
+
|
|
17
|
+
If `$ARGUMENTS` is a release type (`patch`, `minor`, or `major`):
|
|
18
|
+
- Determine what the new version will be by running:
|
|
19
|
+
```bash
|
|
20
|
+
cd sdks/typescript
|
|
21
|
+
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
22
|
+
NEW_VERSION=$(npm version $ARGUMENTS --no-git-tag-version | sed 's/^v//')
|
|
23
|
+
git checkout package.json package-lock.json # Revert the changes
|
|
24
|
+
cd ../..
|
|
25
|
+
echo "Will release version: $NEW_VERSION"
|
|
26
|
+
```
|
|
27
|
+
- Then use this `$NEW_VERSION` for the rest of the process
|
|
28
|
+
|
|
29
|
+
If no argument is provided, ask the user which version or type to use.
|
|
30
|
+
|
|
31
|
+
### 2. Update the changelog
|
|
32
|
+
|
|
33
|
+
Run the `/update-changelog` command to ensure the changelog is up to date with recent changes.
|
|
34
|
+
|
|
35
|
+
### 3. Verify the version number
|
|
36
|
+
|
|
37
|
+
Double-check that `$NEW_VERSION` is correct before proceeding.
|
|
38
|
+
|
|
39
|
+
### 4. Update CHANGELOG.md
|
|
40
|
+
|
|
41
|
+
Edit the `CHANGELOG.md` file:
|
|
42
|
+
- Change the `# Unreleased` heading to `# $NEW_VERSION`
|
|
43
|
+
- Add a new `# Unreleased` section at the top (empty for now)
|
|
44
|
+
|
|
45
|
+
### 5. Run the release script
|
|
46
|
+
|
|
47
|
+
Execute the release script with the explicit version number (NOT the release type):
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
./scripts/release.sh $NEW_VERSION
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Important:** Always pass the explicit version number (e.g., `0.0.4`) to the release script, not the release type (e.g., `patch`). This ensures that aborted releases can be retried without incrementing the version.
|
|
54
|
+
|
|
55
|
+
This script will:
|
|
56
|
+
- Update the version in `sdks/typescript/package.json` (or skip if already set)
|
|
57
|
+
- Update `package-lock.json`
|
|
58
|
+
- Create a commit with message "Release $NEW_VERSION"
|
|
59
|
+
- Create a git tag with the version number
|
|
60
|
+
|
|
61
|
+
### 6. Show push instructions
|
|
62
|
+
|
|
63
|
+
After the release script completes, show the user the commands to push:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
git push origin main && git push origin $NEW_VERSION
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Important:** Do NOT automatically push. Let the user review the commit and tag first, then they can manually run the push commands.
|
|
70
|
+
|
|
71
|
+
## Notes
|
|
72
|
+
|
|
73
|
+
- The release script will check for a clean working directory
|
|
74
|
+
- It will verify that CHANGELOG.md has a section for the new version
|
|
75
|
+
- The user should review the commit and tag before pushing
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Resumes work from a previous handoff session which are stored in `.claude/handoffs`.
|
|
2
|
+
|
|
3
|
+
The handoff folder might not exist if there are none.
|
|
4
|
+
|
|
5
|
+
Requested handoff file: `$ARGUMENTS`
|
|
6
|
+
|
|
7
|
+
## Process
|
|
8
|
+
|
|
9
|
+
### 1. Check handoff file
|
|
10
|
+
|
|
11
|
+
If no handoff file was provided, list them all. Eg:
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
echo "## Available Handoffs"
|
|
16
|
+
echo ""
|
|
17
|
+
for file in .claude/handoffs/*.md; do
|
|
18
|
+
if [ -f "$file" ]; then
|
|
19
|
+
title=$(grep -m 1 "^# " "$file" | sed 's/^# //')
|
|
20
|
+
basename=$(basename "$file")
|
|
21
|
+
echo "* \`$basename\`: $title"
|
|
22
|
+
fi
|
|
23
|
+
done
|
|
24
|
+
echo ""
|
|
25
|
+
echo "To pickup a handoff, use: /pickup <filename>"
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 2. List handoff file
|
|
29
|
+
|
|
30
|
+
If a handoff file was provided locate it in `.claude/handoffs` and read it. Note that this file might be misspelled or the user might have only partially listed it. If there are multiple matches, ask the user which one they want to continue with. The file contains the instructions for how you should continue.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Please update the `CHANGELOG.md` for thie repository with changes between the last release and the current version (`main`) which were not incorporated yet.
|
|
2
|
+
|
|
3
|
+
Base line version: "$ARGUMENTS"
|
|
4
|
+
|
|
5
|
+
## Step-by-Step Process:
|
|
6
|
+
|
|
7
|
+
### 1. Determine baseline version
|
|
8
|
+
If no baseline version is provided, use the most recent git tag. You can find it with `git describe --tags --abbrev=0`.
|
|
9
|
+
|
|
10
|
+
### 2. Find the commits from git
|
|
11
|
+
|
|
12
|
+
Use the following commands to gather commit information:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Get the baseline version (if not provided)
|
|
16
|
+
git describe --tags --abbrev=0
|
|
17
|
+
|
|
18
|
+
# Get all commits since the baseline version
|
|
19
|
+
git log <baseline-version>..HEAD
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### 3. Update the changelog
|
|
23
|
+
Read the already existing `CHANGELOG.md` and check if there are changes not yet incorporated, then add them. Always add them to the "Unreleased" section only. If there is none yet, add it on the top.
|
|
24
|
+
|
|
25
|
+
## Ground Rules When Writing Changelogs
|
|
26
|
+
|
|
27
|
+
### Content Guidelines
|
|
28
|
+
* Focus on **notable changes** that affect users (features, fixes, breaking changes)
|
|
29
|
+
* Mention pull requests (`#NUMBER`) when available, but not raw commit hashes
|
|
30
|
+
* Ignore insignificant changes (typo fixes, internal refactoring, minor documentation updates)
|
|
31
|
+
* Group related changes together when appropriate
|
|
32
|
+
* Order entries by importance: breaking changes first, then features, then fixes
|
|
33
|
+
|
|
34
|
+
### Style Guidelines
|
|
35
|
+
* Use valid markdown syntax
|
|
36
|
+
* Start each entry with a past-tense verb or descriptive phrase
|
|
37
|
+
* Keep entries concise but descriptive enough to understand the change
|
|
38
|
+
* Use bullet points (`*` or `-`) for individual changes
|
|
39
|
+
* Format code references with backticks (e.g., `` `foo.cleanup` ``)
|
|
40
|
+
|
|
41
|
+
### Example Format
|
|
42
|
+
|
|
43
|
+
Here's an example of well-formatted changelog entries (from minijinja):
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
## 2.13.0
|
|
47
|
+
|
|
48
|
+
* Added multi-key support to the `|sort` filter. #827
|
|
49
|
+
* Fix `not undefined` with strict undefined behavior. #838
|
|
50
|
+
* Added support for free threading Python. #841
|
|
51
|
+
|
|
52
|
+
## 2.12.0
|
|
53
|
+
|
|
54
|
+
* Item or attribute lookup will no longer swallow all errors in Python. #814
|
|
55
|
+
* Added `|zip` filter. #818
|
|
56
|
+
* Fix `break_on_hyphens` for the `|wordwrap` filter. #823
|
|
57
|
+
* Prefer error message from `unknown_method_callback`. #824
|
|
58
|
+
* Ignore `.jinja` and `.jinja2` as extensions in auto escape. #832
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Good vs. Bad Examples
|
|
62
|
+
|
|
63
|
+
**Good:**
|
|
64
|
+
* `Fixed an issue with the TypeScript SDK which caused an incorrect config for CJS.`
|
|
65
|
+
* `Added support for claim timeout extension on checkpoint writes.`
|
|
66
|
+
* `Improved error reporting when task claim expires.`
|
|
67
|
+
|
|
68
|
+
**Bad:**
|
|
69
|
+
* `Fixed bug` (too vague)
|
|
70
|
+
* `Updated dependencies` (insignificant unless it fixes a security issue)
|
|
71
|
+
* `Refactored internal code structure` (internal change, not user-facing)
|
|
72
|
+
* `Fixed typo in comment` (insignificant)
|
|
73
|
+
|
|
74
|
+
## Notes
|
|
75
|
+
|
|
76
|
+
* If the current CHANGELOG.md already has an "Unreleased" section with content, append to it rather than replacing it
|
|
77
|
+
* Preserve the existing changelog style and formatting
|
|
78
|
+
* When in doubt about whether a change is significant, err on the side of including it
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mitsupi",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Pi extensions, skills, and themes",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pi-package",
|
|
8
|
+
"pi-extension",
|
|
9
|
+
"pi-skill",
|
|
10
|
+
"pi-theme"
|
|
11
|
+
],
|
|
12
|
+
"pi": {
|
|
13
|
+
"extensions": ["./pi-extensions/*.ts"],
|
|
14
|
+
"skills": ["./skills"],
|
|
15
|
+
"themes": ["./pi-themes/*.json"]
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@mariozechner/pi-coding-agent": "*",
|
|
19
|
+
"@mariozechner/pi-ai": "*",
|
|
20
|
+
"@mariozechner/pi-tui": "*"
|
|
21
|
+
}
|
|
22
|
+
}
|