Claim a GitHub issue for work — load the legreffier skill, create a worktree + branch from origin/main, assign the issue to legreffier, and try to add it to the MoltNet Agent Board project. Use when the user says "let's work on issue <N>", "claim <issue-url>", "start issue <N>", or pastes a getlarge/themoltnet issue URL with intent to work on it.
76
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Claim a GitHub issue and set up an isolated workspace to work on it. Works in Claude Code and Codex (read the same file).
Accept either form via $ARGUMENTS or by parsing the user's message:
123https://github.com/getlarge/themoltnet/issues/123Default repo: getlarge/themoltnet. If a URL points to a different repo, refuse and ask the user to confirm — this skill is scoped to MoltNet.
Minimize user confirmations. Prefer at most two confirmations for the whole workflow:
GH_TOKEN, and fetch the issue metadataorigin/main, create the worktree + branch, assign the issue, and attempt the project-board addStill print the exact command or command batch before running it, but batch related shell commands together unless a failure mode requires a decision point. If a command needs network or sandbox escalation, request that escalation directly instead of doing an extra confirmation-only round trip first.
Before any gh or git work, invoke the legreffier skill (via Skill in Claude Code, equivalent loader in Codex). Legreffier knows:
AGENT_NAME from GIT_CONFIG_GLOBAL / MOLTNET_AGENT_NAME / .moltnet/ layoutGH_TOKEN from .moltnet/<AGENT_NAME>/moltnet.json per .claude/rules/legreffier-gh.md.moltnet/Don't duplicate that logic here. Once legreffier is active, the rest of the steps just use the gh/git patterns it established.
GH_TOKEN=$(moltnet github token --credentials "<ABSOLUTE-CREDS-PATH>") \
gh issue view <N> --repo getlarge/themoltnet --json number,title,labels,state,urlRun with the agent GH_TOKEN resolved by legreffier (per the legreffier-gh rule) using an absolute path to .moltnet/<AGENT_NAME>/moltnet.json. Do not use --agent; the stable CLI form is --credentials <absolute-path>. If moltnet github token returns empty, stop rather than letting gh fall back to the human token.
Use the title to derive a branch slug:
-, collapse repeats, trim endsissue-<N>-<slug> (e.g. issue-456-fix-keto-policy-drift)Show the derived branch name and the planned worktree path. If state is closed, ask whether to proceed. Otherwise, use this as the end of the read-only phase and get a single confirmation for the mutation batch.
Always branch from a freshly fetched origin/main, not local main.
git fetch origin main
WORKTREE="../themoltnet-issue-<N>"
git worktree add -b issue-<N>-<slug> "$WORKTREE" origin/mainBatch this with steps 4, 5, and 6 when asking for the mutation-phase confirmation. Print the absolute worktree path.
After the worktree is created, install workspace dependencies there so the branch is immediately runnable:
pnpm installRun it inside the new worktree path. If the workspace already shares node_modules another way, this may be a quick no-op; otherwise it bootstraps the branch for test and build work.
pnpm installRun from the new worktree root. If it fails because of sandboxed network access, rerun with escalation rather than asking the user to debug package-manager plumbing manually.
GH_TOKEN=$(moltnet github token --credentials "<ABSOLUTE-CREDS-PATH>") \
gh issue edit <N> --repo getlarge/themoltnet --add-assignee legreffierVerified working with the agent token (2026-05).
GH_TOKEN=$(moltnet github token --credentials "<ABSOLUTE-CREDS-PATH>") \
gh project item-add 3 --owner getlarge --url https://github.com/getlarge/themoltnet/issues/<N>This will likely fail. Don't treat it as a blocker.
If it fails with Could not resolve to a ProjectV2 with the number 3: the token lacks project scope. This is GitHub's misleading way of reporting a scope failure rather than a 404. Explain to the user:
The agent's GitHub App token doesn't carry
projectscope (GitHub Apps don't grant it alongside contents/issues/pulls), so this step can't be automated under legreffier. Your personalghtoken also needsprojectscope — if you want to run this step yourself, do it once:gh auth refresh -s project gh project item-add 3 --owner getlarge --url https://github.com/getlarge/themoltnet/issues/<N>Or add it via the web UI: https://github.com/users/getlarge/projects/3
Project metadata for reference: owner getlarge, number 3, id PVT_kwHOAOnyU84BOd17.
Continue to step 7 regardless of outcome.
Report a 4-line checklist of what actually ran vs. was skipped:
<path> on branch issue-<N>-<slug>legreffierTell the user to cd into the worktree before starting the actual work, so subsequent git commits land on the new branch and the diary entries pick up the right agent identity.
gh falls back to personal token (rule violation): if legreffier's GH_TOKEN resolution returns empty, stop. Don't run any gh command bare — the action would be attributed to the human.git worktree add -b fails. Offer git worktree add "$WORKTREE" issue-<N>-<slug> (no -b) to reuse the existing branch instead of silently overwriting.../themoltnet-issue-<N>-<n> with an incrementing suffix and tell the user why.gh or git fetch fails due to sandboxed network access, rerun with escalation immediately instead of asking for a separate manual confirmation first.5daa9ca
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.