blong-handler

Create API handlers and library functions with semantic triple naming in Blong.

1|Updated Dec 21, 2023
One-click install
npx skills add https://github.com/feasibleone/blong --skill blong-handler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blong-handler
Source: https://github.com/feasibleone/blong/tree/main/.github/skills/handler
Command: npx skills add https://github.com/feasibleone/blong --skill blong-handler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a framework to implement API handlers and library functions using semantic triple naming in Blong, enabling clear, scalable business logic.

Core Features & Use Cases

  • Internal Handlers: predefined operations for adapter and protocol tasks
  • API Handlers: expose business functionality through semantic naming
  • Library Functions: reusable logic shared across handlers
  • Protocol Handling: support for encode/decode and orchestration flows
  • Type Safety: automatic validation with generated ~.schema.ts

Quick Start

To add a new handler, create a dedicated file following the subjectObjectPredicate convention, export a default handler, and wire it into your realm orchestrator. Then run the repository's test or example to verify the integration.

Frequently Asked Questions about blong-handler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is semantic triple naming for API handlers?

Semantic triple naming for API handlers uses a subjectObjectPredicate convention to create clear, modular business logic. This approach enables consistent naming and interoperability across adapters, orchestrators, and library functions in Blong projects.

How do I build API handlers using semantic triples?

To build API handlers using semantic triples, create a dedicated file following the subjectObjectPredicate convention, export a default handler, and wire it into your realm orchestrator. Run the repository test to verify the integration.

How does type safety validation work with semantic triple handlers?

Type safety validation works automatically through generated ~.schema.ts files. These schemas validate data structures for your API handlers and library functions, ensuring consistent type checking across business logic and protocol handling.

Can I reuse library functions across multiple API handlers?

Yes, you can reuse library functions across multiple API handlers. Library functions contain shared logic that operates independently, allowing internal handlers and API endpoints to call the same business logic without duplication.

Does semantic triple naming support protocol handling and orchestration flows?

Semantic triple naming supports protocol handling through predefined internal handlers for encode and decode tasks. These handlers integrate with realm orchestrators to manage orchestration flows and adapter operations within Blong projects.