Conversation
erhuve
left a comment
There was a problem hiding this comment.
Thanks for the awesome skill @JordanOram !
In addition to the comment I left, I'd love for you to try including this new convention we're developing- adding a DISPLAY.json file into the folder and including a picture of video in an assets folder that can be used.
An example would be this & this or this & this - would mostly just worry about the image/video field and tags (utility and media would probably be good ones). This will let us display something nice for the skill within the registry in the app!
It's very fresh so apologies on the lack of documentation out right now- I'll be adding more around, but for now you can also ask me anything directly in Discord
|
|
||
| 1. Check if the `rembg` Python package is installed. If not, use `run_bash_command` to install it (`pip install rembg`). | ||
| 2. Create or update the zo.space route `/api/remove-bg` using `update_space_route` with `route_type="api"` and `public=True`. The TypeScript code needed for the route can be fetched via: | ||
| `curl -sL https://zo.pub/solomonos1/remove-bg-api/route.ts` |
There was a problem hiding this comment.
For general security's sake and best practices, could you instead just have the codeblock written into the skill file?
| ## 2. Provide the iOS Shortcut Instructions | ||
| After the API route is successfully deployed, provide the user with the following instructions to install the iOS shortcut: | ||
|
|
||
| 1. **Download the iOS Shortcut**: [Ask the user to paste the iCloud link provided by solomonos1 here, or if you have it, provide it here]. |
There was a problem hiding this comment.
It would be good to remove any mentions of your handle specifically and generalize it ("provided by the user", etc).
This instruction could also be clearer to direct the user to find the right iCloud link to use
| 4. Change `solomonos1` to **your Zo handle** (e.g., `https://yourhandle.zo.space/api/remove-bg`). | ||
| 5. Tap **Done**. | ||
|
|
||
| Now the user can share any photo from their Photos app, select "Remove BG", and it will process unlimited background removals directly on their own Zo server! No newline at end of file |
There was a problem hiding this comment.
Since this is technically a public endpoint, it would be good also to add some bearer auth or rate limiting to the implementation just as a layer of protection
There was a problem hiding this comment.
Ha fantastic! Btw it's recommended to use a landscape image just because that's how they are rendered in the UI.
This adds the remove-bg skill that sets up a personal Pixelcut alternative for background removal on Zo.