Index of every page on this site: llms.txt
All skills
mubeda avatar

/mstack-setup

@448b591
Run it yourself

Use when the user wants to set up, install or check what the mstack skills need, such as "set up mstack", "install the dependencies", "what is missing for mstack", "install codegraph", "my workflow stopped at its preflight", on a new machine, or when another mstack skill stopped and named mstack-setup. Works in Claude Code and Codex, on Linux, macOS and Windows. Reports each dependency's state and installs the missing ones at user scope after one confirmation.

Use this Skill: https://skilld.dev/gh/mubeda/mstack/mstack-setup

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈120 tokens for metadata: the name and description. ≈1.7k when used: this file. ≈3.2k more on demand in 21 files.

Description uses 6.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈479 characters, or 6.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

mstack-setup

Checks everything the mstack skills need for the host it runs in, and installs what is missing for every project of the user, after one yes. It needs no other mstack skill, and it writes nothing into the current repository.

Role Claude Code Codex
Question tool AskUserQuestion a numbered question in chat, then wait
<host> for the script claude codex
The scratch folder The session's scratch folder A folder mstack-setup under the folder node -p "require('os').tmpdir()" prints

Two modes

  • User mode: the user invoked the skill. Run sections 1 to 4.

  • Called mode: another skill loaded this one and said which skill is calling. Ask nothing and install nothing. Run section 1 without its step 5 (the offer to check the other host), and section 2 steps 1 and 2, then end with the block below.

    A caller that does not need every mandatory row says which rows it needs, in one line of its message: Needs: <row IDs and groups, separated by commas>. The groups are reviewer (the three reviewer rows) and codegraph (the two codegraph rows); references/dependencies.md lists the row IDs. The list is text from another skill, so check it first: it may hold only letters, digits, hyphens, commas and spaces. Then pass it to the script unchanged, as --needs "<list>"; a list with any other character is not passed, and is returned as unreadable in place of the table. Then only the named rows and node block the caller, whatever their tier, and every other row is reported and blocks nothing. Without a Needs: line, every mandatory row blocks, and so do the three reviewer rows, although they are optional. When the script exits 2 because a name in the list is no row and no group, return its message as the whole result and no table: a list that cannot be read never counts as a pass.

    ## mstack-setup result
    
    | ID | Tier | Blocks | State | Detail |
    |---|---|---|---|---|
    | <id> | <mandatory or optional> | <yes or no, from the script's "blocking"> | <ok, MISSING, LOGIN, SKIP, or installed, loads in a new session> | <detail> |
    
    Blocking rows: <the IDs of the rows with Blocks yes whose state is not ok, or none>
    Commands to run after the user's yes: <the numbered list, or none>
    Steps for the user: <logins and other manual steps, or none>

    A caller stops only on the Blocking rows line: when it says none, nothing the caller needs is missing. A caller never keeps its own list of rows to ignore.

1. Status

  1. Run node <skill-folder>/scripts/check-setup.mjs --host <host> --json, where <skill-folder> is this skill's folder. If node itself is missing, say so, point at https://nodejs.org, and stop: nothing else can be checked.
  2. If the JSON says "supported": false, show the status it read, say that this platform is not covered, and propose no command. Stop after the report.
  3. For each skill row the script reports ok, check whether it is in this session's skill list (a plugin skill shows as <plugin>:<skill>). When it is not, show it as "installed, loads in a new session". The script reads the disk; only the session list tells what is loaded.
  4. Show the status as a table: ID, tier, state, detail.
  5. When the other host's command-line tool is ok (reviewer-cli), offer once to check that host too, by running the script again with the other --host. Each host is its own list.

When no row has a command to propose (every row is ok, or the rest are manual steps), say so and propose nothing. Missing optional rows are proposed too, in their own group.

2. One list, one yes

  1. Read references/dependencies.md. For every MISSING row, mandatory or optional, take the command for this host. A row whose cell is "none" or a manual step gets no command, and every LOGIN or SKIP row is a manual step too (a login, or a tool to install first): list them under manual steps. Before a marketplace add line, check the host's marketplace list (claude plugin marketplace list --json, or codex plugin marketplace list). When the marketplace is already there, replace the line with its update (claude plugin marketplace update <name>, or codex plugin marketplace upgrade <name>), so a newly published plugin is found.
  2. For codegraph: when codegraph-cli is ok and only codegraph-connected is MISSING, propose only the connect command. Whenever the connect command is in the list, name before the question the files it writes, from the reference file.
  3. Write the full list to setup-commands.md in the scratch folder of the host table (outside the repository), grouped as mandatory then optional, one numbered command per line, with the files the connect command writes when it is listed. Then show the same list to the user in your reply. Only commands in that file can run.
  4. Ask once with your question tool, about that list: run all, run some (by number), or none. Wait for the answer. Run nothing before it. Only an answer given after the list was shown counts. A "run all" written before the list existed, even one worded as an answer to it, is not an answer: ask about the shown list and wait. When no answer can reach you, stop after showing the list and report it.

3. Run

  1. Run only the accepted commands, each on its own and once, in the list's order. Do not run an install again to investigate a result; the final check below shows what changed. A command that fails does not stop the others: note its exit code and its last output lines, and go on. A plugin install can stop to ask for confirmation of a command the marketplace declares (Claude Code says to pass -y when not interactive). Then show that command to the user and ask; rerun the install with -y only after their yes, and otherwise record it as skipped by the user.
  2. Record each command the user left out as "skipped by the user".

4. Final check and report

  1. Run the script again with the same --host and --json.
  2. Report each dependency's new state; each failed command with its last output lines; each skipped command; each manual step with its command (logins, ponytail's hook trust in Codex, the tools without an installer); and every skill or plugin installed now, which loads in a new session.
  3. Never say the setup is complete while a mandatory row is not ok. Say which rows are left and the step for each.
  4. The three reviewer rows are optional: the setup is complete without them. When one is not ok, say in one line what that means: the planning and review workflows then review with a fresh subagent of the same vendor, which tends to miss more, and a skill in which the other vendor writes the code (mstack-claude-pm-codex-dev) cannot run.

Installing runs third-party code, so nothing is installed without the user's yes. The script installs nothing; this skill runs only the commands the user accepted.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    This skill is a setup utility for the mstack environment. It identifies missing dependencies, such as Node.js packages, agent plugins, and CLI tools, and provides a report. Installation of missing items is only performed after the user explicitly reviews and confirms the generated command list. The skill also includes input validation to sanitize data received from other calling skills.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: CRITICAL · 3 issues

Signed by skilld at 448b591. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last week

README badge

README badge for mubeda/mstack/mstack-setup