AI text check
Overview
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.
When to Use
- The user asks whether an essay, article, draft or file was written by AI and wants a score from a detector.
- The text is English and has at least 50 words.
- Do not use it for other languages or for text under 50 words. The API does not score them.
Prerequisites
ASSETFEED_API_KEYin the environment. Keys: https://assetfeed.com/api-keys (sign-in required). Free accounts get 100 credits a month; pricing: https://assetfeed.com/pricing.curlandjq.- Network access to
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.
How It Works
1. Establish the inputs
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.
2. Perform the check
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:okwhen scored.too_shortmeans fewer than 50 words.unsupported_languagemeans 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 withparagraphs,words,scoreandverdict.detector_version.
HTTP errors: 401 the key was rejected, 402 not enough credits, 429 rate limit exceeded.
3. Verify and report
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.
Examples
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.
Limitations
- English only, 50 words or more. Other input returns a
statusother thanok. - The score is an estimate. Do not state that a person did or did not write the text, and do not use the score alone for decisions about people.
- Not tested against the live API in this submission: no key was used. Request and response fields follow AssetFeed's reference client code.
Safety and side effects
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.