بنقرة واحدة
cl-llm-provider-dev
Development workflow for the cl-llm-provider LLM abstraction library
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Development workflow for the cl-llm-provider LLM abstraction library
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | cl-llm-provider-dev |
| description | Development workflow for the cl-llm-provider LLM abstraction library |
| version | 1.0.0 |
| author | quasiLabs |
| type | dev |
A unified Common Lisp interface for multiple LLM providers (Claude, GPT, Gemini, Ollama, OpenRouter). Protocol-based design with provider-agnostic messages, tool calling, streaming, observability, and error recovery via the condition/restart system.
;; Load the system
(ql:quickload :cl-llm-provider)
;; Verify a symbol
(mcp__lisp__describe-symbol "complete" "cl-llm-provider")
# Run tests
sbcl --noinform --non-interactive --load tests/test-tools-support.lisp
sbcl --noinform --non-interactive --load tests/test-provider-protocols.lisp
| Package | Purpose |
|---|---|
:cl-llm-provider | Main — complete/embedding/make-provider, config, conditions/restarts, metadata |
:cl-llm-provider.tools | Tools — validators, registry, approval, hooks, execution |
:cl-llm-provider/test | Test suite |
Naming: Predicates -p, constructors make-*, converters *-to-* or normalize-*.
| Subsystem | Key Files |
|---|---|
| Protocol | src/protocol.lisp — 4 required methods per provider |
| Providers | src/providers/{anthropic,openai,ollama,openrouter,openai-compatible}.lisp |
| Tools | src/tools.lisp — definition, validation, execution |
| Errors | src/conditions.lisp, src/recovery.lisp — condition/restart based |
| Config | src/config.lisp |
| Metadata | src/model-registry.lisp |
| Observability | src/observability.lisp — hooks and streaming |
llm-provider subclass MUST implement ALL 4 protocol methods:role MUST be one of "user", "assistant", "system", "tool"^[a-zA-Z0-9_-]+$Full 15 rules, 7 invariants: .claude/skills/integration/references/core-spec.md
finish-reason when processing responsesAdding a provider: Implement 4 protocol methods. Read PATTERN-001 in integration references. Tool calling: Follow OpenAI parameter schema format. Verify name regex. Read PATTERN-003. Error recovery: Use condition/restart system. Follow INV-006. Read PATTERN-004.
Full formal specification: canonical-specification/
Detailed specs and patterns in .claude/skills/integration/references/:
core-spec.md — 15 rules, 7 invariants, 5 anti-patternscore-api-spec.md — protocol contracts, method signaturescore-patterns.md — 14 runnable code patternsmetadata-api-spec.md — provider introspection APIstreaming-api-spec.md — streaming/observability APIstreaming-patterns.md — streaming patterns