knowledge-base
π―Skillfrom commontoolsinc/labs
Establishes a hierarchical source resolution system for Oracle & Corrector agents, prioritizing specs, code, and documentation.
Installation
npx skills add https://github.com/commontoolsinc/labs --skill knowledge-baseSkill Details
Shared foundation for Oracle & Corrector agents. Establishes the source hierarchy for resolving conflicts between documentation, code, and specs. Load this skill first when investigating how the system works.
Overview
# Knowledge Base Foundation
Before You Start
Read these docs to orient yourself:
docs/glossary.md- Terminology (Cell, Charm, Space, Spell, etc.)docs/specs/recipe-construction/overview.md- Authoritative system designAGENTS.md- Documentation reading list and codebase guidelines
Source Hierarchy
When sources conflict, this is the authoritative order:
1. Specs (Highest Authority)
docs/specs/ - Technical specifications with unambiguous intent
When specs contradict other docs, specs win.
2. Working Code
Tests and patterns that demonstrate actual behavior:
packages/patterns/- Pattern examples showing what works/test/- Test files proving expected behavior
These show reality, not aspirations.
3. Runtime Code
Core system implementation:
packages/runner/- Execution enginepackages/runner/src/builder/- Compilationpackages/memory/- Storage layer
Code is always right about what it does.
4. Plain Text Docs (Lowest Authority)
docs/common/ - Guides, tutorials, learning materials
Good for learning, but may contain outdated or speculative information. Validate against code when precision matters.
The Rule
Concrete beats abstract. Specifications beat speculation. Code beats comments. Tests beat documentation.
When Sources Conflict
- Check specs first (
docs/specs/) - Look at working code (tests, patterns)
- Read runtime implementation
- Use docs/common as learning guide only
- If still unclear, surface the conflict explicitly
More from this repository8
Guides developers in creating and integrating Lit web components within the Common UI v2 system, focusing on reactive, theme-aware, and runtime-integrated UI components.
Guides developers in creating reactive TypeScript patterns for CommonTools, focusing on efficient, iterative development from sketch to deployment.
Guides developers in deploying, managing, and interacting with charms and recipes using the CommonTools CLI through precise command-line operations.
Deploys and manages Claude patterns via CLI, enabling syntax checking, deployment, inspection, and testing of pattern handlers.
Validates pattern implementation by writing and executing structured test sequences for pattern-based components.
Applies standardized UI components and layout patterns to polish and structure user interfaces with consistent design.
Breaks down complex tasks into manageable subtasks using bd (beads), tracking progress and dependencies across sessions.
Generates TypeScript schemas with Input/Output types for patterns, ensuring type safety and testability through structured type definitions.