Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 4.16 KB

README.md

File metadata and controls

79 lines (58 loc) · 4.16 KB

License Tests

cgp-skills: agent skills for CGP

Agent skills for reading, writing, debugging, and explaining Context-Generic Programming (CGP) in Rust.

Each skill is a self-contained guide that an LLM coding agent loads as needed. It teaches the core concepts and directs the agent to topic references, so the agent can work without loading the whole knowledge base. The skills summarize the CGP knowledge base, which documents the CGP ecosystem.

Website · Quickstart · Reference · Agent skill pages

The catalog

cgp is the foundational skill for CGP in Rust and the skill that /cgp resolves to. Its SKILL.md explains consumer and provider traits, wiring, and impl-side dependencies, then directs the agent to the relevant topic references.

The references cover these areas:

How a skill differs from the knowledge base

A skill gives an agent enough guidance to act within its context window. It combines core concepts, common constructs, and worked examples from across the knowledge base, then links to the online reference for details it omits. Knowledge-base documents provide exhaustive accounts of individual constructs, subsystem internals, worked examples, and comparisons with other paradigms.

The knowledge base supplies the documentation from which skills are derived. Keep each skill in sync with it: when a CGP construct changes, update the knowledge base and the matching topic reference in the same change, as AGENTS.md requires. The CGP source remains authoritative when the code and documentation disagree.

Using a skill

Point your agent harness at this repository and expose cgp/ as a skill directory. The /cgp skill then loads for tasks involving CGP code.

The skill assumes only Rust knowledge and teaches the vocabulary used throughout the CGP documentation: consumer trait, provider trait, provider, wiring, impl-side dependency, and context. An agent can then consult the knowledge base using the same terms.

A person learning CGP should start at the website instead: the quickstart, the tutorials, and the reference are written for readers, where these skills are written for agents.

Checks

CI runs python3 scripts/check.py, which checks that each file has exactly one # heading and that the relative links inside cgp/ resolve.

Related repositories

sibling-projects.md lists the related repositories, and AGENTS.md defines how to keep skills accurate and current.

License

Licensed under the Apache License, Version 2.0.