agentleFS
raineraine/consult-llm-mcp/skills/consult/SKILL.md

consult

Skill148 starsChanged 4 months agoMITView on GitHub

Consult an external LLM with the user's query.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use discover, init and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 3 projects that use this

  • MicrosoftSkill

    council

    Convene the persona panel — six orthogonal review lenses — on a target. Cold independent fan-out, debate-to-consensus, synthesized verdict with recorded dissent and a roster manifest.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check $ARGUMENTS for flags:

    line 23
  2. Distinctive:

    Use Glob/Grep to find relevant files.

    line 43
  3. Distinctive:

    Read key files to confirm relevance.

    line 44
  4. Distinctive:

    Do not stop at the first plausible file, definition, setting, or example.

    line 46
  5. Very specific:

    Before using the response, apply the loaded consult-llm skill's context request loop.

    line 59
  6. Distinctive:

    ALWAYS gather file context before consulting.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Consult an external LLM with the user's query via the consult-llm CLI.

Load the consult-llm skill before invoking — it defines the invocation contract (stdin heredoc, flags, output format, multi-turn). Do not call the CLI without loading it first.

Available models

Selectors resolvable in this environment (depends on configured API keys):

!`consult-llm models`

Argument handling

Arguments: $ARGUMENTS

Check $ARGUMENTS for flags:

Model flags: any --<selector> from the Models block above selects that model (e.g. --gemini, --openai, --deepseek, --minimax). Repeat for multiple models — they run in parallel.

Translate model flags according to the loaded consult-llm skill's model-selection rules.

Mode flags:

  • --browser → use web mode (--web, copies prompt to clipboard)
  • --background → run the Bash call in background mode (run_in_background)

Strip all flags from the arguments to get the user query.

Workflow

0. Load consult-llm skill

Load it now. Follow its invocation contract for all CLI calls in this workflow.

1. Gather context

  • Use Glob/Grep to find relevant files.
  • Read key files to confirm relevance.
  • Do enough research to understand how the requested behavior actually works. Before starting, think about what resources would be useful to obtain first: relevant source files, tests, logs, generated files, config, examples, command output, external docs, or authoritative upstream source. Gather the cheapest useful evidence before consulting.
  • Do not stop at the first plausible file, definition, setting, or example. Follow references, callers, related tests, and runtime usage until you can explain the current behavior and the likely impact of changing it.
  • Select files that let reviewers understand the behavior being discussed and verify your assumptions.

2. Invoke

One or more --<selector> flags — single call with one -m <selector> per flag, plus -f <path> for each relevant file. Multiple selectors run in parallel and the CLI returns a combined response with per-model sections.

No model flag (default) — use the loaded consult-llm skill's default model-selection rules, plus -f <path> for each relevant file.

--browser — single call with --web (model flags are ignored in web mode).

3. Resolve context requests

Before using the response, apply the loaded consult-llm skill's context request loop. If an answer ends with a context request, resume that model independently with the requested evidence and treat its revised answer as the consultation result.

4. Present results

  • Normal mode (single model): summarize key insights, recommendations, and considerations.
  • Normal mode (multiple models): the CLI output already contains labeled per-model sections. Synthesize by highlighting agreements, noting disagreements, and presenting a unified takeaway.
  • Web mode: inform the user the prompt was copied to clipboard and ask them to paste it into their browser-based LLM and share the response back.

Critical rules

  • ALWAYS gather file context before consulting.
  • Pass through the user's query faithfully — do NOT add your own theories, suspects, analysis, or suggested solutions to the prompt. The user's intent is the prompt. Rephrase as needed so the prompt reads as a direct question to the LLM, not a meta-instruction to you. You may add brief factual context (e.g. "we recently changed X to Y"), but never inject your own diagnostic opinions or hypotheses. Do not pass the user's query verbatim if it is phrased as an instruction to you rather than a question for the LLM.
  • Provide focused, relevant files (quality over quantity).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.