Install
openclaw skills install skill-autogenesisReview completed work, summarize reusable procedures, identify recurring workflow patterns, and decide whether to create a skill, patch an existing skill, store a memory note, or do nothing. Built for agents that need structured procedural memory in Hermes, OpenClaw, or similar tool-using environments without confusing abstract rules with reusable procedures.
openclaw skills install skill-autogenesisTurn repeated successful work into reusable procedural memory.
Default stance: evaluate first. Do not turn every solved task, preference, or policy note into a new skill.
This skill makes the agent do five things during normal task execution:
skill_manage-style lifecycle rules for create, patch, edit, write_file, and remove_file behavior.This skill is inspired by Hermes Agent's agent-managed skill behavior and its guidance to save complex or non-trivial workflows as skills. Source links are listed in references/sources.md.
Load this skill when the user wants the agent to:
Load this skill early in a session if automatic skill creation is desired.
When this skill is active, treat every substantial task as a candidate for procedural learning, not as an automatic instruction to create a new skill.
A task becomes a skill candidate when at least one of these is true:
A skill candidate is only a review target. The default output of the review is a classification decision, not a file write.
Do not create a skill for trivial one-step work, ephemeral conversation-only advice, highly project-specific context that will not generalize, or abstract policy notes that are better stored in memory or prompts.
Use this decision rule after every meaningful success:
session_search existsUse this routing table before any persistence action:
Hard stop rules:
knowledge_type=preference, never call skill_manage(create) or skill_manage(edit).knowledge_type=policy, never call skill_manage(create) unless the output also contains a complete executable procedure with trigger, ordered actions, and verification.recommended_action is memory, prompt, or none, do not write or modify any skill files.Before creating or updating anything, produce an internal decision record with these fields:
Use this exact template internally before any persistence action:
Classification:
Reason:
Only recommended_action=create or recommended_action=patch may lead to skill file updates.
If any field is missing, default to recommended_action=none until the classification is complete.
After any meaningful success, extract:
Write the summary in concise operational language, not narrative prose.
Before doing anything persistent, ask one discriminator question:
If it did not produce an executable reusable procedure, do not create a skill from it.
Use the strongest evidence available.
Preferred sources, in order:
session_search results for similar tasks, intents, file types, services, or error patternsTreat recurrence as confirmed when any of these rules match:
Recurrence alone is not enough. A repeated preference or governance note is still not a skill unless it defines a reusable executable procedure.
Run this checklist in order. All checks must pass before create or patch.
Checklist:
Create a skill only when all conditions hold:
If the conditions are not met, do not force a skill.
Route non-skill outcomes to the right storage layer:
skill_manage lifecycle logicWhen skill_manage or an equivalent skill API exists, use the same action-selection logic instead of treating every change as a new skill.
Action selection rules:
create when no related skill exists and the workflow is frequent, stable, reusable, and classified as knowledge_type=procedurepatch for targeted fixes, missing steps, corrected commands, improved verification, or recurring pitfalls in an existing procedural skilledit only when the skill structure must be reorganized substantially and targeted patching is no longer cleanwrite_file to add or update supporting files such as references, templates, scripts, assets, and human-facing docsremove_file to delete obsolete supporting files that would otherwise mislead later runsdelete only with explicit user approval, because deletion is destructiveHard stop enforcement:
create for preferences, policy notes, approval boundaries, style guidance, or naming conventions by themselvespatch or edit to convert a non-procedural rule into a fake skillDefault policy:
patch over editdeleteSKILL.md and manage it through supporting-file actionsIf skill_manage exists, create a new skill only when the recurrence threshold is met, the workflow has passed verification, the active environment allows autonomous skill creation, and the decision record says knowledge_type=procedure.
If the environment uses a different skill API, map the same lifecycle actions semantically.
If no skill creation capability exists, produce a complete SKILL.md draft and README.md draft for the user or parent agent to save.
The created skill must contain:
When file support exists, also create or update:
README.md for human-facing overviewreferences/ files for source links or API notestemplates/ files for reusable skill skeletons, prompts, or configsscripts/ files when the workflow depends on repeatable helper automationassets/ files only when the skill genuinely needs non-text resourcesHermes-specific implementation note:
skill_manage(action='write_file') only supports supporting files under approved subdirectories such as references/, templates/, scripts/, and assets/README.md is not a supporting-file target for skill_manage(action='write_file')README.md, create or update it through ordinary file-writing tools or direct filesystem output instead of skill_manage(action='write_file')Use a concise kebab-case name.
Naming rules:
summarize-support-tickets or deploy-preview-appautomation-skill or helperskill-autogenesis, workflow-distillation, or agent-procedural-memoryPrefer a category that matches the task domain. If the skill applies across agents, place it in an agent or workflow category.
Before creating a new skill, check whether a related skill already exists. If one exists and the new workflow is a refinement, patch the existing skill instead of creating a duplicate.
Patch immediately when you discover:
Use edit only if the whole skill needs structural reorganization.
Use write_file when the core logic is fine but the skill needs supporting files.
Use remove_file when a stale supporting file conflicts with the updated workflow.
Never use delete without explicit user approval.
When auto-creating a skill, follow this structure:
namedescriptionversionauthorlicensemetadata.hermes.tagsDefault thresholds:
Hard gate before any create action:
Lifecycle policy:
create only when no suitable skill exists yetpatch as the default update actionedit only for large structural rewriteswrite_file for README, references, templates, scripts, and other supporting filesremove_file for obsolete supporting filesdelete only with explicit user approvalDefault safety boundaries:
If running in OpenClaw or another agent framework:
skill_manage, file tools, memory, and session searchcreate, patch, edit, write_file, remove_file, and guarded deletereferences/fallback/, then mark the claim as [UNVERIFIED]skill_manage(create) as a generic persistence tool. If the outcome is policy-like, preference-like, or one-off, creating a skill is the wrong action.A newly created or updated skill is considered valid only when all checks pass:
recommended_action=create or recommended_action=patch.Use this source resolution policy:
references/sources.md.references/fallback/.[UNVERIFIED].See references/sources.md for the primary references that informed this skill's logic and thresholds.
If GitHub links are unavailable, use the local fallback copies in references/fallback/.