Skip to main content
← Back to list
01Issue
FeatureClosedSwamp CLI
AssigneesNone

Relationships

#936 Automate mechanical frontmatter fixes in the fixing stage

Opened by mellens · 7/3/2026

Problem

The current fixing stage is fully interactive — every fix, including purely mechanical ones, is applied by the agent in conversation. Several criteria have deterministic fixes that require no judgment and could be automated:

  • versioning (plugin layout): copy version from plugin.json into the SKILL.md frontmatter. No judgment needed — the source of truth is always plugin.json.
  • ownership (plugin layout): copy author.name from plugin.json into the SKILL.md frontmatter as owner:.
  • metadata-completeness: ensure the --- frontmatter block exists and contains description:; this can be scaffolded from the skill's H1 title if missing.

In the cycle-1 EE skills fix, these were done by hand-written Python scripts — correct, but outside the factory and not recorded as a repeatable capability.

Proposed solution

Add a skill-fixer method to the skill-analyser (or a new skill-fixer model) that accepts the inventory and review-results artifacts and applies a configurable subset of mechanical fixes deterministically. The fixing stage would call this method first for all mechanical criteria, then fall back to interactive mode only for criteria that require judgment (writing-quality, robustness, failure-modes, dependencies, etc.).

The method should:

  1. Accept a list of criterion names to fix (e.g. ["versioning", "ownership"])
  2. Read source data from the plugin's plugin.json (for plugin-layout repos)
  3. Apply frontmatter patches in-place to each failing SKILL.md
  4. Return a structured list of which files were changed and what was written
  5. Integrate with the factory's record_artifact / record_evidence flow

Criteria that are good candidates for automation

Criterion Automated fix
versioning Copy version from plugin.json → SKILL.md frontmatter
ownership Copy author.name from plugin.json → SKILL.md owner:
metadata-completeness Scaffold frontmatter from H1 title if missing
discoverability Extract trigger keywords from description and write tags:

What this is NOT

Not a replacement for the interactive stage — criteria like documentation, failure-modes, dependencies, and writing-quality still require judgment and human review. The goal is to eliminate the boilerplate mechanical pass before the interactive one begins.

02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

7/3/2026, 10:22:28 AM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

mellens commented 7/3/2026, 10:22:28 AM

Closing — re-raising as a GitHub issue on the Crave repo (mesgme/crave) where this belongs.

Sign in to post a ripple.