My-Skills/math-extractor/SKILL.md
Extracts strictly mathematical terms (Definitions, Theorems, Lemmas, Propositions, Proofs) from documents (PDF, MD, TEX, TXT), handling PDF conversion and AI-based cleaning. Use when the user wants to extract math content from a file.
npx skillsauth add develata/deve-skills math-extractorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill extracts mathematical definitions, theorems, lemmas, propositions, and proofs from documents.
<input_schema>
<file_path>Path to the source file (pdf/md/tex/txt)</file_path>
</input_schema>
The Agent must follow this Chain of Thought (CoT):
scripts/processor.py can access the necessary API keys (MinerU & LLM) from the environment. If missing, return a configuration error.convert_pdf. The script internally uses the pre-configured MinerU key.clean_and_chunk (implemented in clean_content).batch_extract_math (implemented in batch_extract).{filename}_extracted.md and return the path.To use this skill, execute the python script with the file path.
Required Environment Variables:
EXTRACTION_API_KEY: API Key for LLM (e.g., OpenAI, DeepSeek).EXTRACTION_BASE_URL: Base URL for LLM API (default: https://api.openai.com/v1).Optional Environment Variables:
MINERU_API_KEY: Required only for PDF conversion.MINERU_BASE_URL: Base URL for MinerU API (default: https://api.mineru.com/v1).LLM_MODEL: Model name to use (default: gpt-4o).python scripts/processor.py <file_path> <output_directory>
a < b).tools
Collect and audit Codex token usage with a bundled Python CLI and optional Windows batch launchers. Use this skill when the user asks to check Codex token usage, generate daily token audit logs, calculate monthly CostUSD totals, review Codex spending, or run Codex token usage scripts on Windows, Bash, WSL, or Linux.
tools
Use when giving the user an INLINE reply that carries a trade-off, a decision, a verdict, or a non-trivial finding (decision brief / round verdict / failure root-cause). NOT for "done"/status confirmations, one-line answers, or pure data dumps. Forces a compact decision-brief shape and blocks internal tool-name / file-path bleed into user-facing text.
development
Use for cross-file or cross-chapter terminology audits and corpus-wide term unification in thesis/paper sources — extract candidate term drift, build a decision queue, classify each occurrence, apply accepted replacements safely, and verify counts/build. Trigger on "术语审计", "术语统一", "术语一致性", "逐词审", "这个词全文怎么用", "把 X 全文改成 Y", "terminology audit", or "unify term X". Do NOT use for ordinary prose drafting or a single known-location edit; use academic-writing for prose quality and claim-boundary judgment.
tools
Use for ANY codex CLI dispatch via dispatch wrapper (no time threshold; presence-of-risk triggers, not estimated wall — stdin-EOF stalls occur at <60s). Combines internal log-inactivity watchdog wrapper + external Claude-session cron probe + sentinel hook enforcement. Detects stalls in ≤60-270s vs hours-without-detection failure mode.