/school:sapling-ai-detectorfrom school
Use when the user wants to scan, analyze, or grade text for AI-generated content using the Sapling API and produce a sentence-by-sentence report. Triggers on phrases like "check this for AI", "is this AI-generated", "scan this writing for AI", "detect AI in this text", "grade this writing for AI content", "run this through Sapling", or when a file/passage is provided alongside a question about authorship or AI authorship probability. Produces a structured markdown report with overall score, per-sentence breakdown, flagged passages, and threshold-based verdict. Do NOT use for general writing feedback, grammar checking, or paraphrasing — only for AI-detection analysis.
Ships in school. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Wraps Sapling's aidetect endpoint to produce a comprehensive report analyzing every sentence in a piece of text for AI-generated content.
Before running:
SAPLING_API_KEY env var. If missing, tell the user: "Set SAPLING_API_KEY in your shell (free key at https://sapling.ai/)." and stop.0.7), output path (default stdout), detector version (default 20251027).Determine what the user wants analyzed:
--text..txt, .md, .docx, or similar. Pass via --file. For non-plaintext formats (.docx, .pdf), extract text first using a separate tool, then pass the extracted text via --text.If the user provides both inline text and a file, ask which they meant — do not analyze both silently.
Defaults are sensible. Override only if the user asks:
0.7. Use 0.9 if the user wants a strict "high-confidence only" filter; use 0.5 for a sensitive scan.--output <path>. Otherwise the report prints to stdout and is returned in the conversation.LIKELY HUMAN (<0.3), MIXED / UNCERTAIN (0.3–0.7), or LIKELY AI (>0.7) based on overall score.python3 ~/.claude/skills/sapling-ai-detector/scripts/analyze.py \
--file <path> \
[--threshold 0.7] \
[--output <path>] \
[--version 20251027]
Or for inline text:
python3 ~/.claude/skills/sapling-ai-detector/scripts/analyze.py \
--text "the passage to analyze" \
[--threshold 0.7]
The script handles: API call, response parsing, char-limit validation, error messages, report generation. It exits non-zero on failure with a human-readable message.
If the report was saved to a file, tell the user the path and summarize the headline verdict + flagged sentence count in 1–2 sentences. If the report printed to stdout, return it in full in the conversation.
Always include a one-line caveat: "AI detectors have false positives — a high score is a signal to review, not a verdict. Sapling itself recommends against using detection as a standalone check."
The script produces this exact format:
# AI Detection Report
**Source:** <file path or "inline text">
**Analyzed:** <ISO timestamp>
**Detector version:** <pinned version>
**Threshold:** <float>
## Verdict
**<LIKELY HUMAN | MIXED / UNCERTAIN | LIKELY AI>** — overall score `<0.00–1.00>`
<one-line interpretation>
## Document metrics
| Metric | Value |
|---|---|
| Overall AI probability | `0.74` |
| Total characters | 1,247 |
| Total sentences | 12 |
| Sentences above threshold | 4 (33%) |
| Highest sentence score | 0.98 |
| Lowest sentence score | 0.02 |
| Daily quota used | ~2.5% (1,247 / 50,000 chars) |
## Risk distribution
| Band | Count | % of doc |
|---|---|---|
| Low (0.00–0.30) | 6 | 50% |
| Moderate (0.30–0.70) | 2 | 17% |
| High (0.70–1.00) | 4 | 33% |
## Per-sentence breakdown
Sorted by AI probability, descending.
| Rank | Score | Bar | Sentence (preview) |
|---|---|---|---|
| 1 | 0.98 | `▓▓▓▓▓▓▓▓▓▓` | Artificial intelligence has fundamentally transformed... |
| 2 | 0.94 | `▓▓▓▓▓▓▓▓▓░` | The implications of large language models extend... |
| ...
## Flagged sentences (full text)
Sentences with score ≥ threshold, in document order.
### Sentence #2 — score 0.98
> Artificial intelligence has fundamentally transformed the landscape of modern computational paradigms.
### Sentence #5 — score 0.94
> The implications of large language models extend across virtually every industry.
## Notes
- Score range: 0.0 = confident human, 1.0 = confident AI.
- Sentence-level scores can disagree with the document score when AI text is concentrated in a few passages.
- Detector version pinned for reproducibility; rerunning with a newer version may produce different scores.
- AI detection has false positives and false negatives. Use as a signal, not a verdict.
For the full Sapling API spec (all parameters, response schema, error codes), read references/api-reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hunterbrewer04/claude-toolkit --plugin school3 skills in this plugin
/notebooklm-course-syncKeeps a course's NotebookLM notebook in sync with the local course files (Syllabus, Lectures, assignment writeups, COURSE_SCHEDULE.md) under ~/Desktop/School, using a per-course manifest so repeat syncs only touch what changed. Use when Hunter asks to sync course files to NotebookLM, e.g. "sync my 4610 files to notebooklm", "make sure the databases notebook has everything thats here locally", "whats missing from the notebook", "update my calc 2 notebook", or otherwise wants to check a course notebook against what's on disk./rubric-checkRuns a pre-submission review that grades draft work strictly against its assignment spec, using a fresh-context subagent with zero knowledge of the session that produced the work, so the verdict reflects only what's on disk versus what the spec asks. Produces a requirement-by-requirement table, a predicted score, an ordered fix list, and the exact files to turn in. Use when the user says things like "grade my assignment against the spec", "check my submission before i turn it in", "spawn a subagent and grade this explicitly off the assignment details", or "what files do i need to turn in", or asks to double-check work against a rubric before submitting. Do NOT use to grade someone else's work or to invent a rubric from scratch.