-
Notifications
You must be signed in to change notification settings - Fork 30
chore: update skill docs for new CLI features and add evals #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
felipefreitag
wants to merge
1
commit into
main
Choose a base branch
from
chore/update-skill
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| { | ||
| "skill_name": "resend-cli", | ||
| "evals": [ | ||
| { | ||
| "id": 1, | ||
| "prompt": "Send a welcome email using template tpl_abc123 with variables name=Alice and plan=pro to alice@example.com", | ||
| "expected_output": "Uses `resend emails send --to alice@example.com --template tpl_abc123 --var name=Alice --var plan=pro` without --from or --subject since the template provides those", | ||
| "files": [], | ||
| "expectations": [ | ||
| "Uses `emails send` (not `templates send` or other subcommand)", | ||
| "Includes `--template tpl_abc123` flag", | ||
| "Includes `--var name=Alice` and `--var plan=pro` (or equivalent key=value pairs)", | ||
| "Includes `--to alice@example.com`", | ||
| "Does NOT include `--from` or `--subject` (template provides these)" | ||
| ] | ||
| }, | ||
| { | ||
| "id": 2, | ||
| "prompt": "Create a broadcast from newsletter.txt to segment seg_xyz, schedule it for tomorrow at 3pm ET", | ||
| "expected_output": "Uses `resend broadcasts create --from ... --subject ... --segment-id seg_xyz --text-file newsletter.txt --send --scheduled-at \"tomorrow at 3pm ET\"`", | ||
| "files": [], | ||
| "expectations": [ | ||
| "Uses `broadcasts create` subcommand", | ||
| "Includes `--text-file newsletter.txt` (not --text with file contents, not --html-file)", | ||
| "Includes `--segment-id seg_xyz`", | ||
| "Includes `--send` flag (required for scheduling)", | ||
| "Includes `--scheduled-at` with natural language or ISO 8601 datetime" | ||
| ] | ||
| }, | ||
| { | ||
| "id": 3, | ||
| "prompt": "List my API keys and tell me which ones haven't been used recently", | ||
| "expected_output": "Runs `resend api-keys list` and interprets the last_used_at field to identify stale keys", | ||
| "files": [], | ||
| "expectations": [ | ||
| "Uses `api-keys list` subcommand", | ||
| "Mentions or references the `last_used_at` field to identify unused keys", | ||
| "Does NOT fabricate a flag like `--sort-by` or `--unused` that doesn't exist" | ||
| ] | ||
| }, | ||
| { | ||
| "id": 4, | ||
| "prompt": "Open the broadcast bcast_123 in the dashboard", | ||
| "expected_output": "Runs `resend broadcasts open bcast_123`", | ||
| "files": [], | ||
| "expectations": [ | ||
| "Uses `broadcasts open bcast_123` (not `open` or `resend open`)", | ||
| "Does NOT fall back to manually constructing a URL or using `open` with a URL", | ||
| "Does NOT use `broadcasts get` as a substitute" | ||
| ] | ||
| }, | ||
| { | ||
| "id": 5, | ||
| "prompt": "Create a template called 'Order Confirmation' from the HTML in stdin, with variables ORDER_ID:string and TOTAL:number:0", | ||
| "expected_output": "Uses `resend templates create --name \"Order Confirmation\" --html-file - --var ORDER_ID:string --var TOTAL:number:0`", | ||
| "files": [], | ||
| "expectations": [ | ||
| "Uses `templates create` subcommand", | ||
| "Includes `--name \"Order Confirmation\"` (or equivalent quoting)", | ||
| "Uses `--html-file -` or `--html-file \"-\"` for stdin input", | ||
| "Includes `--var ORDER_ID:string` and `--var TOTAL:number:0`", | ||
| "Does NOT use `--html` with inline content as a substitute for stdin" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -42,13 +42,13 @@ resend emails send \ | |||||
| --cc manager@example.com \ | ||||||
| --reply-to support@yourdomain.com | ||||||
|
|
||||||
| # Scheduled email | ||||||
| # Scheduled email (ISO 8601 or natural language) | ||||||
| resend emails send \ | ||||||
| --from "you@yourdomain.com" \ | ||||||
| --to recipient@example.com \ | ||||||
| --subject "Reminder" \ | ||||||
| --text "Don't forget!" \ | ||||||
| --scheduled-at "<future-ISO-8601-datetime>" | ||||||
| --scheduled-at "tomorrow at 9am ET" | ||||||
|
|
||||||
| # Check status | ||||||
| resend emails get <email-id> | ||||||
|
|
@@ -128,8 +128,8 @@ resend broadcasts create \ | |||||
|
|
||||||
| resend broadcasts send <broadcast-id> | ||||||
|
|
||||||
| # Schedule for later | ||||||
| resend broadcasts send <broadcast-id> --scheduled-at "<future-ISO-8601-datetime>" | ||||||
| # Schedule for later (ISO 8601 or natural language) | ||||||
| resend broadcasts send <broadcast-id> --scheduled-at "in 2 hours" | ||||||
| ``` | ||||||
|
|
||||||
| --- | ||||||
|
|
@@ -218,6 +218,12 @@ resend templates create \ | |||||
| # Publish the template | ||||||
| resend templates publish welcome-email | ||||||
|
|
||||||
| # Send an email using a template | ||||||
| resend emails send \ | ||||||
| --to user@example.com \ | ||||||
| --template <template-id> \ | ||||||
| --var name=Jane --var plan=pro | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Use variable keys that match the template variable names in this recipe. The example currently defines Prompt for AI agents
Suggested change
|
||||||
|
|
||||||
| # Duplicate for A/B testing | ||||||
| resend templates duplicate welcome-email | ||||||
|
|
||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: Heads up that
fromandsubjectfields are optional to templates, so they might no always exist