Skip to content

Prompt Library

Felipe Marzochi edited this page Jul 14, 2026 · 1 revision

Prompt Library

Beyond the memory and safety runtime, EGC ships a library of prompt-engineered components. Counted directly from the repository:

Component Location Count
Agents agents/*.md 63
Skills skills/*/SKILL.md 230
Commands commands/*.md 77
Rules rules/, across 19 language and domain namespaces 111

You do not need any of this to use EGC: the persistent memory (egc-memory) and safety layer (egc-guardian) work the same with or without the prompt library installed. egc install asks interactively whether to install it, and the prompt is skipped automatically in CI.

Agents

Files under agents/<name>.md, each with YAML frontmatter:

---
name: your-agent-name
description: What this agent does and when the orchestrator should invoke it.
tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
model: claude-sonnet-4-6
stack: ["*"]
---

orchestrate_task (an egc-guardian tool) routes a natural-language prompt against the agent catalog and returns the best matches, using semantic LLM routing when a provider API key is set, or local keyword scoring otherwise.

Skills

Directories under skills/<skill-name>/SKILL.md. CONTRIBUTING.md groups skills into five informal categories:

Category Purpose Examples
Language Standards Idioms, conventions, best practices python-patterns, golang-patterns
Framework Patterns Framework-specific guidance django-patterns, nextjs-turbopack
Workflow Step-by-step processes tdd-workflow
Domain Knowledge Specialized domains security-review
Tool Integration Tool or library usage docker-patterns

Skill checklist from the contribution guide: focused on one domain, includes a "When to Activate" section, has copy-pasteable code examples, shows anti-patterns, stays under 500 lines (800 max), and contains no sensitive data.

Commands

Files under commands/<command-name>.md, invoked as /command-name in a supported CLI:

---
description: Brief description shown in /help
---

Rules

Cross-language coding rules under rules/<namespace>/, one namespace per language or domain: angular, arkts, common, cpp, csharp, dart, fsharp, golang, java, kotlin, perl, php, python, ruby, rust, swift, typescript, web, and zh (Chinese-language rule set).

Contributing to the library

See Contributing for the DCO/CLA requirements and the full templates for skills, agents, hooks, and commands. The CI validator (scripts/ci/validate-skills.js and equivalents) checks structural correctness on every PR.

Clone this wiki locally