env-hub
Skill27 starsChanged 8 months agoApache-2.0View on GitHub
Save a finished Claude Code or Codex session as a Harbor task (an agent benchmark task) and submit it to Env Hub, which turns it into an environment by writing its verifier and reference solution. Use when the user asks to "save this session as a Harbor task", "turn this into a Harbor task or environment", "submit this to Env Hub", "保存为 Harbor 任务", or to check how a submitted task is going or list their environments.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- webapp-testingSkill
- mcp-builderSkill
- mintlify-docs-updaterSkill
- reviewSkill
- shipSkill
- skill-creatorSkill
- specSkill
- internal-commsSkill
- ml-failure-auditSkill
- changelog-generatorSkill
- algorithmic-artSkill
- canvas-designSkill
- instagram-reel-editorSkill
- remotionSkill
- slack-gif-creatorSkill
- ab-test-setupSkill
- copywritingSkill
- humanizerSkill
- instagram-postingSkill
- marketing-ideasSkill
- seo-auditSkill
- claude-for-legalSkill
- contract-review-risk-scoringSkill
- doc-coauthoringSkill
- docxSkill
- legal-work-pluginSkill
- pdfSkill
- pptxSkill
- xlsxSkill
- pm-skillsSkill
- resume-tailoringSkill
- last30daysSkill
- brand-guidelinesSkill
- excalidrawSkill
- frontend-designSkill
- open-designSkill
- theme-factorySkill
- web-artifacts-builderSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
Never edit the saved task's files.
- Very specific: line 53
If save says the chosen messages hold what looks like a secret, stop and tell the user.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Env Hub
scripts/capture.py (in this skill's folder; Python 3.9+, standard library
only) does every step. Run it with the absolute path to this skill's folder.
Save
First read the user's messages in the session, numbered:
python3 <skill>/scripts/capture.py messages --from claude --json # or: --from codexIt reads the newest session that ran in the current folder (--session ID or
--transcript FILE for another; sessions --from claude lists them).
Choose the messages that state the task: the request, and later messages that
correct it or add to it. Leave out what is not the task: asking to save or
submit, thanks, questions about this skill, and a different task in the same
session (save that one on its own). taken_by_default marks what save takes
without a choice: every message before the request to save. Then:
python3 <skill>/scripts/capture.py save --from claude --session ID --messages 1,3 --json--messages takes numbers and ranges (1,3, 2-4). The instruction is the
chosen messages word for word: choose, never rewrite. The conversation kept
runs from the first chosen message through your replies to the last. A task
that starts at a later message starts from the last commit before it, so
earlier work in the session is there only if it was committed; say so when it
matters. The folder must be a git repository. Nothing leaves the machine and
the repository is not changed.
Beside the task folder it keeps the conversation (what the user and the agent said, without the tools' output, anything that looks like a secret redacted) and a bundle of both, the zip Env Hub takes.
Show the user the summary: the instruction, which of their messages were taken
and which left out and why (messages, messages_left_out), how many files
the workspace keeps, what was left out and why (files_omitted), every file
left out because it looks like a secret (secrets_left_out), and that the
conversation goes with the task (conversation_turns). To leave out files,
run save again with --exclude PATH (repeatable); to change what the task
says, again with other --messages.
- Never edit the saved task's files.
- If
savesays the chosen messages hold what looks like a secret, stop and tell the user; do not work around it.
Submit (only after the user says yes)
Submitting uploads the bundle (the task and the conversation) to Env Hub under the user's Eigent account, as the contribution agreement they accept says, and starts converting it into an environment. Ask first, every time; say what will be uploaded (the bundle and its size). Then:
python3 <skill>/scripts/capture.py submit <task folder> --jsonThe first time, the user signs in: run capture.py login, which opens their
browser (Eigent account, Google or GitHub) and asks them to accept the
contribution agreement and allow the skill. Never handle their password or
token; the script keeps the token in ~/.config/env-hub/.
Follow it
python3 <skill>/scripts/capture.py status <conversion id> --json
python3 <skill>/scripts/capture.py list --json # the user's environmentsstatus: queued, running, succeeded (environment_url is where the user
sees the environment in full, verifier and solution included) or failed
(error.message says why). Until then the user follows it on the web at
account_url, which submit and status return; give that address, never
one of your own (the hub may not be the default one). stage says more: checking, publishing,
drafting (Env Hub writes the verifier and reference solution), gating
(oracle and nop runs), repairing, passed, rejected, needs_attention.
Drafting and gating take minutes; check back rather than waiting in a loop.
Errors you can act on: "not signed in", an expired connection or an agreement
to accept → login; the day's limit → try later; the task too large → save
again with --exclude for large folders. The user removes Env Hub's access
from their account page on the hub.
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.

