Author, draft and recommend skills
A maintainer can ask the factory to draft or remove a run skill, turn repository lessons into a skill, or act on recommendations from the Skills tab. Maku never edits an existing skill directly: update skills in your repository as usual, or draft a new one below.
Ask for a skill
File an issue titled skills: <sentence>, label it factory/ready, and start the body with the
request lines:
skill: generate How we add a release notes entry for a user-facing change
lessons: L-3 L-7The lessons: line is optional (Codify lessons into a skill). Follow
the request lines with four sections: ## Goal (the sentence), ## Requirements, ## Scope
(Touches: `.agents/skills/<name>/` only.) and ## Acceptance check. You can file the same
issue from a recommendation card’s Draft it button (below), or via hand-off
from the CLI or an MCP client — keep the skill: line first and include ## Scope so hand-off does
not ask which files change.
The factory acts only on a maintainer’s request. It runs one implementer in the skill class, which
inspects existing repository documentation and opens a pull request adding one directory under
.agents/skills/. The pull request body includes Request, Lessons used, Already
documented, and Should load / should not load.
A pull request comment checks every cited repository path and task or make target at the pull
request head (found or missing) and validates each written skill directory (whether it would be
offered, or which rule it breaks). This check informs and never blocks. Pull requests touching
.agents/skills/ are always held for a maintainer (usually skill_path, though another hold such as
no_policy_matched can appear first). A skill is offered from the first run after merge once its
SKILL.md declares maku-roles.
The factory refuses invalid requests with a comment and removes factory/ready:
| Reason | Meaning |
|---|---|
skill_request_invalid | First lines break the grammar: fix them and re-apply the label |
skill_request_not_maintainer | Only a maintainer’s request is acted on |
skill_request_unsupported | Only skill: generate and skill: remove are supported |
Codify lessons into a skill
When several repository lessons describe one
procedure, or a steering note is full, name up to eight active lessons on the optional lessons:
line (for example, lessons: L-3 L-7) of a skill: generate request. The drafting run turns those
lessons into the skill’s procedure. Stopped lessons — and internal lessons in a public repository’s
request — are omitted and noted in the brief. When the pull request merges, each named lesson becomes
codified with a link to the pull request; if closed unmerged, the lessons stay active.
Adapt a trusted source
When the factory’s skills.trustedSources lists public repositories, a drafting run sees their
skills (names and descriptions at a pinned commit) and may adapt one. The pull request body then
adds a ## Source section reading Adapted from <repo>@<sha>/<path> or No match: <why>. Private
repositories, or sources whose visibility cannot be verified, are never shown; see
Operating run skills.
Remove a skill
skill: remove release-notesThe factory opens a pull request deleting .agents/skills/release-notes/ directly — no run and no
model — and holds it for a maintainer like any change to .agents/skills/. Removal cards on the
Skills tab file this request for you.
Recommended skills
The Skills tab opens with Recommended: places where a new skill would prevent repeated friction, or where an existing skill should be removed. Recommendations never run as a background AI job and never edit a repository on their own — a card suggests, and a human chooses whether to draft, copy, or dismiss it.
How recommendations work
flowchart LR
runs["Normal task runs"] -->|"CI failures, changed dirs, lessons, loads & outcomes"| db[("Broker PostgreSQL")]
db -->|"Live on tab open (0 LLM cost)"| rules["6 deterministic rules (up to 10 cards)"]
db -->|"On-demand Find more (redacted 90d summary, no code)"| model["Optional model pass (up to 5 cards, cached 30d)"]
rules --> cards["Recommended cards on Learning → Skills"]
model --> cards
cards --> act["Draft it (issue → PR) · Copy prompt · Dismiss"]
- Passive evidence collection (automatic, zero model cost): As normal tasks run, the factory
reports small redacted facts to the broker’s PostgreSQL database — failing CI check names (with
their one-line failure summary) and merged pull request directories — alongside the active
repository lessons,
skills_pinned/skill_loadedevents, and task merge outcomes the broker already records. No source code or chat transcript text is collected here. - Deterministic rule cards (live on page load, zero model cost): Whenever you open Learning → Skills, the broker evaluates six fixed rules live against PostgreSQL — no cron job, no model key, and no extra configuration required. Up to 10 rule cards display at once, ordered by rule and evidence count. Lessons already being codified by an open pull request are skipped; internal lessons are counted on non-public repositories without quoting their text.
- Optional
Find moremodel pass (maintainer-triggered): When an operator configureshuman.skillRecommendations, maintainers see a Find more button that sends a redacted 90-day summary (active lessons, review verdicts, failing check names, and changed directories — never source code or message text) to the configured model route. The broker checks repository visibility via the factory App so non-public repositories use only the governed internal route. Each pass stores up to 5 extra cards for 30 days, capped at one pass per repository per hour (failed passes count) and a global UTC daily cap (dailyPasses, default 20); see Operating run skills. - Dismissals and refresh: Dismissing a card records its key and the exact evidence IDs shown in PostgreSQL. The card stays hidden unless new evidence arrives (for example, another task hits the same CI failure or another lesson joins the group).
Rule cards
| Card | Shown when | Title example & counts |
|---|---|---|
| Lessons on one class | 3+ active lessons share a class | 4 lessons on class chart: Bump the chart version, … · 4 lessons · recalled in 10 runs · make them a skill |
| Lessons on the same paths | 3+ active lessons cover overlapping paths | 3 lessons on charts/maku: … · 3 lessons · make them a skill |
| An often recalled lesson | A lesson was recalled in 10+ runs | Run task crd:gen after changing api types. · Lesson L-4 · recalled in 10 runs · make it a skill |
| A recurring CI failure | One check failed in 3+ tasks in 30 days | tflint keeps failing: 3 issues: terraform_unused_declarations · 3 tasks · see evidence |
| Not loaded in 60 days | Offered in 20+ runs and never loaded | Remove idle: offered 20 times in 60 days, never loaded · Offered in 20 runs · loaded in none |
| Runs with it do worse | Over 60 days, tasks loading it merged without revision ≥ 25 points less often | Remove slow: runs with it merge without a revision less often · Without a revision: 1 of 5 tasks with it · 5 of 6 without |
A CI failure card quotes the failing check run’s one-line summary when present, or the check name alone. Lesson text, check names and summaries render as truncated plain text; an internal lesson’s text is never shown.
Acting on a card
Each card lists its evidence and offers:
- Draft it (maintainers): files a
skill: generateissue with the goal and evidence; the factory drafts the skill in a pull request, and merging that pull request codifies any lessons named on the card. - Copy prompt (anyone who can read the tab): copies a ready-to-use prompt for your own skill
creator (Claude Code’s skill-creator, Codex’s
$skill-creator,gh skill). The prompt states the goal (for example,Runs on owner/repo keep failing the CI check `tflint` (3 tasks). Write a skill that prevents it.) and lists the evidence — each lesson’s id and text, or each failing task’s room, pull request, failure summary and changed directories. Goals and titles use counts, ids and names only; lesson text and failure summaries stay in the evidence block, marked as data rather than instructions. - Dismiss (maintainers): hides the card until new evidence arrives.
- Draft removal pull request (removal cards, maintainers): files a
skill: removeissue; the factory opens the removal pull request with no model. - Find more (maintainers, when
human.skillRecommendationsis configured): runs the on-demand 90-day model pass described above.
The outcome line
Each skill shows its last 30 days of ended public-room tasks (internal-class rooms are excluded): tasks that loaded it versus those offered it that did not, counting how many merged, how many merged without a revision, and the first review’s verdict. Under 5 ended tasks it reads “not enough runs yet”. It is a count to read, not a score or cost: Maku does not act on it.