plugin-structure

plugin-structure is a skill for Claude Code from Galaxy-Dawn/claude-scholar. It costs 93 tokens per session (3,218 once invoked), scanned A, a copy of plugin-structure, MIT.

A guide to the folder layout and configuration file used to build Claude Code plugins, including commands, agents, skills, hooks, and helper scripts.

In plain words
What is it for?
Use it to scaffold a plugin, set up plugin.json, organize its components, and configure discovery.
Why use it?
It removes uncertainty about where plugin parts belong and how Claude Code finds them. It also explains how to use portable paths and choose automatic or explicit loading.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions .claude-plugin; mentions subagents; mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/name/plugins/....

Part of the claude-scholar plugin — 45 skills, 34 commands, 6 agents, 5 hooks shipped together

Good fit Use it to scaffold a plugin, set up plugin.json, organize its components, and configure discovery.

Compare 6 skills from other repositories ↓
About the project

Claude Scholar is a semi-automated research assistant for academic research and software development, supporting literature review, coding, experiments, reporting, writing, and project knowledge management. Computer science and AI researchers use it across the research workflow with several coding-agent platforms; the catalogue contains its skills, commands, agents, hooks, plugin, and instruction.

Galaxy-Dawn/claude-scholar · 5,828 stars · on GitHub

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Galaxy-Dawn/claude-scholar
Claude Code
/plugin install claude-scholar

Made for: Claude Code.

Or install claude-scholar, the plugin that ships this one along with the rest of its 45 skills, 34 commands, 6 agents, 5 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 plugin-structure

README.md
[![agentmods](https://agentmods.dev/badge/skills/galaxy-dawn/claude-scholar/plugin-structure/github.svg)](https://agentmods.dev/skills/galaxy-dawn/claude-scholar/plugin-structure)
Your own site
<a href="https://agentmods.dev/skills/galaxy-dawn/claude-scholar/plugin-structure"><img src="https://agentmods.dev/badge/skills/galaxy-dawn/claude-scholar/plugin-structure/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 plugin-structure

Your own site · 80×15
<a href="https://agentmods.dev/skills/galaxy-dawn/claude-scholar/plugin-structure"><img src="https://agentmods.dev/badge/skills/galaxy-dawn/claude-scholar/plugin-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,218 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00093 $0.03218
Opus 5.5 $0.00037 $0.01287
Sonnet 5.5 $0.00019 $0.00644
Haiku 4.5 $0.00009 $0.00322

Measured 1mo ago against content hash a2dbc1e5502a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plugin-structure scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to plugin-structure — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/plugin-structure/SKILL.md · 477 lines

How it starts

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

Plugin Structure for Claude Code

Overview

Claude Code plugins follow a standardized directory structure with automatic component discovery. Understanding this structure enables creating well-organized, maintainable plugins that integrate seamlessly with Claude Code.

Key concepts:

  • Conventional directory layout for automatic discovery
  • Manifest-driven configuration in .claude-plugin/plugin.json
  • Component-based organization (commands, agents, skills, hooks)
  • Portable path references using ${CLAUDE_PLUGIN_ROOT}
  • Explicit vs. auto-discovered component loading

Directory Structure

Every Claude Code plugin follows this organizational pattern:

plugin-name/
├── .claude-plugin/
│   └── plugin.json          # Required: Plugin manifest
├── commands/                 # Slash commands (.md files)
├── agents/                   # Subagent definitions (.md files)
├── skills/                   # Agent skills (subdirectories)
│   └── skill-name/
│       └── SKILL.md         # Required for each skill
├── hooks/
│   └── hooks.json           # Event handler configuration
├── .mcp.json                # MCP server definitions
└── scripts/                 # Helper scripts and utilities

Critical rules:

  1. Manifest location: The plugin.json manifest MUST be in .claude-plugin/ directory
  2. Component locations: All component directories (commands, agents, skills, hooks) MUST be at plugin root level, NOT nested inside .claude-plugin/
  3. Optional components: Only create directories for components the plugin actually uses
  4. Naming convention: Use kebab-case for all directory and file names

Plugin Manifest (plugin.json)

The manifest defines plugin metadata and configuration. Located at .claude-plugin/plugin.json:

Required Fields

{
  "name": "plugin-name"
}

Name requirements:

  • Use kebab-case format (lowercase with hyphens)
  • Must be unique across installed plugins
  • No spaces or special characters
  • Example: code-review-assistant, test-runner, api-docs

Read the full file on GitHub · 477 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 477 lines · 93 tokens per session scan A a2dbc1e5502a

Subscribe to this mod's changes

plugin-structure is a skill published in the GitHub repository Galaxy-Dawn/claude-scholar (5,828 stars, last pushed 26d ago), licensed MIT. It adds 93 tokens to every session and 3,218 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to plugin-structure, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

kami-deck

A lab-meeting deck on gut-microbiome links to sleep quality — the design, the results, the caveats, and the next experiment. Built as a decision-grade academic research deck for lab group, PI.

nexu-io/open-design · 49 tokens

acl-submission

Use when auditing an ACL submission before an ACL Rolling Review cycle deadline, covering long/short paper page budgets, the mandatory Limitations section, Responsible NLP checklist, anonymized PDFs and supplements, preprint declarations, dual-submission rules, resubmission linking, and ARR desk-reject triggers on…

brycewang-stanford/Awesome-Journal-Skills · 66 tokens

acl-topic-selection

Use when deciding whether a project fits ACL versus EMNLP, NAACL, EACL, TACL, Computational Linguistics, COLM, or an ML venue, covering contribution typing for NLP work, long-versus-short paper choice, the annual theme track, Findings-tier expectations, and sharpening the computational-linguistics framing before…

brycewang-stanford/Awesome-Journal-Skills · 73 tokens

aeja-workflow

Use when deciding which aeja- sub-skill to invoke next, or when sequencing manuscript work from topic selection through rebuttal for an American Economic Journal: Applied Economics (AEJ: Applied) submission. Routes — it does not replace — the specialized skills.

brycewang-stanford/Awesome-Journal-Skills · 0 tokens

aejmac-robustness

Use when the headline result of an American Economic Journal: Macroeconomics (AEJ: Macro) manuscript must be shown stable across specification, sample, identification, and tuning choices. Builds the robustness program a macro referee will demand; it does not establish the primary identification or model (use…

brycewang-stanford/Awesome-Journal-Skills · 0 tokens

aejmac-workflow

Use when deciding which aejmac- sub-skill to invoke next, or when sequencing manuscript work from topic selection through rebuttal for an American Economic Journal: Macroeconomics (AEJ: Macro) submission. Routes — it does not replace — the specialized skills.

brycewang-stanford/Awesome-Journal-Skills · 0 tokens