Cards / playbooks / make-your-app-a-card

Make your app a card

Chapter 1 of Edgible for Contributors. New: the prompts are still being run end to end, so tell us how it goes.

A card is a few plain files that say how to run your app: its image, its settings, and where its data lives. This chapter makes one, with your AI doing the writing.

What you need

  • Edgible running on a computer of yours, with your AI assistant and the Edgible skill. If not, start with Get Edgible running.
  • Your app, in a repository or a folder your AI can read.

1. Tell your AI about your app

In your AI assistant:

I built an app at (your repository or folder). Help me turn it into an Edgible card.

It reads your app and tells you, in plain words, what a card needs and what your app is missing. It changes nothing in your app without asking.

2. What a card needs

Your assistant checks these for you. They're here so you know what it's looking for.

Required

Nice to have

3. Fix what's missing

Build what's missing, one piece at a time, and ask me before each change.

It offers to build each missing piece, such as an image for both kinds of computer, or a setting read from a file instead of the code. You make the calls. Two are yours alone: the licence, and who answers for the card.

No image yet? Most apps people build don't have one, and a card needs one: a packaged copy of your app that anyone can download and run. Your AI sets up GitHub to build it for you, under your own name, each time you tag a release:

My app has no image yet. Set up GitHub to build one.

It adds one file to your repository, asks you before it pushes anything, and checks the result. After that, a new version is just a new tag.

4. Let it write the card

Write the card for my app.

It writes the card's files: what to run, the settings with your own values left out, where the data lives, and a README. It checks them again until nothing required is missing.

What you've just done

Before anyone else runs it, it's tested. Test it and share it is the next chapter.

Prefer to do it by hand?

Your assistant runs card-kit's check-app, which comes with the Edgible skill:

python3 ~/.card-kit/check-app.py <your app's folder> --image <name:tag> --steward <your GitHub name>

It lists what is required and what is nice to have, and says which are missing. To write the card yourself, copy the card closest to yours in edgible-org/cards (opens in a new tab) and follow the contributing guide (opens in a new tab).

This page as Markdown, for your AI assistant