Skip to content
Back to skills

Shared

ASecurity

If a command exits 2 saying "this repo isn't initialized", ask the user with the host's question mechanism (e.g. `AskUserQuestion` in Claude Code) whether to run `claustrum init`. If yes: 1. Run `claustrum init questions --json` (CLI only — there is no MCP tool for it) — one question per built-in model alias the user config does not yet define. 2. Ask each question with the host's native question mechanism. Write the answers to a JSON file keyed by each alias. 3. Run `claustrum init --answ

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 26, 2026
ai-agentsshellgitbackend

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

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

Scanned November 11, 2026

npx -y skills add orlodax/Claustrum --skill _shared --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shared?

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

Security grade badge for Shared
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/orlodax-shared/badge)](https://www.skillsdirectory.com/skills/orlodax-shared)

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
# Claustrum

## First time in this repo (or asked to set up/change a cast)
If a command exits 2 saying "this repo isn't initialized", ask the user with the host's
question mechanism (e.g. `AskUserQuestion` in Claude Code) whether to run `claustrum init`.
If yes:
1. Run `claustrum init questions --json` (CLI only — there is no MCP tool for it) — one question per built-in
   model alias the user config does not yet define.
2. Ask each question with the host's native question mechanism. Write the answers to a
   JSON file keyed by each alias.
3. Run `claustrum init --answers <file>` (or the same programmatically) to write the
   aliases to the user config (`~/.config/claustrum/config.json`).

Then (or if already initialized), run `claustrum cast questions --json` (or the MCP
`cast_questions` tool) and ask the user each question with your host's native question
mechanism. Write the answers to a file keyed by each question's `key`, then
`claustrum cast create --answers <file>` (or the MCP `cast_create` tool). The identical
questions are asked in every harness this library supports; only the picker fidelity
differs.

The cast is per-developer (stored in `.claustrum/casts/`, git-ignored) and the model
aliases live in the user config.

## Delegating
Write the brief to a file first — fixed H2 sections `## Task`, `## Scope`,
`## Must still work`, `## Diff`, `## Access` (ui-reviewer and demo-author: how to start and
reach the running app — command, URL, viewports, credentials), `## Context` (non-blind roles
only); see this repo's `docs/PLAN.md` §B3 for the exact convention — then invoke:

```
claustrum run <role> --brief-file <path> --json [--cast <name>]
```

Parse the single JSON document Claustrum prints to stdout for `status`, `changed_files`,
`diff`, and `report`. When the `claustrum` MCP server is connected, use the `delegate`
tool instead of the shell command: `{role, brief, cwd?, backend?, model?, effort?, tier?,
permission?, cast?, ...}`, still with the brief written to a file first if you already
have one. With no `--cast`/`cast` given, a repo's `.claustrum/casts/default.json` applies
itself automatically if present.

A result whose `status` is `success_with_issues`, or whose `environment_issues` is not empty,
is not a clean result: the job's environment refused it something (a path outside its
directory, a missing tool, a failed login, plan mode, a red test gate, a blocker its report
names), and stderr says so in one `warning: environment issues` line. Stop, tell the user what
the job could not reach (each issue's `kind`, `what` and `where`), and do not use its verdict
as if it were clean.

A role can stop to ask the user something. When `job_status` (after `delegate_async`) shows
`state: waiting_for_input`, its `question` is what the role asked: put it to the user with the
host's question mechanism and send the answer with `job_say {job_id, text}`. The blocking
`delegate` cannot be answered: the role is told no human is available, decides what it can, and stops with
`needs_input` and its questions for what is yours; a job that ended `needs_input` is answered with `job_answer`.

## Coordinating (a spawned architect)
If the cast's `architect.mode` is `spawned`, or the user asks Claustrum to coordinate issues
end-to-end, run `claustrum coordinate --cast <name> --issues <n,m> --json` (or `--brief-file
<path>`), or the MCP `coordinate` tool, which returns `{job_id, log_path}` at once; poll the
`job_status` tool and fetch the `job_result` tool when it reports `done`. When you run `coordinate` through the
MCP tool, its architect may escalate a question to you: `job_status` then shows `waiting_for_input` with the
question. Ask the user with the host's question mechanism, then send the answer with `job_say {job_id, text}`. The architect runs
headlessly on the cast's model, delegates builders → blind reviewer → tester (→ demo-author,
for a browser-facing feature) itself, and leaves its work on branch `claustrum/<job_id>`;
`claustrum jobs budget <job_id>` shows what the tree spent. `coordinate` no longer needs the
cast committed — an untracked or git-ignored cast works, provided the `.gitignore` rule for
`.claustrum/casts/` (`claustrum init` writes it) is committed. If `architect.mode` is `host`, you
are the architect: adopt the synced `architect` role and delegate with `--cast` yourself.

Files in this skill

  • claustrum-skill.md3.8 KB
  • house-rules.md451 B
  • report/architect.md1.7 KB
  • report/builder.md1.2 KB
  • report/code-reviewer.md771 B
  • report/demo-author.md2.9 KB
  • report/tester.md1.3 KB
  • tier-stub.md293 B

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.