setup

setup is a command for Claude Code from fcakyon/phd-skills. It costs 30 tokens per session (1,778 once invoked), scanned C, original, MIT.

An onboarding command that shows what the research plugin detected on your computer and optionally configures notifications, command permissions, project instructions, and LaTeX, the system commonly used to write research papers.

In plain words
What is it for?
Use it after installation to review detected settings or enable notifications, a command allowlist, research rules in CLAUDE.md, or LaTeX setup.
Why use it?
It makes the plugin’s assumptions visible and lets you choose a few project and computer settings without configuring everything by hand.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the phd-skills plugin — 12 skills, 6 commands, 2 agents, 4 hooks shipped together

Good fit Use it after installation to review detected settings or enable notifications, a command allowlist, research rules in CLAUDE.md, or LaTeX setup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fcakyon/phd-skills/setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/fcakyon/phd-skills

Made for: Claude Code.

Or install phd-skills, the plugin that ships this one along with the rest of its 12 skills, 6 commands, 2 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/fcakyon/phd-skills/setup/github.svg)](https://agentmods.dev/commands/fcakyon/phd-skills/setup)
Your own site
<a href="https://agentmods.dev/commands/fcakyon/phd-skills/setup"><img src="https://agentmods.dev/badge/commands/fcakyon/phd-skills/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/fcakyon/phd-skills/setup"><img src="https://agentmods.dev/badge/commands/fcakyon/phd-skills/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,778 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01778
Opus 5.5 $0.00012 $0.00711
Sonnet 5.5 $0.00006 $0.00356
Haiku 4.5 $0.00003 $0.00178

Measured 6d ago against content hash 796c6218a5cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

setup scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

- **ntfy.sh**: ask for topic name, write to `.env` as `NTFY_TOPIC=<topic>`. Test with `curl -d "phd-skills test" ntfy.sh/<topic>`

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Suppress a hook**: edit `~/.claude/settings.json` and set `"hooks.<event>.<matcher>.disabled": true` (Claude Code's standard mechanism)

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **ntfy.sh**: ask for topic name, write to `.env` as `NTFY_TOPIC=<topic>`. Test with `curl -d "phd-skills test" ntfy.sh/<topic>`
plugin/commands/setup.md · 181 lines

How it starts

The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PHD-Skills Setup

The plugin works correctly the moment it is installed. Most users never need to run setup. This command exists to (1) show what was auto-detected on the user's system, and (2) let users opt into a few extras (notifications, allowlist, project CLAUDE.md, LaTeX).

Step 0: Auto-detection tour (always run first)

Before asking any questions, print what the plugin already knows. No prompts, no decisions, just visibility.

Run these probes silently and present the results:

# System timezone
sys_tz=$(date +%Z)
sys_tz_long=$(readlink /etc/localtime 2> /dev/null | sed 's|.*zoneinfo/||')

# Last few long-job launches the plugin would have flagged
recent_launches=$(history 200 2> /dev/null | grep -E '(python.*train|accelerate launch|torchrun|deepspeed|sbatch|tmux.*python)' | tail -5)

# Sample jargon-shape hits in user's recent commits (if in a git repo)
jargon_hits=$(git log -50 --pretty=format:%s 2> /dev/null | grep -E '\bwave-[0-9]+\b|\bphase-internal\b|\binternal-only\b' | head -3)

# What the agentic Stop hook would orient on for this project
project_orientation=""
[ -f README.md ] && project_orientation+="README.md found  "
[ -f CLAUDE.md ] && project_orientation+="CLAUDE.md found  "
[ -f .claude/CLAUDE.md ] && project_orientation+=".claude/CLAUDE.md found  "
[ -f AGENTS.md ] && project_orientation+="AGENTS.md found  "

Then present:

phd-skills auto-detected the following:

Timezone:           ${sys_tz} (${sys_tz_long})
Recent launches:    <count> training-job patterns in shell history
Jargon hits:        <count> commits with internal-jargon shapes
Project orientation: ${project_orientation:-no README / CLAUDE.md / AGENTS.md found at project root}

This is what the hooks and agentic Stop hook will use. No configuration needed.
The plugin works on the first command. Hooks fire silently when there is nothing to flag.

Want to configure any extras? (notifications, allowlist, CLAUDE.md, LaTeX) [y/N]

If the user says no, you are done. If yes, walk them through the optional steps below.

Read the full file on GitHub · 181 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +16 lines 796c6218a5cd
  2. 1mo ago First seen · 165 lines · 30 tokens per session scan C 2d959f74b135

Subscribe to this mod's changes

setup is a command published in the GitHub repository fcakyon/phd-skills (423 stars, last pushed 6d ago), licensed MIT. It adds 30 tokens to every session and 1,778 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 3 findings (sends data to an external url, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.