oh-my-codex-cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
  2. package/.agent/skills/agent-kb/README.md +46 -0
  3. package/.agent/skills/agent-kb/SKILL.md +128 -0
  4. package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
  5. package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
  6. package/.agent/skills/aireview/SKILL.md +704 -0
  7. package/.agent/skills/analyze/SKILL.md +81 -0
  8. package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
  9. package/.agent/skills/architect-planner/README.md +41 -0
  10. package/.agent/skills/architect-planner/SKILL.md +539 -0
  11. package/.agent/skills/auto-mbti/SKILL.md +291 -0
  12. package/.agent/skills/autopilot/SKILL.md +222 -0
  13. package/.agent/skills/backend-patterns/SKILL.md +602 -0
  14. package/.agent/skills/bdd-generator/README.md +78 -0
  15. package/.agent/skills/bdd-generator/SKILL.md +436 -0
  16. package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
  17. package/.agent/skills/brainstorming/README.md +41 -0
  18. package/.agent/skills/brainstorming/SKILL.md +165 -0
  19. package/.agent/skills/build-fix/SKILL.md +190 -0
  20. package/.agent/skills/cancel/SKILL.md +658 -0
  21. package/.agent/skills/checkpoint/SKILL.md +94 -0
  22. package/.agent/skills/code-review/SKILL.md +273 -0
  23. package/.agent/skills/coding-standards/SKILL.md +535 -0
  24. package/.agent/skills/conductor/SKILL.md +128 -0
  25. package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
  26. package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
  27. package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
  28. package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
  29. package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
  30. package/.agent/skills/conductor/scripts/install.sh +89 -0
  31. package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
  32. package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
  33. package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
  34. package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
  35. package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
  36. package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
  37. package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
  38. package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
  39. package/.agent/skills/conductor/templates/rules/README.md +23 -0
  40. package/.agent/skills/conductor/templates/rules/agents.md +49 -0
  41. package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
  42. package/.agent/skills/conductor/templates/rules/dev.md +20 -0
  43. package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
  44. package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
  45. package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
  46. package/.agent/skills/conductor/templates/rules/performance.md +47 -0
  47. package/.agent/skills/conductor/templates/rules/research.md +26 -0
  48. package/.agent/skills/conductor/templates/rules/review.md +22 -0
  49. package/.agent/skills/conductor/templates/rules/security.md +36 -0
  50. package/.agent/skills/conductor/templates/rules/testing.md +30 -0
  51. package/.agent/skills/conductor/templates/workflow.md +333 -0
  52. package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
  53. package/.agent/skills/consensus/README.md +41 -0
  54. package/.agent/skills/consensus/SKILL.md +317 -0
  55. package/.agent/skills/content-research-writer/SKILL.md +537 -0
  56. package/.agent/skills/debug-analysis/SKILL.md +331 -0
  57. package/.agent/skills/deepinit/SKILL.md +347 -0
  58. package/.agent/skills/deepsearch/SKILL.md +56 -0
  59. package/.agent/skills/doctor/SKILL.md +158 -0
  60. package/.agent/skills/drawio/EXAMPLES.md +382 -0
  61. package/.agent/skills/drawio/QUICK_START.md +237 -0
  62. package/.agent/skills/drawio/README.md +315 -0
  63. package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
  64. package/.agent/skills/drawio/SKILL.md +1176 -0
  65. package/.agent/skills/e2e/SKILL.md +396 -0
  66. package/.agent/skills/ecomode/SKILL.md +160 -0
  67. package/.agent/skills/electron-driver/SKILL.md +144 -0
  68. package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
  69. package/.agent/skills/eval/SKILL.md +140 -0
  70. package/.agent/skills/eval-harness/SKILL.md +242 -0
  71. package/.agent/skills/evolve/SKILL.md +213 -0
  72. package/.agent/skills/frontend-design/SKILL.md +42 -0
  73. package/.agent/skills/frontend-patterns/SKILL.md +646 -0
  74. package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
  75. package/.agent/skills/git-master/SKILL.md +75 -0
  76. package/.agent/skills/help/SKILL.md +89 -0
  77. package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
  78. package/.agent/skills/local-skills-setup/SKILL.md +483 -0
  79. package/.agent/skills/log-analyzer/SKILL.md +187 -0
  80. package/.agent/skills/mcp-setup/SKILL.md +226 -0
  81. package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
  82. package/.agent/skills/multi-model-research/README.md +233 -0
  83. package/.agent/skills/multi-model-research/SKILL.md +541 -0
  84. package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
  85. package/.agent/skills/note/SKILL.md +80 -0
  86. package/.agent/skills/omc-setup/SKILL.md +219 -0
  87. package/.agent/skills/orchestrate/SKILL.md +620 -0
  88. package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
  89. package/.agent/skills/patent-workflow/README.md +455 -0
  90. package/.agent/skills/patent-workflow/SKILL.md +1036 -0
  91. package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
  92. package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
  93. package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
  94. package/.agent/skills/pattern-recognition/SKILL.md +792 -0
  95. package/.agent/skills/pipeline/SKILL.md +448 -0
  96. package/.agent/skills/plan/SKILL.md +309 -0
  97. package/.agent/skills/planning-methodology/SKILL.md +370 -0
  98. package/.agent/skills/planning-with-files/SKILL.md +210 -0
  99. package/.agent/skills/planning-with-files/examples.md +202 -0
  100. package/.agent/skills/planning-with-files/reference.md +218 -0
  101. package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
  102. package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
  103. package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
  104. package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
  105. package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
  106. package/.agent/skills/planning-with-files/templates/findings.md +95 -0
  107. package/.agent/skills/planning-with-files/templates/progress.md +114 -0
  108. package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
  109. package/.agent/skills/project-analyze/CLAUDE.md +18 -0
  110. package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
  111. package/.agent/skills/project-analyze/README.md +42 -0
  112. package/.agent/skills/project-analyze/SKILL.md +289 -0
  113. package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
  114. package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
  115. package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
  116. package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
  117. package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
  118. package/.agent/skills/project-session-manager/SKILL.md +428 -0
  119. package/.agent/skills/project-session-manager/lib/config.sh +86 -0
  120. package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
  121. package/.agent/skills/project-session-manager/lib/session.sh +132 -0
  122. package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
  123. package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
  124. package/.agent/skills/project-session-manager/psm.sh +629 -0
  125. package/.agent/skills/project-session-manager/templates/feature.md +56 -0
  126. package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
  127. package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
  128. package/.agent/skills/project-session-manager/templates/projects.json +19 -0
  129. package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
  130. package/.agent/skills/quality-check/README.md +50 -0
  131. package/.agent/skills/quality-check/SKILL.md +240 -0
  132. package/.agent/skills/quality-check/SKILL.md.backup +238 -0
  133. package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
  134. package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
  135. package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
  136. package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
  137. package/.agent/skills/quality-validation/SKILL.md +519 -0
  138. package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
  139. package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
  140. package/.agent/skills/ralph/SKILL.md +236 -0
  141. package/.agent/skills/ralph-init/SKILL.md +78 -0
  142. package/.agent/skills/ralplan/SKILL.md +58 -0
  143. package/.agent/skills/refactor-clean/SKILL.md +49 -0
  144. package/.agent/skills/release/SKILL.md +84 -0
  145. package/.agent/skills/research/SKILL.md +526 -0
  146. package/.agent/skills/research-methodology/SKILL.md +268 -0
  147. package/.agent/skills/review/SKILL.md +53 -0
  148. package/.agent/skills/security-review/SKILL.md +509 -0
  149. package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
  150. package/.agent/skills/setup-pm/SKILL.md +102 -0
  151. package/.agent/skills/skill/SKILL.md +424 -0
  152. package/.agent/skills/skill-create/SKILL.md +209 -0
  153. package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
  154. package/.agent/skills/skill-debugger/README.md +44 -0
  155. package/.agent/skills/skill-debugger/SKILL.md +326 -0
  156. package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
  157. package/.agent/skills/skill-development/SKILL.md +661 -0
  158. package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
  159. package/.agent/skills/skill-doc-generator/README.md +37 -0
  160. package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
  161. package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
  162. package/.agent/skills/skill-quality-analyzer/README.md +61 -0
  163. package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
  164. package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
  165. package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
  166. package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
  167. package/.agent/skills/skill-tester/README.md +46 -0
  168. package/.agent/skills/skill-tester/SKILL.md +345 -0
  169. package/.agent/skills/start-dev/SKILL.md +701 -0
  170. package/.agent/skills/swarm/SKILL.md +691 -0
  171. package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
  172. package/.agent/skills/task-kb-record/SKILL.md +417 -0
  173. package/.agent/skills/tdd/SKILL.md +446 -0
  174. package/.agent/skills/tdd-generator/DEMO.md +516 -0
  175. package/.agent/skills/tdd-generator/README.md +89 -0
  176. package/.agent/skills/tdd-generator/SKILL.md +278 -0
  177. package/.agent/skills/tdd-workflow/SKILL.md +424 -0
  178. package/.agent/skills/test-coverage/SKILL.md +48 -0
  179. package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
  180. package/.agent/skills/thinkdeep/README.md +41 -0
  181. package/.agent/skills/thinkdeep/SKILL.md +343 -0
  182. package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
  183. package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
  184. package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
  185. package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
  186. package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
  187. package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
  188. package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  189. package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  190. package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  191. package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  192. package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  193. package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  194. package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  195. package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  196. package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
  197. package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
  198. package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  199. package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
  200. package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
  201. package/.agent/skills/ultrapilot/SKILL.md +647 -0
  202. package/.agent/skills/ultraqa/SKILL.md +152 -0
  203. package/.agent/skills/ultrawork/SKILL.md +123 -0
  204. package/.agent/skills/update-codemaps/SKILL.md +38 -0
  205. package/.agent/skills/update-docs/SKILL.md +52 -0
  206. package/.agent/skills/verification-loop/SKILL.md +140 -0
  207. package/.agent/skills/verify/SKILL.md +80 -0
  208. package/.agent/skills/writer-memory/SKILL.md +459 -0
  209. package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
  210. package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
  211. package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
  212. package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
  213. package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
  214. package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
  215. package/.governance/skill-lint.allowlist +4 -0
  216. package/.governance/skill-llm.allowlist +4 -0
  217. package/AGENTS.md +59 -0
  218. package/LICENSE +21 -0
  219. package/README.md +169 -0
  220. package/README.zh.md +145 -0
  221. package/bin/omcodex.js +8 -0
  222. package/commands/conductor/implement.toml +358 -0
  223. package/commands/conductor/newTrack.toml +142 -0
  224. package/commands/conductor/revert.toml +123 -0
  225. package/commands/conductor/setup.toml +429 -0
  226. package/commands/conductor/status.toml +57 -0
  227. package/docs/ALIGNMENT.md +40 -0
  228. package/docs/CODEX.md +133 -0
  229. package/docs/NOTIFY.md +81 -0
  230. package/docs/SKILL_GOVERNANCE.md +72 -0
  231. package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
  232. package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
  233. package/package.json +50 -0
  234. package/prompts/architect.md +105 -0
  235. package/prompts/executor.md +134 -0
  236. package/prompts/planner.md +113 -0
  237. package/scripts/check-skill-governance.sh +84 -0
  238. package/scripts/check-skill-llm-governance.js +302 -0
  239. package/scripts/eval-skills.js +217 -0
  240. package/scripts/generate-catalog-docs.js +95 -0
  241. package/scripts/generate-codex-mcp-config.sh +22 -0
  242. package/scripts/install-codex-force.sh +5 -0
  243. package/scripts/install-codex-incremental.sh +5 -0
  244. package/scripts/install-codex.sh +79 -0
  245. package/scripts/notify-dispatch.js +15 -0
  246. package/scripts/setup-package-manager.js +137 -0
  247. package/src/catalog/generated/public-catalog.json +547 -0
  248. package/src/catalog/manifest.json +542 -0
  249. package/src/catalog/reader.js +43 -0
  250. package/src/catalog/schema.js +79 -0
  251. package/src/cli/doctor.js +62 -0
  252. package/src/cli/index.js +85 -0
  253. package/src/cli/notify.js +127 -0
  254. package/src/cli/route.js +43 -0
  255. package/src/cli/setup.js +155 -0
  256. package/src/cli/team.js +125 -0
  257. package/src/config/generator.js +119 -0
  258. package/src/mcp/memory-server.js +241 -0
  259. package/src/mcp/state-server.js +112 -0
  260. package/src/mcp/trace-server.js +168 -0
  261. package/src/notify/dispatch.js +74 -0
  262. package/src/notify/extensibility/dispatcher.js +113 -0
  263. package/src/notify/extensibility/events.js +15 -0
  264. package/src/notify/extensibility/loader.js +54 -0
  265. package/src/router/skill-router.js +90 -0
  266. package/src/team/auto-advance.js +72 -0
  267. package/src/team/orchestrator.js +82 -0
  268. package/src/team/state-store.js +33 -0
  269. package/src/utils/paths.js +33 -0
  270. package/templates/AGENTS.md +15 -0
  271. package/templates/catalog-manifest.json +542 -0
  272. package/templates/code_styleguides/csharp.md +115 -0
  273. package/templates/code_styleguides/dart.md +238 -0
  274. package/templates/code_styleguides/general.md +23 -0
  275. package/templates/code_styleguides/go.md +48 -0
  276. package/templates/code_styleguides/html-css.md +49 -0
  277. package/templates/code_styleguides/javascript.md +51 -0
  278. package/templates/code_styleguides/python.md +37 -0
  279. package/templates/code_styleguides/typescript.md +43 -0
  280. package/templates/rules/README.md +23 -0
  281. package/templates/rules/agents.md +49 -0
  282. package/templates/rules/coding-style.md +70 -0
  283. package/templates/rules/dev.md +20 -0
  284. package/templates/rules/git-workflow.md +45 -0
  285. package/templates/rules/notify.md +6 -0
  286. package/templates/rules/patterns.md +55 -0
  287. package/templates/rules/performance.md +47 -0
  288. package/templates/rules/research.md +26 -0
  289. package/templates/rules/review.md +22 -0
  290. package/templates/rules/security.md +36 -0
  291. package/templates/rules/testing.md +30 -0
  292. package/templates/workflow.md +333 -0
@@ -0,0 +1,661 @@
1
+ ---
2
+ name: Skill Development
3
+ description: Create effective Codex skills with specialized knowledge, workflows, and tool integrations. Covers structure and documentation.
4
+ version: 0.1.0
5
+ ---
6
+
7
+ # Skill Development for Codex CLI
8
+
9
+ This skill provides guidance for creating effective skills for Codex CLI environments.
10
+
11
+ > Compatibility note: Any plugin-oriented examples in this document are legacy references. Prefer the Codex skill locations described below.
12
+
13
+ ## Agent Workflow
14
+
15
+ To create high-quality skills, follow this **Hybrid Workflow**:
16
+
17
+ 1. **Requirement Gathering (Soft Skills)**: Before writing any files, ask the user for **concrete examples** of how they intend to use the skill.
18
+ * *Agent Question*: "Can you give me 3 examples of what you would say to trigger this skill?"
19
+ 2. **Structural Planning (Hard Patterns)**: Once requirements are clear, plan the file structure using the **Standard Skill Structure** defined below.
20
+ * *Action*: Decide if you need `scripts/`, `references/`, or just `SKILL.md`.
21
+ 3. **Implementation (Hybrid)**: Write the content.
22
+ * *Hard Rule*: Use correct YAML frontmatter and folder names.
23
+ * *Soft Rule*: write in the "Imperative/Infinitive" style (see Writing Style Requirements).
24
+
25
+ ## Integration with `skill-create`
26
+
27
+ Use this skill as the refinement stage after `$skill-create` generates drafts.
28
+
29
+ Pipeline:
30
+ 1. Generate draft skill(s) with `$skill-create`
31
+ 2. Refine each draft with `$skill-development`
32
+ 3. Run `$skill-quality-analyzer` for structure and trigger quality
33
+ 4. Run `$skill-tester` for behavioral validation
34
+ 5. Keep only skills that pass governance and quality gates
35
+
36
+ ## About Skills
37
+
38
+ Skills are modular, self-contained packages that extend Codex's capabilities by providing
39
+ specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific
40
+ domains or tasks—they transform Codex from a general-purpose agent into a specialized agent
41
+ equipped with procedural knowledge that no model can fully possess.
42
+
43
+ ### What Skills Provide
44
+
45
+ 1. Specialized workflows - Multi-step procedures for specific domains
46
+ 2. Tool integrations - Instructions for working with specific file formats or APIs
47
+ 3. Domain expertise - Company-specific knowledge, schemas, business logic
48
+ 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
49
+
50
+ ### Anatomy of a Skill
51
+
52
+ Every skill consists of a required SKILL.md file and optional bundled resources:
53
+
54
+ ```
55
+ skill-name/
56
+ ├── SKILL.md (required)
57
+ │ ├── YAML frontmatter metadata (required)
58
+ │ │ ├── name: (required)
59
+ │ │ └── description: (required)
60
+ │ └── Markdown instructions (required)
61
+ └── Bundled Resources (optional)
62
+ ├── scripts/ - Executable code (Python/Bash/etc.)
63
+ ├── references/ - Documentation intended to be loaded into context as needed
64
+ └── assets/ - Files used in output (templates, icons, fonts, etc.)
65
+ ```
66
+
67
+ #### SKILL.md (required)
68
+
69
+ **Metadata Quality:** The `name` and `description` in YAML frontmatter determine when Codex will use the skill. Be specific about what the skill does and when to use it. Use the third-person (e.g. "This skill should be used when..." instead of "Use this skill when...").
70
+
71
+ #### Bundled Resources (optional)
72
+
73
+ ##### Scripts (`scripts/`)
74
+
75
+ Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
76
+
77
+ - **When to include**: When the same code is being rewritten repeatedly or deterministic reliability is needed
78
+ - **Example**: `scripts/rotate_pdf.py` for PDF rotation tasks
79
+ - **Benefits**: Token efficient, deterministic, may be executed without loading into context
80
+ - **Note**: Scripts may still need to be read by Codex for patching or environment-specific adjustments
81
+
82
+ ##### References (`references/`)
83
+
84
+ Documentation and reference material intended to be loaded as needed into context to inform Codex's process and thinking.
85
+
86
+ - **When to include**: For documentation that Codex should reference while working
87
+ - **Examples**: `references/finance.md` for financial schemas, `references/mnda.md` for company NDA template, `references/policies.md` for company policies, `references/api_docs.md` for API specifications
88
+ - **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
89
+ - **Benefits**: Keeps SKILL.md lean, loaded only when Codex determines it's needed
90
+ - **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md
91
+ - **Avoid duplication**: Information should live in either SKILL.md or references files, not both. Prefer references files for detailed information unless it's truly core to the skill—this keeps SKILL.md lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in SKILL.md; move detailed reference material, schemas, and examples to references files.
92
+
93
+ ##### Assets (`assets/`)
94
+
95
+ Files not intended to be loaded into context, but rather used within the output Codex produces.
96
+
97
+ - **When to include**: When the skill needs files that will be used in the final output
98
+ - **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for PowerPoint templates, `assets/frontend-template/` for HTML/React boilerplate, `assets/font.ttf` for typography
99
+ - **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
100
+ - **Benefits**: Separates output resources from documentation, enables Codex to use files without loading them into context
101
+
102
+ ### Progressive Disclosure Design Principle
103
+
104
+ Skills use a three-level loading system to manage context efficiently:
105
+
106
+ 1. **Metadata (name + description)** - Always in context (~100 words)
107
+ 2. **SKILL.md body** - When skill triggers (<5k words)
108
+ 3. **Bundled resources** - As needed by Codex (Unlimited*)
109
+
110
+ *Unlimited because scripts can be executed without reading into context window.
111
+
112
+ ## Skill Creation Process
113
+
114
+ To create a skill, follow the "Skill Creation Process" in order, skipping steps only if there is a clear reason why they are not applicable.
115
+
116
+ ### Step 1: Understanding the Skill with Concrete Examples
117
+
118
+ Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
119
+
120
+ To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback.
121
+
122
+ For example, when building an image-editor skill, relevant questions include:
123
+
124
+ - "What functionality should the image-editor skill support? Editing, rotating, anything else?"
125
+ - "Can you give some examples of how this skill would be used?"
126
+ - "I can imagine users asking for things like 'Remove the red-eye from this image' or 'Rotate this image'. Are there other ways you imagine this skill being used?"
127
+ - "What would a user say that should trigger this skill?"
128
+
129
+ To avoid overwhelming users, avoid asking too many questions in a single message. Start with the most important questions and follow up as needed for better effectiveness.
130
+
131
+ Conclude this step when there is a clear sense of the functionality the skill should support.
132
+
133
+ ### Step 2: Planning the Reusable Skill Contents
134
+
135
+ To turn concrete examples into an effective skill, analyze each example by:
136
+
137
+ 1. Considering how to execute on the example from scratch
138
+ 2. Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly
139
+
140
+ Example: When building a `pdf-editor` skill to handle queries like "Help me rotate this PDF," the analysis shows:
141
+
142
+ 1. Rotating a PDF requires re-writing the same code each time
143
+ 2. A `scripts/rotate_pdf.py` script would be helpful to store in the skill
144
+
145
+ Example: When designing a `frontend-webapp-builder` skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows:
146
+
147
+ 1. Writing a frontend webapp requires the same boilerplate HTML/React each time
148
+ 2. An `assets/hello-world/` template containing the boilerplate HTML/React project files would be helpful to store in the skill
149
+
150
+ Example: When building a `big-query` skill to handle queries like "How many users have logged in today?" the analysis shows:
151
+
152
+ 1. Querying BigQuery requires re-discovering the table schemas and relationships each time
153
+ 2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill
154
+
155
+ **For Codex CLI skills:** When building a hooks-related skill, the analysis shows:
156
+ 1. Developers repeatedly need to validate hooks.json and test hook scripts
157
+ 2. `scripts/validate-hook-schema.sh` and `scripts/test-hook.sh` utilities would be helpful
158
+ 3. `references/patterns.md` for detailed hook patterns to avoid bloating SKILL.md
159
+
160
+ To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
161
+
162
+ ### Step 3: Create Skill Structure
163
+
164
+ For Codex CLI, create the skill directory structure:
165
+
166
+ ```bash
167
+ mkdir -p skill-name/{references,examples,scripts}
168
+ touch skill-name/SKILL.md
169
+ ```
170
+
171
+ **Note:** Unlike the generic skill-creator which uses `init_skill.py`, Codex CLI skills are created directly in a skill directory and then placed under `~/.codex/skills/`, `<repo>/.codex/skills/`, or `<repo>/.agents/skills/`.
172
+
173
+ ### Step 4: Edit the Skill
174
+
175
+ When editing the (newly-created or existing) skill, remember that the skill is being created for another instance of Codex to use. Focus on including information that would be beneficial and non-obvious to Codex. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Codex instance execute these tasks more effectively.
176
+
177
+ #### Start with Reusable Skill Contents
178
+
179
+ To begin implementation, start with the reusable resources identified above: `scripts/`, `references/`, and `assets/` files. Note that this step may require user input. For example, when implementing a `brand-guidelines` skill, the user may need to provide brand assets or templates to store in `assets/`, or documentation to store in `references/`.
180
+
181
+ Also, delete any example files and directories not needed for the skill. Create only the directories you actually need (references/, examples/, scripts/).
182
+
183
+ #### Update SKILL.md
184
+
185
+ **Writing Style:** Write the entire skill using **imperative/infinitive form** (verb-first instructions), not second person. Use objective, instructional language (e.g., "To accomplish X, do Y" rather than "You should do X" or "If you need to do X"). This maintains consistency and clarity for AI consumption.
186
+
187
+ **Description (Frontmatter):** Use third-person format with specific trigger phrases:
188
+
189
+ ```yaml
190
+ ---
191
+ name: Skill Name
192
+ description: This skill should be used when the user asks to "specific phrase 1", "specific phrase 2", "specific phrase 3". Include exact phrases users would say that should trigger this skill. Be concrete and specific.
193
+ version: 0.1.0
194
+ ---
195
+ ```
196
+
197
+ **Good description examples:**
198
+ ```yaml
199
+ description: This skill should be used when the user asks to "create a validation rule", "define a skill trigger", "validate tool use instructions", or "design prompt guardrails".
200
+ ```
201
+
202
+ **Bad description examples:**
203
+ ```yaml
204
+ description: Use this skill when working with hooks. # Wrong person, vague
205
+ description: Load when user needs hook help. # Not third person
206
+ description: Provides hook guidance. # No trigger phrases
207
+ ```
208
+
209
+ To complete SKILL.md body, answer the following questions:
210
+
211
+ 1. What is the purpose of the skill, in a few sentences?
212
+ 2. When should the skill be used? (Include this in frontmatter description with specific triggers)
213
+ 3. In practice, how should Codex use the skill? All reusable skill contents developed above should be referenced so that Codex knows how to use them.
214
+
215
+ **Keep SKILL.md lean:** Target 1,500-2,000 words for the body. Move detailed content to references/:
216
+ - Detailed patterns → `references/patterns.md`
217
+ - Advanced techniques → `references/advanced.md`
218
+ - Migration guides → `references/migration.md`
219
+ - API references → `references/api-reference.md`
220
+
221
+ **Reference resources in SKILL.md:**
222
+ ```markdown
223
+ ## Additional Resources
224
+
225
+ ### Reference Files
226
+
227
+ For detailed patterns and techniques, consult:
228
+ - **`references/patterns.md`** - Common patterns
229
+ - **`references/advanced.md`** - Advanced use cases
230
+
231
+ ### Example Files
232
+
233
+ Working examples in `examples/`:
234
+ - **`example-script.sh`** - Working example
235
+ ```
236
+
237
+ ### Step 5: Validate and Test
238
+
239
+ **For Codex CLI skills, validation is different from generic skills:**
240
+
241
+ 1. **Check structure**: Skill directory in `~/.codex/skills/skill-name/`, `<repo>/.codex/skills/skill-name/`, or `<repo>/.agents/skills/skill-name/`
242
+ 2. **Validate SKILL.md**: Has frontmatter with name and description
243
+ 3. **Check trigger phrases**: Description includes specific user queries
244
+ 4. **Verify writing style**: Body uses imperative/infinitive form, not second person
245
+ 5. **Test progressive disclosure**: SKILL.md is lean (~1,500-2,000 words), detailed content in references/
246
+ 6. **Check references**: All referenced files exist
247
+ 7. **Validate examples**: Examples are complete and correct
248
+ 8. **Test scripts**: Scripts are executable and work correctly
249
+
250
+ **Use the skill-reviewer agent:**
251
+ ```
252
+ Ask: "Review my skill and check if it follows best practices"
253
+ ```
254
+
255
+ The skill-reviewer agent will check description quality, content organization, and progressive disclosure.
256
+
257
+ ### Step 6: Iterate
258
+
259
+ After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed.
260
+
261
+ **Iteration workflow:**
262
+ 1. Use the skill on real tasks
263
+ 2. Notice struggles or inefficiencies
264
+ 3. Identify how SKILL.md or bundled resources should be updated
265
+ 4. Implement changes and test again
266
+
267
+ **Common improvements:**
268
+ - Strengthen trigger phrases in description
269
+ - Move long sections from SKILL.md to references/
270
+ - Add missing examples or scripts
271
+ - Clarify ambiguous instructions
272
+ - Add edge case handling
273
+
274
+ ## Codex CLI Considerations
275
+
276
+ ### Skill Locations
277
+
278
+ Skills for Codex CLI should live in one of these locations:
279
+
280
+ ```
281
+ ~/.codex/skills/
282
+ └── my-skill/
283
+ ├── SKILL.md
284
+ ├── references/
285
+ ├── examples/
286
+ └── scripts/
287
+
288
+ <repo>/.agent/skills/
289
+ └── my-skill/
290
+ ├── SKILL.md
291
+ ├── references/
292
+ ├── examples/
293
+ └── scripts/
294
+ ```
295
+
296
+ ### Auto-Discovery
297
+
298
+ Codex automatically discovers skills:
299
+ - Scans `skills/` directory
300
+ - Finds subdirectories containing `SKILL.md`
301
+ - Loads skill metadata (name + description) always
302
+ - Loads SKILL.md body when skill triggers
303
+ - Loads references/examples when needed
304
+
305
+ ### No Packaging Needed
306
+
307
+ Skills are plain directories. Install globally via `~/.codex/skills/` or keep project-local under `.codex/skills/` / `.agents/skills/`.
308
+
309
+ ### Testing in Codex CLI
310
+
311
+ Test skills by opening Codex in the target repo and invoking explicit triggers:
312
+
313
+ ```bash
314
+ # Example explicit invocation
315
+ $skill-name <task>
316
+ ```
317
+
318
+ ## Examples from Existing Skill Packs
319
+
320
+ Study existing skill packs as examples of best practices:
321
+
322
+ **hook-development skill:**
323
+ - Excellent trigger phrases: "create a validation rule", "define trigger phrases", etc.
324
+ - Lean SKILL.md (1,651 words)
325
+ - 3 references/ files for detailed content
326
+ - 3 examples/ of working hooks
327
+ - 3 scripts/ utilities
328
+
329
+ **agent-development skill:**
330
+ - Strong triggers: "create an agent", "agent frontmatter", etc.
331
+ - Focused SKILL.md (1,438 words)
332
+ - References include the AI generation prompt from Codex
333
+ - Complete agent examples
334
+
335
+ **settings-management skill:**
336
+ - Specific triggers: "settings files", "local config", "YAML frontmatter"
337
+ - References show real implementations (multi-agent-swarm, ralph-wiggum)
338
+ - Working parsing scripts
339
+
340
+ Each demonstrates progressive disclosure and strong triggering.
341
+
342
+ ## Progressive Disclosure in Practice
343
+
344
+ ### What Goes in SKILL.md
345
+
346
+ **Include (always loaded when skill triggers):**
347
+ - Core concepts and overview
348
+ - Essential procedures and workflows
349
+ - Quick reference tables
350
+ - Pointers to references/examples/scripts
351
+ - Most common use cases
352
+
353
+ **Keep under 3,000 words, ideally 1,500-2,000 words**
354
+
355
+ ### What Goes in references/
356
+
357
+ **Move to references/ (loaded as needed):**
358
+ - Detailed patterns and advanced techniques
359
+ - Comprehensive API documentation
360
+ - Migration guides
361
+ - Edge cases and troubleshooting
362
+ - Extensive examples and walkthroughs
363
+
364
+ **Each reference file can be large (2,000-5,000+ words)**
365
+
366
+ ### What Goes in examples/
367
+
368
+ **Working code examples:**
369
+ - Complete, runnable scripts
370
+ - Configuration files
371
+ - Template files
372
+ - Real-world usage examples
373
+
374
+ **Users can copy and adapt these directly**
375
+
376
+ ### What Goes in scripts/
377
+
378
+ **Utility scripts:**
379
+ - Validation tools
380
+ - Testing helpers
381
+ - Parsing utilities
382
+ - Automation scripts
383
+
384
+ **Should be executable and documented**
385
+
386
+ ## Writing Style Requirements
387
+
388
+ ### Imperative/Infinitive Form
389
+
390
+ Write using verb-first instructions, not second person:
391
+
392
+ **Correct (imperative):**
393
+ ```
394
+ To create a hook, define the event type.
395
+ Configure the MCP server with authentication.
396
+ Validate settings before use.
397
+ ```
398
+
399
+ **Incorrect (second person):**
400
+ ```
401
+ You should create a hook by defining the event type.
402
+ You need to configure the MCP server.
403
+ You must validate settings before use.
404
+ ```
405
+
406
+ ### Third-Person in Description
407
+
408
+ The frontmatter description must use third person:
409
+
410
+ **Correct:**
411
+ ```yaml
412
+ description: This skill should be used when the user asks to "create X", "configure Y"...
413
+ ```
414
+
415
+ **Incorrect:**
416
+ ```yaml
417
+ description: Use this skill when you want to create X...
418
+ description: Load this skill when user asks...
419
+ ```
420
+
421
+ ### Objective, Instructional Language
422
+
423
+ Focus on what to do, not who should do it:
424
+
425
+ **Correct:**
426
+ ```
427
+ Parse the frontmatter using sed.
428
+ Extract fields with grep.
429
+ Validate values before use.
430
+ ```
431
+
432
+ **Incorrect:**
433
+ ```
434
+ You can parse the frontmatter...
435
+ Codex should extract fields...
436
+ The user might validate values...
437
+ ```
438
+
439
+ ## Validation Checklist
440
+
441
+ Before finalizing a skill:
442
+
443
+ **Structure:**
444
+ - [ ] SKILL.md file exists with valid YAML frontmatter
445
+ - [ ] Frontmatter has `name` and `description` fields
446
+ - [ ] Markdown body is present and substantial
447
+ - [ ] Referenced files actually exist
448
+
449
+ **Description Quality:**
450
+ - [ ] Uses third person ("This skill should be used when...")
451
+ - [ ] Includes specific trigger phrases users would say
452
+ - [ ] Lists concrete scenarios ("create X", "configure Y")
453
+ - [ ] Not vague or generic
454
+
455
+ **Content Quality:**
456
+ - [ ] SKILL.md body uses imperative/infinitive form
457
+ - [ ] Body is focused and lean (1,500-2,000 words ideal, <5k max)
458
+ - [ ] Detailed content moved to references/
459
+ - [ ] Examples are complete and working
460
+ - [ ] Scripts are executable and documented
461
+
462
+ **Progressive Disclosure:**
463
+ - [ ] Core concepts in SKILL.md
464
+ - [ ] Detailed docs in references/
465
+ - [ ] Working code in examples/
466
+ - [ ] Utilities in scripts/
467
+ - [ ] SKILL.md references these resources
468
+
469
+ **Testing:**
470
+ - [ ] Skill triggers on expected user queries
471
+ - [ ] Content is helpful for intended tasks
472
+ - [ ] No duplicated information across files
473
+ - [ ] References load when needed
474
+
475
+ ## Common Mistakes to Avoid
476
+
477
+ ### Mistake 1: Weak Trigger Description
478
+
479
+ ❌ **Bad:**
480
+ ```yaml
481
+ description: Provides guidance for working with hooks.
482
+ ```
483
+
484
+ **Why bad:** Vague, no specific trigger phrases, not third person
485
+
486
+ ✅ **Good:**
487
+ ```yaml
488
+ description: This skill should be used when the user asks to "create a validation rule", "define trigger conditions", or "validate tool instructions". Provides comprehensive guidance with concrete trigger phrases.
489
+ ```
490
+
491
+ **Why good:** Third person, specific phrases, concrete scenarios
492
+
493
+ ### Mistake 2: Too Much in SKILL.md
494
+
495
+ ❌ **Bad:**
496
+ ```
497
+ skill-name/
498
+ └── SKILL.md (8,000 words - everything in one file)
499
+ ```
500
+
501
+ **Why bad:** Bloats context when skill loads, detailed content always loaded
502
+
503
+ ✅ **Good:**
504
+ ```
505
+ skill-name/
506
+ ├── SKILL.md (1,800 words - core essentials)
507
+ └── references/
508
+ ├── patterns.md (2,500 words)
509
+ └── advanced.md (3,700 words)
510
+ ```
511
+
512
+ **Why good:** Progressive disclosure, detailed content loaded only when needed
513
+
514
+ ### Mistake 3: Second Person Writing
515
+
516
+ ❌ **Bad:**
517
+ ```markdown
518
+ You should start by reading the configuration file.
519
+ You need to validate the input.
520
+ You can use the grep tool to search.
521
+ ```
522
+
523
+ **Why bad:** Second person, not imperative form
524
+
525
+ ✅ **Good:**
526
+ ```markdown
527
+ Start by reading the configuration file.
528
+ Validate the input before processing.
529
+ Use the grep tool to search for patterns.
530
+ ```
531
+
532
+ **Why good:** Imperative form, direct instructions
533
+
534
+ ### Mistake 4: Missing Resource References
535
+
536
+ ❌ **Bad:**
537
+ ```markdown
538
+ # SKILL.md
539
+
540
+ [Core content]
541
+
542
+ [No mention of references/ or examples/]
543
+ ```
544
+
545
+ **Why bad:** Codex doesn't know references exist
546
+
547
+ ✅ **Good:**
548
+ ```markdown
549
+ # SKILL.md
550
+
551
+ [Core content]
552
+
553
+ ## Additional Resources
554
+
555
+ ### Reference Files
556
+ - **`references/patterns.md`** - Detailed patterns
557
+ - **`references/advanced.md`** - Advanced techniques
558
+
559
+ ### Examples
560
+ - **`examples/script.sh`** - Working example
561
+ ```
562
+
563
+ **Why good:** Codex knows where to find additional information
564
+
565
+ ## Quick Reference
566
+
567
+ ### Minimal Skill
568
+
569
+ ```
570
+ skill-name/
571
+ └── SKILL.md
572
+ ```
573
+
574
+ Good for: Simple knowledge, no complex resources needed
575
+
576
+ ### Standard Skill (Recommended)
577
+
578
+ ```
579
+ skill-name/
580
+ ├── SKILL.md
581
+ ├── references/
582
+ │ └── detailed-guide.md
583
+ └── examples/
584
+ └── working-example.sh
585
+ ```
586
+
587
+ Good for: Most Codex skills with detailed documentation
588
+
589
+ ### Complete Skill
590
+
591
+ ```
592
+ skill-name/
593
+ ├── SKILL.md
594
+ ├── references/
595
+ │ ├── patterns.md
596
+ │ └── advanced.md
597
+ ├── examples/
598
+ │ ├── example1.sh
599
+ │ └── example2.json
600
+ └── scripts/
601
+ └── validate.sh
602
+ ```
603
+
604
+ Good for: Complex domains with validation utilities
605
+
606
+ ## Best Practices Summary
607
+
608
+ ✅ **DO:**
609
+ - Use third-person in description ("This skill should be used when...")
610
+ - Include specific trigger phrases ("create X", "configure Y")
611
+ - Keep SKILL.md lean (1,500-2,000 words)
612
+ - Use progressive disclosure (move details to references/)
613
+ - Write in imperative/infinitive form
614
+ - Reference supporting files clearly
615
+ - Provide working examples
616
+ - Create utility scripts for common operations
617
+ - Study high-quality local skills as templates
618
+
619
+ ❌ **DON'T:**
620
+ - Use second person anywhere
621
+ - Have vague trigger conditions
622
+ - Put everything in SKILL.md (>3,000 words without references/)
623
+ - Write in second person ("You should...")
624
+ - Leave resources unreferenced
625
+ - Include broken or incomplete examples
626
+ - Skip validation
627
+
628
+ ## Additional Resources
629
+
630
+ ### Study These Skills
631
+
632
+ Reference skills that demonstrate best practices:
633
+ - `../hook-development/` - Progressive disclosure, utilities
634
+ - `../agent-development/` - AI-assisted creation, references
635
+ - `../mcp-integration/` - Comprehensive references
636
+ - `../skill-quality-analyzer/` - Real-world scoring examples
637
+ - `../command-development/` - Clear critical concepts
638
+ - `../skill-development/` - Good organization
639
+
640
+ ### Reference Files
641
+
642
+ For complete skill-creator methodology:
643
+ - **`references/skill-creator-original.md`** - Full original skill-creator content
644
+
645
+ ## Implementation Workflow
646
+
647
+ To create a skill for Codex CLI:
648
+
649
+ 1. **Understand use cases**: Identify concrete examples of skill usage
650
+ 2. **Plan resources**: Determine what scripts/references/examples needed
651
+ 3. **Create structure**: `mkdir -p skills/skill-name/{references,examples,scripts}`
652
+ 4. **Write SKILL.md**:
653
+ - Frontmatter with third-person description and trigger phrases
654
+ - Lean body (1,500-2,000 words) in imperative form
655
+ - Reference supporting files
656
+ 5. **Add resources**: Create references/, examples/, scripts/ as needed
657
+ 6. **Validate**: Check description, writing style, organization
658
+ 7. **Test**: Verify skill loads on expected triggers
659
+ 8. **Iterate**: Improve based on usage
660
+
661
+ Focus on strong trigger descriptions, progressive disclosure, and imperative writing style for effective skills that load when needed and provide targeted guidance.