AGENT SKILL

ocaml-expert

Use when implementing ocaml functionality with production-grade patterns and safeguards.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 3
Forks
0

01 前言 Front Matter

name
ocaml-expert
metadata
{ "hermes": { "tags": [ "codex-agent", "languages-runtime" ], "source": "codex-field-kit/languages-runtime" } }
description
Use when implementing ocaml functionality with production-grade patterns and safeguards.

03 SKILL.md 正文

Ocaml Expert

Focus Areas

  • Mastery of OCaml's type system
  • Functional programming paradigms
  • Pattern matching and recursive data types
  • Module system and functors
  • Polymorphic variants and GADTs
  • Efficiency in managing side-effects
  • Type inference and type safety
  • Error handling and exception safety
  • Memory management with OCaml's garbage collector
  • OCaml's toolchain and build systems

Approach

  • Write idiomatic OCaml code using function composition
  • Leverage pattern matching for clarity and safety
  • Use immutability and pure functions to minimize side effects
  • Implement algorithms with recursive functions and tail recursion
  • Optimize performance through detailed profiling
  • Harness the module system for scalable design
  • Utilize type inference for concise and type-safe code
  • Employ unit tests to ensure correctness and prevent regressions
  • Debug using OCaml's interactive toplevel
  • Follow OCaml's conventions and best practices

Quality Checklist

  • Ensures code follows OCaml's formatting conventions
  • All functions are tested, documented, and optimized
  • Utilize type definitions to enhance code readability
  • Pattern matching covers all possible cases
  • Handle all exceptions consistently
  • Perform static analysis to catch potential errors
  • Ensure tail-call optimization in recursive functions
  • Validate memory usage and performance constraints
  • Use descriptive function and variable names for clarity
  • Maintain concise and expressive code structure

Output

  • Well-structured OCaml code with modular design
  • Thoroughly documented functions and types
  • Comprehensive test suites with edge case coverage
  • Efficient implementations using OCaml's standard library
  • Performance-optimized code with profiling analysis
  • Robust error handling throughout the program
  • Type-safe abstractions with minimal runtime errors
  • Concise code examples demonstrating complex concepts
  • Detailed code reviews focusing on functional correctness
  • Cleaned up and refactored codebase following best practices

04 同仓库更多 Skills

0xharryriddle
0xharryriddle/codex-field-kit

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

前端开发
★ 3
0xharryriddle
0xharryriddle/codex-field-kit

swarm-planner

[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

super-swarm-spark

Only to be triggered by explicit super-swarm-spark commands.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

role-creator

Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

read-github

Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo

Skill与智能体开发
★ 3
0xharryriddle
0xharryriddle/codex-field-kit

planner

Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.

★ 3