Skip to content
Back to skills

Mstack

ASecurity

Engineering base. Eight rules for coding work, and one module each for shaping new code, debugging a failure, handling a production outage, writing or changing tests, judging what a change could break, working through a migration or a sweep of many steps, measuring performance or an eval, checking work or answering a review before calling it done, getting a second review with fresh context, writing a verification skill for a project, cleaning up code, researching an API or a past decision, wr...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentstypescriptpythonrustgoswiftc++testingdebugginggitapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add MauroProto/mstack --skill mstack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mstack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mstack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mauroproto-mstack-mstack/badge)](https://www.skillsdirectory.com/skills/mauroproto-mstack-mstack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mstack
description: Engineering base. Eight rules for coding work, and one module each for shaping new code, debugging a failure, handling a production outage, writing or changing tests, judging what a change could break, working through a migration or a sweep of many steps, measuring performance or an eval, checking work or answering a review before calling it done, getting a second review with fresh context, writing a verification skill for a project, cleaning up code, researching an API or a past decision, writing docs or commit messages, auditing always-loaded context, TypeScript, and Swift. Use when the task is any of these, or when the user says mstack. Also holds guides for repairing git state, debugging native binaries, Rust, geospatial overlays, Playwright CLI, agent-desktop, Obsidian, Defuddle, Knap, and PDFx.
---

# mstack

Eight rules apply to all work. Each module is a separate file: read it when its trigger matches, and only then.

## Rules

1. A question or an audit gets an answer, not an edit. Edit only when asked to change something.
2. Make the smallest change. Before writing code, check whether it is needed, whether the repo already has it, whether the platform or standard library provides it, and whether an installed dependency provides it.
3. When two fixes built on the same premise have failed, test the premise before trying a third.
4. Fix the cause, not the symptom. A guard, retry, or default that hides the failure is not a fix.
5. Before stating how an API behaves or why a decision was made, read the installed version, its documentation, or the history.
6. After a change, run the real artifact before saying it is done, and say what you did not verify.
7. Inside the request and reversible: go ahead, and say what you assumed. Commit, push, open a PR, install, or start a subagent only when asked. Before you undo, clean, or delete, find out which changes were already there, and do not destroy state you did not create without permission. Keep secrets out of commands and output.
8. The second time the same correction comes up, propose a type, lint rule, or test that prevents it, and delete the duplicated instruction.

## Modules

Paths are relative to this file.

| Trigger | Read |
|---|---|
| Writing new logic with state, branches, or outside data; designing a type or a signature; replacing an internal API | `modules/code-shape.md` |
| Something is broken, failing, flaky, or slow and the cause is unknown | `modules/debugging.md` |
| Production is down, wrong, or degraded right now | `modules/outage.md` |
| Writing or changing a test, or fixing a bug that has a cheap test path | `modules/testing.md` |
| "What could this break", a diff you do not trust, a changed contract, a schema migration, or a dependency upgrade | `modules/change-impact.md` |
| A sweep, a migration, a rewrite in phases, or the same edit across many files | `modules/long-work.md` |
| Producing or reporting a performance number or an eval score | `modules/measuring.md` |
| About to report work as finished, reviewing a diff, or answering review comments | `modules/closing.md` |
| The user asks for a second agent or another model to review the change, or a high-risk change is about to be reported as done | `modules/second-review.md` |
| Asked for a way to let the agent start the app and check its own work, or the same manual check keeps falling to the user | `modules/verify-skill.md` |
| Asked to clean up code or trim comments | `modules/code-cleanup.md` |
| Asked to research or look something up, or to explain why code is the way it is | `modules/research.md` |
| Writing docs, a README, a PR description, or a commit message | `modules/prose.md` |
| Asked to audit what the agent loads in every session, or to write `AGENTS.md`, `CLAUDE.md`, or a rules file | `modules/context-audit.md` |
| Editing a `.ts` or `.tsx` file | `modules/typescript.md` |
| Writing, reviewing, or migrating Swift | `modules/swift.md` |

Two more modules are external skills. mstack does not copy them. If the skill is installed, use it; if not, name it and go on without it.

| Trigger | External skill |
|---|---|
| Property-based tests | `property-based-testing`, from `trailofbits/skills` |
| Setting up or migrating a Python project | `modern-python`, from `trailofbits/skills` |

When the repo already has a convention that works, the repo's convention wins over a module's default.

## Guides for one technology

Each folder under `guides/` is a skill that someone else wrote for one technology, copied at the commit named in `guides/THIRD_PARTY.md`. Read a guide only when its signal matches the repo or the request. "On request" means: open it when the user asks for that tool, not because the repo matches.

- A guide is a copy with a date. Before you rely on a claim about a version, check the version the repo has installed.
- A guide shows the commands of its tool: installs, `@latest` runners, deploys, pushes. They are reference. Install, deploy, commit, push, or start a subagent only when the user asked.

| Signal | Read | Care |
|---|---|---|
| A merge or rebase conflict, a bisect, a history rewrite, stacked branches, a lost commit, a committed secret | `guides/git-workflow/GUIDE.md` | A force push or a rewrite of a branch others use only with the user's go-ahead. |
| A crash, a hang, or a memory fault in a native binary: C, C++, unsafe Rust, Swift | `guides/native-debugging/GUIDE.md` | |
| `Cargo.toml` in the repo; ownership, lifetimes, async, or `unsafe` in Rust | `guides/rust/GUIDE.md` | |
| Intersecting or measuring polygon layers in GeoJSON | `guides/geospatial-analysis/GUIDE.md` | Its script needs shapely and pyproj. Ask before installing them. |
| Driving a browser from the terminal | `guides/playwright-cli/GUIDE.md` | Global install only with permission. Do not attach screenshots to a PR unless asked. |
| An Obsidian vault: notes, properties, wikilinks | `guides/obsidian-markdown/GUIDE.md` | |
| `.base` files | `guides/obsidian-bases/GUIDE.md` | |
| `.canvas` files | `guides/json-canvas/GUIDE.md` | |
| Operating Obsidian from the terminal | `guides/obsidian-cli/GUIDE.md` | |
| Obsidian Sync or Publish from the terminal, on request | `guides/obsidian-headless/GUIDE.md` | Needs a subscription. Do not sync one vault with both the app and `ob`. |
| Notes from templates and data with Knap, on request | `guides/knap/GUIDE.md` | |
| Turning a web page into clean Markdown with Defuddle | `guides/defuddle/GUIDE.md` | |
| Checking a native macOS app through the accessibility tree, on request | `guides/agent-desktop/GUIDE.md`, `guides/agent-desktop-macos/GUIDE.md` | Needs the `agent-desktop` CLI. It keeps local session traces by default. |
| A repo that already uses PDFx | `guides/pdfx/GUIDE.md` | Every render sends the data to pdfx.fr and needs `PDFX_API_KEY`. |

Files in this skill

  • RULES.md2.9 KB
  • SKILL.md5.9 KB
  • THIRD_PARTY.md12.1 KB
  • guides/THIRD_PARTY.md3 KB
  • guides/agent-desktop-macos/GUIDE.md8.4 KB
  • guides/agent-desktop/GUIDE.md15.7 KB
  • guides/defuddle/GUIDE.md1.1 KB
  • guides/json-canvas/GUIDE.md8.5 KB
  • guides/json-canvas/references/EXAMPLES.md6.3 KB
  • guides/knap/GUIDE.md4 KB
  • guides/licenses/Apache-2.0-microsoft-playwright-cli.txt11.1 KB
  • guides/licenses/Apache-2.0-vercel-labs-agent-desktop.txt11.1 KB
  • guides/licenses/MIT-obsidianmd-obsidian-skills.txt1.1 KB
  • guides/licenses/MIT-solisoft-pdfx-skills.txt1 KB
  • guides/obsidian-bases/GUIDE.md16.7 KB
  • guides/obsidian-bases/references/FUNCTIONS_REFERENCE.md7.4 KB
  • guides/obsidian-cli/GUIDE.md6.3 KB
  • guides/obsidian-headless/GUIDE.md4.5 KB
  • guides/obsidian-markdown/GUIDE.md6 KB
  • guides/obsidian-markdown/references/CALLOUTS.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.