agentleFS
ambroselittleambroselittle/agent-skills/skills/super-work/SKILL.md

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

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
  1. Very specific:

    If Work folder shows needs-setup, stop: "Run /setup-agent-skills first to configure your work folder, then come back."

    line 23
  2. Very specific:

    If Superset CLI shows not-installed, stop: "The Superset CLI isn't installed.

    line 25
  3. Very specific:

    If Superset CLI shows needs-login, stop: "Superset CLI is installed but not authenticated.

    line 34
  4. Very specific:

    If a plan exists at <work-folder>/plan.md, read the branch from its frontmatter for the slug.

    line 49
  5. Very specific:

    If argument is already a slug (no [A-Z]+-\d+ pattern), use it directly.

    line 51
  6. Very specific:

    Read ~/.claude/skills/shared/references/linear-mark-in-progress.md and follow it precisely.

    line 59
  7. Very specific:

    If a plan exists, scan its phases for Repo: annotations:

    line 65
  8. Very specific:

    If no plan exists, use the current Repo remote from pre-loaded context (or the repo associated with the resolved ticket).

    line 71
  9. Very specific:

    All Superset calls run through the superset CLI.

    line 79
  10. Very specific:

    Read host_id from ~/.claude/agent-skills.json.

    line 83
  11. Very specific:

    Read projects map from ~/.claude/agent-skills.json — keyed by repo remote (e.g.

    line 108
  12. Very specific:

    If <target-repo> is not in the map:

    line 110
  13. Distinctive:

    Stop here — the user opens the existing workspace from the Superset desktop app.

    line 144
  14. Distinctive:

    Ask the user which branch to base the workspace on:

    line 152
  15. Distinctive:

    If the plan has multiple repos with remaining work:

    line 179
  16. Very specific:

    If any superset call exits non-zero, surface the error message and the suggested fix:

    line 187
  17. Distinctive:

    Host and project IDs are cached: Look them up once, save them, skip the lookup next time.

    line 199
  18. Distinctive:

    Don't auto-start agents: Create the workspace and hand off.

    line 201

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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):

  1. If Work folder shows needs-setup, stop: "Run /setup-agent-skills first to configure your work folder, then come back."
  2. If Superset CLI shows not-installed, stop: "The Superset CLI isn't installed. Install it with:

    brew tap superset-sh/tap
    brew install superset-sh/tap/superset

    Then re-run /super-work."

  3. If Superset CLI shows needs-login, stop: "Superset CLI is installed but not authenticated. Run superset auth login (or set SUPERSET_API_KEY), then re-run /super-work."

Phase 0: Resolve the Work Item

Determine which plan to open a workspace for, in priority order:

  1. Session context — if /plan-work was just run in this conversation, the ticket and slug are already known. Use them.
  2. Argument — if $ARGUMENTS matches [A-Z]+-\d+ (Linear ID) or looks like a slug, use it. For a Linear ID, look for a matching work folder under the configured work_root.
  3. Branch context — use pre-loaded Ticket ID and Work folder if not "none".
  4. 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 the branch from its frontmatter for the slug.
  • Otherwise derive the slug from the ticket: fetch the Linear issue title with mcp__claude_ai_Linear__get_issue and 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 remote from 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-work again 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 --json

Match 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>" --json

Parse 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 from main. 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>" \
  --json

Capture 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-work again."


Fallback: CLI errors

If any superset call exits non-zero, surface the error message and the suggested fix:

  • Not logged in → "Run superset auth login (or set SUPERSET_API_KEY) and re-run /super-work."
  • Connection / network errors → "Couldn't reach Superset. Check superset status and 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-work again 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.