super-work
Skill0 starsChanged 2 months agoMITView on GitHub
Open a Superset workspace for a work item. Discovers context from the current session, branch, or a given Linear ID — creates the workspace on the right repo/branch. Run this when you're ready to start coding in Superset.
- Reads credentials
- Installs packages
In this repository17 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skills/create-repo/CLAUDE.mdCLAUDE.md
- author-e2eSkill
- author-messageSkill
- code-reviewSkill
- create-repoSkill
- deploy-awsSkill
- do-fixesSkill
- do-workSkill
- make-skillSkill
- plan-reviewSkill
- plan-workSkill
- setup-agent-skillsSkill
- solve-take-homeSkill
- start-workSkill
- sync-guidanceSkill
- wtfSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
If Work folder shows needs-setup, stop: "Run /setup-agent-skills first to configure your work folder, then come back."
- Very specific: line 25
If Superset CLI shows not-installed, stop: "The Superset CLI isn't installed.
- Very specific: line 34
If Superset CLI shows needs-login, stop: "Superset CLI is installed but not authenticated.
- Very specific: line 49
If a plan exists at <work-folder>/plan.md, read the branch from its frontmatter for the slug.
- Very specific: line 51
If argument is already a slug (no [A-Z]+-\d+ pattern), use it directly.
- Very specific: line 59
Read ~/.claude/skills/shared/references/linear-mark-in-progress.md and follow it precisely.
- Very specific: line 65
If a plan exists, scan its phases for Repo: annotations:
- Very specific: line 71
If no plan exists, use the current Repo remote from pre-loaded context (or the repo associated with the resolved ticket).
- Very specific: line 79
All Superset calls run through the superset CLI.
- Very specific: line 83
Read host_id from ~/.claude/agent-skills.json.
- Very specific: line 108
Read projects map from ~/.claude/agent-skills.json — keyed by repo remote (e.g.
- Very specific: line 110
If <target-repo> is not in the map:
- Distinctive: line 144
Stop here — the user opens the existing workspace from the Superset desktop app.
- Distinctive: line 152
Ask the user which branch to base the workspace on:
- Distinctive: line 179
If the plan has multiple repos with remaining work:
- Very specific: line 187
If any superset call exits non-zero, surface the error message and the suggested fix:
- Distinctive: line 199
Host and project IDs are cached: Look them up once, save them, skip the lookup next time.
- Distinctive: line 201
Don't auto-start agents: Create the workspace and hand off.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Super Work: Launch a Superset Workspace
You are creating a Superset workspace for a work item. Your job is to figure out what to work on, set up the workspace on the right repo and branch, and hand off to the user to open it in the Superset desktop app.
Arguments: $ARGUMENTS
Pre-loaded context:
- Ticket ID (from branch): !
~/.claude/skills/shared/scripts/context.sh ticket-id - Work folder (from branch): !
~/.claude/skills/shared/scripts/context.sh work-folder - User branch prefix: !
~/.claude/skills/shared/scripts/context.sh user-slug - Repo remote: !
~/.claude/skills/shared/scripts/context.sh repo-remote - Superset CLI: !
command -v superset >/dev/null 2>&1 && (superset hosts list --quiet >/dev/null 2>&1 && echo "ready" || echo "needs-login") || echo "not-installed"
Setup checks (in order):
- If
Work foldershowsneeds-setup, stop: "Run/setup-agent-skillsfirst to configure your work folder, then come back." If
Superset CLIshowsnot-installed, stop: "The Superset CLI isn't installed. Install it with:brew tap superset-sh/tap brew install superset-sh/tap/supersetThen re-run
/super-work."- If
Superset CLIshowsneeds-login, stop: "Superset CLI is installed but not authenticated. Runsuperset auth login(or setSUPERSET_API_KEY), then re-run/super-work."
Phase 0: Resolve the Work Item
Determine which plan to open a workspace for, in priority order:
- Session context — if
/plan-workwas just run in this conversation, the ticket and slug are already known. Use them. - Argument — if
$ARGUMENTSmatches[A-Z]+-\d+(Linear ID) or looks like a slug, use it. For a Linear ID, look for a matching work folder under the configuredwork_root. - Branch context — use pre-loaded
Ticket IDandWork folderif not "none". - Ask — "What are you working on? Give me a Linear ID or slug."
Once resolved, derive the slug:
- If a plan exists at
<work-folder>/plan.md, read thebranchfrom its frontmatter for the slug. - Otherwise derive the slug from the ticket: fetch the Linear issue title with
mcp__claude_ai_Linear__get_issueand apply the same slug rule as/plan-work— concise 2–4 keyword fragment that reads like a tag (drop articles, prepositions, filler verbs); pattern is<lowercase-team>-<number>-<fragment>; 70-char hard cap on the full slug. The ticket prefix is never shortened. - If argument is already a slug (no
[A-Z]+-\d+pattern), use it directly.
Phase 1: Mark the Linear Ticket "In Progress"
Skip this phase entirely if no Linear ticket is involved (slug-only / plan-only path). Otherwise, transition the ticket so teammates can see you've picked it up.
Read ~/.claude/skills/shared/references/linear-mark-in-progress.md and follow it precisely. It covers state-check, per-team status resolution + caching to linear_team_statuses.<TEAM>.in-progress in ~/.claude/agent-skills.json, and the API transition. On any Linear API failure, report and continue — don't block workspace creation.
Phase 2: Identify Target Repo
If a plan exists, scan its phases for **Repo:** annotations:
- No annotations → single-repo plan; use the current
Repo remotefrom pre-loaded context. - One unique repo → use it directly.
- Multiple repos → ask: "This plan has work across: [list]. Which repo do you want to open first?" Run
/super-workagain for the others.
If no plan exists, use the current Repo remote from pre-loaded context (or the repo associated with the resolved ticket).
The selected repo is <target-repo>.
Phase 3: Resolve Host and Project IDs
All Superset calls run through the superset CLI. The CLI emits JSON automatically when invoked from a Claude Code session, so no --json flag is needed — but adding it never hurts and makes intent explicit.
Host ID
Read host_id from ~/.claude/agent-skills.json. (Older configs may have device_id — ignore it and create a fresh host_id.)
If not present:
superset hosts list --json- One host → use it automatically
- Multiple → ask which to use (match on name)
Save host_id to ~/.claude/agent-skills.json:
python3 -c "
import json, os
path = os.path.expanduser('~/.claude/agent-skills.json')
d = json.load(open(path))
d['host_id'] = '<host-id>'
json.dump(d, open(path, 'w'), indent=2)
"Project ID
Read projects map from ~/.claude/agent-skills.json — keyed by repo remote (e.g. loancrate/web).
If <target-repo> is not in the map:
superset projects list --jsonMatch by name or path against <target-repo> (parse JSON with jq). If ambiguous, ask the user to pick.
Save to config:
python3 -c "
import json, os
path = os.path.expanduser('~/.claude/agent-skills.json')
d = json.load(open(path))
d.setdefault('projects', {})['<target-repo>'] = '<project-id>'
json.dump(d, open(path, 'w'), indent=2)
"Phase 4: Check for Existing Workspace
superset workspaces list --host "<host-id>" --jsonParse the JSON and look for a workspace whose name matches the slug (or contains the ticket token).
If one exists:
"A workspace
<name>already exists for this ticket. Open it in Superset instead of creating a new one."
Stop here — the user opens the existing workspace from the Superset desktop app.
Otherwise, continue to Phase 5.
Phase 5: Confirm Base Branch
Ask the user which branch to base the workspace on:
"Branch
<user-prefix>/<slug>will be created frommain. OK, or branch from somewhere else?"
- main / OK → use
main - Other → ask for the branch name to use as base
The confirmed base is <base-branch>.
Phase 6: Create Workspace
superset workspaces create \
--host "<host-id>" \
--project "<project-id>" \
--name "<slug>" \
--branch "<user-prefix>/<slug>" \
--base-branch "<base-branch>" \
--jsonCapture the returned workspace ID from the JSON output. If creation fails (non-zero exit), report the error verbatim and stop.
Confirm: "Workspace <slug> created — open it in the Superset desktop app to start working."
If the plan has multiple repos with remaining work:
"When you're ready for the next repo (
<next-repo>), run/super-workagain."
Fallback: CLI errors
If any superset call exits non-zero, surface the error message and the suggested fix:
Not logged in→ "Runsuperset auth login(or setSUPERSET_API_KEY) and re-run/super-work."- Connection / network errors → "Couldn't reach Superset. Check
superset statusand your network, then re-run/super-work." - Anything else → report the full error and stop. Don't retry or guess.
Guidelines
- A plan is helpful but not required. A Linear ticket ID alone is enough — slug is derived from the issue title.
- One workspace per repo. For multi-repo work, open them sequentially — run
/super-workagain for each additional repo. - Host and project IDs are cached. Look them up once, save them, skip the lookup next time.
- The work folder lives outside the repo — it's accessible from any worktree. No copying needed.
- Don't auto-start agents. Create the workspace and hand off. The user opens it in the Superset desktop app and drives from there.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

