Add or modify AI primitive definitions in the data layer with correct typing and complete metadata. Use when adding new primitives, updating descriptions, or extending primitive categories.
Add or modify AI primitive definitions for agentconfig.org.
Primitives appear in these places:
site/src/data/primitives.ts (the single canonical source)site/src/data/fileTree.tssite/src/data/comparison.ts (derived automatically from primitives.ts; never hand-edited)site/src/data/providerProfiles.ts (also derived automatically from primitives.ts; never hand-edited)Edit site/src/data/primitives.ts:
{
id: 'your-primitive-id', // lowercase, hyphens
name: 'Display Name',
description: 'One-sentence summary.',
whatItIs: 'Detailed explanation of the concept.',
useWhen: [
'First use case',
'Second use case',
],
prevents: 'What problem/failure this prevents',
combineWith: ['Other Primitive', 'Another Primitive'],
implementations: [
{
provider: 'copilot',
implementation: 'How Copilot implements this',
location: '.github/path/to/file',
support: 'full', // 'full' | 'partial' | 'diy'
sourceUrl: 'https://docs.github.com/...', // primary provider documentation
},
{
provider: 'claude',
implementation: 'How Claude implements this',
location: '.claude/path/to/file',
support: 'full',
sourceUrl: 'https://code.claude.com/docs/...',
},
{
provider: 'cursor',
implementation: 'How Cursor implements this',
location: '.cursor/path/to/file',
support: 'full',
sourceUrl: 'https://cursor.com/docs/...',
},
{
provider: 'codex',
implementation: 'How Codex implements this',
location: '~/.codex/path/to/file',
support: 'full',
sourceUrl: 'https://developers.openai.com/codex/...',
},
],
category: 'instructions', // one of the 8 layer ids — see Categories below
}
Always list all four providers (copilot, claude, cursor, codex) even when support is partial or diy — a missing provider entry silently reads as "no data" rather than "not supported," which the refresh-provider-docs skill and comparison table both rely on to stay honest. Cite a primary sourceUrl for every claim; do not add a primitive with unverified provider claims (use the refresh-provider-docs skill first if you have not already confirmed the paths against current documentation).
If the primitive has associated files, add nodes to both trees in site/src/data/fileTree.ts:
For Copilot - Add to copilotTree:
{
id: 'copilot-your-primitive',
name: 'your-file.md',
type: 'file',
details: {
label: 'Short Label',
description: 'What this file does.',
whatGoesHere: ['Content item 1', 'Content item 2'],
whenLoaded: 'When this file is loaded.',
loadOrder: 5, // 1 = first loaded
example: `Example content here`,
},
}
For Claude, Cursor, and Codex - Add to the corresponding tree (claudeTree, cursorTree, codexTree) with equivalent structure.
site/src/data/comparison.ts and site/src/data/providerProfiles.ts both compute their rows from primitives.ts at import time (comparisonData maps every entry in the primitives array). Once step 1 adds all four provider implementations to primitives.ts, the comparison matrix and provider profiles pick up the new primitive automatically. Do not hand-edit either file — doing so would duplicate the same fact in two places and reintroduce the drift this derivation was built to eliminate (see PR #42's review history for the class of bug this prevents).
If what you're adding describes where a primitive applies (user vs. repository vs. directory vs. session, etc.) rather than a new independent capability, it belongs in scopeModel in primitives.ts, not as a new peer primitive. Scopes are not primitives — see the Scope Model section on the homepage for the existing nine-scope vocabulary before inventing a new one.
interface Primitive {
id: string
name: string
description: string
whatItIs: string
useWhen: string[]
prevents: string
combineWith: string[]
implementations: ProviderImplementation[]
category: LayerId
}
interface ProviderImplementation {
provider: 'copilot' | 'claude' | 'cursor' | 'codex'
implementation: string
location: string
support: 'full' | 'partial' | 'diy'
sourceUrl?: string // primary provider documentation backing this claim
}
primitives.ts (ProviderImplementation.support) uses one shared enum: 'full' | 'partial' | 'diy':
full - Native, well-documented supportpartial - Works but with limitationsdiy - No built-in support; requires custom setup to approximatecomparison.ts's SupportLevel type is now a type alias for this same enum (ComparisonRow[provider].level derives directly from ProviderImplementation.support), so a row with diy in primitives.ts also shows diy in the comparison table — there is no separate none value to translate to.
The taxonomy groups primitives into eight layers (LayerId in site/src/data/primitives.ts), each representing a different concern in an agent's configuration:
instructions - Standing guidance loaded into context (e.g. AGENTS.md)procedures - Repeatable, invokable workflows (e.g. slash commands, skills)tools-context - External tools and data sources (e.g. MCP)delegation - Handing off work to another agent persona (e.g. custom agents)control-approval - Constraints on what the agent may do (e.g. guardrails, hooks, sandboxing)memory-state - Durable state carried across sessions (reserved; not yet backed by a primitive — see the CCR note on global-instructions before adding one)distribution - How shared configuration is packaged and discovered across scopesverification-observability - Checks that validate output before it shipsDo not reuse the retired execution/safety category names; every primitive's category field must be one of the eight ids above, and site/src/data/primitives.ts's categories array is the source of truth for display names and ordering.
Before considering the primitive complete:
primitives.ts with all required fields, all four providers, and a sourceUrl per implementationfileTree.ts for each provider with associated filesid is unique and matches across primitives.ts and fileTree.tscombineWith references valid primitive namesbun run typecheck - No TypeScript errorsprimitives.ts — verifying them confirms the derivation picked up the new row, not that you need to edit them)comparison.ts or providerProfiles.ts - Both derive from primitives.ts; edit only primitives.ts and the derived views update automaticallyloadOrder should reflect actual precedence下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer