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,209 @@
1
+ ---
2
+ name: skill-creator
3
+ description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ # Skill Creator
8
+
9
+ This skill provides guidance for creating effective skills.
10
+
11
+ ## About Skills
12
+
13
+ Skills are modular, self-contained packages that extend Claude's capabilities by providing
14
+ specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific
15
+ domains or tasks—they transform Claude from a general-purpose agent into a specialized agent
16
+ equipped with procedural knowledge that no model can fully possess.
17
+
18
+ ### What Skills Provide
19
+
20
+ 1. Specialized workflows - Multi-step procedures for specific domains
21
+ 2. Tool integrations - Instructions for working with specific file formats or APIs
22
+ 3. Domain expertise - Company-specific knowledge, schemas, business logic
23
+ 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
24
+
25
+ ### Anatomy of a Skill
26
+
27
+ Every skill consists of a required SKILL.md file and optional bundled resources:
28
+
29
+ ```
30
+ skill-name/
31
+ ├── SKILL.md (required)
32
+ │ ├── YAML frontmatter metadata (required)
33
+ │ │ ├── name: (required)
34
+ │ │ └── description: (required)
35
+ │ └── Markdown instructions (required)
36
+ └── Bundled Resources (optional)
37
+ ├── scripts/ - Executable code (Python/Bash/etc.)
38
+ ├── references/ - Documentation intended to be loaded into context as needed
39
+ └── assets/ - Files used in output (templates, icons, fonts, etc.)
40
+ ```
41
+
42
+ #### SKILL.md (required)
43
+
44
+ **Metadata Quality:** The `name` and `description` in YAML frontmatter determine when Claude 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...").
45
+
46
+ #### Bundled Resources (optional)
47
+
48
+ ##### Scripts (`scripts/`)
49
+
50
+ Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
51
+
52
+ - **When to include**: When the same code is being rewritten repeatedly or deterministic reliability is needed
53
+ - **Example**: `scripts/rotate_pdf.py` for PDF rotation tasks
54
+ - **Benefits**: Token efficient, deterministic, may be executed without loading into context
55
+ - **Note**: Scripts may still need to be read by Claude for patching or environment-specific adjustments
56
+
57
+ ##### References (`references/`)
58
+
59
+ Documentation and reference material intended to be loaded as needed into context to inform Claude's process and thinking.
60
+
61
+ - **When to include**: For documentation that Claude should reference while working
62
+ - **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
63
+ - **Use cases**: Database schemas, API documentation, domain knowledge, company policies, detailed workflow guides
64
+ - **Benefits**: Keeps SKILL.md lean, loaded only when Claude determines it's needed
65
+ - **Best practice**: If files are large (>10k words), include grep search patterns in SKILL.md
66
+ - **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.
67
+
68
+ ##### Assets (`assets/`)
69
+
70
+ Files not intended to be loaded into context, but rather used within the output Claude produces.
71
+
72
+ - **When to include**: When the skill needs files that will be used in the final output
73
+ - **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
74
+ - **Use cases**: Templates, images, icons, boilerplate code, fonts, sample documents that get copied or modified
75
+ - **Benefits**: Separates output resources from documentation, enables Claude to use files without loading them into context
76
+
77
+ ### Progressive Disclosure Design Principle
78
+
79
+ Skills use a three-level loading system to manage context efficiently:
80
+
81
+ 1. **Metadata (name + description)** - Always in context (~100 words)
82
+ 2. **SKILL.md body** - When skill triggers (<5k words)
83
+ 3. **Bundled resources** - As needed by Claude (Unlimited*)
84
+
85
+ *Unlimited because scripts can be executed without reading into context window.
86
+
87
+ ## Skill Creation Process
88
+
89
+ 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.
90
+
91
+ ### Step 1: Understanding the Skill with Concrete Examples
92
+
93
+ Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
94
+
95
+ 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.
96
+
97
+ For example, when building an image-editor skill, relevant questions include:
98
+
99
+ - "What functionality should the image-editor skill support? Editing, rotating, anything else?"
100
+ - "Can you give some examples of how this skill would be used?"
101
+ - "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?"
102
+ - "What would a user say that should trigger this skill?"
103
+
104
+ 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.
105
+
106
+ Conclude this step when there is a clear sense of the functionality the skill should support.
107
+
108
+ ### Step 2: Planning the Reusable Skill Contents
109
+
110
+ To turn concrete examples into an effective skill, analyze each example by:
111
+
112
+ 1. Considering how to execute on the example from scratch
113
+ 2. Identifying what scripts, references, and assets would be helpful when executing these workflows repeatedly
114
+
115
+ Example: When building a `pdf-editor` skill to handle queries like "Help me rotate this PDF," the analysis shows:
116
+
117
+ 1. Rotating a PDF requires re-writing the same code each time
118
+ 2. A `scripts/rotate_pdf.py` script would be helpful to store in the skill
119
+
120
+ 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:
121
+
122
+ 1. Writing a frontend webapp requires the same boilerplate HTML/React each time
123
+ 2. An `assets/hello-world/` template containing the boilerplate HTML/React project files would be helpful to store in the skill
124
+
125
+ Example: When building a `big-query` skill to handle queries like "How many users have logged in today?" the analysis shows:
126
+
127
+ 1. Querying BigQuery requires re-discovering the table schemas and relationships each time
128
+ 2. A `references/schema.md` file documenting the table schemas would be helpful to store in the skill
129
+
130
+ To establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
131
+
132
+ ### Step 3: Initializing the Skill
133
+
134
+ At this point, it is time to actually create the skill.
135
+
136
+ Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step.
137
+
138
+ When creating a new skill from scratch, always run the `init_skill.py` script. The script conveniently generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable.
139
+
140
+ Usage:
141
+
142
+ ```bash
143
+ scripts/init_skill.py <skill-name> --path <output-directory>
144
+ ```
145
+
146
+ The script:
147
+
148
+ - Creates the skill directory at the specified path
149
+ - Generates a SKILL.md template with proper frontmatter and TODO placeholders
150
+ - Creates example resource directories: `scripts/`, `references/`, and `assets/`
151
+ - Adds example files in each directory that can be customized or deleted
152
+
153
+ After initialization, customize or remove the generated SKILL.md and example files as needed.
154
+
155
+ ### Step 4: Edit the Skill
156
+
157
+ When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Claude to use. Focus on including information that would be beneficial and non-obvious to Claude. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Claude instance execute these tasks more effectively.
158
+
159
+ #### Start with Reusable Skill Contents
160
+
161
+ 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/`.
162
+
163
+ Also, delete any example files and directories not needed for the skill. The initialization script creates example files in `scripts/`, `references/`, and `assets/` to demonstrate structure, but most skills won't need all of them.
164
+
165
+ #### Update SKILL.md
166
+
167
+ **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.
168
+
169
+ To complete SKILL.md, answer the following questions:
170
+
171
+ 1. What is the purpose of the skill, in a few sentences?
172
+ 2. When should the skill be used?
173
+ 3. In practice, how should Claude use the skill? All reusable skill contents developed above should be referenced so that Claude knows how to use them.
174
+
175
+ ### Step 5: Packaging a Skill
176
+
177
+ Once the skill is ready, it should be packaged into a distributable zip file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements:
178
+
179
+ ```bash
180
+ scripts/package_skill.py <path/to/skill-folder>
181
+ ```
182
+
183
+ Optional output directory specification:
184
+
185
+ ```bash
186
+ scripts/package_skill.py <path/to/skill-folder> ./dist
187
+ ```
188
+
189
+ The packaging script will:
190
+
191
+ 1. **Validate** the skill automatically, checking:
192
+ - YAML frontmatter format and required fields
193
+ - Skill naming conventions and directory structure
194
+ - Description completeness and quality
195
+ - File organization and resource references
196
+
197
+ 2. **Package** the skill if validation passes, creating a zip file named after the skill (e.g., `my-skill.zip`) that includes all files and maintains the proper directory structure for distribution.
198
+
199
+ If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again.
200
+
201
+ ### Step 6: Iterate
202
+
203
+ After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed.
204
+
205
+ **Iteration workflow:**
206
+ 1. Use the skill on real tasks
207
+ 2. Notice struggles or inefficiencies
208
+ 3. Identify how SKILL.md or bundled resources should be updated
209
+ 4. Implement changes and test again
@@ -0,0 +1,37 @@
1
+ # Skill Documentation Generator
2
+
3
+ Auto-generates professional documentation for Codex skills.
4
+
5
+ ## Quick Install
6
+
7
+ ```bash
8
+ cp -r skill-doc-generator ~/.codex/skills/
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ "Generate documentation for my financial-analyzer skill"
15
+ "Create README and HOW_TO_USE for code-review"
16
+ "Auto-generate docs for all my skills"
17
+ ```
18
+
19
+ ## What It Generates
20
+
21
+ - ✅ README.md - Quick start guide
22
+ - ✅ HOW_TO_USE.md - Comprehensive usage guide
23
+ - ✅ sample_input.json - Example input data
24
+ - ✅ expected_output.json - Example output
25
+ - ✅ CHANGELOG.md (optional) - Version history
26
+
27
+ ## Files
28
+
29
+ - `SKILL.md` - Documentation generation methodology
30
+ - `README.md` - This file
31
+
32
+ ## Best Use Cases
33
+
34
+ - New skills that need documentation
35
+ - Updating docs when SKILL.md changes
36
+ - Ensuring consistent documentation style
37
+ - Preparing skills for distribution
@@ -0,0 +1,331 @@
1
+ ---
2
+ name: skill-doc-generator
3
+ description: Automatically generates comprehensive documentation for Codex skills including README, HOW_TO_USE, and usage examples from SKILL.md
4
+ ---
5
+
6
+ # Skill Documentation Generator
7
+
8
+ Automated documentation generation for Codex skills. Creates professional README.md, HOW_TO_USE.md, and example files from your SKILL.md definition.
9
+
10
+ ## Capabilities
11
+
12
+ - **README Generation**: Creates installation-focused README.md with quick start
13
+ - **Usage Guide Creation**: Generates detailed HOW_TO_USE.md with examples
14
+ - **Example Extraction**: Pulls usage examples from SKILL.md into standalone files
15
+ - **Sample Data Generation**: Creates sample_input/output JSON from skill description
16
+ - **Documentation Templates**: Uses Codex best practices for structure
17
+ - **Multi-Format Support**: Markdown, JSON, YAML outputs
18
+ - **Auto-Update**: Regenerates docs when SKILL.md changes
19
+ - **Quality Validation**: Ensures generated docs meet standards
20
+
21
+ ## Input Requirements
22
+
23
+ **Minimal**:
24
+ - SKILL.md file with valid YAML frontmatter
25
+ - Basic capabilities and usage sections
26
+
27
+ **Optimal**:
28
+ - Complete SKILL.md with all recommended sections
29
+ - Existing usage examples in "How to Use" section
30
+ - Python files (if applicable) for code documentation
31
+
32
+ ## Output Files
33
+
34
+ ### 1. README.md
35
+ **Purpose**: Quick start and installation guide
36
+
37
+ **Content**:
38
+ - Brief skill description
39
+ - Quick install command
40
+ - Usage teaser (2-3 examples)
41
+ - File listing
42
+ - Related skills links
43
+
44
+ **Length**: ~20-30 lines (scannable)
45
+
46
+ ### 2. HOW_TO_USE.md
47
+ **Purpose**: Comprehensive usage guide
48
+
49
+ **Content**:
50
+ - Detailed usage examples (organized by use case)
51
+ - Input/output format explanations
52
+ - Advanced usage patterns
53
+ - Troubleshooting guide
54
+ - Integration examples
55
+ - Real-world scenarios
56
+
57
+ **Length**: ~100-200 lines (thorough)
58
+
59
+ ### 3. sample_input.json
60
+ **Purpose**: Example input data
61
+
62
+ **Content**:
63
+ - Realistic input example
64
+ - All required fields
65
+ - Optional fields shown
66
+ - Comments explaining structure
67
+
68
+ ### 4. expected_output.json
69
+ **Purpose**: Expected output example
70
+
71
+ **Content**:
72
+ - Corresponding output for sample input
73
+ - Complete structure shown
74
+ - Annotations for clarity
75
+
76
+ ### 5. CHANGELOG.md (Optional)
77
+ **Purpose**: Version history
78
+
79
+ **Content**:
80
+ - Version numbers
81
+ - Change descriptions
82
+ - Breaking changes highlighted
83
+ - Migration guides
84
+
85
+ ## How to Use
86
+
87
+ **Quick Generation**:
88
+ ```
89
+ "Generate documentation for my financial-analyzer skill"
90
+ "Create README and HOW_TO_USE for code-review"
91
+ "Auto-generate docs for all my skills"
92
+ ```
93
+
94
+ **Selective Generation**:
95
+ ```
96
+ "Just create README.md for aws-solution-architect"
97
+ "Generate HOW_TO_USE only for prompt-factory"
98
+ "Create sample input/output files for skill-tester"
99
+ ```
100
+
101
+ **Update Existing Docs**:
102
+ ```
103
+ "Update documentation for financial-analyzer (SKILL.md changed)"
104
+ "Regenerate all docs for code-review"
105
+ ```
106
+
107
+ **Custom Templates**:
108
+ ```
109
+ "Generate README using minimal template"
110
+ "Create comprehensive HOW_TO_USE with troubleshooting"
111
+ ```
112
+
113
+ ## Documentation Templates
114
+
115
+ ### Template 1: Minimal (Simple Skills)
116
+ **README**: 15-20 lines, quick install + 2 examples
117
+ **HOW_TO_USE**: 50-75 lines, basic usage patterns
118
+ **Use for**: Utility skills, simple tools
119
+
120
+ ### Template 2: Standard (Most Skills)
121
+ **README**: 25-35 lines, install + features + 3-4 examples
122
+ **HOW_TO_USE**: 100-150 lines, organized sections, real-world examples
123
+ **Use for**: Production skills, general purpose
124
+
125
+ ### Template 3: Comprehensive (Complex Skills)
126
+ **README**: 40-50 lines, detailed overview, file structure
127
+ **HOW_TO_USE**: 200+ lines, advanced patterns, integration guide, troubleshooting
128
+ **Use for**: Complex skills, API integrations, multi-feature
129
+
130
+ ## Generation Process
131
+
132
+ ### Step 1: Analyze SKILL.md
133
+ ```
134
+ - Extract YAML frontmatter (name, description)
135
+ - Identify sections (Capabilities, Input/Output, How to Use)
136
+ - Parse usage examples
137
+ - Detect Python files (if present)
138
+ ```
139
+
140
+ ### Step 2: Select Template
141
+ ```
142
+ - Count capabilities (< 3 = minimal, 3-6 = standard, > 6 = comprehensive)
143
+ - Check skill complexity (simple = minimal, medium = standard, complex = comprehensive)
144
+ - Consider Python files (present = more detailed docs)
145
+ ```
146
+
147
+ ### Step 3: Generate Content
148
+ ```
149
+ - README: Skill overview + quick start
150
+ - HOW_TO_USE: Detailed guide + examples
151
+ - sample_input: Realistic example data
152
+ - expected_output: Corresponding output
153
+ ```
154
+
155
+ ### Step 4: Validate
156
+ ```
157
+ - Check all required sections present
158
+ - Verify examples are clear
159
+ - Ensure links work
160
+ - Validate JSON/YAML syntax
161
+ ```
162
+
163
+ ### Step 5: Write Files
164
+ ```
165
+ - Create README.md
166
+ - Create HOW_TO_USE.md
167
+ - Create sample_input.json
168
+ - Create expected_output.json
169
+ - (Optional) Create CHANGELOG.md
170
+ ```
171
+
172
+ ## Documentation Best Practices
173
+
174
+ ### README.md Principles
175
+ 1. **Scannable**: User should understand in 10 seconds
176
+ 2. **Actionable**: Clear install command
177
+ 3. **Enticing**: Best 2-3 examples shown
178
+ 4. **Linked**: References to detailed docs
179
+
180
+ ### HOW_TO_USE.md Principles
181
+ 1. **Progressive**: Simple examples first, complex later
182
+ 2. **Organized**: Group by use case or scenario
183
+ 3. **Real-world**: Actual usage patterns, not theory
184
+ 4. **Complete**: Cover all major capabilities
185
+ 5. **Helpful**: Include troubleshooting and tips
186
+
187
+ ### Sample Data Principles
188
+ 1. **Realistic**: Use actual use case data
189
+ 2. **Complete**: Show all required fields
190
+ 3. **Annotated**: Comments explain structure
191
+ 4. **Valid**: JSON/YAML syntax correct
192
+
193
+ ## Example Generation Session
194
+
195
+ ```
196
+ User: "Generate docs for financial-analyzer"
197
+
198
+ Codex: "Analyzing financial-analyzer skill...
199
+
200
+ Found:
201
+ - 5 capabilities
202
+ - 3 input types
203
+ - 4 output formats
204
+ - 6 usage examples
205
+ - 2 Python files
206
+
207
+ Selecting: Standard template (good fit for medium complexity)
208
+
209
+ Generating:
210
+ ✅ README.md (28 lines) - Quick start guide
211
+ ✅ HOW_TO_USE.md (145 lines) - Comprehensive usage guide
212
+ - 6 usage examples organized by scenario
213
+ - Input/output format details
214
+ - Integration with other skills
215
+ - Troubleshooting section
216
+ ✅ sample_input.json - P/E ratio calculation example
217
+ ✅ expected_output.json - Corresponding output with metrics
218
+
219
+ All files created in ~/.codex/skills/financial-analyzer/
220
+
221
+ Would you like me to review the generated docs?"
222
+ ```
223
+
224
+ ## Customization Options
225
+
226
+ ### Content Options
227
+ - **Include examples**: true/false (extract from SKILL.md)
228
+ - **Include sample data**: true/false (generate JSON examples)
229
+ - **Include changelog**: true/false (version history)
230
+ - **Include troubleshooting**: true/false (common issues section)
231
+
232
+ ### Style Options
233
+ - **Template**: minimal/standard/comprehensive
234
+ - **Tone**: technical/friendly/professional
235
+ - **Length**: concise/detailed/exhaustive
236
+ - **Format**: markdown/text/html
237
+
238
+ ### Advanced Options
239
+ - **Extract from code**: Parse Python docstrings for additional content
240
+ - **Generate diagrams**: Create workflow/architecture diagrams (ASCII art)
241
+ - **API docs**: Generate API reference from code
242
+ - **Multilingual**: Create docs in multiple languages
243
+
244
+ ## Integration with Development Workflow
245
+
246
+ ### Initial Skill Creation
247
+ ```
248
+ 1. Write SKILL.md with capabilities
249
+ 2. Run skill-doc-generator
250
+ 3. Review generated docs
251
+ 4. Adjust SKILL.md if needed
252
+ 5. Regenerate docs
253
+ ```
254
+
255
+ ### Ongoing Maintenance
256
+ ```
257
+ 1. Update SKILL.md with new features
258
+ 2. Run skill-doc-generator (auto-update)
259
+ 3. Generated docs stay in sync
260
+ ```
261
+
262
+ ### Pre-Distribution
263
+ ```
264
+ 1. Complete SKILL.md
265
+ 2. Generate all docs
266
+ 3. Review for quality (use skill-quality-analyzer)
267
+ 4. Package skill with full documentation
268
+ ```
269
+
270
+ ## Quality Checks
271
+
272
+ Generated docs are validated for:
273
+ - [ ] README exists and is scannable (< 50 lines)
274
+ - [ ] HOW_TO_USE exists and is comprehensive
275
+ - [ ] All code blocks have proper syntax
276
+ - [ ] Examples are clear and realistic
277
+ - [ ] Links are valid (no broken references)
278
+ - [ ] JSON/YAML files are valid
279
+ - [ ] File structure matches Codex guidelines
280
+ - [ ] No spelling/grammar errors
281
+
282
+ ## Common Documentation Issues (Auto-Fixed)
283
+
284
+ ### Issue 1: Vague Examples
285
+ **Before**: "Use this skill to analyze data"
286
+ **After**: "Calculate P/E ratio: 'Analyze stock with price $100 and EPS $6.45'"
287
+
288
+ ### Issue 2: Missing Installation
289
+ **Before**: No install instructions
290
+ **After**: "cp -r financial-analyzer ~/.codex/skills/"
291
+
292
+ ### Issue 3: No Input/Output Clarification
293
+ **Before**: "Takes data and returns results"
294
+ **After**: Shows JSON structure with field explanations
295
+
296
+ ### Issue 4: No Troubleshooting
297
+ **Before**: Examples only
298
+ **After**: "If skill doesn't trigger, check description keywords"
299
+
300
+ ## Limitations
301
+
302
+ - **Quality Depends on SKILL.md**: Generated docs only as good as source
303
+ - **No Code Analysis**: Doesn't parse complex Python logic (basic docstrings only)
304
+ - **Template-Based**: Uses predefined structures (not fully custom)
305
+ - **English-Only**: Currently supports English documentation only
306
+ - **No Diagrams**: Can't generate complex visual diagrams (ASCII only)
307
+
308
+ ## When NOT to Use This Skill
309
+
310
+ - **Custom Documentation Needed**: Highly specialized format
311
+ - **Code Documentation**: Use language-specific tools (Sphinx, JSDoc)
312
+ - **API References**: Use dedicated API doc generators
313
+ - **Quick Notes**: Manual README is faster for simple skills
314
+
315
+ ## Success Criteria
316
+
317
+ Well-generated documentation should:
318
+ - ✅ README scannable in < 10 seconds
319
+ - ✅ HOW_TO_USE answers "how do I use this?" completely
320
+ - ✅ Examples are copy-paste ready
321
+ - ✅ Sample data is realistic
322
+ - ✅ No user questions left unanswered
323
+ - ✅ Passes quality validation
324
+ - ✅ Follows Codex best practices
325
+
326
+ ## Related Skills
327
+
328
+ - Use **skill-quality-analyzer** after generation to validate docs
329
+ - Use **skill-debugger** if generated examples don't trigger correctly
330
+ - Use **skill-tester** to verify examples work as documented
331
+ - Complements **Skill Factory** for initial skill creation