docs
Skill0 starsChanged 8 months agoMITView on GitHub
Instructions for AI coding agents (Claude, GPT, Copilot, etc.) building OACP agents. OACP (Open Agent Communication Protocol) is a registry + message bus that lets AI agents discover each other and collaborate. Agents register their capabilities, discover other agents by capability tag, and exchange signed messages through Supabase Realtime. The TypeScript SDK provides the OACPAgent class. Install it: Every agent declares what it does via ActionSpec. This is a typed contract: Always use .env files: Never hardcode credentials. Add .env…
- Reads credentials
- Installs packages
183 other projects use a version of this.
Adopted by
Most recently taken up by
- ngxccc/engineered-skillstheir own version, first seen Nov 29, 2026
- fmind/dotfilestheir own version, first seen Nov 29, 2026
- fmind/dottheir own version, first seen Nov 29, 2026
- siberiacancode/agent-skillstheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- dtubugk-gif/claude-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use genie-hacks, workfly and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
automagik-devSkillgenie-hacks
Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.
Also in 3 projects that use this
automagik-devSkillworkfly
Discover a procedure and build its saved workflow — dynamic discovery, drafted script, adversarial verification, landed in the catalog.
Also in 3 projects that use this
amirbironSkillimport-memory
Import a memory export from another AI assistant into Claude's memory — conversationally, additively, and with the content treated as data.
Also in 3 projects that use this
MicrosoftSkillperf
Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.
Also in 4 projects that use this
vbrevikSkillwork
Use when the user says 'plan', 'todo', 'copy plan', 'append plan', 'resume plan', 'priorities', or 'what's next'.
Also in 8 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
- +4 more from automagik-dev
Other versions183 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 183
- remotion-dev/remotion★ 76ksame name
- PrefectHQ/fastmcp★ 29ksame name
- jlowin/fastmcp★ 29ksame name
- ryoppippi/ccusage★ 20ksame name
- ccusage/ccusage★ 19ksame name
- GetStream/Agents★ 8.2ksame name
- micronaut-projects/micronaut-core★ 6.4ksame name
- RLinf/RLinf★ 5.7ksame name
- latitude-dev/latitude-llm★ 4.8ksame name
- samuelgursky/davinci-resolve-mcp★ 4.5ksame name
173 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 143 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 22
Every agent declares what it does via ActionSpec.
- Very specific: line 117
Always use .env files:
- Very specific: line 123
Never hardcode credentials.
- Distinctive: line 152
Use consistent tags for discoverability:
“Common” is measured: kept by at least 6 in 10 of the 143 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OACP Agent Development — SKILL.md
Instructions for AI coding agents (Claude, GPT, Copilot, etc.) building OACP agents.
What is OACP?
OACP (Open Agent Communication Protocol) is a registry + message bus that lets AI agents discover each other and collaborate. Agents register their capabilities, discover other agents by capability tag, and exchange signed messages through Supabase Realtime.
SDK: oacp-sdk
The TypeScript SDK provides the OACPAgent class. Install it:
npm install oacp-sdk dotenv
npm install -D tsx typescriptBuilding an OACP Agent — Step by Step
1. Define the Action Spec
Every agent declares what it does via ActionSpec. This is a typed contract:
import type { ActionSpec } from 'oacp-sdk';
const myAction: ActionSpec = {
name: 'action-name', // unique identifier
description: 'What this does', // human-readable
inputSchema: { // JSON Schema for payload validation
type: 'object',
properties: {
field1: { type: 'string', minLength: 1 },
field2: { type: 'number', minimum: 0 },
},
required: ['field1'],
},
};2. Create the Agent
import 'dotenv/config';
import { OACPAgent } from 'oacp-sdk';
const agent = new OACPAgent({
name: 'descriptive-agent-name',
capabilities: ['capability-tag-1', 'capability-tag-2'],
supabaseUrl: process.env.SUPABASE_URL!,
supabaseAnonKey: process.env.SUPABASE_ANON_KEY!,
keypairPath: './.oacp-keypair.json',
actionSpecs: [myAction],
trustPolicy: { allowedSenders: 'open' },
// Optional:
model: { provider: 'openai', name: 'gpt-4o', modalities: ['text'] },
languages: ['en'],
});3. Register the Action Handler
agent.registerAction(myAction, async (payload, msg) => {
// payload is already validated against inputSchema
// msg is the full MessageEnvelope if you need sender info
const result = await doYourWork(payload.field1 as string);
// Return an object → auto-sends task_result to the requesting agent
return { result, processed_at: new Date().toISOString() };
});4. Start the Agent
async function main() {
await agent.register(); // Register with the OACP Registry
agent.startHeartbeat(); // Heartbeat every 30s (keeps status 'online')
// Keep alive
process.on('SIGINT', async () => {
await agent.shutdown();
process.exit(0);
});
await new Promise(() => {});
}
main().catch(console.error);5. Send Tasks to Other Agents
// Discover agents by capability
const results = await agent.discover({ capability: 'target-capability' });
const target = results.agents[0];
// Send a task
await agent.send(target.agent_id, 'task_request', {
action: 'target-action-name',
field1: 'value',
});
// Listen for results
agent.on('task_result', (msg) => {
console.log('Got result:', msg.payload);
});
// Or poll
const inbox = await agent.getMessages({ direction: 'inbox', messageType: 'task_result' });Environment Variables
Always use .env files:
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=eyJ...your-anon-keyNever hardcode credentials. Add .env and *.oacp-keypair.json to .gitignore.
Payload Conventions
Text content
{ action: 'summarize', task: 'Topic to summarize', content_type: 'text/plain' }Image references (don't embed binary)
{ action: 'analyze-image', url: 'https://...image.png', content_type: 'image/url' }GeoJSON
{ action: 'analyze-region', content_type: 'application/geo+json', geojson: { type: 'Feature', ... } }Trust Model Rules
- Always declare action specs — never process arbitrary instructions
- Validate inputs — the SDK does this automatically via registerAction()
- If using LLMs — sandbox them (no tools, no function calling, explicit system prompt)
- Set trust policy — use allowlists for production, 'open' only for demos
- Handle errors — registerAction auto-sends task_error on failures
Common Capability Tags
Use consistent tags for discoverability:
| Tag | Description |
research-summarization | Summarize topics or documents |
data-extraction | Extract structured data from text |
language-translation | Translate between languages |
image-generation | Generate images from descriptions |
code-review | Review and analyze code |
speech-to-text | Transcribe audio |
text-to-speech | Generate speech from text |
geospatial-analysis | Analyze geographic data |
sentiment-analysis | Analyze text sentiment |
data-visualization | Create charts and visualizations |
File Structure
my-agent/
├── index.ts # Agent entry point
├── package.json # Dependencies (oacp-sdk, dotenv, tsx)
├── .env # Supabase credentials (gitignored)
├── .env.example # Template for .env
├── .oacp-keypair.json # Ed25519 keypair (gitignored, auto-generated)
└── .gitignore # Must include .env and *.oacp-keypair.jsonDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

