Scheduled upkeep

Five built-in skills are meant to run on a schedule: dependency-review applies safe dependency upgrades, daily-digest summarises the last day, stale-issue-triage goes through issues with no recent activity, flaky-test-hunt finds tests that fail intermittently, and release-watch reports upstream releases. Like any skill, each can also be run on request. “The package registries” in the kits are the ten hosts listed under What the kits have in common. How to change one of these skills for a repository is under Overriding a built-in skill.

dependency-review

Finds outdated or vulnerable dependencies, applies the safe upgrades and reports the ones that need a human decision.

Tier strong
Tools read_file, list_files, search, write_file, edit_file, exec, git_diff, memory_search, set_output
Outputs TEST_CMD
Steps per attempt 40 (default)

What it does. It finds the manifests and lockfiles and the ecosystem’s own tools (go list -m -u all, npm outdated, pip list --outdated, cargo outdated, and the audit command where one exists). It sorts what it finds into “apply now” (patch and minor upgrades of direct dependencies, and any upgrade that fixes a known vulnerability, when the changelog shows no breaking change for how the repository uses the package) and “needs a decision” (major versions, breaking changes in the range, build or release tooling). It applies the first group with the ecosystem’s tool and never edits a lockfile by hand. It runs the build and the tests; an upgrade that breaks them is reverted and moved to “needs a decision” with the failure. It records TEST_CMD and finishes with a table of package, from, to and why, and the list that needs a decision. It changes dependency files only and does not rewrite application code to fit a new major version.

Goals.

max_attempts: 2
checks:
  - name: tests pass after the upgrades
    run: ${TEST_CMD}
    skip_if_unset: true
    timeout: 30m
constraints:
  max_changed_lines: 2000
  forbidden_paths: [".github/**", ".gitlab-ci.yml", ".forgejo/**", "bitbucket-pipelines.yml", ".factory/**"]
judge:
  rubric: |
    - Only dependency manifests and lockfiles changed.
    - No major-version upgrade was applied without being called out.
    - The report lists every upgrade with from and to versions, and separates what needs a human decision.

TEST_CMD is also a declared output, so an attempt that leaves it without a value is rejected whether or not the check is skipped.

Kit. 4 CPUs, 8Gi memory, 40Gi disk. No Docker. Egress: the package registries, plus api.osv.dev and vuln.go.dev.

Outputs. TEST_CMD, the upgrades in the workspace and the report. The upgrades are published as the merge policy allows. The default list of sensitive paths includes go.mod, go.sum, package.json, package-lock.json, pnpm-lock.yaml, requirements.txt, Cargo.toml and Cargo.lock at the repository root, so with the default merge policy a change to one of them is scored high risk.

Override. Copy to .factory/skills/dependency-review/. Change the two groups in step 2 to your own upgrade policy.

daily-digest

Summarises the last day of activity in a repository for its maintainers.

Tier fast
Tools list_issues, list_pull_requests, get_issue, get_pr, memory_search
Outputs none
Steps per attempt 40 (default)

What it does. It lists the issues (list_issues) and the pull requests (list_pull_requests) updated in the last 24 hours, open and closed; a merge counts as an update. It also lists the open pull requests whatever their age, to find the ones waiting for a review, and reads the issues and pull requests it needs more than a title for. It writes the digest as its final answer, in Markdown, in this order, leaving out empty sections: Needs attention (pull requests waiting for review for more than a day, issues that look like regressions or security reports, direct questions to a maintainer), New, Done, Numbers (opened, closed, merged, still open). One line per item, with its number. It does not invent activity: if nothing happened, it says so in one sentence.

Goals.

max_attempts: 2
constraints:
  no_changes: true
judge:
  model_tier: fast
  rubric: |
    - Every item names a real issue or pull request number from the listing.
    - The digest is ordered with what needs attention first.
    - It is short: one line per item.

Kit. The skill lists no sandbox tool and has no checks, so it runs without a sandbox: it reads the forge through kōjō’s own tools. The kit’s resources (1 CPU, 1Gi memory, 5Gi disk) are not used, and no_changes has nothing to check.

Outputs. The digest, as the final report.

Override. Copy to .factory/skills/daily-digest/. Change the sections and their order in step 4, and the rubric’s second item with them.

stale-issue-triage

Goes through issues with no activity for a long time and says, for each, whether it is still valid, already fixed or should be closed.

Tier fast
Tools list_issues, list_pull_requests, get_issue, read_file, list_files, search, memory_search
Outputs none
Steps per attempt 40 (default)

What it does. It reviews open issues not updated in the last 60 days, unless the request says otherwise, at most 20 per run. It lists the merged pull requests once (list_pull_requests, up to 100): one whose title or body names an issue (“Fixes #12”) is a lead for that issue. For each issue it reads the issue and checks it against the current code, searching for the function, flag or message it names. It gives one of four verdicts: still valid, likely fixed (naming the code that now handles it, and the merged pull request when one names the issue; a pull request alone is not enough), cannot tell (saying what is missing) or close (duplicates, answered questions, reports about removed features). The result is a table of number, title, verdict and one sentence of evidence. It recommends; it does not close or comment on issues, and it has no comment tool.

Goals.

max_attempts: 2
constraints:
  no_changes: true
judge:
  model_tier: fast
  rubric: |
    - Every listed issue has a verdict and a sentence of evidence.
    - "Likely fixed" verdicts name code that exists in the repository.
    - No issue was closed or commented on.

Kit. 1 CPU, 2Gi memory, 10Gi disk. No Docker. No egress beyond the forge.

Outputs. The table, as the final report.

Override. Copy to .factory/skills/stale-issue-triage/. Change the 60 days and the 20 issues per run in the instructions. A schedule’s prompt can also set a different age for one job without an override, because the instructions defer to the request.

flaky-test-hunt

Runs the test suite repeatedly to find tests that fail intermittently, and reports each with its failure rate and likely cause.

Tier strong
Tools read_file, list_files, search, exec, memory_search, memory_save
Outputs none
Steps per attempt 40 (default)

What it does. It finds how the tests run, preferring the command CI uses, and runs the suite several times: at least 5 full runs, or 20 runs of a package when the request names one, using the test runner’s own repeat, shuffle and race options where it has them. A test is flaky when it both passed and failed on the same code. For each it collects how many runs failed out of how many, the failure message, and whether it fails alone or only with others; then it reads the test and the code under test and names the likely cause, or “unknown”. The result is a table of test, failure rate, cause and suggested fix. It saves a one-line memory per confirmed flaky test so later sessions do not mistake it for a regression. It changes no file. If nothing was flaky, it reports how many runs it did.

Goals.

max_attempts: 1
constraints:
  no_changes: true
judge:
  rubric: |
    - The report states how many runs were made.
    - Every flaky test listed has an observed failure rate from those runs.
    - Causes are tied to code that was read, or marked unknown.

With max_attempts: 1 a rejected result is not retried; it is delivered with the critic’s report.

Kit. 8 CPUs, 16Gi memory, 40Gi disk. needs_docker: true. Egress: the package registries.

Outputs. The table, and team memory entries.

Override. Copy to .factory/skills/flaky-test-hunt/. Name your test command and the number of runs in the instructions, and size resources in the kit to your suite.

release-watch

Checks whether the libraries the repository depends on have new releases worth acting on, and summarises what changed.

Tier fast
Tools read_file, list_files, search, exec, memory_search, memory_save
Outputs none
Steps per attempt 40 (default)

What it does. It reads the manifests to list the direct dependencies and their versions, and searches team memory for “release-watch” so it only reports what is new. For each direct dependency it looks up the latest release with the ecosystem’s own tooling (go list -m -versions, npm view <pkg> versions, pip index versions, cargo search); the sandbox can only reach the package registries. It reports a release when it is a new major version, fixes a security issue, deprecates something the repository uses, or adds something the repository works around today. Per release it gives the package, the current and new version, what changed that matters here, and where in the repository it applies. It saves one memory per reported release with the topic release-watch, so the next run skips it. It changes no file; upgrades are the job of dependency-review. If nothing is worth acting on, it says so in one sentence.

Goals.

max_attempts: 1
constraints:
  no_changes: true
judge:
  model_tier: fast
  rubric: |
    - Each reported release names the current and the new version.
    - Each says why it matters to this repository specifically.

Kit. 2 CPUs, 4Gi memory, 20Gi disk. No Docker. Egress: the package registries.

Outputs. The report, and team memory entries.

Override. Copy to .factory/skills/release-watch/. Change step 3 of the instructions to the kinds of release you want reported. If your dependencies come from a private registry, add its host to the kit, inside the egress limits an admin set.

Scroll to move. + - zoom, 0 fit, Esc close.100%