dev-tools

Define protocols, protocol bundles, and refactor code for The Fold.

7|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/osoleve/the-fold --skill dev-tools-osoleve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-tools
Source: https://github.com/osoleve/the-fold/tree/main/.claude/skills/dev-tools
Command: npx skills add https://github.com/osoleve/the-fold --skill dev-tools-osoleve

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides developer tooling to define protocols, protocol bundles, and a refactoring toolkit for The Fold, enabling safer code evolution, standardized protocol interfaces, and automated generation of protocol-related boilerplate.

Core Features & Use Cases

  • Open Protocol System: Extensible dispatch for protocols, enabling fast, type-tag-based method resolution and easy extension.
  • Protocol Bundles: Bundles of related protocol operations to reduce boilerplate and enforce consistency across implementations.
  • Refactoring Toolkit: Unified tools for symbol renaming, moving, dependency analysis, and change management to streamline large codebase evolution.
  • Template DSL (Batch & Interactive): Grammar-driven code generation for S-expressions with holes, enabling rapid, deterministic construction of complex code.

Quick Start

Load the dev-tools, define a new protocol, derive a bundle for related operations, and run a sample refactor to validate the workflow.

Frequently Asked Questions about dev-tools

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

FAQPage Schema
How do I define a protocol and derive a protocol bundle for related operations?

Protocol bundles group related protocol operations to reduce boilerplate and enforce consistency across implementations. They are derived after defining an open protocol, enabling standardized interfaces for safer code evolution.

What is template-driven S-expression code generation and when do I need it?

Template-driven S-expression code generation uses a grammar-driven DSL with holes to deterministically construct complex code. It is needed for rapid, predictable boilerplate construction across projects.

What's the best way to refactor symbols and manage dependencies in a large codebase?

The best way to refactor symbols is using a unified refactoring toolkit for symbol renaming, moving, dependency analysis, and change management to streamline large codebase evolution safely.

Can I extend protocol dispatch with new methods without modifying existing code?

Yes, you can extend protocol dispatch without modifying existing code. The open protocol system provides extensible dispatch with fast type-tag-based method resolution for easy extension.

Does the batch DSL support interactive code generation as well as batch processing?

Yes, the batch DSL supports both interactive and batch code generation. It provides grammar-driven generation for S-expressions with holes, enabling deterministic construction of complex code.

Are there limitations to using protocol bundles for refactoring existing code?

Protocol bundles are designed to reduce boilerplate and enforce consistency across implementations. They standardize interfaces to make refactoring safer, though they are not a standalone refactoring solution.