fix: update Hermes nerve skill (SKILL.md) for flat workspace and four-tuple pattern #298
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
The Hermes nerve skill at
packages/cli/skills/hermes/SKILL.mdwas written before several structural changes and is now stale.Issues to fix
1. Workspace structure (workflow section)
Currently shows folder-based roles:
Should be flat single-file roles:
Also missing:
build.tsandmoderator.tsin the file listing.2. Add createRole four-tuple pattern
Workflow 开发指南 section only shows hand-written role functions. Add the standard pattern:
Explain the four arguments: adapter (AgentFn), prompt (string or async fn), Zod schema, extract config.
3. Add createLlmAdapter
Mention that pure-LLM roles (no tool use) use
createLlmAdapter(provider)from@uncaged/nerve-workflow-utilsinstead of cursor/hermes adapter.4. Sense compute signature
LibSQLDatabaseimport should reference the actual import path used in the project (checkpackages/daemon/src/sense-runtime.tsfor the real type)SenseModuletype reference if it does not exist in@uncaged/nerve-corecompute()signature matches what the daemon actually expects5. Add AGENT.md reference
nerve initnow generatesAGENT.mdat workspace root. Mention it in the workspace structure section and in the "开发新 workflow" pattern.6. Verb-first workflow naming
Add naming convention: workflow names must be verb-first kebab-case (e.g.
solve-issue,extract-knowledge; notknowledge-extraction).7. Add
nerve agentCLI commandsThe skill itself is installed via
nerve agent inject hermesbut the CLI reference section does not list thenerve agentsubcommands:8. CLI_VERSION hardcode (agent.ts)
packages/cli/src/commands/agent.tsline 16:const CLI_VERSION = "0.5.0"is hardcoded. Read frompackage.jsoninstead:Or use a build-time constant. This prevents version drift on every release.
9. No per-workflow package.json
Update the "开发新 workflow" pattern — remove
cd workflows/<name> && pnpm install && pnpm build. The correct build command isnpm run buildfrom workspace root.Verify
pnpm -r run test— all must passConstraints
fix/295-update-hermes-skill