agentleFS
borunborun/claude-skill/skills/claude/SKILL.md

claude

Skill0 starsChanged 4 days agoMITView on GitHub

Consult Anthropic Claude for a second opinion, code review, or deep analysis via the official Claude API. Use when asked to ask or consult Claude, Opus, Sonnet, Haiku, or Fable.

  • Reads credentials

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit-decisions, implement-spec-with-codex and 10 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.
  • dzhngSkill

    audit-decisions

    Audit the decisions an implementing agent made, not its diff — a pure audit that traces the session's history into a decisions ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.

    Also in 4 projects that use this

  • dzhngSkill

    implement-spec-with-codex

    Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.

    Also in 4 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • LucasMatuszewskiSkill

    audit-agents

    Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.

    Also in 4 projects that use this

  • +8 more from dzhng

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 34 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Run it: Before spending anything, the script checks the request and prints a [claude] preflight line on stderr:

    line 23
  2. Distinctive:

    Every call costs the user money.

    line 34
  3. Very specific:

    Run catalog. It prints the path of the user's editable copy, creating it from the bundled one if needed.

    line 56
  4. Distinctive:

    Read https://platform.claude.com/docs/en/about-claude/pricing, https://platform.claude.com/docs/en/build-with-claude/effort, and …

    line 57
  5. Very specific:

    Run models and confirm it shows no warnings.

    line 59
  6. Very specific:

    No API key: ask the user to set ANTHROPIC_API_KEY, or store the key in the system keychain themselves.

    line 63

“Common” is measured: kept by at least 6 in 10 of the 34 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

Claude via the Anthropic API

Engine: python3 <skill-dir>/scripts/claude.py (relative link: scripts/claude.py). It uses only the Python standard library.

<skill-dir> is the folder that contains this SKILL.md (when installed as a global Antigravity plugin, ~/.gemini/config/plugins/claude/skills/claude). On Windows, use python instead of python3.

The script keeps itself current, so nothing here needs editing when Anthropic ships or retires models:

  • Model names and capabilities are resolved against Anthropic's live model list (GET /v1/models) for the user's key, cached for a day. An alias such as opus always resolves to the newest active stable Opus.
  • Effort levels come from live model capabilities and are confirmed by the API. What it accepts or rejects is remembered and reported next time.
  • Prices aren't published by the API, so they live in a dated catalog.json. Tiered long-context rates and scheduled price changes apply automatically.

Standard procedure for every Claude request

  1. Turn the request into a model spec. "Consult Claude Opus High" becomes -m opus-high; "ask Fable" becomes -m fable; "quick check with Haiku" becomes -m haiku-low. With no model named, leave out -m to use the configured default (sonnet). If the user names something you don't recognise, run models and pick from it, or ask.
  2. Write a self-contained prompt. Claude sees none of this conversation unless you pass -c ID. Give the goal, the constraints, the relevant files through -f, and the shape of answer you want (for example "list concrete bugs with file and line; say NONE if there are none"). Send only what the question needs. Never send .env files, keys, credentials, or anything the user called sensitive: the data leaves the machine.
  3. Run it. Before spending anything, the script checks the request and prints a [claude] preflight line on stderr:
    • The model must be in Anthropic's live list for this key. Otherwise it stops and suggests close matches.
    • It states whether the effort level is supported by the model's live capabilities, was accepted before, is in Anthropic's docs, or is rejected/unsupported.
    • It shows the price and an input-cost estimate. Above the cost guard ($0.50 by default) it stops: ask the user, then rerun with --yes.
  4. Act on what it reports. Never substitute silently.
    • The model is missing, or the effort is rejected/unsupported: tell the user and offer the suggestion it prints (for example, claude-opus-4-6 does not support xhigh, so it suggests high). Rerun only with their OK, unless they already said to use the closest.
    • "opus" now means X (was Y): Anthropic released a newer version. Mention it in one line.
    • refresh the catalog (a price is missing, or prices are over 30 days old): do the refresh below, and tell the user what changed.
    • 401, 403, 429, or 529 errors: pass on the hint the script prints (bad key, account tier/rate limit, or API overload).
  5. Report back. Give Claude's answer, attributed ("Claude Opus 5.5 says…"). Then give your own assessment: check its claims against the code, and say which points you agree or disagree with and why. Finish with the cost line the script printed.

Every call costs the user money. You may suggest a Claude cross-check for a high-stakes change, but run it only after the user agrees, and never call it in a loop.

Commands

python3 <skill-dir>/scripts/claude.py ask "QUESTION" [-f FILE ...] [-m MODEL[-EFFORT]] [-t LEVEL] [-s SYSTEM] [-c ID] [--max-tokens N] [--yes]
python3 <skill-dir>/scripts/claude.py check [MODEL[-EFFORT]] [--probe] [--refresh]
python3 <skill-dir>/scripts/claude.py models [--all] [--refresh]
python3 <skill-dir>/scripts/claude.py doctor
python3 <skill-dir>/scripts/claude.py catalog
  • -m takes an alias (fable, opus, sonnet, haiku), optionally with an effort suffix (opus-high, fable-max, sonnet-medium). A full model ID pins an exact version, e.g. claude-opus-5-5-high or claude-sonnet-4-6-high. -t / --effort sets the effort level and overrides a suffix.
  • Rough roles, which stay stable across versions: Fable is the strongest reasoner (hardest problems and long-horizon analysis), Opus is frontier coding & architecture, Sonnet is the everyday speed/intelligence balance (default), and Haiku is fastest and cheapest. Run models for current versions, effort levels, and prices.
  • -f - reads stdin, e.g. git diff | python3 <skill-dir>/scripts/claude.py ask "Review this diff" -f -. Image files (PNG, JPEG, WebP, GIF) and PDF files passed with -f are attached natively as Anthropic image/document blocks.
  • A local conversation_id is printed on stderr. Pass it to -c to ask a follow-up in the same multi-turn conversation.
  • --max-tokens defaults to 16384 (covering both adaptive thinking and final text). Requests above 21000 automatically use SSE streaming so Anthropic's non-streaming limit is never hit.
  • check SPEC previews a request without sending a prompt. --probe confirms an effort level live with a tiny prompt (costs a fraction of a cent; a rejection is free).
  • doctor checks the setup: where the key was found (never its value), the config, the catalog, and API access. Run it first when something fails.

Refreshing the catalog (only when the script asks)

  1. Run catalog. It prints the path of the user's editable copy, creating it from the bundled one if needed. Edit that file, never the bundled copy.
  2. Read https://platform.claude.com/docs/en/about-claude/pricing, https://platform.claude.com/docs/en/build-with-claude/effort, and https://platform.claude.com/docs/en/about-claude/models/overview.
  3. For each model models lists, update input and output (USD per 1M tokens), any long_context tier or scheduled changes, effort, default_effort, and use_for. Add new model IDs, remove retired ones, and set verified_on to today.
  4. Run models and confirm it shows no warnings. Tell the user what changed.

Setup problems

  • No API key: ask the user to set ANTHROPIC_API_KEY, or store the key in the system keychain themselves. On macOS that's security add-generic-password -a "$USER" -s anthropic-api-key -w; on Linux, secret-tool store --label="Anthropic API key" service anthropic-api-key. Never ask them to paste the key into the chat.
  • Defaults live in ~/.config/claude-skill/config.json, e.g. {"default_model": "opus-high", "max_input_cost": 0.5, "max_tokens": 16384}. The environment variables CLAUDE_DEFAULT_MODEL, CLAUDE_MAX_INPUT_COST, and CLAUDE_MAX_TOKENS take precedence.
  • Learned state (cached model list, accepted/rejected effort levels, alias history) is in ~/.cache/claude-skill/state.json, and local multi-turn conversations are stored in ~/.cache/claude-skill/conversations/. Deleting them is safe.
  • --raw also prints the full JSON response to stderr, with large base64 payloads shortened.

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.