Skills that Learn from past work loops run: review pull request history for agent context and Tessl verifier improvements, read recent agent runs to record recurring problems as project findings, propose Code Review lens changes from how the lenses did on recent pull requests, and turn open findings into tickets the factory builds. Also clears out open findings that no longer need anyone.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
Tessl's loops record findings: a problem the agents keep hitting, the evidence, and a recommended fix. Findings pile up faster than people act on them, and many describe something since fixed, removed or recorded twice. Decide which open findings no longer need anyone, close those with a reason a person could check, and leave the rest open with a note saying why they were kept. A finding is a claim about the code at an older commit, not a fact about it now.
Up to 50 findings, oldest first, each have exactly one outcome, recorded on the finding itself unless DRY_RUN is true, and launch-result.json says what you decided. The rest wait for the next run.
Take the first situation that applies, do its next action, and look again:
launch-result.json, as Report says.If what you find fits none of these, say what you found in the report and stop.
launch-result.json at the clone root, scratch files under .local/findings-cleanup/, and clones of working repositories made for the run, and nothing else. File no ticket, change no repository file, push nothing and open no pull request.DRY_RUN is true, change no finding and no link: decide every finding exactly as you otherwise would, and report each outcome as what you would have recorded.Cleanup <date>: <outcome> - <reason>. Keep the rest of the analysis as it was.Cleanup line is newer than its latest observation and less than 30 days old. A kept finding is looked at again once it is observed again or 30 days pass.Read .cloud-launch/inputs.json and require UUID orgId and projectId; DRY_RUN is optional and is true only when it is "true". Get the current UTC time with a tool. Record git rev-parse HEAD: the checkout is the home repository's default branch. A claim about the code is checked against the repository the finding is about: the checkout for the home, otherwise a clone of that working repository, with its default-branch revision recorded. Name the repositories in scope as Repository scope says.
tessl finding list --project <projectId> --state open --limit 100 --json and the same with --state in-progress, following links.next until it is absent. tessl finding view <id> --json gives one in full, with its observations and links.AGENTS.md, CLAUDE.md, .tessl/RULES.md, any direction or roadmap document the repository keeps (such as DIRECTION.md), and CODEOWNERS. Note work the project has ruled out or deferred, and areas only people may change.If a read fails, say which in the report and carry on with what you have.
Open and in-progress findings can both link tickets and pull requests. For each such finding, read each link. A link is finished when its ticket is done or canceled, or its pull request is merged or closed. While any link is not finished, leave the finding: work on it is in flight.
When every link is finished, check the code. If it now does everything the finding asks, resolve the finding. Otherwise remove those links (tessl finding link remove <id> <link id>) and decide it as an open finding, naming the removed links and what became of each in the reason. A pull request that merged without the fix, or that changed something else, ends the same way as one that closed.
Linear tickets are read with LINEAR_API_URL and LINEAR_TOKEN from the environment, GitHub issues and pull requests with gh. A Linear identifier names a different ticket in each Linear workspace, so a ticket read for a link counts only when its URL matches the link's workspace. When you cannot read a link, leave its finding as it is and name it in the report.
Check what the finding says against the code first: findings are written from older commits and often describe something since fixed or removed. Then give it exactly one outcome:
state: resolved. When only part is done, keep it and say what is left.Duplicate of <kept id>, whatever state the kept one is in.state: ignored.When you decide a finding, look through the other open and in-progress findings for ones that describe the same problem. Keep the one whose work is in flight, otherwise the one observed most recently, and ignore each of the others as a duplicate of it. Never ignore a finding whose work is in flight.
tessl finding update <id> --file <payload.json> --json. The payload may hold state (open, in-progress, resolved or ignored), title, analysis, recommendation, expectedImprovement and tags (which replaces the list). Removing a finding's last link moves it from in progress back to open.observations has its observedAt, its evidence lines, the loopId of the Loop that recorded it and the runId of the run. tessl schedule view <loop id> --json gives that Loop's label and status, and tessl schedule runs <loop id> --json its recent runs.<host>/orgs/<orgId>/findings-v2/<finding id>, and a run's page is <host>/go/launch-runs/<run id>, where <host> is the one in the webUrl values tessl schedule list --project-id <projectId> --all --json prints.Write launch-result.json at the clone root. Use status: succeeded with a summary of two to four plain sentences: the commit read, whether this was a dry run, how many findings were decided and how (resolved, duplicates, ignored, kept), how many findings with links were left because work on them is in flight, and how many open findings are still due. Always add an output with dryRun and a findings list, empty when this run changed no finding: one entry for each finding this run changed, or in a dry run would have changed, with its title, its page url, its outcome and the one-line reason. A finding with links left as it was is counted in the summary, not listed. Use status: failed with a one-sentence summary and the concrete reason when the inputs or the reads of findings could not be used.
Also save .local/findings-cleanup/report.md: for each finding in that list its ID, title, outcome and one-line reason, grouped by outcome; how many findings with links were left; how many open findings are still due; and every read that failed.