SkillPedia Skills Encyclopedia
中文 EN

技能 2026-10-03 04:03 UTC

nori-skillsets

由提交人 nori-sessions 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix(opencode): emit OpenCode-native subagent frontmatter (#571)。解决了已知运行时异常与边界错误,提升系统稳定性。

nori-sessions 1c0bd9f tilework-tech/nori-skillsets

Commit提交信息原文

fix(opencode): emit OpenCode-native subagent frontmatter (#571)

## Summary
🤖 Generated with [Nori](https://noriagentic.com/)

- Installing a skillset for OpenCode copied Claude-format subagents
verbatim into `.opencode/agents/`. OpenCode 1.15.0 rejects `tools: Read,
Grep` (it must be a record), which fails the whole config load. Its ACP
server swallows the error and returns `session/new` → `-32603 "No models
available"`, so every OpenCode session in a Nori Sessions workspace
failed to start. This was seen on the dev fleet with the Subconscious
token provider; the provider is incidental.
- Adds an `opencode-markdown` subagent target format, set on the
OpenCode agent row:
  - JSON-quoted `name` and `description`
  - `mode: subagent`
  - `model` only when it is `provider/model`
- the Claude `tools` allowlist translated into `permission:` denials for
the OpenCode tools it leaves out (read-only sandbox without an allowlist
→ deny `edit`/`bash`)
- no other keys, because OpenCode forwards unknown frontmatter keys to
the model provider as request options
- Bracketed `tools: [A, B]` lists now parse as lists (this also affects
Pi/Codex emission).
- CI fix (unrelated, pre-existing): CI installs without the lockfile and
now resolves `@clack/prompts` 1.8.1, which types cancellation as a
`unique symbol`; `unwrapPrompt` now returns `Exclude<T, symbol>`, so
`tsc` passes on both 1.0.0 and 1.8.1.
- `src/cli/features/docs.md` updated, including some stale statements.

## Test Plan
- [x] New loader tests run through the real OpenCode agent config:
allowlist → denials, no allowlist → no permission block, write-tool
mapping, bracketed lists, model qualification (markdown and TOML),
description escaping, read-only TOML, Codex-only keys dropped
- [x] `npm run lint` (eslint, prettier, tsc) and `npm test` pass (2359
passed)
- [x] E2E: built the CLI, installed the real `dev/high-autonomy`
skillset with `-a opencode`, and ran OpenCode 1.15.0 `acp` `session/new`
with that workspace as cwd. Before: `No models available`. After:
session created. `opencode debug config` shows all 6 subagents loaded as
`mode: subagent` with the expected permissions and no leaked options.

Follow-up (not in this PR): `sks download-subagent`
(`subagentDownload.ts` `flattenSubagentToAgentDir`) still copies raw
`SUBAGENT.md` into every agent's directory, bypassing per-agent formats
(affects OpenCode, Codex, Pi).

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets
🤖 Generated with [Nori](https://noriagentic.com)

Co-Authored-By: Nori <contact@tilework.tech>

---------

Co-authored-by: clifford@tilework.tech <clifford@tilework.tech>