discover-plan-batch

Execute the Discover-Plan-Batch protocol for structured code modification and refactoring.

6|3|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/mgd34msu/goodvibes-plugin --skill discover-plan-batch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discover-plan-batch
Source: https://github.com/mgd34msu/goodvibes-plugin/tree/main/plugins/goodvibes/skills/protocol/discover-plan-batch
Command: npx skills add https://github.com/mgd34msu/goodvibes-plugin --skill discover-plan-batch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides a structured protocol to ensure AI agents operate efficiently, minimizing token usage and maximizing output quality by enforcing a discover, plan, and batch execution workflow.

Core Features & Use Cases

  • Token Efficiency: Significantly reduces token consumption by front-loading discovery and planning.
  • Structured Workflow: Enforces a consistent, repeatable process for complex tasks.
  • Use Case: Before implementing a new feature, an agent uses this Skill to first discover existing code patterns, plan the necessary file modifications, and then batch all write operations into a single, efficient call.

Quick Start

Use the discover-plan-batch skill to discover existing files matching the pattern 'src/components/**/*.tsx'.

Frequently Asked Questions about discover-plan-batch

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

FAQPage Schema
How do I optimize AI agent token efficiency during codebase refactoring?

To optimize AI agent token efficiency during codebase refactoring, use a discover, plan, and batch execution protocol to front-load context gathering and minimize redundant operations. This structured workflow ensures file modifications are planned before execution, significantly reducing token consumption.

What is the best way to structure an AI workflow for systematic feature implementation?

The best way to structure an AI workflow for systematic feature implementation involves enforcing a three-phase protocol: discovering existing code patterns using search tools, planning necessary file modifications in detail, and batching write operations into a single efficient call to maximize output quality.

How do I gather code context before executing modifications with an AI agent?

You gather code context before executing modifications by guiding the AI agent through a discovery phase using glob, grep, and symbols tools. This ensures the agent retrieves existing structural patterns and necessary information before planning any code changes or running execution batches.

Do I need specific dependencies to run batched code execution workflows?

No specific dependencies are required to run batched code execution workflows using this protocol. The Skill operates independently to enforce a structured workflow, utilizing internal scripts and references to guide the agent through discovery, planning, and precision execution phases without external libraries.

Can I batch write operations to reduce redundant agent tasks during code modification?

Yes, you can batch write operations to reduce redundant agent tasks during code modification. The protocol collects all necessary context during a planning phase and then executes all planned write operations in a single batch, ensuring context is gathered before execution to prevent repeated tool calls.

Why does my AI agent use too many tokens when implementing new features?

Your AI agent uses too many tokens when implementing new features because it lacks a structured discovery and planning phase, causing redundant operations. Implementing a discover, plan, and batch execution workflow front-loads context gathering to minimize unnecessary token consumption during code modification.