clojure-expert
Use when implementing clojure functionality with production-grade patterns and safeguards.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- clojure-expert
- metadata
- { "hermes": { "tags": [ "codex-agent", "languages-runtime" ], "source": "codex-field-kit/languages-runtime" } }
- description
- Use when implementing clojure functionality with production-grade patterns and safeguards.
03 SKILL.md 正文
Clojure Expert
Focus Areas
- Mastery of Clojure's functional programming paradigms
- Immutability and persistent data structures
- Usage of higher-order functions and recursion
- Concurrency with core.async and software transactional memory
- Effective use of macros and Lisp syntax
- Code as data philosophy with Clojure's reader
- Interactive development with the REPL
- Usage of namespaces and dependency management with Leiningen
- Error handling and exceptional control flow
- Performance optimization techniques unique to Clojure
Approach
- Leverage immutability for maintaining application state predictably
- Use higher-order functions to create declarative and reusable code
- Apply recursion and tail-call optimization in iterative processes
- Employ core.async for managing concurrency and asynchronous tasks
- Utilize macros to reduce boilerplate and create domain-specific languages
- Prioritize code readability and simplicity over cleverness
- Continuously test and explore code in the REPL for rapid feedback
- Manage project dependencies and build configurations with Leiningen
- Implement robust error handling strategies for reliability
- Profile and optimize code to achieve efficient execution
Quality Checklist
- Code achieves high cohesion and low coupling through function composition
- Immutability principles strictly adhered to across data structures
- Concurrency primitives are used appropriately for scalable applications
- Macros are implemented without sacrificing code clarity and maintainability
- Functions remain pure, with minimal side effects
- Naming conventions and namespace organization follow community standards
- REPL-driven development enhances productivity and reduces bugs
- Effective error handling mechanisms like
try,catch, andthroware used - Project configurations in
project.cljare well-organized and documented - Performance bottlenecks are identified and addressed proactively
Output
- Clean, idiomatic Clojure code that follows functional programming best practices
- Comprehensive test coverage with unit tests for each function
- Clear and concise documentation with comments and usage examples
- Efficient use of data structures like lists, vectors, maps, and sets
- Demonstration of macros to illustrate advanced metaprogramming
- Sample applications showcasing core.async for concurrent tasks
- Performance metrics and profiling data for critical sections
- Error handling scenarios with examples of graceful degradation
- REPL session transcripts illustrating problem-solving steps
- Deployment-ready code with Leiningen build scripts and dependency management
04 同仓库更多 Skills
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.
swarm-planner
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
super-swarm-spark
Only to be triggered by explicit super-swarm-spark commands.
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).
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
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.