cl-library-craft
1
总安装量
1
周安装量
#49620
全站排名
安装命令
npx skills add https://github.com/quasi/cl-library-craft --skill cl-library-craft
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
github-copilot
1
claude-code
1
Skill 文档
CL Library Craft
A comprehensive skill for analyzing and creating idiomatic Common Lisp libraries.
Purpose
This skill enables AI assistants to:
- Analyze existing CL libraries to understand patterns and conventions
- Generate new CL libraries following established best practices
- Reference design patterns from exemplary CL authors
Sub-Skills
This skill is organized into sub-skills for better context management. Read only the sub-skills relevant to your task.
For Analyzing Libraries
analyze/SKILL.md
Use when: “Analyze this CL library”, “What patterns does X use?”, “Compare these libraries”
For Writing Libraries
write/SKILL.md
Use when: “Create a CL library for…”, “Generate a Lisp package”, “Scaffold a CL project”
For Reference Only
guide/ # Design pattern guides
templates/ # Code templates
analyses/ # Library analyses
Quick Routing
| User Request | Sub-Skill to Read |
|---|---|
| “Analyze the library at…” | analyze/SKILL.md |
| “What patterns does X use?” | analyze/SKILL.md + analyses/ |
| “Create a CL library for…” | write/SKILL.md |
| “Write a Common Lisp package” | write/SKILL.md |
| “How should I structure…” | guide/ files |
| “Show me the template for…” | templates/ files |
Directory Structure
cl-library-craft/
âââ SKILL.md # This file - routing
âââ analyze/
â âââ SKILL.md # Library analysis sub-skill
âââ write/
â âââ SKILL.md # Library generation sub-skill
âââ guide/
â âââ 00-philosophy.md
â âââ 01-project-structure.md
â âââ 02-asdf-systems.md
â âââ 03-package-design.md
â âââ 04-api-design.md
â âââ 05-error-handling.md
â âââ 06-documentation.md
â âââ 07-portability.md
â âââ 08-testing.md
â âââ 09-pattern-matrix.md
â âââ 10-author-styles.md
â âââ 11-sbcl-optimizations.md
âââ templates/
â âââ edi-weitz.md # Traditional flat style
â âââ fukamachi.md # Modern src/ style
â âââ haverbeke.md # Multi-system layered
â âââ minimal.md # Smallest possible
â âââ snippets.md # Common code patterns
âââ analyses/
âââ edi-weitz/
â âââ hunchentoot.md
â âââ cl-ppcre.md
â âââ drakma.md
â âââ cl-who.md
âââ marijn-haverbeke/
â âââ postmodern.md
âââ fukamachi/
â âââ libraries.md
âââ portability/
âââ libraries.md
Usage Examples
Example 1: Analyze a Library
User: “Analyze the patterns in Hunchentoot”
- Read
analyze/SKILL.md - Read
analyses/edi-weitz/hunchentoot.md - Provide analysis
Example 2: Create a New Library
User: “Create a CL library for parsing TOML files”
- Read
write/SKILL.md - Determine style (edi-weitz for parsers)
- Read
templates/edi-weitz.md - Generate files
Example 3: Understand a Pattern
User: “How should I handle errors in CL?”
- Read
guide/05-error-handling.md - Optionally check
analyses/for examples - Provide guidance
Key Principles
These guides are built from analysis of exemplary CL libraries by:
- Edi Weitz – Hunchentoot, CL-PPCRE, Drakma, CL-WHO
- Marijn Haverbeke – Postmodern, S-SQL
- Eitaro Fukamachi – Mito, SXQL, Woo
- Portability authors – bordeaux-threads, closer-mop, ironclad
The patterns reflect real-world, battle-tested conventions from the CL community.