Back to Discover

claude-toolshed

skill

diegomarino

A plugin marketplace for Claude Code — pre-packaged skills for diagrams, code audits, dev servers, and markdown optimization.

View on GitHub
56 starsSynced Aug 2, 2026

Install to Claude Code

/plugin marketplace add diegomarino/claude-toolshed

README

claude-toolshed

A plugin marketplace for Claude Code — install pre-packaged skills directly into your Claude environment.

Trust warning: Plugins can execute arbitrary commands on your machine. Review a plugin's code before installing it.

Contents

Install

Add the marketplace, then install any plugin:

/plugin marketplace add diegomarino/claude-toolshed

/plugin install mermaid@claude-toolshed
/plugin install d2@claude-toolshed
/plugin install merge-checks@claude-toolshed
/plugin install dev-setup@claude-toolshed
/plugin install trim-md@claude-toolshed
/plugin install paperclip@claude-toolshed
/plugin install plugin-updater@claude-toolshed

Plugins

PluginDescription
mermaidGenerate, validate, render Mermaid diagrams from text or code (powered by beautiful-mermaid)
d2Generate, validate, render D2 diagrams from text or code — no Node.js required
merge-checksAudit code changes across 13 quality dimensions
dev-setupGenerate dev server lifecycle scripts with pool-based port isolation (20000-29999)
trim-mdTrim and optimize markdown files for LLM agent consumption
paperclipAudit Paperclip AI agent organizations — health, governance, tokens, workspace
plugin-updaterAuto-update third-party marketplace plugins on session start

mermaid

Generate, validate, render, and manage Mermaid diagrams from natural language or existing codebases. Powered by beautiful-mermaid for themed rendering.

Default Mermaid theme Dracula theme via beautiful-mermaid

Default Mermaid → beautiful-mermaid (Dracula theme)

CommandWhat it does
/mermaid-diagramDescribe what you want — auto-detects the right diagram type
/mermaid-architectPoint at a codebase — generates a suite of relevant diagrams
/mermaid-validateCheck Mermaid syntax in .md files or directories
/mermaid-renderRender .mmd files to SVG
/mermaid-configSet theme, output format, and check dependencies
/mermaid-diagram "user login with JWT and refresh token"
/mermaid-architect src/

Full documentation → — diagram types, code-to-diagram routing, configuration, troubleshooting

7 diagram types:

Sequence

Sequence diagram

Architecture

Architecture diagram

Entity-Relationship

ER diagram

Activity

Activity diagram

State

State diagram

Class

Class diagram

Deployment

Deployment diagram

15 themes from beautiful-mermaid — same diagram, different themes:

catppuccin-latte
catppuccin-latte
catppuccin-mocha
catppuccin-mocha
dracula
dracula
github-dark
github-dark
github-light
github-light
nord
nord
nord-light
nord-light
one-dark
one-dark
solarized-dark
solarized-dark
solarized-light
solarized-light
tokyo-night
tokyo-night
tokyo-night-light
tokyo-night-light
tokyo-night-storm
tokyo-night-storm
zinc-dark
zinc-dark
zinc-light
zinc-light

Requires: Node.js 18+ (rendering engine is bundled)

Credits (mermaid plugin):


d2

Generate, validate, render, and manage D2 diagrams from natural language descriptions or codebase analysis. Uses the d2 CLI binary directly — no Node.js or npm required.

CommandWhat it does
/d2-diagramDescribe what you want — auto-detects the right diagram type
/d2-convertConvert a Mermaid diagram to D2 format
/d2-architectPoint at a codebase — generates a suite of relevant D2 diagrams
/d2-validateCheck D2 syntax in .d2 files or directories
/d2-renderRender .d2 files to SVG or PNG
/d2-configSet theme, layout engine, output settings, and check dependencies
/d2-diagram "user login with JWT and refresh token"
/d2-architect src/
/d2-convert "sequenceDiagram\n  A->>B: hello"

4 diagram types:

Architecture / Flow

Architecture diagram

Sequence

Sequence diagram

Entity-Relationship

ER diagram

Class

Class diagram

Self-contained diagrams: every generated .d2 file embeds a vars { d2-config } block with theme and layout settings — renders correctly with just d2 file.d2 without extra flags.

11 themes:

neutral
neutral (0)
terrastruct
terrastruct (3)
cool-classics
cool-classics (4)
mixed-berry-blue
mixed-berry-blue (5)
colorblind-clear
colorblind-clear (8)
vanilla-nitro-cola
vanilla-nitro-cola (100)
orange-creamsicle
orange-creamsicle (101)
neutral-dark
neutral-dark (1)
dark-mauve
dark-mauve (200)
terminal
terminal (300)
terminal-grayscale
terminal-grayscale (301)

Full documentation → — diagram types, configuration, themes, layout engines, troubleshooting

Requires: d2 CLI — brew install d2 (macOS) or go install oss.terrastruct.com/d2@latest


merge-checks

Audit code changes before or after a merge across 13 quality dimensions. Outputs a prioritized task list grouped by file.

CommandWhat it does
/merge-checks feature/authPre-merge: diff current branch vs target
/merge-checks 3Post-merge: audit the last 3 merge commits
/merge-checksAuto-detect: last merge or diff vs main

Severity: 🔴 blocker (must fix before merge) · 🟡 should-fix · 🔵 nice-to-have

CheckWhat it does
DocumentationReads every project .md file (README, CLAUDE.md, ARCHITECTURE.md, etc.), maps its headings to areas, and checks if new files in the diff should be referenced there
Comment qualityReviews newly added files for empty catch blocks, exported functions >5 lines without doc comments, magic numbers, unexplained regexes, and workarounds without "why" comments
Story coverageMatches each .tsx/.vue/.svelte component against co-located .stories.* files; suggests story variants (empty state, typical, edge case)
Seed importsChecks if new seed/fixture files are imported in the seed orchestrator (seed.ts, conftest.py, DatabaseSeeder, etc.)
Test existenceSearches for co-located .test.*/.spec.* files; 🟡 for source >80 lines, 🔵 for smaller files
i18n stringsScans template files for multi-word natural-language strings (labels, placeholders, error messages) that should use t('key')
SuppressionsFinds @ts-ignore, eslint-disable, noqa in the diff and reads surrounding lines to verify a justification comment exists
Route registrationChecks if route handler files under routes/ are imported in the app bootstrap (app.ts, server.ts, router.ts)
Migration existenceDetects schema file changes (Drizzle, Prisma, TypeORM, SQLAlchemy) and verifies a migration file exists in the same commit range
Env coverageGreps the diff for process.env.* / os.environ.* references and checks each variable is declared in .env.example
Debug artifactsGreps the diff for debugger, console.log, FIXME, NOCOMMIT, PLACEHOLDER; 🔴 for blockers, 🟡 for warnings
Shared contractsDetects type/interface shapes duplicated across API and frontend packages; flags candidates that belong in a shared package
i18n consistencyCompares translation keys across locale JSON files; finds keys missing from non-reference locales and stale extra keys

Full documentation → — feature detection, 3-phase workflow, output format, save report

Requires: Git


dev-setup

Detect a project's structure and generate bash scripts for managing dev servers, Chrome profiles, and port isolation. Ports are allocated from a safe pool (20000-29999) to avoid collisions across projects and worktrees.

dev-setup flow: detect → configure → generate → integrate

CommandWhat it does
/dev-setupInteractive setup — detects services, proposes config, generates scripts
/dev-setup upgradePull improvements from reference scripts into an existing project
/dev-setup healthCheck that recommended and optional dependencies are installed
/dev-worktrees [branch]Create an isolated git worktree with deps, port allocation, and baseline tests
/dev-setup-config [key] [value]View or update dev-setup settings (worktrees dir, port pattern, env file)
Generated scripts — up to 11 bash scripts based on your project
ScriptPurpose
dev-allocate-ports.shAllocate consecutive free ports from pool (20000-29999)
dev-start.shLaunch all services (tmux, concurrently, or manual)
dev-stop.shKill server processes + tmux session
dev-restart.shStop + start
dev-status.shKEY=value status of all services, tmux, and Chrome
dev-read-ports.shPort reading utility (sourced by other scripts)
dev-session-name.shTmux session naming from branch
post-checkout.shInstall deps after clone/checkout
chrome-profile-setup.shCreate isolated Chrome dev profile (optional)
dev-open-browser.shOpen tabs for running services (optional)
dev-wt-ports.shAllocate ports via dev-allocate-ports.sh per worktree (optional)
Runner options — 4 ways to launch servers
RunnerHow it worksBest for
tmuxDetached 3-pane session per branchFull control, multiple worktrees
concurrentlyAll servers in one terminalSimple projects, no tmux needed
tmux + fallbackTmux when available, concurrently otherwiseTeams with mixed setups
manual onlyScripts generated, no auto-launcherCustom orchestration

Full documentation → — setup flow, script conventions, port naming, upgrade workflow

Recommended: lsof, shellcheck, gtr. Optional: tmux, shfmt, ttyd, Context7 MCP


trim-md

Trim and optimize markdown files for LLM agent consumption. Removes token waste (extra blank lines, trailing whitespace, hard tabs), normalizes structure (heading hierarchy, code block style), and reports what changed.

CommandWhat it does
/trim-md docs/Fix all markdown files in docs/
/trim-md file.md other.mdFix specific files
/trim-md dry-run .Preview what would change without modifying files
/trim-mdFix all markdown in current directory

Auto-formatting hook: once installed, automatically formats .md files on every Write/Edit — no manual invocation needed.

Dual-config strategy: detects existing markdownlint configs and switches to a safe 4-rule subset to avoid conflicts. Projects without a linter get the full 15-rule LLM-optimized config.

Opt-out: add <!-- trim-md:disable --> on its own line to exclude a file.

Full documentation → — all rules with LLM rationale, dual-config strategy, output format, testing

Requires: Node.js (markdownlint-cli2 auto-downloaded via npx)


paperclip

Audit Paperclip AI agent organizations. One command checks API health, agent config, task hygiene, governance compliance, token efficiency, workspace artifacts, and cross-cutting concerns.

CommandWhat it does
/audit-paperclipFull org audit — all sections, all agents
/audit-paperclip --agent CEOAudit a single agent
/audit-paperclip --section governanceRun one audit section only
/audit-paperclip --verboseInclude passing checks in output

~80 automated checks across 7 audit sections:

SectionChecksExamples
Agent Health19Stale sessions, PATCH overwrite detection, permission hangs, budget caps
Task Hygiene10Stale execution locks, blocked deadlocks, no-progress loops
Governance11Anti-invention rules, DoD delegation, dead endpoints
Token Efficiency7 + metricsAgentic panic, rate limit tier risk, adapter-aware cost estimates
Workspace22Secret leaks in logs, missing artifacts, CLAUDE.md config leakage
Cross-Cutting9Stale endpoints, self-wake loops, language consistency
Reasoning (Claude)2Done-without-verification, task description quality

Output: structured report with health score (0-100), severity-rated findings (E1/W1/I1), agent summary, token efficiency table, and prioritized recommendations.

Full documentation → — all checks, output format, architecture, troubleshooting

Requires: curl, jq, python3 (for token metrics). Optional: rtk (token savings), sqlite3 (DB schema checks)


plugin-updater

Auto-update third-party marketplace plugins on session start. Workaround for #26744 — plugins from non-official marketplaces don't auto-update. This plugin will become unnecessary once the bug is fixed.

CommandWhat it does
/plugin-updaterForce-update all third-party plugins now (bypasses cooldown)
/plugin-updater statusShow plugin health dashboard with version comparison

Installs a SessionStart hook that runs automatically. Updates marketplaces and plugins in parallel with a 1-hour cooldown to avoid hammering on rapid restarts.

Full documentation → — how it works, known limitations, status dashboard

Requires: claude CLI in $PATH

Rendered live from diegomarino/claude-toolshed's GitHub README — not stored, always reflects the source repo.

6 Plugins

NameDescriptionCategorySource
mermaidGenerate, validate, render Mermaid diagrams from text or code./plugins/mermaid
merge-checksAudit code changes across 13 quality dimensions./plugins/merge-checks
dev-setupGenerate dev server lifecycle scripts with pool-based port isolation./plugins/dev-setup
trim-mdTrim and optimize markdown files for LLM agent consumption./plugins/trim-md
plugin-updaterAuto-update third-party marketplace plugins on session start./plugins/plugin-updater
d2Generate, validate, render D2 diagrams from text or code./plugins/d2

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet — be the first to share an update.