【免费下载链接】oh-my-codexOmX - Oh My codeX: Your codex is not alone. Add hooks, agent teams, HUDs, and so much more.项目地址: https://gitcode.com/GitHub_Trending/oh/oh-my-codex
Purpose
What durable, codebase-specific outcome does this skill provide?
When to Activate
Recognition signals, scope, and explicit non-goals.
Workflow
- Inspect the named files or inputs.
- Apply the precise approach and record important assumptions.
- Verify observable behavior and report evidence.
Examples / Gotchas
Concrete invocation, edge cases, and failure recovery.
创作原则是:**优先沉淀"得来不易、非常识"的领域知识**(hard-won, non-obvious knowledge),而不是泛泛而谈的通用编程建议。当具体路径、命令、错误文本、预期证据能实质帮助执行者时,一律写入技能正文。这与 OmX 对技能的整体定位一致——在 [templates/AGENTS.md](https://link.gitcode.com/i/f3a2366b29cee4a00dbf61c3e2766dd7) 中明确"Skills are workflow commands",并要求使用前加载对应 `SKILL.md` 再按其流程执行;技能只负责具体操作契约,共享的执行/委托/状态/hook/团队/取消/验证/升级不变式全部收敛在 `templates/AGENTS.md`,不再在技能内重复。 ## 校验规则与统一错误格式 `/skill validate` 与 `add`/`edit` 落地前都会执行同一套校验基线。报告成功之前必须确认: - 文件存在; - 以 `---` frontmatter 开头; - `name` 与 `description` 均非空; - `name` 合法(符合上文正则); - 正文非空。 以下情况一律拒绝:格式错误或未正确闭合的 YAML、必需标量值被写成多行、同一作用域内出现重名、目录/文件缺失、权限失败、参数非法。 仓库侧的校验实现可在 [src/cli/setup.ts](https://link.gitcode.com/i/80eb69a96693ad30015466c6e1f730a5) 看到:`validateSkillFile(skillMdPath)` 读取 `SKILL.md` 后直接调用 `parseSkillFrontmatter(content, skillMdPath)`,把 frontmatter 解析与校验作为唯一权威入口;对应的行为锁在 [src/cli/__tests__/setup-skill-validation.test.ts](https://link.gitcode.com/i/c57b611bc09c94b569e5f8fa81e735e3) 等测试中。 错误输出必须保持统一格式,便于执行者与用户一眼定位并跟进: ```text ✗ Error: <clear message> → Suggestion: <specific next step>【免费下载链接】oh-my-codexOmX - Oh My codeX: Your codex is not alone. Add hooks, agent teams, HUDs, and so much more.项目地址: https://gitcode.com/GitHub_Trending/oh/oh-my-codex
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考