mastermind-component-research

mastermind-component-research is a skill for Claude Code, Codex from xcrft/mastermind. It costs 73 tokens per session (982 once invoked), scanned A, original, MIT.

A codegraph-based research step for React or Vue user-interface components. It checks whether a component already exists, who uses it, and what properties, or props, its callers expect.

In plain words
What is it for?
Use it before adding a component, changing its props, building a screen, or implementing a design handoff, so the change fits the existing component library.
Why use it?
It prevents creating a duplicate component or changing a shared component’s interface without seeing what depends on it. The search results provide evidence for those structural decisions.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/xcrft/mastermind/mastermind-component-research
Any agent
npx skills add xcrft/mastermind --skill mastermind-component-research
Clone the repo
git clone --depth 1 https://github.com/xcrft/mastermind

Made for: Claude Code, Codex.

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 mastermind-component-research

README.md
[![agentmods](https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-component-research.svg)](https://agentmods.dev/skills/xcrft/mastermind/mastermind-component-research)
Your own site
<a href="https://agentmods.dev/skills/xcrft/mastermind/mastermind-component-research"><img src="https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-component-research.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00073 $0.00982
Opus 5 $0.00036 $0.00491
Sonnet 5 $0.00015 $0.00196
Haiku 4.5 $0.00007 $0.00098

Measured 4d ago against content hash 82c32b5baaaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mastermind-component-research 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 4d 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.

skills/workflow/mastermind-component-research/SKILL.md · 97 lines

How it starts

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

Mastermind component research

The default failure of an agent writing UI is not bad markup. It is writing a component that already exists, or changing a props contract without seeing who depends on it. Both are structural questions, and the codegraph answers them.

Answer these before writing. Evidence is a query result, not a recollection.

Does it already exist?

mmcg_search "Button"                    # exact name
mmcg_files --prefix src/components      # what the component directory holds
mmcg_centrality --prefix src/components # the components everything already leans on

Search the name you were about to invent, then the words around it. A Button may live as BaseButton, AppButton, or UiButton, and a design system rarely names things the way a ticket does. mmcg_centrality is the fastest read of a component library you do not know: the highest in-degree symbols are what the codebase actually builds on.

Report the search as evidence — the names tried and what came back. "I looked and found nothing" without the queries is not a finding, and reinvention is the most expensive mistake available here.

Who renders it?

mmcg_callers "Button"          # components that render it
mmcg_impact "Button" --depth 3 # transitive blast radius
mmcg_imported_by "Button"      # files importing it, including barrels

mmcg_callers answers "who renders this": JSX usage (<Button />) and Vue template usage (<base-button />) are call edges from the containing component. A component with callers is a shared contract — treat a change to it as a change to every caller, and say how many there are.

Zero callers means one of three things, and they are not the same: the component is new, it is dead, or it is reached in a way the graph cannot see. Check the invisible paths before concluding it is dead — route tables, lazy import(), story and test files, and Vue components auto-imported by build tooling never produce an edge.

What is the contract?

Read the full file on GitHub · 97 lines

Files

What ships with it

1 file 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. 4d ago First seen · 97 lines · 73 tokens per session scan A 82c32b5baaaf

Subscribe to this mod's changes

mastermind-component-research is a skill published in the GitHub repository xcrft/mastermind (11 stars, last pushed 3d ago), licensed MIT. It adds 73 tokens to every session and 982 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

roam

Codebase comprehension via roam-code CLI. Use when exploring codebases, planning modifications, debugging failures, assessing PR risk, or checking architecture health. Triggers on: understanding project structure, pre-change safety checks, finding symbols/files, blast radius analysis, affected tests, health scoring…

Cranot/roam-code · 86 tokens

frontend-design

做有辨识度、生产级、高设计质量的前端界面。当用户要构建网页组件、页面、海报或应用(网站、落地页、仪表盘、React 组件、HTML/CSS 布局,或美化任何 Web UI)时使用。产出有创意、精致、避免千篇一律 AI 风格的代码与界面。.

itmisx/deepx-code · 88 tokens

pi-tui-design

Create distinctive, crafted TUI components for pi using @earendil-works/pi-tui and @earendil-works/pi-coding-agent. Use when building interactive terminal UIs — custom components, overlays, dialogs, dashboards, widgets, data visualizations, animated elements, game-like interfaces, or any visual TUI work inside pi…

mrclrchtr/supi · 141 tokens

orchestrate

Tree-aware multi-agent GitHub-issue pool. Conductor manages task-tree from task-splitting-evaluation, executing depth-first per branch while parallelizing roots/orphans. Each worker agent owns its subtree lifecycle. Conductor tracks state (pending/started/in-progress/completed/halted) in GitHub +…

MercurieVV/ScalaSemantic · 101 tokens

bonsai-ninja

Use bonsai-ninja as compiler-backed structural evidence when mapping a codebase, finding symbols, tracing behavior, inspecting dataflow, debugging across files, reviewing change impact, exporting graph facts, or running SAST.

gromhacks/bonsai-ninja · 48 tokens

task-splitting-evaluation

Recursive pre-implementation GitHub task splitting and evaluation flow. Use when the user wants Claude agents to evaluate unhandled tasks, skip already-processed tasks, mark easy leaves with detailed executor-ready comments, split broad tasks into GitHub subtasks, and keep recursing until every leaf is well described…

MercurieVV/ScalaSemantic · 73 tokens