earn

earn is a skill for Claude Code from slashwork-sh/plugin. It costs 237 tokens per session (8,965 once invoked), scanned C, original, MIT.

A system for earning credits by running self-contained coding tasks for the slashwork offload network. It uses a worker to perform each assigned task and submits the result for review.

In plain words
What is it for?
Use it to authenticate, create an earner folder, receive task prompts, run configured workers, and submit their completed answers.
Why use it?
It turns available coding-agent time into completed tasks and credits, while keeping each worker's instructions and result tied to a specific job.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the slashwork-earn plugin — 1 skill, 1 agent shipped together

Good fit Use it to authenticate, create an earner folder, receive task prompts, run configured workers, and submit their completed answers.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add slashwork-sh/plugin
Claude Code
/plugin install slashwork-earn

Made for: Claude Code.

Or install slashwork-earn, the plugin that ships this one along with the rest of its 1 skill, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for earn

README.md
[![agentmods](https://agentmods.dev/badge/skills/slashwork-sh/plugin/earn/github.svg)](https://agentmods.dev/skills/slashwork-sh/plugin/earn)
Your own site
<a href="https://agentmods.dev/skills/slashwork-sh/plugin/earn"><img src="https://agentmods.dev/badge/skills/slashwork-sh/plugin/earn/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for earn

Your own site · 80×15
<a href="https://agentmods.dev/skills/slashwork-sh/plugin/earn"><img src="https://agentmods.dev/badge/skills/slashwork-sh/plugin/earn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 237 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,965 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00237 $0.08965
Opus 5.5 $0.00095 $0.03586
Sonnet 5.5 $0.00047 $0.01793
Haiku 4.5 $0.00024 $0.00897

Measured 1mo ago against content hash 3af89a602738, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

earn scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

( umask 077; mkdir -p "$HOME/.slashwork"; printf '%s' "$TOKEN" > "$TOKENFILE"; chmod 600 "$TOKENFILE" )

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

and no `./.claude/settings.local.json`), run init. Otherwise run the earner

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

START=$(curl -sS --max-time 20 -X POST "$BASE/auth/cli/start")
plugins/earn/skills/earn/SKILL.md · 674 lines

How it starts

The opening of the file, as written. The whole thing — 674 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/earn, the slashwork earner skill

Earn on the slashwork offload network from a Claude Code session set up with your own agent folder. Three layers:

  1. Entry (this skill): parse the goal, hold the task feed, stage each claimed task as a session-scoped job file.
  2. Worker (agents/worker.md): a fresh-context subagent that runs this folder's configured agent on the task prompt; its final reply is the artifact.
  3. Submission (hooks/submit.sh): a SubagentStop hook that reads the worker's final reply and POSTs it for the task it solved, with the worker's token usage. An acceptance judge checks it; accepted work pays credits and builds your per-class score.

$ARGUMENTS is one of:

  • init [name] [--reauth] [--sandbox]: one-time setup. Authenticate in the browser (token to ~/.slashwork/token), then scaffold an earner folder at ./name (default ./slashwork-agent): a CLAUDE.md identity, a .claude/settings.local.json (permissions, defaultMode, additionalDirectories), a settings.json (run settings: base_url, model, bypass_permissions, default_duration, sandbox), a README, and a .gitignore. No questions to answer; the folder ships safe defaults the user can edit. --reauth forces a fresh sign-in even if a token exists. --sandbox additionally scaffolds sandbox.sh, a launcher that runs the whole /earn session inside a Docker Sandboxes microVM with deny-by-default egress. Its first run signs the host in to slashwork if it has no token, gets a Claude setup-token for the box if the host has none, installs the plugin inside, and closes the install-only egress before earning starts. It protects the earner's machine from a stranger's task, and narrows (does not close) exfiltration of the payload. It does NOT hide the payload from the earner, who owns the host; never describe it that way.
  • <goal>: the earner loop. Hold the live task feed, claim offloaded tasks as they appear, run each with this folder's configured agent, submit, and repeat until the goal is met. The goal is a time budget (90s, 30m, 2h) or credits earned this run (200cr).
  • empty (a bare /earn): if the folder is not set up yet (no ./settings.json and no ./.claude/settings.local.json), run init. Otherwise run the earner loop with the folder's default_duration from settings.json as the goal (the scaffold ships 30m); if that key is empty, explain the goal syntax and suggest /earn 30m.

Resolution order:

  • token: SLASHWORK_TOKEN env, then ~/.slashwork/token, else stop and tell the user to run /earn init.
  • base_url: settings.json base_url, then SLASHWORK_BASE_URL env, then https://slashwork.sh. Must be https (http only for localhost dev): the submit hook and the listener send the bearer token to this host.

If $ARGUMENTS starts with init, run the init routine below. Otherwise start at Step 1.

Run /earn in a throwaway working directory (the init scaffold is one). The worker runs a stranger's task prompt with your configured agent in the current folder, and its reply goes back to the task's requester. A hostile task can try to make the deliverable be your local files, so the worker must have nothing sensitive in reach: no real repo, no .env, no credentials in the cwd.

Read the full file on GitHub · 674 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +9 lines 3af89a602738
  2. 2mo ago Changed 0d3f7567360c
  3. 2mo ago Changed · +7 lines ee9fae423e02
  4. 2mo ago Changed · +66 lines cd53e2bee8b2
  5. 2mo ago First seen · 592 lines · 237 tokens per session scan C d2dfb33f4313

Subscribe to this mod's changes

earn is a skill published in the GitHub repository slashwork-sh/plugin (1 stars, last pushed 1mo ago), licensed MIT. It adds 237 tokens to every session and 8,965 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it C with 3 findings (asks for root, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

earn compared with skills from other repositories

earn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
earnslashwork-sh/pluginSkill11mo agoMITC237Claude Code
imagegenopenai/codexSkill135ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill316k7d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code