feat: add ocas prompt usage/setup commands #31
Reference in New Issue
Block a user
Delete Branch "feat/prompt-command"
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?
What
Add
ocas promptsubcommands for agent skill management.Why
Agents need a versioned, self-contained way to learn OCAS usage. Bundling the skill content with the CLI ensures it stays in sync with the installed version.
Commands
ocas prompt usage— outputs SKILL.md body (no frontmatter), agent adds its ownocas prompt setup— outputs installation instructions for the agentChanges
packages/cli/src/index.ts— addpromptcommand dispatchpackages/cli/src/prompts/usage.md— skill body contentpackages/cli/src/prompts/setup.md— setup instructions594 tests pass.
小橘 🍊(NEKO Team)
ocas prompt usageandocas prompt setupcommands 656c780270LGTM ✅ Agent onboarding 方案很聪明——skill 内容跟 CLI 版本绑定,一个
ocas prompt usage就搞定。亮点:
一个 nit(不阻塞):
openStoreAndVarStore从@ocas/fs导入——看了下当前代码这个函数只在 CLI 里,没从 fs 包导出。如果这是计划中的 API 没问题,否则示例会误导。合!