跳到正文
cccskills
免费在 GitHub 公开

dacp-interpreter

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 DACP bundles, interpreting .bundle/ directories alongside .msg files, validating bundle integrity, or building execution context from bundle payloads.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.3 KB
  • metadata.yaml409 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

LevelContentsWhat to Do
0Intent markdown onlyRead intent.md, proceed with instructions
1Intent + structured dataAccess typedData for structured parameters
2Intent + data + schemasValidate your understanding against schemas
3Intent + data + codeReview scripts, decide whether to execute or reference
4Intent + data + code + testsVerify 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:

  • .complete marker exists (atomicity guarantee)
  • manifest.json parses and validates against Zod schema
  • Fidelity level matches actual directory contents
  • All referenced data and code files exist on disk
  • Size limits respected (50KB data, 10KB per script, 100KB total)
  • Data payloads validate against referenced JSON schemas
  • All scripts have provenance (source skill attribution)

Step 3: Load Bundle

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

  • Parsed manifest object
  • Raw intent markdown
  • JSON data payloads as typed objects
  • Schema definitions
  • Script content loaded for review

Step 4: Build Execution Context

Call buildExecutionContext(loadedBundle) to get:

  • intentSummary -- what the sender wants done
  • intentMarkdown -- full instructions
  • typedData -- structured parameters you can use directly
  • scriptReferences -- scripts to review (NOT execute blindly)
  • assemblyRationale -- why the bundle was composed this way

Step 5: Review Scripts Before Use

For each script in scriptReferences:

  • Read the script content
  • Understand what it does
  • Decide: execute it, reference its logic, or skip it
  • NEVER execute without reviewing first

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:

  • Check if a .msg fallback file exists alongside the bundle
  • If yes: fall back to .msg content (backward compatibility)
  • If no: report the validation errors and request a re-send

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:

  • Do NOT use the script
  • Report which scripts failed provenance
  • Request a corrected bundle from the sender

References

  • src/interpreter/validator.ts -- bundle validation pipeline
  • src/interpreter/loader.ts -- bundle loading into typed structures
  • src/interpreter/context-builder.ts -- execution context assembly
  • src/interpreter/provenance-guard.ts -- deep provenance validation
  • src/interpreter/types.ts -- type definitions (LoadedBundle, ExecutionContext, etc.)
  • src/dacp/types.ts -- DACP type system (BundleManifest, FidelityLevel, etc.)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Provides web accessibility best practices for semantic HTML, ARIA, keyboard navigation, color contrast, and screen reader patterns. Use when building UI components, reviewing accessibility, or when user mentions 'a11y', 'accessibility', 'ARIA', 'screen reader', 'keyboard navigation', 'WCAG'.

中文简介正在准备中。当前显示原文说明。

Tibsfox/gsd-skill-creator712026年7月20日 更新

Active listening techniques for effective communication. Covers attending behaviors, paraphrasing, reflective listening, clarifying questions, empathic response, barriers to listening, listening in conflict, and cross-cultural listening. Use when building listening skills, improving understanding in conversation, mediating disputes, or analyzing communication breakdowns.

中文简介正在准备中。当前显示原文说明。

Tibsfox/gsd-skill-creator712026年7月20日 更新

Adversarial spec-compliance PR review — cross-references diffs against approved specs, verifies runtime claims against source, detects competing PRs, audits scope/convention compliance. Use before merging.

中文简介正在准备中。当前显示原文说明。

Tibsfox/gsd-skill-creator712026年7月20日 更新

Provides best practices for AI agent orchestration including MCP servers, A2A protocol, multi-agent coordination, and swarm architectures. Use when designing agent systems, configuring MCP servers, setting up agent teams, or when user mentions 'MCP', 'A2A', 'agent orchestration', 'multi-agent', 'swarm', 'agent team', 'LangGraph', 'CrewAI', 'AutoGen'.

中文简介正在准备中。当前显示原文说明。

Tibsfox/gsd-skill-creator712026年7月20日 更新

Symbolic manipulation, equation solving, and algebraic structures for mathematical reasoning. Covers distributive law, factoring, completing the square, linear through polynomial equation solving, systems of equations (substitution, elimination, Gaussian elimination, matrix methods), algebraic structures (groups, rings, fields), modular arithmetic, polynomial theory, and inequalities. Use when solving equations, simplifying expressions, working with algebraic structures, or performing symbolic manipulation.

中文简介正在准备中。当前显示原文说明。

Tibsfox/gsd-skill-creator712026年7月20日 更新

Understanding how algorithmic systems shape what users see, know, and do -- from recommendation feeds to search ranking to credit scoring to hiring software. Covers the mechanics of recommendation systems, algorithmic bias and its sources, personalization's effects on information diets, opacity and accountability, AI limitations (hallucination, confident wrongness), and the human-in-the-loop question. Use when a learner needs to think critically about why particular content reached them.

中文简介正在准备中。当前显示原文说明。

Tibsfox/gsd-skill-creator712026年7月20日 更新

查看 Tibsfox 的全部技能

报告此技能的问题