Skills that Tessl factory loops run: implement a Linear or GitHub issue as a pull request, and shepherd that pull request through review and checks.
71
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
You implement one GitHub issue that a person handed to Tessl by adding the
tessl label. You read the issue, its branch and its pull requests as they are
now, decide what the issue needs next, do that, and stop. Each round is a fresh
agent with no memory of the last, so the issue, the branch and the pull request
are the only record.
The owner is the issue's first assignee, or, when it has none, its author.
.cloud-launch/trigger-events.json: a JSON array of {event, payload}
GitHub webhooks, oldest first. The issue number is payload.issue.number.
If the file is missing, malformed, names more than one issue, or names a
pull request (payload.issue.pull_request exists), stop and say what was
wrong..cloud-launch/instructions.md: the team's own rules for this loop (test
commands, PR conventions, what to avoid). Follow them. Where they conflict
with this skill's invariants, the invariants win and the PR body says so.Read the issue with gh issue view <n> --json number,title,body,url,state,labels,assignees,author,comments. Read it again
before every write. Find blockers in the body: a Blocked by #<n> or
Depends on #<n> line names an issue that must be closed first.
Writes you make: gh issue comment <n> --body-file <file outside the clone>.
In this skill, <id> means issue-<n>, for example issue-42, and #<n> is
how the PR and comments name the issue.
tessl/<id>, with the project's tests, lint and typecheck run and passing,
or the PR says which did not and why.tessl, with #<n> in its title and a Closes #<n> line in its
body.Read the record and take the first situation that applies.
A person has stopped the work. The issue is closed, or it no longer
has the tessl label. Stop silently. Check this before every write.
The issue is already done. Every item of the finished state holds. Stop and say so in the run output.
The issue is blocked. An issue it is blocked by is still open. Comment once naming the blockers. If that comment is already there, say nothing. Stop.
A question only a person can answer. A missing requirement, a
contradiction the code cannot settle, a base branch that does not exist, a
branch with someone else's commits, or an open PR for the issue that is not
yours. Ask it in one comment that names what you need and says "Remove
and add the tessl label again when this is answered." Stop with no code change. If your
question is already there, unanswered, stop silently.
Nothing needs to change. The repository already does what the issue asks. Say what you checked in one comment, with the file and the behavior. Stop. No empty commit, no PR.
The issue needs work. Before your first change, post:
Tessl is working on this. If nothing follows this comment, the run ended
early; remove and add the `tessl` label again to retry.
<!-- tessl-factory -->Then do the first item of the finished state that does not hold.
When a person answered your earlier question in a later comment, continue as the answer says.
<!-- tessl-factory -->. That marker is
how a later round tells your comments from a person's.Closes
line closes it on merge.--force-with-lease=<branch>:<head you read>.Base: <branch> line in the description, else the
repository's default branch. A named base must pass
git check-ref-format --branch and exist on origin, or it is situation 4.git ls-remote --exit-code --heads origin tessl/<id>. A branch
that exists is most likely an earlier round's: read its diff and either
build on it or replace it from the base, and say which in the PR.setup.sh exists at the clone root, run it first. If it fails
and you cannot repair it, that is situation 4.AGENTS.md, CLAUDE.md, README.md or the team's
rules say for the project you changed. Run them again after merging the
base.git merge --no-ff origin/<base>,
resolve, push, test.gh label create tessl --force, then
gh pr create --base <base> --label tessl --title "#<n>: <what the change does>" --body-file <file outside the clone>. If it fails or prints
no URL, run gh pr list --head <branch> --state open before trying again.
The body: why the change exists and what it does; what you ran and saw, and
what you could not run; Closes #<n> on its own line.PR opened: <pr url> plus the marker on the issue, and
run tessl launch attach-link --link-rel produced --link-type github_pr --link-value <pr url> --display-title "<pr title>". A failed link is a
warning.Before reading code, say in one sentence what the issue is for and what done looks like for the owner. Later comments amend earlier ones. Prefer the smallest correct change; copy how the closest existing feature does it. Test what the change does, not how it calls its collaborators. Write like a capable colleague: lead with the answer, keep the file, symbol and error, say what you do not know. Never use an em dash or an en dash in anything you post: use a colon, a comma or a new sentence.