Agent skill

Method Selector

by zhnnky329 in zhnnky329/MathModeling-skills

Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion.

MITAuto-check passedBackend & APIs

Install Method Selector

skills CLI
$ npx skills add zhnnky329/MathModeling-skills --skill method-selector -a claude-code

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

GitHub CLI
$ gh skill install zhnnky329/MathModeling-skills method-selector --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/zhnnky329/MathModeling-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/method-selector .claude/skills/method-selector && 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
method-selector
GitHub stars
1.1k
Token cost
~1.6k tokens
SKILL.md length
692 words
Files
3 (incl. references)
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion.

  • Works in 7 steps: Align the decision surface. → Derive method requirements. → Create a role-based shortlist. → …
  • Tasks that involve Authorization and RBAC
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Data analysis

What it does

Method Selector is an agent skill from zhnnky329/MathModeling-skills. Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion. Use after problem framing and data profiling, before model code generation, to propose a main candidate, a usable baseline, and at most one conditional fallback without padding the pool.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/method-family-guide.md` and `references/risk-probe-contract.md`).

It sits in Backend & APIs, covering Authorization and RBAC and Data analysis. The repository describes itself as: 面向数学建模竞赛的 Claude Code / Codex Skills ,支持分阶段建模流程与 Python、MATLAB/北太天元代码分支。 The licence is MIT.

When your agent uses it

  • Tasks that involve Authorization and RBAC
  • Tasks that involve Data analysis

Example prompts

  • “/method-selector”

Workflow steps

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

  1. Align the decision surface.
  2. Derive method requirements.
  3. Create a role-based shortlist.
  4. Define method-specific risk checks.
  5. Run the risk probe on the main candidate and usable baseline.
  6. Write canonical artifacts.
  7. Ask for the method choice.

What it can do on your machine

Read from SKILL.md and the folder at commit 0b46e9c. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    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

Method Selector loads about 1.6k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 76 tokens; SKILL.md has 692 words of instructions outside code blocks.

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

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 zhnnky329/MathModeling-skills at commit 0b46e9c, republished under its MIT licence (© zhnnky329). 692 words, ~1,591 tokens.

Download SKILL.mdSave it as .claude/skills/method-selector/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
method-selector
description
Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion. Use after problem framing and data profiling, before model code generation, to propose a main candidate, a usable baseline, and at most one conditional fallback without padding the pool.

Purpose

Convert the framed problem and data profile into a small executable decision surface. Screen methods for load-bearing data, assumption, degeneracy, sensitivity, and scale risks before asking the human to choose.

This skill proposes and probes methods. The human chooses the method.

Preconditions

  • G1 problem framing passed.
  • Required output and evaluation criteria are known.
  • Relevant data inventory or audit exists.
  • planning/symbol_table.md and planning/model_assumptions.md exist when the problem needs them.

If these are missing, return to the producer skill rather than guessing.

Inputs

  • Problem parse and classification.
  • Data audit, including missingness, effective sample size, imbalance, cardinality, and distribution summaries.
  • Literature analysis when available.
  • Contest deadline, implementation language, interpretability needs, and compute limits.
  • planning/session_config.json.
  • Existing methods/Qx/qx_method_card.md and decision ledger when revising.

Workflow

  1. Align the decision surface.

    • Invoke decision-prompt-builder before generating an open-ended shortlist.
    • Ask about human-owned trade-offs, not algorithm names.
    • Reuse answers already present in the decision ledger.
  2. Derive method requirements.

    • Start from required output, hard constraints, data characteristics, validation criteria, explanation burden, and experiment budget.
    • Identify the failure modes that would make a method unusable.
  3. Create a role-based shortlist.

    • One main_candidate: best fit to the chosen trade-off.
    • One usable_baseline: completes the real task and yields directly comparable outputs.
    • At most one conditional_fallback: differs in a meaningful mathematical way and has an explicit activation trigger.
    • If a simple reference cannot complete the real task, label it diagnostic_reference; it does not satisfy the baseline requirement.
    • Do not add a method merely to reach a candidate count.
  4. Define method-specific risk checks.

    • Use the contract in references/risk-probe-contract.md.
    • Select only relevant assumption checks.
    • Always check output degeneracy or concentration with metrics appropriate to the output.
    • Bound probe runtime rather than source-line count.
  5. Run the risk probe on the main candidate and usable baseline.

    • Use a representative slice or full-data diagnostic as appropriate; never rely only on the first rows.
    • The probe may use reusable scripts and may save detailed metrics, but its canonical output is one compact summary.
    • Probe the fallback only enough to establish that its trigger and risk profile are credible. Do not fully implement it.
  6. Write canonical artifacts.

    • methods/Qx/qx_method_card.md
    • methods/Qx/probes/risk_probe_summary.json
    • Update planning/manifests/Qx.json if present.
  7. Ask for the method choice.

    • Present the probe evidence through a choice card.
    • After the user answers, hand the exact answer to modeler-decision-logger for append-only capture in methods/Qx/qx_decisions.jsonl.
    • If no answer is available, stop. Do not create a placeholder decision file.

Method Card Contract

qx_method_card.md stays compact and contains:

markdown
# Qx Method Card

## Goal and success criteria

## Human constraints
- Output form:
- Priority:
- Unacceptable failure:
- Experiment budget:

## Shortlist
| ID | Role | Mathematical idea | Why eligible | Main risk | Implementation cost |

## Baseline validity
- Real task completed:
- Comparable output/metric:
- If no, classification: diagnostic_reference

## Risk-probe summary
| ID | Executability | Data/assumptions | Degeneracy | Sensitivity | Scale | Verdict |

## Fallback trigger
- Trigger:
- Evidence to evaluate:

## Compact history
- One line per material change, with decision_id when human-owned.

Do not maintain a separate iteration log for new work.

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

Probe Verdicts

  • PASS: eligible for the human choice.
  • CONDITIONAL: eligible only with a stated mitigation or fallback trigger.
  • FAIL: not offered as a selectable main or baseline.

A method fails screening when a load-bearing assumption fails, the output degenerates, it cannot produce a legal result, or its cost violates the user's budget. A method does not fail merely because an irrelevant generic diagnostic is unavailable.

Output and Handoff

After G2 screening:

  • If the human choice is absent: return the evidence-backed choice card.
  • If G2.5 is decided: hand the method card, probe summary, chosen IDs, and experiment budget to model-code-analyzer.
  • Instruct code generation to implement only the approved main method and usable baseline.
  • Keep the fallback dormant until its recorded trigger fires.

Rules

  • Do not use a fixed candidate count.
  • Do not use source-line count as validation quality.
  • Do not invent missing data fields, constraints, labels, or evaluation metrics.
  • Do not call a nonfunctional toy method a baseline.
  • Do not fully implement all shortlisted methods.
  • Do not select the method or write the human rationale.
  • Keep AI suggestions visibly separate from the human decision.

Compatibility

When revising an older workspace, read:

  • methods/Qx/qx_method_candidates.md
  • methods/Qx/qx_method_iteration_log.md
  • methods/Qx/poc/

Migrate material evidence into the method card and probe summary. Do not require new legacy PoCs or iteration logs.

References

  • Risk checks and summary schema: references/risk-probe-contract.md
  • Method-family routing cues: references/method-family-guide.md

Verification

  • Shortlist contains a main candidate and a genuinely usable baseline.
  • Optional fallback has a concrete trigger.
  • Main and baseline have evidence-backed probe verdicts.
  • Output-degeneracy checks are present.
  • Method card and probe summary exist.
  • No per-skill pending decision file was created.
  • No code-generation handoff occurs before a human method choice is recorded.

© zhnnky329, 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 2 other files (references) in .codex/skills/method-selector of zhnnky329/MathModeling-skills.

  • SKILL.md
  • references/method-family-guide.md
  • references/risk-probe-contract.md

Open the folder on GitHubat commit 0b46e9c

Compare with similar skills

Method Selector 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.

Method Selector compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Method Selector this skillzhnnky329/MathModeling-skills1.1k—~1.6kAutomated safety check: PassMIT
Amazon Opensearch Serviceaws/agent-toolkit-for-aws2.8k—~2.4kAutomated safety check: PassApache-2.0
Azure Carbon OptimizationMicrosoftDocs/Agent-Skills777—~837Automated safety check: PassCC-BY-4.0
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
K8s Security PoliciesCybereason-Public/owLSM28012 repos~2kAutomated safety check: PassGPL-2.0
Payloadpayloadcms/payload45k5 repos~6.2kAutomated safety check: PassMIT

Similar skills

  • Amazon Opensearch Service

    aws/agent-toolkit-for-aws

    Official

    Guides migration, provisioning, search, log-analytics, trace-analytics, and Agentic AI Assistant workflows for Amazon OpenSearch Service and Serverless across six capabilities — migration…

    2.8k GitHub stars~2.4k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Azure Carbon Optimization

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Carbon Optimization development including troubleshooting, security, and integrations & coding patterns.

    777 GitHub stars~837 tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • K8s Security Policies

    Cybereason-Public/owLSM

    Comprehensive guide for implementing NetworkPolicy, PodSecurityPolicy, RBAC, and Pod Security Standards in Kubernetes.

    280 GitHub starsUsed in 12 repos~2k tokens
    Backend & APIsAuto-check passed
  • Payload

    payloadcms/payload

    A skill your agent uses when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API).

    45k GitHub starsUsed in 5 repos~6.2k tokens
    Backend & APIsAuto-check passed
  • Convex Setup Auth

    spokvulcan/poker-planning

    Sets up Convex auth, identity mapping, and access control. An agent skill from spokvulcan/poker-planning.

    114 GitHub starsUsed in 8 repos~1.8k tokens
    Backend & APIsAuto-check passed

More from zhnnky329/MathModeling-skills

All 29 skills in this repo
  • Problem Classifier

    zhnnky329/MathModeling-skills

    Classify each parsed mathematical-modeling subquestion by required output and structure, surface ambiguous framing trade-offs for human choice, and record primary/secondary task types without…

    1.1k GitHub stars~611 tokensUpdated 14 days ago
    Auto-check passed
  • Data Auditor Cleaner

    zhnnky329/MathModeling-skills

    Map contest attachments to subquestions, audit and clean raw data, and emit one reusable data profile with quality, coverage, imbalance, concentration, and method-readiness evidence for downstream…

    1.1k GitHub stars~1.1k tokensUpdated 14 days ago
    Auto-check passed
  • Decision Prompt Builder

    zhnnky329/MathModeling-skills

    Build one compact choice card at a genuine mathematical-modeling judgment point.

    1.1k GitHub stars~837 tokensUpdated 14 days ago
    Auto-check passed
  • Matlab Model Code Generator

    zhnnky329/MathModeling-skills

    Generate and run minimal reproducible MATLAB or Beita Tianyuan compatible code for the human-approved main method and usable baseline, with compact experiment artifacts and a canonical run summary.

    1.1k GitHub stars~685 tokensUpdated 14 days ago
    Auto-check passed
  • Model Code Analyzer

    zhnnky329/MathModeling-skills

    Translate a human-approved main method and usable baseline into a minimal language-neutral implementation and experiment contract.

    1.1k GitHub stars~881 tokensUpdated 14 days ago
    Auto-check passed
  • Modeler Decision Logger

    zhnnky329/MathModeling-skills

    Faithfully append a human modeler's choice and rationale to one canonical per-subquestion JSONL decision ledger.

    1.1k GitHub stars~783 tokensUpdated 14 days ago
    Auto-check passed

Questions about Method Selector

What does Method Selector do?

Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion. Method Selector is an agent skill from zhnnky329/MathModeling-skills. Build and risk-screen a compact role-based method shortlist for a mathematical-modeling subquestion.

When should I use Method Selector?

Method Selector fits situations like: tasks that involve Authorization and RBAC; tasks that involve Data analysis.

How do I install Method Selector in Claude Code?

Run `npx skills add zhnnky329/MathModeling-skills --skill method-selector -a claude-code`. Or copy the skill folder (.codex/skills/method-selector in zhnnky329/MathModeling-skills) into .claude/skills/method-selector in your project. Claude Code loads it when a task matches its description.

How do I install Method Selector in Codex?

Run `npx skills add zhnnky329/MathModeling-skills --skill method-selector -a codex`. Or copy the skill folder (.codex/skills/method-selector in zhnnky329/MathModeling-skills) into .agents/skills/method-selector in your project. Codex loads it when a task matches its description.

Can I use Method Selector 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 zhnnky329/MathModeling-skills --skill method-selector -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/method-selector, .gemini/skills/method-selector, .github/skills/method-selector and .opencode/skills/method-selector in your project.

What does Method Selector need to run?

SKILL.md names no scripts, command-line tools or credentials: Method Selector is instructions for the agent only.

Does Method Selector 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 Method Selector 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 Method Selector use?

Method Selector 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 Method Selector use?

About 1.6k tokens (SKILL.md is roughly 6.4k 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 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Method Selector?

Skills that share tags, products or a category with Method Selector: Amazon Opensearch Service (aws/agent-toolkit-for-aws, 2.8k stars), Azure Carbon Optimization (MicrosoftDocs/Agent-Skills, 777 stars), Configuring Horizon (coollabsio/coolify, 63k stars) and K8s Security Policies (Cybereason-Public/owLSM, 280 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Method Selector?

zhnnky329 (a GitHub user) maintains it in zhnnky329/MathModeling-skills, which has 1,059 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on September 24, 2026.

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