Sends an English text to the AssetFeed AI Detector API and reports the estimated AI-written share, an overall verdict and per-segment scores. The result is a probabilistic estimate, not proof. Free check in the browser: https://assetfeed.com/ai-content-detector. API docs: https://assetfeed.com/ai-content-detector/api.
Existing skills such as detect-ai-text judge prose from linguistic tells inside the agent. This skill calls a hosted detector API and returns its scores.
ASSETFEED_API_KEY in the environment. Keys: https://assetfeed.com/api-keys (sign-in required). Free accounts get 100 credits a month; pricing: https://assetfeed.com/pricing.curl and jq.https://api.assetfeed.com. The text leaves the machine. Tell the user before sending a file. Checks made with an API key are not stored.Get the text from the user's message or read the file they name. If the user has not agreed to send it to AssetFeed, ask first. Never print the API key.
jq -n --arg text "$TEXT" '{text: $text}' | curl -sS -X POST https://api.assetfeed.com/api/v1/ai-detector/checks \
-H "Authorization: Bearer $ASSETFEED_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @-
For a file, use jq -n --rawfile text path/to/file '{text: $text}'.
The result is in the data object of the response:
status: ok when scored. too_short means fewer than 50 words. unsupported_language means the text is not English.ai_fraction: estimated AI-written share, 0 to 1.unsure_fraction: share the detector could not decide.verdict: overall verdict.words: word count.windows: per-segment results with paragraphs, words, score and verdict.detector_version.HTTP errors: 401 the key was rejected, 402 not enough credits, 429 rate limit exceeded.
Report ai_fraction as a percentage with the verdict. If status is not ok, report the reason and stop. Say that the result is a probabilistic estimate, not proof.
User request: Check whether draft.md was written by AI.
Inputs: draft.md (English, about 600 words), ASSETFEED_API_KEY set.
Expected result: the AI-written share as a percentage, the verdict, and a note that it is an estimate.
status other than ok.Read-only for the local machine. The text is sent to api.assetfeed.com over HTTPS. The API call uses credits from the account that owns the key. The skill does not write files.