Skip to content

Skills for task runs

A skill is a directory under .agents/skills/<name>/ on the repository’s default branch, in the Agent Skills layout: a SKILL.md with frontmatter, and any files beside it. Maku offers a skill to a task run only when the skill opts in, and only from the default branch: a run never loads a skill its own branch added or changed.

Offer a skill to runs

Add the roles it is for under metadata in its SKILL.md, as one space-separated string:

---
name: db-migration
description: How to add a database migration and check it. Use when a task adds or changes a table.
metadata:
  maku-roles: "implementer tester"
---

The roles are implementer, tester and reviewer. A skill without maku-roles stays your developers’ own: no run sees it. Merge the change to the default branch; the next run of a listed role is offered the skill.

What a run sees

When the factory starts an implementer, tester or reviewer run, it pins the default branch’s head skills to the run for its whole life. The broker stores each offered skill’s SKILL.md text for that run and purges it with the room. The run’s rules list each offered skill’s name and description (at most 20 per role, first by name). When work matches a skill, the agent calls skill_load to read the pinned SKILL.md. Supporting files live read-only under /workspace/skills/<name>/ (allowed as an external directory in OpenCode); scripts run as ordinary commands with the run’s usual permissions. A skill grants no tool, permission or network access, and allowed-tools is ignored.

A loaded skill ranks below the task, steering note, acceptance checks and safety rules, and above repository lessons.

Authoring effective skills

  • Keep SKILL.md concise: stay under 500 lines; put long checklists or schemas one level deep under references/ and repeatable checks under scripts/.
  • Write clear third-person descriptions: state both what the skill does and when to use it (specific paths, file types or tools), and avoid overlapping sibling skills.
  • Make scripts path-independent: a run’s working directory is /workspace/repo (normal checkouts omit .agents/skills/), while skill files live read-only under /workspace/skills/<name>/. Resolve sibling files with $(dirname "$0") and execute scripts directly. In OpenCode, reviewer runs prompt for human approval on arbitrary shell scripts.
  • Share across coding tools: in repos using Claude Code, Codex, OpenCode and Maku, keep .agents/skills/<name>/ canonical and symlink .claude/skills/<name> → ../.agents/skills/<name> (Maku skips symlinks inside .agents/skills/).

Read it in the room

MessageSays
skills_pinnedthe outcome, the commit, the skills offered, and those marked for the role but refused, with each refusal code
skill_loadeda skill the run loaded, and the commit

skills_pinned’s outcome is one of:

OutcomeMeans
pinnedat least one skill is offered to the run
emptyno skill is offered: none is marked for the role, or each broke a rule
unavailablethe default branch’s skills could not be read; the run starts without skills

These messages carry names, the commit and refusal codes only. Loaded SKILL.md text appears in the run’s tool transcript: redacted, visible to room viewers and purged with the room. Pull requests carry Agent-Skills: <name>@<short commit> for loaded skills (omitted when none loaded).

See and stop run skills

Open Learning, choose the repository, then Skills. Each skill on the default branch with maku-roles lists:

Learning Skills tab showing Recommended skill cards above offered, stopped, and never-loaded run skills with 30-day outcome counts Learning Skills tab showing Recommended skill cards above offered, stopped, and never-loaded run skills with 30-day outcome counts
ShownMeaning
OfferedRuns whose role the skill was listed to
LoadedRuns that called skill_load for it at least once
Last loadThe newest of those loads
Never loadedOffered to 20+ runs, first offer at least 21 days ago, zero loads: revise its description or remove it
Not offered: …The rule the skill breaks (e.g. SKILL.md is over 32 KiB, or a secret found by the broker)

Counts cover runs still within room retention (90 days by default; under 21 days, “never loaded” never triggers). Below the counts, each skill shows its 30-day task counts (merged, merged without revision, and first review verdict) — a count to read, not a score or cost, and Maku does not act on it; internal-class rooms are excluded (the outcome line). Anyone who can read the repository sees the tab; opening a skill shows its SKILL.md, files, loaded runs and stop history.

Skill detail page showing rendered SKILL.md, metadata strip, offered and loaded counts, supporting files, runs that loaded it, and stop history Skill detail page showing rendered SKILL.md, metadata strip, offered and loaded counts, supporting files, runs that loaded it, and stop history

To stop a skill, choose Stop and enter a reason (up to 500 bytes, redacted before storage). Only repository writers can stop or resume a skill. Immediately, no run — including runs already in progress — can load it (skill_load tells the agent the skill was stopped), and new runs report it under skills_pinned with code stopped. Runs that already loaded it keep the text they read and still list it in Agent-Skills; the room’s Skills section flags the post-load stop, lets you cancel the run, and offers a Stop button per offered skill.

Stopping leaves the repository files in place (remove them via pull request) and keeps the skill’s role slot (it does not admit a 21st skill). Stops never expire and stay listed by name even after deletion so you can Resume later. Every stop and resume is recorded immutably with actor, time and reason.

From the CLI (--repo defaults to origin; --json supported; stop requires --reason):

maku learning skills --repo owner/name
maku learning skill chart-check --repo owner/name
maku learning skill chart-check stop --reason "Runs the wrong target." --repo owner/name
maku learning skill chart-check resume --repo owner/name

The Skills tab reads repository skills through the factory; see Broker access for the Skills tab for broker and local-mode configuration.

Recommendations and the security scan

The tab opens with recommended places for a skill: see Author, draft and recommend skills. Pull requests changing .agents/skills/ are scanned: see The skill security scan.

Rules a skill must meet

RuleLimitCode when broken
SKILL.md size32 KiBskill_md_too_large
Files, SKILL.md included64too_many_files
One file256 KiBfile_too_large
Whole skill1 MiBskill_too_large
Every file is UTF-8 textnot_text
No control or invisible character (tab and newline allowed)invisible_characters
No symlink or submodulenot_a_file
No .pyc, .zip, .tar, .gz, .tgz, .docx, .pdf, .so or .exe filerefused_type
Frontmatter parses; name equals the directory; description is 1 to 512 bytesbad_frontmatter
maku-roles names only implementer, tester, reviewerbad_roles
At most 20 offered per roleover_limit
No secret in SKILL.mdsecret_found
A maintainer has stopped the skillstopped

A skill that breaks a rule is not offered; skills_pinned names it with its code.

Changes to a skill

To have the factory draft or remove a skill via pull request, see Author, draft and recommend skills. Any agent pull request touching .agents/skills/ is held for a maintainer (usually skill_path); skills change only by a maintainer’s merge.

Limits

  • Normal run checkouts omit .agents/skills/, so runs read only the reviewed copy via skill_load; skill-drafting runs keep .agents/skills/ so they can inspect existing skills.
  • Both harnesses’ built-in skill loaders stay off; skills reach runs only through skill_load.
  • A running task keeps the pin from its start; new runs see newly merged skills.
  • Only task runs are offered skills; POST /v1/runs requests are not.