Submit use case

From sonichi/sutando · View interactive version

Submit use case is an AI agent skill from the GitHub repository sonichi/sutando. OSS-facing channel to share a Sutando use case with the community. Opens a labeled GitHub issue on sonichi/sutando and (CLA-gated) a PR adding docs/community-use-cases/<slug>.md. Validates outcome-framed titles with the same checker as add-use-case. Default: both; flags --issue-only / --pr-only opt

How to use this skill

Skill file

submit-use-case

OSS counterpart to add-use-case. add-use-case targets the private

AG2Platform/agent-universe repo (rendered on sutando.ai) and is for the

internal fleet. submit-use-case targets the public sonichi/sutando repo

so external contributors can share a use case without needing access to the

private rendering repo.

Usage

python3 "$SKILL_DIR/scripts/submit_use_case.py" \
    --title "Your AI plays piano while you sleep" \
    --summary "Outcome-first summary that appears on tile + detail page." \
    --bullets "bullet1" --bullets "bullet2" \
    [--video /abs/path/to/clip.mp4] \
    [--media-url https://example.com/clip.jpg] \
    [--youtube-id ABCDEFG1234] \
    [--x-url https://x.com/...] \
    [--linkedin-url https://www.linkedin.com/...] \
    [--contact "you@example.com or @yourhandle"] \
    [--issue-only | --pr-only] \
    [--dry-run]

--dry-run runs the framing check and prints both the rendered issue body

and the rendered docs/community-use-cases/<slug>.md file to stdout. No clone, no

gh calls.

What the skill does

  1. Validate title is outcome-framed. Reuses REJECT_PATTERNS + validate_title +

suggest_reframes from add-use-case verbatim. Capability-listy titles

("Ask your AI to ...", "Sutando can ...", "Send a ...") are rejected with

deterministic reframe suggestions. Same rules, same voice.

  1. Derive slug. slugify(title) — lowercased, non-alphanum→-, trimmed to 60 chars.
  2. Idempotency checks (skipped in --dry-run):

If yes, abort with a pointer to the existing PR.

abort with the existing issue URL.

  1. Open an issue (unless --pr-only). gh issue create --repo sonichi/sutando

with label use-case-submission. Body has structured sections: Title,

Summary, Bullets, Links (video / youtube / x / linkedin), Contact, and a

forward-ref to the PR if one is opened in the same invocation.

  1. Open a PR (unless --issue-only).

agent-universe UseCase shape so the sync script can later promote it.

attributed to the runner's existing user.name / user.email, so the CLA

signs under whoever they already are (that's the whole point of CLA-Assistant

signing). It prints the identity before committing and aborts if it's unset,

so attribution can't silently go out wrong.

  1. Return both URLs to stdout (issue URL, then PR URL, last two lines).

File schema (`docs/community-use-cases/<slug>.md`)

---
slug: <derived>
title: <user title>
summary: <user summary>
videoUrl: <if --video>            # absolute or hosted; raw path uploaded to issue, not PR
youtubeId: <if --youtube-id>
xUrl: <if --x-url>
linkedinUrl: <if --linkedin-url>
thumbnail: /use-cases/<slug>.jpg
contact: <if --contact>
submitted_at: <ISO UTC timestamp>
---

<longDescription stitched from --bullets, or summary if no bullets>

The frontmatter intentionally mirrors AG2Platform/agent-universe's

lib/use-cases.ts UseCase TypeScript type so a later sync script can read

this YAML and emit the literal entry the rendering repo expects. The

submitter is not asked to upload the thumbnail in the PR — it stays as a

pending path that the maintainer fills in when promoting.

Issue label

use-case-submission (the maintainer monitors this label to triage incoming

community submissions).

Idempotency

Why we never override git identity

CLA-Assistant signs the contributor under the email of the commit author.

That MUST be the runner's own email — overwriting it would wrongly attribute

the PR and sign the CLA under the wrong identity. So the script never sets

user.email / user.name: it commits under whatever the runner already has

configured (the maintainer's machine already carries the project identity in

its global git config; contributors carry their own). It surfaces the identity

before committing and aborts if unset, rather than guessing or silently using

the wrong author.

Dependencies

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.