Skip to main content
Glama

compile_skill

Compile domain procedures from experience and graveyard memories into a loadable SKILL.md, returning a reviewable diff before an approved write.

Instructions

Compile domain procedure from experience and graveyard memories into a loadable SKILL.md. 'propose' (default) returns a reviewable diff; 'write' commits only a previously proposed diff that a person accepts: the client asks them (MCP elicitation), or, if it can't, the result is awaiting_approval and they accept it in OmniMem's settings window. declined means nothing was written; don't ask again. There is no silent-commit path.

The compiled skill is build output: derived from raw memories, never
hand-edited. To change domain guidance, update the underlying memories
(record_experience, log_abandoned, bless) and recompile.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>"
    },
    "name": "compile_skill"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNopropose
domainYes
descriptionNo
export_pathNo
include_graveyardNo
min_reinforcementNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does so thoroughly: it discloses the approval path (MCP elicitation, then an OmniMem settings-window fallback), the `awaiting_approval` and `declined` outcomes, and explicitly states there is no silent-commit path. It also discloses the key invariant that the output is derived build output and must never be hand-edited, which is exactly the kind of behavioral context annotations could not supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the mode contract are front-loaded in the first sentence, and the second paragraph adds the non-obvious build-output invariant with no filler. Slightly awkward mid-description line breaks and the dense run-on enumeration of modes cost a point, but essentially every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The approval semantics and the write/propose contract are complete enough to call the tool safely, which is the hardest part of this tool. But with six parameters and neither annotations nor an output schema, the definition should still say what `export_path`, `min_reinforcement`, and `include_graveyard` do, and it does not.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it fully explains the most consequential parameter, `mode`, including its default and the two values' effects. However, `domain`, `description`, `export_path`, `include_graveyard`, and `min_reinforcement` receive no explanation at all, leaving half a dozen parameters with no stated meaning or format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (compile), a specific input source (experience and graveyard memories), and a specific artifact (a loadable SKILL.md), which is enough to separate it from retrieval siblings like get_skill or find_skills. The second paragraph reinforces the resource's nature as derived build output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use guidance per mode: 'propose' for a reviewable diff, 'write' only for a previously proposed diff that a person accepted. It also tells the agent what not to do ('declined' means don't ask again) and redirects change requests to record_experience, log_abandoned, and bless. It stops short of positioning against sibling compile tools such as compile_project_context or compile_project_domains.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.