Skip to content

Add setup-remove-bg skill#62

Open
JordanOram wants to merge 2 commits intozocomputer:mainfrom
JordanOram:add-setup-remove-bg-skill
Open

Add setup-remove-bg skill#62
JordanOram wants to merge 2 commits intozocomputer:mainfrom
JordanOram:add-setup-remove-bg-skill

Conversation

@JordanOram
Copy link
Copy Markdown

This adds the remove-bg skill that sets up a personal Pixelcut alternative for background removal on Zo.

Copy link
Copy Markdown
Contributor

@erhuve erhuve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Image

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

Comment thread Community/setup-remove-bg/SKILL.md Outdated

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`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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].
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha fantastic! Btw it's recommended to use a landscape image just because that's how they are rendered in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants