Install
$ agentstack add skill-mehrad-dm-mastermind-mastermind-levelup ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
MasterMind — Level Up
MasterMind improves by editing its own knowledge base (its weights are fixed). This skill is the disciplined loop that does it. Read ~/.mastermind/engineering/active-field.md first to know the active field and its pack path (engineering/fields//).
Pick the mode from the argument; default to capture.
capture (default) — harvest lessons from this session/recent work
- Scan the recent work for durable, generalizable lessons: user corrections ("no, do X"), real
code-reviewer findings, bugs fixed, and choices that proved right. Ignore one-off/project-specific noise — only keep what will apply to future tasks.
- For each: append a one-line rule + bracketed "why" to
~/.mastermind/engineering/fields//lessons.md. Deduplicate
against existing lessons.
- If a lesson is a general default (not just a gotcha), promote it into
stack-defaults.mdat the
right section — that's where it will actually change behavior.
- Keep it tight. A lesson that isn't load-bearing is noise; don't hoard.
refresh — track the moving ecosystem
- Re-run the curriculum research for the active field (the same multi-angle, verify-each-repo sweep
that built curriculum.md): best repos/courses/people/docs, current, each GitHub repo checked against the API for existence + recent activity.
- Diff against the current
curriculum.md: add what's newly best-in-class, drop what's archived/dead,
flag anything that changed. Update learning-sources.md and mentors.md if authorities shifted.
- Note the refresh date in
curriculum.md's verification note. - Listen to the source of truth for agent engineering — Anthropic / Claude Code docs, the
engineering blog, and Claude Devs — for evolving best practices (prompting, model/effort, skills, context management). Fold the durable ones into ~/.mastermind/engineering/core/ or the skill-authoring discipline; verify against the primary source, and adopt the judgment, not the hype.
bootstrap — create a new field pack (one command → a pack like frontend)
The goal: the user names a field (or points at a project) and gets a strong, tailored pack — the same bar as fields/frontend/ — from one command.
- **Detect the user's actual stack — tailor to what they use, not a generic field.** Read the
project: package.json/lockfile, configs, framework + versions, DB, test runner, folder shape (per core/agent-loop.md). If there's no project or it's ambiguous, ask one question: "What stack — language, framework, database, key libraries?" The pack must reflect their real tools.
- Scaffold from the template.
cp -r engineering/fields/_template engineering/fields/, then
fill every file (the template carries the shape + inline guidance).
- Research + write it to the frontend bar. Do the verified sweep (best repos/courses/people/docs,
each checked) for curriculum.md/mentors.md/learning-sources.md, and write an opinionated stack-defaults.md for their stack — Default → when to deviate → what to avoid, only the non-obvious decisions (not what the model already knows), grounded in primary sources. Match the depth and density of fields/frontend/stack-defaults.md. Start lessons.md empty.
- Point the active field at it (
active-field.md) if the user wants it live, and **do NOT touch
engineering/core/*** — it's field-agnostic and shared.
Guardrail: keep MasterMind lean (token economy)
Every line is paid in context on every future session, so leveling up must net toward leaner, not heavier. On each change:
- Only load-bearing lines survive. For each line ask "would removing it change behavior?" — if
not, cut it. Prefer a sharper sentence over a longer one, a rule over an example, a pointer over a copy.
- Kernel stays tiny. New depth goes into on-demand modules/field packs, never the always-loaded
CLAUDE.md. Deduplicate — one idea, one home (SSOT); cross-link instead of repeating.
- Net-zero-or-lighter. When you add, hunt for something stale to remove; retire superseded
lessons/resources rather than stacking them. Signal density beats volume — a bloated brain gets ignored.
Authoring a new skill
The library grows freely — add a skill for any distinct, useful workflow. But hold the quality bar that keeps a large library lean and navigable (the lesson from the best skill kits):
- One job. The mega-skill (commits + PRs + changelog + …) is the top mistake. Split it.
- Description = a routing rule — specific enough that it activates at exactly the right moment, and
not otherwise. Unambiguous: if a human can't say which skill applies, neither can the agent.
- Only what pushes away from defaults. Don't restate what the model already does well; the
highest-signal part is a Gotchas section — the failure points it hits without the skill. (Anthropic.)
- Lean body, detail on demand — core instructions fit on a phone screen; push edge cases into
companion files that load only when needed.
- Don't duplicate an agent — review, architecture, refactor, adopt-decisions are agents (isolated
context). Skills are for inline workflows.
- Deterministic work → deterministic code (
~/.mastermind/engineering/core/agent-loop.md) — script it, don't narrate it. - Mark user-invoked (
disable-model-invocation: true) vs model-invoked, and add the skill to
skills/README.md so the index stays honest.
Always, after any mode
- Bump the level and log the change in
active-field.md(increment the level number; add a dated
one-line changelog entry describing what leveled up).
- Report to the user what was learned/changed in 2–3 lines. Improvement must be visible.
- If
~/.mastermind/engineering/is a git repo, the change is now diffable and reversible — mention it.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: mehrad-dm
- Source: mehrad-dm/mastermind
- License: MIT
- Homepage: https://mastermind.mehrad.me
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.