|
| 1 | +--- |
| 2 | +name: add-resource-with-tags |
| 3 | +description: Guides contributors through adding or updating a tool/resource in output/results.json and choosing tags from output/taxonomy.json. Use when the user wants to add a new resource, suggest tags, or update an existing resource entry. |
| 4 | +--- |
| 5 | + |
| 6 | +# Add a resource (with tags) |
| 7 | + |
| 8 | +## Inputs to collect (ask for anything missing) |
| 9 | +- Resource name |
| 10 | +- 1-3 sentence description |
| 11 | +- Website URL (optional) |
| 12 | +- Twitter/X URL (optional) |
| 13 | +- Square thumbnail icon URL (optional) |
| 14 | +- Wide banner URL (optional) |
| 15 | +- GitHub repo and/or NPM package URL(s) (at least one) |
| 16 | +- llms.txt URL (optional) |
| 17 | +- Suggested category (must match `output/taxonomy.json`) |
| 18 | + |
| 19 | +## Tagging workflow (use `output/taxonomy.json`) |
| 20 | +1. Read `output/taxonomy.json` and load the top-level `tags` list. |
| 21 | +2. Propose **3-8 tags** from that list based on the resource description and repos. |
| 22 | + - Prefer more specific tags (e.g. `static-analysis`, `account-abstraction`) over generic ones. |
| 23 | + - Keep tags kebab-case. |
| 24 | + - Target having at least 2-3 tags. |
| 25 | +3. If the user wants a **new tag**: |
| 26 | + - Add it to `output/taxonomy.json` under `tags`. |
| 27 | + - Apply it to **all existing resources** in `output/results.json` where it clearly fits (avoid one-off tags). |
| 28 | +## Editing `output/results.json` |
| 29 | +- Keep the file valid JSON (array of objects). |
| 30 | +- For a **new entry**, add an object with (at minimum): |
| 31 | + - `id`: use `manually-added:<slug>` where `<slug>` is a kebab-case version of the name |
| 32 | + - `name`, `description`, `repos`, `tags`, `category` |
| 33 | + - optional: `website`, `twitter`, `thumbnail_url`, `banner_url`, `llms_txt_url` |
| 34 | +- For an **update**, locate the existing object (prefer matching by `id`) and change only the necessary fields. |
| 35 | +## Quick validation checklist |
| 36 | +- Tags are all present in `output/taxonomy.json` `tags`. |
| 37 | +- Category matches a taxonomy category name. |
| 38 | +- `repos` contains at least one valid GitHub URL. |
| 39 | +- JSON remains valid. |
| 40 | +## Output format |
| 41 | +When responding, provide: |
| 42 | +- the proposed `tags` list |
| 43 | +- the `category` |
| 44 | +- the exact JSON object to insert/update (ready to paste) |
0 commit comments