devto
Installation
SKILL.md
Call the Forem API v1 (dev.to) with curl + jq. The user's API key is in
$DEVTO_API_KEY; every call needs the headers api-key: $DEVTO_API_KEY and
Accept: application/vnd.forem.api-v1+json. Base URL: https://dev.to/api.
Errors come back as JSON with an error / status field — show them verbatim.
401 means the API key is invalid → the user must re-connect the DEV connector.
Always start by confirming the key and learning the account:
curl -sS -H "api-key: $DEVTO_API_KEY" -H "Accept: application/vnd.forem.api-v1+json" \
"https://dev.to/api/users/me" | jq '{username, name}'
Publish an article
Confirm with the user before publishing publicly. Default to a draft
(published:false) unless they explicitly say publish/now.