preset-worker

Automate Go preset development with test-driven workflows and CLI commands.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/Mario-pereyra/mapj --skill preset-worker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preset-worker
Source: https://github.com/Mario-pereyra/mapj/tree/main/.factory/skills/preset-worker
Command: npx skills add https://github.com/Mario-pereyra/mapj --skill preset-worker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps software teams implement, test, and maintain parameterized presets in Go by providing a structured, test-driven workflow with a reusable preset store and CLI commands.

Core Features & Use Cases

  • PresetStore with Load/Save: persistent, atomic storage for presets and their definitions.
  • QueryPreset and ParamDef: data models for presets and parameter definitions with validation and escaping to prevent injection.
  • CLI commands: add, list, run, show, edit, remove, use for interactive preset management.
  • TDD Workflow: red-green-refactor cycle guiding tests first, then implementation, with automated verification.

Quick Start

Install and run tests to verify and exercise the presets workflow by running the unit tests and using the CLI to manage presets.

Frequently Asked Questions about preset-worker

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

FAQPage Schema
What is a structured approach for managing parameterized presets in Go?

A structured approach for managing parameterized presets in Go involves using a PresetStore for atomic Load/Save operations, defining data models like QueryPreset and ParamDef, and applying parameter validation to prevent injection.

How do I implement test-driven development for a Go preset management CLI?

To implement test-driven development for a Go preset management CLI, follow a red-green-refactor cycle: write unit and integration tests first, then implement the CLI commands, and verify automated testing for standardized result envelopes.

How does the PresetStore ensure data safety when saving preset configurations?

The PresetStore ensures data safety when saving preset configurations by enforcing atomic writes and setting strict 0600 file permissions, which protects the persistent storage of presets and their definitions from unauthorized access.

Does this Go preset workflow include built-in protection against parameter injection?

Yes, this Go preset workflow includes built-in protection against parameter injection by applying parameter validation and escaping within the ParamDef data models before the presets are processed or executed.

What is the best way to build CRUD operations for test-driven preset management?

The best way to build CRUD operations for test-driven preset management is to implement interactive CLI commands—add, list, show, edit, and remove—supported by a reusable PresetStore and automated unit tests.

Can I use this preset management workflow without adding external dependencies?

Yes, you can use this preset management workflow without adding external dependencies, as the skill operates with an empty dependency list and relies entirely on native Go development patterns and reusable components.