Built-in skills

kōjō ships fourteen skills in its binary. This page summarises them, lists what their kits have in common and shows how to override one.

The built-in skills are the last layer of skill resolution. They use the same three files as your own skills. Each has its own directory under skills/ in the kōjō repository, embedded by skills/embed.go.

Three pages, one per kind of work, say what each skill is told to do, the acceptance criteria it is held to and the sandbox it gets, so you can decide which to use as they are and which to override:

  • Changing code: build-feature, reproduce-bug, fix-bug, port-sdk, write-tests and docs-sync.
  • Reviews and audits: review-pr, security-audit and triage, which report and change nothing.
  • Scheduled upkeep: dependency-review, daily-digest, stale-issue-triage, flaky-test-hunt and release-watch, the jobs meant for a schedule.

Summary

Skill Usually started by Produces Tier Writes code
build-feature A feature request Code, tests and docs, TEST_CMD, ACCEPTANCE strong Yes
reproduce-bug The orchestrator, on a bug report A failing test, REPRO_TEST, REPRO_CMD strong Yes
fix-bug The orchestrator, on a bug report A fix, TEST_CMD strong Yes
port-sdk A request that names the source repository, or a merge in it The same change in this repository’s language, TEST_CMD, SOURCE_CHANGE, DIFFERENCES strong Yes
write-tests A pull request Tests, TEST_CMD, NEW_TESTS_CMD strong Yes (test files only)
docs-sync A pull request, or a merge Docs edits, or a report fast Yes (docs only)
review-pr A new or updated pull request One review comment strong No
security-audit A request or a schedule A confidential report, FINDINGS, HIGHEST_SEVERITY strong No
triage A new issue One triage comment, CATEGORY fast No
dependency-review A schedule Dependency upgrades and a report, TEST_CMD strong Yes
daily-digest A schedule A digest of the last day fast No
stale-issue-triage A schedule A verdict per stale issue fast No
flaky-test-hunt A schedule A table of flaky tests, memory entries strong No
release-watch A schedule A report of upstream releases, memory entries fast No

How to read the table:

  • Usually started by is the intended use. Nothing is wired up on a new install: no skill runs on a forge event until an operator maps the event to it in the repository’s auto setting (the events are issue_opened, pr_opened, pr_updated and check_failed), no skill follows a merge in another repository until an operator lists it under that repository’s on_merge, and no schedule exists until someone creates one. Any skill can also be chosen by the orchestrator from its description, or run directly with kojo run --skill <name>. See Automatic triggers and Schedules.
  • Tier is the model tier of the subagent. Which model a tier means is on the Models page.
  • Writes code is how the engine classifies the skill: it lists write_file, edit_file or exec and does not set no_changes: true. Requests from people who may not trigger write actions only reach the skills marked “No”. When a writing skill changes the workspace, the change is published as the repository’s merge policy allows: a draft pull request by default.

Skills that do not write end with a report. The report is posted as a comment when the session is about an issue or pull request, sent to the chat thread when the request came from chat or a schedule with notify, and kept on the session in every case.

What the kits have in common

Every built-in kit leaves image empty, so the skill runs on the deployment’s default sandbox image. None lists credentials: kōjō adds the repository’s forge host and its clone credential itself. That credential is set only on git’s fetch, so a sandbox can fetch with it but not push or read the forge’s API, on every forge and every driver (with sbx, the driver’s deny rules refuse the rest outright). On GitHub it is also short-lived and limited to the repository; on GitLab and Forgejo it is the configured token. See Security.

Several kits allow the same ten package registry hosts. The skill pages call them “the package registries”:

proxy.golang.org
sum.golang.org
registry.npmjs.org
pypi.org
files.pythonhosted.org
crates.io
static.crates.io
index.crates.io
repo.maven.apache.org
rubygems.org

Five kits set needs_docker: true. That is honoured where the sandbox driver can give the sandbox its own Docker daemon. Where it cannot, the skill runs without Docker and its subagent is told so. See Sandboxes.

Overriding a built-in skill

To change a built-in skill for one repository:

  1. Copy the skill’s three files from skills/<name>/ in the kōjō repository to .factory/skills/<name>/ in your repository. Copy all three: an override replaces the whole skill, and a missing goals.yaml or kit.yaml means no goals or an empty kit, not the built-in ones.

  2. Edit them. Keep name equal to the directory name.

  3. Check the result:

    kojo skills validate .factory/skills
  4. Merge to the default branch. kōjō reads .factory/ from the default branch on the next push webhook or session.

  5. Confirm which version is in use. The LAYER column shows repo (overrides builtin):

    kojo skills list --repo github/acme/api

This works when the repository’s skills are edited in git, which is the default. To change a skill for every repository, or to edit in the browser, use “Customise” in the dashboard’s Skills studio; see the Skills studio.

Your copy’s kit is checked against the egress limits an admin set; the built-in kits are not. The default limits cover every host a built-in kit names: the package registries, vuln.go.dev, api.osv.dev and the configured forges. A copy of any built-in skill therefore loads without widening them. If an admin has narrowed the limits, a copy whose kit names a host outside them is skipped and the built-in version stays in use.

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