skill-forge
Lets a Hermes agent turn a task it keeps repeating into a tested, reusable skill, using askit to lint, scan, test and score the result before sharing it. Use when the same kind of request comes up more than twice, or when the user asks the agent to save a workflow as a skill.
Lethe044 · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add Lethe044/agentskill-kit --skill skill-forge技能说明
name: skill-forge description: Lets a Hermes agent turn a task it keeps repeating into a tested, reusable skill, using askit to lint, scan, test and score the result before sharing it. Use when the same kind of request comes up more than twice, or when the user asks the agent to save a workflow as a skill. license: MIT metadata: version: 2.0.0 author: Lethe044 tags: [hermes, skills, self-improvement, automation]
Skill forge for Hermes
A playbook for an agent that notices repeated work and captures it as a skill, with checks that do not depend on the agent's own opinion of its work.
When to use
- The same request, or the same sequence of steps, has come up three times.
- The user says "remember how to do this" or "make this a skill".
- A workflow took many tool calls and would be much shorter with a script.
Loop
-
Search first. Look through installed skills and memory for something that already covers the task. Extend an existing skill instead of writing a near copy.
-
Abstract. Remove details that belong to one run: names, paths, dates. Decide the inputs, the output and what should happen on bad input.
-
Write. Create
~/.hermes/skills/<name>/SKILL.mdwith frontmatter (name, description, license, metadata) and short instructions. Addscripts/when code is more reliable than prose. -
Test. Add a
cases.jsonfile inside atestsfolder with a happy path, an edge case and an error case, then run the checks:askit lint ~/.hermes/skills/<name> askit scan ~/.hermes/skills/<name> askit test ~/.hermes/skills/<name> askit score ~/.hermes/skills/<name> -
Refine. If the score is below 0.8, read the failing checks, fix the skill and run them again.
-
Share. When the gate passes, run
askit publish ~/.hermes/skills/<name>and tell the user where the package is. -
Remember. Store one line in memory: skill name, score and what it is for, so step 1 finds it next time.
Rules
- Never report a score you did not get from
askit score. - Never put secrets or personal data into a skill or into its test cases.
- Tell the user before running a script from a skill you did not write.
Errors
If askit is not installed, install it with pip install agentskill-toolkit and continue. If the checks cannot run,
say so and do not claim the skill is tested.