process-hooks

Define artifact schemas and post-process hooks for AI response handling.

Updated May 11, 2026
One-click install
npx skills add https://github.com/AesopScott/mojo --skill process-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: process-hooks
Source: https://github.com/AesopScott/mojo/tree/main/harnesses/skills/process-hooks
Command: npx skills add https://github.com/AesopScott/mojo --skill process-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the lack of granular control over how AI responses are processed, stored, and streamed, preventing accidental expansion of system authority.

Core Features & Use Cases

  • Artifact Schema Definition: Standardizes the structure of captured outputs for consistent downstream consumption.
  • Post-process Hooks: Enables custom logic for streaming, compressing, or auditing response content before it reaches the user.
  • Use Case: When building a new AI feature, use this to ensure that all generated artifacts are automatically logged and validated against a strict schema before being saved to the database.

Quick Start

Use the process-hooks skill to define a new artifact schema and post-process hook for the current response harness.

Frequently Asked Questions about process-hooks

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

FAQPage Schema
How do I enforce a strict schema for AI response artifacts before saving them?

To enforce a strict artifact schema for AI responses, you implement schema definitions and post-process hooks to validate output structure and apply operational boundaries before the content reaches storage or the user.

What is the best way to add post-process hooks for AI response streaming and auditing?

The best way to add post-process hooks for AI responses is to define custom logic within the response harness, enabling you to stream, compress, or audit content while maintaining strict operational control and observability.

How do I prevent accidental expansion of system authority during AI response processing?

You prevent accidental expansion of system authority by applying artifact schema enforcement and post-process hooks that establish strict capability boundaries and defined harness limits for response modifications.

Can I use artifact schema enforcement for system architecture tasks requiring output validation?

Yes, artifact schema enforcement applies to system architecture tasks where output streaming, storage, and validation require safe, testable, and observable operational control over response modifications.

Do I need defined harness boundaries to apply post-process hooks to AI responses?

Yes, applying post-process hooks requires defined harness boundaries and specific lever selection to ensure safe, testable, and observable modifications to AI response handling and capability boundaries.