agentleFS
matthewaharrismatthewaharris/agora/docs/SKILL.md

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

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-devSkill

    genie-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-devSkill

    workfly

    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

  • amirbironSkill

    import-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

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    Also in 4 projects that use this

  • vbrevikSkill

    work

    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-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • +4 more from automagik-dev

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
  1. Very specific:

    Every agent declares what it does via ActionSpec.

    line 22
  2. Very specific:

    Always use .env files:

    line 117
  3. Very specific:

    Never hardcode credentials.

    line 123
  4. Distinctive:

    Use consistent tags for discoverability:

    line 152

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 typescript

Building 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-key

Never 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

  1. Always declare action specs — never process arbitrary instructions
  2. Validate inputs — the SDK does this automatically via registerAction()
  3. If using LLMs — sandbox them (no tools, no function calling, explicit system prompt)
  4. Set trust policy — use allowlists for production, 'open' only for demos
  5. Handle errors — registerAction auto-sends task_error on failures

Common Capability Tags

Use consistent tags for discoverability:

TagDescription
research-summarizationSummarize topics or documents
data-extractionExtract structured data from text
language-translationTranslate between languages
image-generationGenerate images from descriptions
code-reviewReview and analyze code
speech-to-textTranscribe audio
text-to-speechGenerate speech from text
geospatial-analysisAnalyze geographic data
sentiment-analysisAnalyze text sentiment
data-visualizationCreate 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.json

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.