Agent skill

Mindtrain

by shigella520 in shigella520/MindTrain

Configure a private MindTrain instance, query its knowledge catalog, create user-approved training domains and knowledge points from AI dialogue or local reference libraries, and run persistent…

MITAuto-check passedEducation

Install Mindtrain

skills CLI
$ npx skills add shigella520/MindTrain --skill mindtrain -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shigella520/MindTrain mindtrain --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shigella520/MindTrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/mindtrain/skills/mindtrain .claude/skills/mindtrain && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mindtrain
GitHub stars
125
Token cost
~2.6k tokens
SKILL.md length
1,326 words
Files
6 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Configure a private MindTrain instance, query its knowledge catalog, create user-approved training domains and knowledge points from AI dialogue or local reference libraries, and run persistent…

  • Works in 5 steps: Call get_mindtrain_configuration before… → When configured is false, explain that… → Ask for the full HTTPS MCP URL. Ask for… → …
  • The user configures MindTrain
  • SKILL.md covers Configure first use, Query or build the knowledge…, Build from local references and Run training, plus 6 more sections
  • Calls python3

What it does

Mindtrain is an agent skill from shigella520/MindTrain. Configure a private MindTrain instance, query its knowledge catalog, create user-approved training domains and knowledge points from AI dialogue or local reference libraries, and run persistent conversational training through Trainer MCP. Use when the user configures MindTrain, asks what domains or topics exist, searches the catalog, wants to create or extend a training domain, selects a local document directory, confirms a domain draft, starts or continues training, generates a question, answers or rejects a…

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `agents/openai.yaml`, `references/candidate-policy.md` and `references/knowledge-catalog.md`).

It sits in Education. It works with Model Context Protocol. The repository describes itself as: AI-driven knowledge training platform with pluggable schedulers, Codex Skill integration, and optional Anki/FSRS support. The licence is MIT.

When your agent uses it

  • The user configures MindTrain
  • Asks what domains
  • Searches the catalog
  • Wants to create

Example prompts

  • “/mindtrain”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Call get_mindtrain_configuration before the first training action in a task.
  2. When configured is false, explain that MindTrain needs the private Trainer MCP URL and the deployment's single-user Bootstrap Token.
  3. Ask for the full HTTPS MCP URL. Ask for the Token only when the user is willing to provide it in the current private conversation…
  4. Call configure_mindtrain_instance with the URL and Token. Never repeat, display, summarize, or persist the Token anywhere except through…
  5. Inspect the returned compatibility. Continue only when its status is compatible or compatible_version_difference. For a compatible version…

What it can do on your machine

Read from SKILL.md and the folder at commit e27cc5e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mindtrain loads about 2.6k tokens when it runs, and up to ~5.8k if it reads all its reference files. Until then it costs about 156 tokens; SKILL.md has 1,326 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~156
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from shigella520/MindTrain at commit e27cc5e, republished under its MIT licence (© shigella520). 1,326 words, ~2,606 tokens.

Download SKILL.mdSave it as .claude/skills/mindtrain/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
mindtrain
description
Configure a private MindTrain instance, query its knowledge catalog, create user-approved training domains and knowledge points from AI dialogue or local reference libraries, and run persistent conversational training through Trainer MCP. Use when the user configures MindTrain, asks what domains or topics exist, searches the catalog, wants to create or extend a training domain, selects a local document directory, confirms a domain draft, starts or continues training, generates a question, answers or rejects a question, asks follow-ups, revises a saved question, ends a session, or inspects learning progress.

MindTrain

Use the bundled MindTrain bridge as the only application data interface. Do not read or write repository question, candidate, session, attempt, or mastery files.

Configure first use

  1. Call get_mindtrain_configuration before the first training action in a task.
  2. When configured is false, explain that MindTrain needs the private Trainer MCP URL and the deployment's single-user Bootstrap Token.
  3. Ask for the full HTTPS MCP URL. Ask for the Token only when the user is willing to provide it in the current private conversation; otherwise direct them to run python3 scripts/mindtrain_mcp_bridge.py --configure from the installed plugin directory.
  4. Call configure_mindtrain_instance with the URL and Token. Never repeat, display, summarize, or persist the Token anywhere except through that configuration tool.
  5. Inspect the returned compatibility. Continue only when its status is compatible or compatible_version_difference. For a compatible version difference, briefly recommend synchronizing Plugin and server versions without blocking the requested work. For incompatible_or_unavailable or a version/contract error, stop remote operations, show the sanitized upgrade guidance, and do not retry training tools until the user updates the indicated component and opens a new task.

The bridge saves configuration outside the repository with user-only file permissions. Never put the private URL or Token into Skill files, Git configuration, examples, or commits.

Query or build the knowledge catalog

Read knowledge-catalog.md when the user asks what can be learned, searches for a knowledge point, or wants to create or extend a training domain. Query the current catalog before proposing a domain so stable IDs do not collide and existing domains are extended deliberately.

For a dialogue-created domain, clarify the learning goal, audience, scope, emphasis, and difficulty only as needed. Generate one domain target with any number of root topics. Call preview_training_domain with originType: ai_dialogue, show the complete tree, diff, conflicts, and the explicit warning when no references are bound. Do not invent Source records for AI output.

Build from local references

When the user names a local directory as a reference library, read reference-library.md and follow its configure, sync, organize, preview, and confirmation workflow. The user chooses what to learn; Codex organizes the selected material into a proposed training domain, topic hierarchy, and relations. Local files, extracted text, absolute paths, and indexes must remain on the Codex host. Core receives only source metadata, hashes, the approved training structure, and generated questions.

Never call confirm_training_domain until the user has seen the complete training-domain preview and explicitly confirmed saving it once. Reuse the exact proposalHash returned by preview. A conflict requires a revised proposal and a new preview; never overwrite an existing topic implicitly. When speaking to the user, say “保存并启用训练领域”, not “import/apply a knowledge catalog.”

Run training

  1. Call list_knowledge_domains before starting. Resolve a user-named domain and pass its exact ID. When exactly one domain exists, use it automatically. When none exist, guide the user through domain creation. When multiple exist and the user did not choose one, ask them to choose; never select the first domain silently.
  2. Call create_training_session with the resolved domainId; Core always uses the application-configured questionCount. Use provider ID weighted, displayed to users as 加权调度. One session trains exactly one domain.
  3. Call get_next_assignment.
  4. When it returns assignment, show only the stem and A-D options. Use exactly: 请回复选项字母,可用逗号分隔。
  5. Treat a clear option selection as a formal answer and call submit_choice_answer once.
  6. Treat concept questions, uncertainty, challenges, and hint requests as interactions. Call record_interaction, answer conversationally, and keep the assignment pending.
  7. After successful grading, render: result, correct answer, conclusion, option analysis, mechanism, pitfalls, version notes, related topics, and sources.
  8. Offer exactly: 下一题, 深入追问, 结束总结.
  9. Call finish_training_session when the target is complete or the user ends early.

Never infer the correct answer before submit_choice_answer returns it. Invalid answer input does not consume the question.

Revise a flawed saved question

When the user reports that a displayed question is unclear, incorrect, outdated, or poorly sourced, record the feedback with record_interaction and discuss the issue first. Never change the question merely because the user challenged it.

Call get_question_revision_context before revising so the complete current version and pending Assignment are authoritative. Call revise_saved_question only after the user explicitly asks to update the question bank and the intended correction is clear. The phrase 不合适,修改后再出 (or an unambiguous equivalent) is explicit authorization for one revision of the displayed active question and does not require a second confirmation. Use the question ID and version from the assignment, include its assignment ID as sourceAssignmentId, set applyToPendingAssignment: true, and submit only changed fields. Preserve option IDs and the correct option set unless authoritative sources support a scoring correction. Explain the revision and report the new version returned by Core.

On question_version_conflict, do not retry with a guessed version. Call get_question_revision_context with the pending Assignment to retrieve authoritative current content; if the Assignment no longer matches, explain that it must be refreshed rather than silently replacing it.

Show full SKILL.md (514 more words)Show less

Generate a missing question

When get_next_assignment returns generation_required, read candidate-policy.md, follow the returned generationProfile exactly, and generate one compliant question. Do not choose a different type, difficulty, or primary topic. If the profile references a local library, search it and read only the smallest relevant passages. When local evidence is insufficient, ask the user each time before using external authoritative sources. Call create_candidate_question, then call get_next_assignment again only after the candidate is accepted.

Before it is answered, the generated candidate is temporary and usable only by its owning session. A successful answer activates it for ordinary cross-session scheduling.

Reject a generated question

When the user clearly rejects the currently displayed AI-generated question before answering, call reject_generated_question with its assignmentId. Do not submit an answer and do not record the rejected question as an interaction. After Core confirms physical deletion, call get_next_assignment and present a materially different replacement. Never call this tool for an imported, previously answered, review, or ordinary new question.

Follow up deeply

For an explanatory follow-up, call record_interaction and answer in the current conversation.

For a deeper training question, generate another four-option question on the same topic and call create_candidate_question with attemptType: follow_up and the graded parent attempt ID. Present the returned follow-up assignment. It must increment only the follow-up count, never the main target. Do not count conversational explanations as attempts.

Report learning progress

When the user asks for a learning report, call get_learning_report. Lead with todayCompletedMainQuestions / dailyTarget, todayAccuracy, todayReviewCompleted, todayNewItemsIntroduced, the due backlog, and schedulerStatus; these are the live daily snapshot. Treat newBudget as a per-session policy limit and never present newItemAllowance as a daily remaining quota. Then present weakTopics as 待加强 and strongTopics as 擅长, including their domain, topic path, mastery score, and correct/wrong counts. Report insufficientEvidenceTopicCount separately as 数据积累中; never label those topics weak or strong before they meet the server-defined sample threshold.

Recover safely

  • On a Plugin/server version or contract mismatch, do not bypass the check. Ask the user to upgrade or reinstall the MindTrain Plugin, upgrade the deployed services when indicated, and open a new Codex task so the updated Plugin is loaded.
  • On configuration_required, return to the first-use configuration flow.
  • On no_training_domains, guide the user through creating and confirming a training domain.
  • On training_domain_selection_required, list the available domains and ask the user to choose one.
  • On training_domain_not_found, refresh the domain list instead of guessing a replacement.
  • On session_domain_invalid, explain that the session's domain no longer exists and start a new session only after the user chooses a valid domain.
  • On answer_unparseable, ask for option letters again without revealing answer count.
  • On no_available_items, explain the scheduler reason and offer to finish or inspect backlog.
  • On Core or MCP unavailability, retain the current visible question in conversation and retry the tool; do not fabricate persistence success.
  • On a local parser warning, report the affected file and continue with usable documents; never claim an unreadable document was indexed.
  • Use a new idempotency key for a new user action and reuse it only when retrying that same action.

Read tool-contract.md when tool inputs, statuses, or retry behavior are unclear.

© shigella520, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in plugins/mindtrain/skills/mindtrain of shigella520/MindTrain.

  • SKILL.md
  • agents/openai.yaml
  • references/candidate-policy.md
  • references/knowledge-catalog.md
  • references/reference-library.md
  • references/tool-contract.md

Open the folder on GitHubat commit e27cc5e

Compare with similar skills

Mindtrain next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mindtrain compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mindtrain this skillshigella520/MindTrain125—~2.6kAutomated safety check: PassMIT
MCPA Certification Tutorrohitg00/ai-engineering-from-scratch66k—~3.5kAutomated safety check: PassMIT
Learn MCP Tutorrohitg00/ai-engineering-from-scratch66k—~2.4kAutomated safety check: PassMIT
AI Engineering Course Guiderohitg00/ai-engineering-from-scratch66k—~1.7kAutomated safety check: PassMIT
AnkinailuoGG/anki-mcp-server254—~1kAutomated safety check: PassNone
ChecksOtoDock/oto-dock190—~2.2kAutomated safety check: PassCustom licence

Similar skills

  • MCPA Certification Tutor

    rohitg00/ai-engineering-from-scratch

    Turns a GitHub course repository into an interactive tutor for the MCP Associate certification, making the learner explain and defend each step.

    66k GitHub stars~3.5k tokensUpdated today
    EducationAuto-check passed
  • Learn MCP Tutor

    rohitg00/ai-engineering-from-scratch

    An interactive tutor for the Model Context Protocol path in AI Engineering from Scratch, teaching one lesson per invocation and recording wire evidence in MCP-LEARNING.md.

    66k GitHub stars~2.4k tokensUpdated today
    EducationAuto-check passed
  • AI Engineering Course Guide

    rohitg00/ai-engineering-from-scratch

    Routes a topic, question or bug to the exact lessons in the AI Engineering from Scratch curriculum and suggests the next command to run.

    66k GitHub stars~1.7k tokensUpdated today
    EducationAuto-check passed
  • Anki

    nailuoGG/anki-mcp-server

    A skill your agent uses when the user wants to create Anki flashcards, manage Anki decks, search notes, or interact with Anki via AnkiConnect.

    254 GitHub stars~1k tokensUpdated 16 days ago
    EducationAuto-check passed
  • Checks

    OtoDock/oto-dock

    How checks work on OtoDock — named units that judge an agent's work at the end of a turn (schema, script, handler and judge kinds), conditions on what the turn changed, rounds, where a check lives…

    190 GitHub stars~2.2k tokensUpdated 2 days ago
    EducationAuto-check passed
  • Course Guide

    fancyboi999/ai-engineering-from-scratch-zh

    AI Engineering from Scratch 课程的主题路由器。给它一个主题、问题或正在处理的 bug, 它会指出精确教授它的课程,以及下一条正确命令。触发短语: “在哪里学习”、“哪节课涵盖”、“课程导航”、“我卡在”、“接下来该做什么”、 “教我 MCP”、“教我 Agent Skills”、“在哪里准备 Claude certification”,或 "where do I…

    1.2k GitHub stars~948 tokensUpdated today
    AI & LLM EngineeringAuto-check passed

Questions about Mindtrain

What does Mindtrain do?

Configure a private MindTrain instance, query its knowledge catalog, create user-approved training domains and knowledge points from AI dialogue or local reference libraries, and run persistent…. Mindtrain is an agent skill from shigella520/MindTrain. Configure a private MindTrain instance, query its knowledge catalog, create user-approved training domains and knowledge points from AI dialogue or local reference libraries, and run persistent conversational training through Trainer MCP.

When should I use Mindtrain?

Mindtrain fits situations like: the user configures MindTrain; asks what domains; searches the catalog; wants to create.

How do I install Mindtrain in Claude Code?

Run `npx skills add shigella520/MindTrain --skill mindtrain -a claude-code`. Or copy the skill folder (plugins/mindtrain/skills/mindtrain in shigella520/MindTrain) into .claude/skills/mindtrain in your project. Claude Code loads it when a task matches its description.

How do I install Mindtrain in Codex?

Run `npx skills add shigella520/MindTrain --skill mindtrain -a codex`. Or copy the skill folder (plugins/mindtrain/skills/mindtrain in shigella520/MindTrain) into .agents/skills/mindtrain in your project. Codex loads it when a task matches its description.

Can I use Mindtrain in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shigella520/MindTrain --skill mindtrain -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mindtrain, .gemini/skills/mindtrain, .github/skills/mindtrain and .opencode/skills/mindtrain in your project.

What does Mindtrain need to run?

Going by SKILL.md and its folder, Mindtrain needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Mindtrain access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mindtrain safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mindtrain use?

Mindtrain is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mindtrain use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.2k tokens, read only when the agent opens those files.

What are the alternatives to Mindtrain?

Skills that share tags, products or a category with Mindtrain: MCPA Certification Tutor (rohitg00/ai-engineering-from-scratch, 66k stars), Learn MCP Tutor (rohitg00/ai-engineering-from-scratch, 66k stars), AI Engineering Course Guide (rohitg00/ai-engineering-from-scratch, 66k stars) and Anki (nailuoGG/anki-mcp-server, 254 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mindtrain?

shigella520 (a GitHub user) maintains it in shigella520/MindTrain, which has 125 GitHub stars. The repository was last updated on August 27, 2026.

Source: shigella520/MindTrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.