ワンクリックで
lessons
Use when about to edit a file or run a state-changing command, or after any failure, correction, or surprising result.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when about to edit a file or run a state-changing command, or after any failure, correction, or surprising result.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when an AI tool gains support for a feature agentsmesh does not yet expose — or exposes wrongly — and you must raise or correct an existing target's capability for project and/or global scope (rules, additionalRules, commands, agents, skills, mcp, hooks, ignore, permissions). Also use to audit every target for capability gaps, or to act on an audit/feature-request someone else wrote. Start by verifying the claim against the tool's OWN primary docs — such findings are frequently fabricated, stale, or wrong-scoped, so be ready to reject. Covers verification-first research, descriptor wiring, round-trip symmetry, global-only scopeExtras emission, settings-merge and plugin safety, format/path-change blast radius, strict TDD, two-stage review, and matrix/docs sync. Start with `pnpm capabilities:audit`; research only STALE/MISSING cells; the ledger memoizes verified formats so audits stay fast.
Use when an AI tool gains support for a feature agentsmesh does not yet expose — or exposes wrongly — and you must raise or correct an existing target's capability for project and/or global scope (rules, additionalRules, commands, agents, skills, mcp, hooks, ignore, permissions). Also use to audit every target for capability gaps, or to act on an audit/feature-request someone else wrote. Start by verifying the claim against the tool's OWN primary docs — such findings are frequently fabricated, stale, or wrong-scoped, so be ready to reject. Covers verification-first research, descriptor wiring, round-trip symmetry, global-only scopeExtras emission, settings-merge and plugin safety, format/path-change blast radius, strict TDD, two-stage review, and matrix/docs sync. Start with `pnpm capabilities:audit`; research only STALE/MISSING cells; the ledger memoizes verified formats so audits stay fast.
Use when about to edit a file or run a state-changing command, or after any failure, correction, or surprising result.
Use when about to edit a file or run a state-changing command, or after any failure, correction, or surprising result.
A relentless interview to sharpen a plan or design.
Teach the user a new skill or concept, within this workspace.
| name | lessons |
| description | Use when about to edit a file or run a state-changing command, or after any failure, correction, or surprising result. |
NO MUTATION WITHOUT RECALL. NO COMPLETION WITHOUT A CAPTURE DECISION.
Violating the letter is violating the spirit. Edited a file or ran a state-changing
command without recall? Process violation. Did the turn hit a failure / correction /
regression / wrong assumption / surprise and you have not captured (nor stated
Lesson: none)? The task is INCOMPLETE — and the user will check. The graph
../../../.agentsmesh/lessons/lessons.json is canonical — never hand-edit.
agentsmesh lessons query --file <path> --cmd <command>, then apply every rule.
Pure-read commands (read-only) and the query itself are exempt. keyword-only recall
for a specific edit is the anti-pattern — anchor those to --file/--cmd. But at the
START of a task (or when planning), run agentsmesh lessons query --keyword "<the task's key terms>" --always: that surfaces the conceptual rules no file/command names PLUS the
universal always-on lessons — the manual equivalent of the automatic prompt recall on
hook-capable tools. Author a keyword trigger beside a file_glob on conceptual lessons
so they are reachable both ways. No shell → MCP lessons_query (file/command/keyword/always).
--trigger-cmd. So
does a review finding you REVIEWED then deliberately REJECTED: capture it as a "do NOT
refactor" guard so the reasoning survives the session.agentsmesh lessons add "<rule>" --topic <id> --trigger-file <glob>. Trigger on the
file-CLASS where it will RECUR (e.g. **/lib/use*Form*.ts), NOT the single file you
discovered it in — and NOT a broad src/**. If the rule is a UNIVERSAL standard that
applies to EVERY task (a comment/test/style convention no file or command names),
capture it with --scope always instead — it needs no trigger and is delivered on
every task.Lesson: captured <id> or Lesson: none.At least one effective trigger is required (or --scope always for a universal rule) or
the capture is rejected (UNRECALLABLE_LESSON); prefer --trigger-file. No shell → MCP lessons_query,
lessons_add, lessons_topics, lessons_show, lessons_deprecate. Run
agentsmesh lessons --help for every subcommand and flag: query, add, topics, show,
deprecate, merge, untrigger, strip-markers, prune, journal, validate, stats, import-md.
| Excuse | Reality |
|---|---|
| "Small edit / I already know this / later" | Query first — skipping recall is a process violation |
| "Nothing reusable here" | You hit a failure/surprise — name it or capture it |
| "My own TDD red, not a real failure" | A red you did not predict IS a lesson |
| "I fixed one site; the twin is obvious" | Capture it — the unfixed twin is what gets missed |
| "Different words, so the rule doesn't apply" | Spirit over letter |
The final response MUST carry the receipt: Lesson: captured <id> or Lesson: none.
No receipt = task incomplete. Do not capture one-off facts, task summaries, or project
context — only reusable imperative rules with an effective trigger.