Dacp interpreter

From Tibsfox/gsd-skill-creator · View interactive version

Dacp interpreter is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Load, validate, and use DACP bundles as structured execution context. Detects .bundle/ companion directories, validates integrity (manifest schema, fidelity, provenance), loads typed data, and builds ExecutionContext for receiving agents. Scripts are NEVER auto-executed. Use when processing incoming

How to use this skill

Skill file

DACP Interpreter

Scripts in bundles are review-only references — the interpreter NEVER auto-executes any script (SAFE-01).

Summary

The DACP Interpreter handles receiving-side bundle processing. When a .bundle/ directory appears alongside a .msg file, the interpreter detects, validates, loads, and integrates the bundle into a structured ExecutionContext.

Fidelity Level Guide

| Level | Contents | What to Do |

|-------|----------|------------|

| 0 | Intent markdown only | Read intent.md, proceed with instructions |

| 1 | Intent + structured data | Access typedData for structured parameters |

| 2 | Intent + data + schemas | Validate your understanding against schemas |

| 3 | Intent + data + code | Review scripts, decide whether to execute or reference |

| 4 | Intent + data + code + tests | Verify with provided test fixtures before proceeding |

Interpretation Pipeline

DETECT -> VALIDATE -> LOAD -> INTEGRATE
  |          |         |         |
  |          |         |         +-- buildExecutionContext()
  |          |         +-- loadBundle()
  |          +-- validateBundle()
  +-- Check for .bundle/ directory

Workflow

Step 1: Detect Bundle Companion

Look for a .bundle/ directory alongside the .msg file. If found, prefer the bundle over raw .msg content.

Step 2: Validate Bundle

Call validateBundle(bundlePath) to check:

Step 3: Load Bundle

Call loadBundle(bundlePath) to get a typed LoadedBundle with:

Step 4: Build Execution Context

Call buildExecutionContext(loadedBundle) to get:

Step 5: Review Scripts Before Use

For each script in scriptReferences:

Step 6: Report Outcome

After completing the work, report the handoff outcome (intent alignment, rework needed, verification status) for drift tracking.

Error Handling

Invalid Bundles

If validateBundle() returns valid: false:

Provenance Failures

Scripts without a valid source_skill in the manifest are rejected. This ensures

every executable artifact traces back to a known, versioned skill. If provenance

validation fails:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.