CLI tool
SYuan03/Skill-Anything avatar
SYuan03/Skill-Anything

Skill-Anything: quote-checked study packs, map-reduce for long sources and an offline share bundle

Any source (PDF, video, web, audio, text) to interactive learning package with quizzes, flashcards and spaced repetition. One command, 12-section study guide.

356 stars15 forksPythonMIT

At a glance

What is it?
Skill-Anything turns PDFs, video, web pages, audio, text and repositories into quizzes, flashcards, study guides, Anki decks and agent Skills through the sa command. Its distinguishing work is source quoting and chapter coverage, and both have limits you should know before trusting a pack.
Who is it for?
Use Skill-Anything if you want a command line that converts long sources into quote-backed quizzes, flashcards, an offline site or an Anki import and you are happy to supply your own OpenAI-compatible API key. Do not treat a passing sa audit as proof that the answers are right, and expect thin coverage on short chapters.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 61 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • SYuan03/Skill-Anything356 ★ · +24
Star history
Repository2026-09-182026-11-26
SYuan03/Skill-Anything332356

24 Stars in the last 69 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

v0.4.1 makes every generated item carry a verbatim source quote

The v0.4.1 release changes what a successful run means. Every LLM-generated quiz question, flashcard and exercise must include a verbatim quote from the source, and Skill-Anything checks that quote against the supplied text and rejects items it cannot support. Citations survive YAML round trips and appear in Markdown output, the offline site, Anki cards and exported Skill assets.

The same release adds a gate you can put in continuous integration:

bash
sa audit output/transformer-learning-pack.yaml --strict
sa audit output/transformer-learning-pack.yaml --strict --json

The strict audit is deterministic and covers citation coverage, duplicates, malformed options and missing answers or solutions. Notice what is absent from that list: whether an answer is correct. A quote match confirms only that the quoted text appears in the source; it does not prove the item follows from that text or that the answer is correct. Review those relationships separately.

Long sources are split into sections, mapped, then reduced

Version 0.1 and 0.2 degraded silently on anything past about 15K characters: the knowledge generator truncated input, quiz and flashcard generation hit per-call caps before reaching later chapters, and every call ran in sequence without a cache. Version 0.3 replaced that with a section-aware map-reduce pipeline.

Parsing is per source type. PDF uses the embedded outline, text and web split by headings, video and audio transcripts are bucketed into 5 minute sections, and a repository produces one section per file. Per-section map calls produce local summaries, concepts and notes, and one reduce call synthesizes the global summary, cheat sheet, takeaways and learning path. The detailed notes are assembled deterministically with no truncation. v0.4.1 adds a related fix: oversized chapters are split into ordered prompt windows instead of discarding everything after the first 5 to 6K characters.

Quota allocation guarantees a minimum per chapter, and the sample run shows thin chapters

Quiz, flashcard and exercise counts are allocated by largest-remainder weighting on section size, with a stated minimum per section. The published case study reports coverage across item types, not a nonzero count of each type in every chapter. From v0.4 the counts also scale to the available source evidence, and prompts reject unsupported facts instead of padding short notes.

The project's own case study processed a 12 chapter distributed-systems primer with `--concurrency 6` and produced 30 quiz questions, 40 flashcards, 10 exercises, 62 glossary terms and 15 key concepts. Coverage was measured by keyword matching. Chapter 8 on CRDTs received 1 quiz question, 0 flashcards and 0 exercises, and chapter 11 on messaging semantics received the same. Chapter 1 received 6 quiz questions, 11 flashcards and 1 exercise. The practical consequence is that a guaranteed minimum is not an even spread: short chapters can end up with almost nothing to study from.

The cache key and the concurrency flag decide cost on a second run

Calls run through a ThreadPoolExecutor map runner with progress bars and per-section failure isolation, so one failed section does not take down the pack. A disk cache keyed on `sha256(prompt+model+version)` can reuse matching cached calls on a second run; missed, failed or changed calls may still run. The flags are `--concurrency / -c`, which defaults to 6, and `--no-cache` on every source command:

bash
sa pdf book.pdf --format all --concurrency 8        # long PDF, parallel map
sa text long-notes.md --no-cache                    # bypass cache for a clean run

Because the model name is part of the key, switching the model invalidates the cache. v0.4 also made caches follow `--output` and made cache writes atomic in v0.4.1. If you want a fresh generation of an unchanged source, `--no-cache` is the switch, otherwise you receive the earlier responses.

Sharing means an offline site, a ZIP or an Anki import, not a hosted service

v0.4 added outputs a recipient can open without Python, an API key or a network connection. The web export is one self-contained `index.html` with searchable notes, glossary, quiz mode, flip cards, exercises, dark mode, printing and progress saved locally in the browser. It contains no CDN scripts, fonts, trackers or runtime API calls.

bash
sa share output/transformer-learning-pack.yaml
sa repo . --format all
sa export output/transformer-learning-pack.yaml --format web
sa export output/transformer-learning-pack.yaml --format anki

`sa share` produces the site plus a ready-to-send ZIP, and the same site can be hosted on GitHub Pages, Cloudflare Pages or Netlify. `--format anki` exports flashcards and quiz questions as an import-ready UTF-8 TSV with HTML fields and tags. `--format all` produces the study guide, structured YAML, agent Skill, offline site and Anki deck in one run. Progress lives in one browser, so a learner who switches devices starts over.

Generation needs an OpenAI-compatible endpoint and a key

Every generation call goes to an API you configure. The `.env.example` file sets `SKILL_ANYTHING_API_KEY`, `SKILL_ANYTHING_API_BASE` (default `https://api.openai.com/v1`) and `SKILL_ANYTHING_MODEL` (default `gpt-4o`). Optional lines add `SKILL_ANYTHING_MODEL_FAST=gpt-4o-mini` for map calls and `SKILL_ANYTHING_MODEL_SMART=gpt-4o` for the reduce call, `SKILL_ANYTHING_CONCURRENCY=6` and a proxy such as `http://127.0.0.1:7890`.

Visual concept maps use a separate image setting, `SKILL_ANYTHING_IMAGE_MODEL=dall-e-3`, on its own base URL that can be the same endpoint or another one. The v0.4 notes say portable exports avoid unnecessary image API calls. The consequence is that source text is sent to whichever provider you point the base URL at, so private material leaves your machine during generation even though the finished site stays local.

Extras per source type, and requirements.txt does not match them

The package name is skill-anything on PyPI, version 0.4.1, with Python 3.10 or newer, MIT license and a Beta development status classifier. GitHub Actions tests Python 3.10 to 3.13, runs Ruff and builds a wheel on every push and pull request. Both `sa` and `skill-anything` map to `skill_anything.cli:app`.

The core dependencies are typer, rich, pyyaml, python-dotenv, openai and httpx. Source handlers are optional extras: `pdf` brings pdfplumber, `video` brings youtube-transcript-api, `audio` brings openai-whisper, `web` brings beautifulsoup4, and `all` combines the four. requirements.txt covers pdfplumber, youtube-transcript-api and beautifulsoup4 but has no audio entry, and it lists pymupdf and pypdf as commented alternatives for PDFs. If you install from requirements.txt and then try an audio file, the whisper dependency is not there.

Editorial conclusion

Use Skill-Anything if you want a command line that converts long sources into quote-backed quizzes, flashcards, an offline site or an Anki import and you are happy to supply your own OpenAI-compatible API key. Do not treat a passing sa audit as proof that the answers are right, and expect thin coverage on short chapters. Before relying on it, run the audit on one pack from your own source and read the lowest-coverage chapters by hand.

Frequently asked questions

What are LLM skills in Skill-Anything?

Skill-Anything can export a study pack as an agent Skill, and `sa repo . --format all` produces the Skill alongside the study guide, YAML, offline site and Anki deck. Citations also appear in exported Skill assets.

Does Skill-Anything need an API key?

Yes for generation. The .env.example sets SKILL_ANYTHING_API_KEY and an OpenAI-compatible base URL. A recipient of the offline site does not need Python, an API key or an internet connection.

What does sa audit --strict check in Skill-Anything?

It checks citation coverage, duplicates, malformed options and missing answers or solutions, and is meant as a deterministic CI gate. It does not list answer correctness.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. SYuan03/Skill-Anything on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/syuan03-skill-anything.svg)](https://hysenlabs.com/projects/syuan03-skill-anything)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/syuan03-skill-anything.svg)](https://hysenlabs.com/projects/syuan03-skill-anything)

Was this useful?