Mmcp.market

frontmatter-parsing skill

by a5c-ai·a5c-ai/babysitter·1.8k stars·MIT

YAML frontmatter parsing and manipulation for .planning/ documents. Provides read, write, update, query, and validation operations on frontmatter blocks in GSD markdown artifacts.

A100/100content scan

Is the frontmatter-parsing skill safe?

Clean: nothing in its files matched our rules. We read 2 files in the folder on 2026-09-28.

No findings.

Install the frontmatter-parsing skill

A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.

git clone --depth 1 https://github.com/a5c-ai/babysitter.git /tmp/babysitter
mkdir -p ~/.claude/skills
cp -r /tmp/babysitter/library/methodologies/gsd/skills/frontmatter-parsing ~/.claude/skills/frontmatter-parsing
available in every project

In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub

The instructions your agent would load

SKILL.md as published, without the frontmatter. Read it on GitHub

status: in-progress phase: 72 wave: 1 dependson: [] filesmodified: ["src/auth/oauth.ts", "src/auth/tokens.ts"] created: 2026-03-02 updated: 2026-03-02

Plan content below...

## Capabilities

### 1. Parse Frontmatter

Extract frontmatter from a markdown file into structured data:

Input file: .planning/phase-72/PLAN-1.md

status: planned phase: 72 plannumber: 1 wave: 1 dependson: [] files_modified:

taskcount: 4 created: 2026-03-02 gapclosure: false

  • src/auth/oauth.ts
  • src/auth/tokens.ts
  • src/middleware/auth.ts
Parsed result:

{ "status": "planned", "phase": 72, "plannumber": 1, "wave": 1, "dependson": [], "filesmodified": ["src/auth/oauth.ts", "src/auth/tokens.ts", "src/middleware/auth.ts"], "taskcount": 4, "created": "2026-03-02", "gap_closure": false }

### 2. Extract Specific Fields

Read individual fields without parsing the entire frontmatter:

getfield(.planning/phase-72/PLAN-1.md, "wave") -> 1 getfield(.planning/phase-72/PLAN-1.md, "status") -> "planned" getfield(.planning/phase-72/PLAN-1.md, "filesmodified") -> ["src/auth/oauth.ts", ...]

### 3. Update Fields

Update individual frontmatter fields without modifying body content:

updatefield(.planning/phase-72/PLAN-1.md, "status", "executed") updatefield(.planning/phase-72/PLAN-1.md, "wave", 2) update_field(.planning/phase-72/PLAN-1.md, "updated", "2026-03-02")

Uses `Edit` tool to surgically replace only the target field line.

### 4. Add New Fields

Add fields to existing frontmatter:

addfield(.planning/phase-72/PLAN-1.md, "executedat", "2026-03-02T14:30:00Z") addfield(.planning/phase-72/PLAN-1.md, "executoragent", "gsd-executor")

Inserts new field before the closing `---` delimiter.

### 5. Remove Fields

Remove fields from frontmatter:

removefield(.planning/phase-72/PLAN-1.md, "gapclosure")

### 6. Query Across Files

Find documents matching frontmatter criteria:

query(directory: ".planning/phase-72/", field: "wave", value: 1) -> [".planning/phase-72/PLAN-1.md", ".planning/phase-72/PLAN-2.md"]

query(directory: ".planning/", field: "status", value: "planned", recursive: true) -> [".planning/phase-72/PLAN-1.md", ".planning/phase-73/PLAN-1.md"]

Uses `Grep` to search for field patterns, then validates matches.

### 7. Validate Frontmatter

Validate frontmatter against document type schema:

PLAN.md required fields

required:

  • status # planned|executing|executed|verified
  • phase # integer or decimal
  • plan_number # integer
  • wave # integer (execution order group)
  • task_count # integer

PLAN.md optional fields

optional:

  • depends_on # array of plan references
  • files_modified # array of file paths
  • gap_closure # boolean
  • created # date
  • updated # date
  • executed_at # datetime
Document type schemas:
- **PLAN.md**: status, phase, plan_number, wave, task_count
- **SUMMARY.md**: phase, status, tasks_completed, commits
- **RESEARCH.md**: phase, status, approach_count, recommended
- **STATE.md**: last_updated, session_count, current_milestone
- **CONTEXT.md**: phase, decisions_count, preferences

### 8. Batch Operations

Update frontmatter across multiple files:

batch_update( files: [".planning/phase-72/PLAN-1.md", ".planning/phase-72/PLAN-2.md"], field: "status", value: "executed" )

## Tool Use Instructions

### Parsing Frontmatter
1. Use `Read` to load the target file
2. Extract content between first `---` and second `---`
3. Parse YAML content into key-value pairs
4. Return structured object

### Updating a Field
1. Use `Read` to load the file
2. Locate the target field line within frontmatter
3. Use `Edit` with the exact field line as `old_string`
4. Replace with new field value line
5. If field is multi-line (arrays), handle properly

### Querying Across Files
1. Use `Glob` to find candidate files in the target directory
2. Use `Grep` to search for the field pattern (e.g., `^wave: 1$`)
3. For each match, verify it's within frontmatter (not body content)
4. Return list of matching file paths

### Validating Frontmatter
1. Use `Read` to load the file
2. Parse frontmatter
3. Check required fields exist for the document type
4. Validate field types (string, integer, array, boolean, date)
5. Return validation result with any errors

## Process Integration

- `plan-phase.js` - Read/write plan frontmatter (wave, depends_on, files_modified)
- `execute-phase.js` - Update plan status as execution progresses, read wave assignments for parallel execution
- `audit-mile

{ "operation": "parse|get|update|add|remove|query|validate|batch", "status": "success|error", "file": ".planning/phase-72/PLAN-1.md", "field": "status", "previousValue": "planned", "newValue": "executed", "frontmatter": {}, "queryResults": [], "validation": { "valid": true, "errors": [], "warnings": [] } }

## Configuration

| Setting | Default | Description |
|---------|---------|-------------|
| `frontmatterDelimiter` | `---` | YAML frontmatter delimiter |
| `strictValidation` | `false` | Fail on unknown fields |
| `autoUpdateTimestamp` | `true` | Auto-update `updated` field on writes |

## Error Handling

| Error | Cause | Resolution |
|-------|-------|------------|
| `No frontmatter found` | File missing `---` delimiters | Add frontmatter block or skip |
| `YAML parse error` | Malformed YAML in frontmatter | Fix YAML syntax (check indentation, colons, quotes) |
| `Field not found` | Requested field not in frontmatter | Return null, optionally add field |
| `Type mismatch` | Field value does not match expected type | Coerce if possible, error if not |
| `Edit collision` | Field line not unique in file | Include surrounding context for uniqueness |

## Constraints

- Frontmatter must be valid YAML between `---` delimiters at the top of the file
- Field updates must not modify body content below the frontmatter
- Array fields must use YAML list syntax (either inline `[a, b]` or block `- a\n- b`)
- Date fields must use ISO 8601 format
- Boolean fields must use `true`/`false` (not `yes

More skills from a5c-ai/babysitter

  • Aadversarial-reviewFresh adversarial code review with binary PASS/FAIL verdicts, evidence citations, and anchoring bias prevention via fresh reviewer spawning.
  • Aagent-boosterWASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.
  • Aagent-coordinationCoordinate Crew (persistent) and Polecat (transient) agents using Gas Town's hook-based work distribution and GUPP principle.
  • Aagent-dispatch
  • Aanti-driftHierarchical coordination and drift detection with frequent checkpoints, shared memory coherence validation, role specialization enforcement, and short task cycles.
  • Aarchitecture-design
  • Aarchitecture-patternsSystem and API design guidance covering component boundaries, data flow, integration patterns, and scalability considerations.
  • Aassimilate-popular-workflowsThis skill should be used when the user asks to "find skills in the wild", "assimilate popular workflows", "discover SKILL.md files in repos", "research external skills", "find workflow patterns", "survey the skill landscape", "what skills exist out there", or wants to investigate public repositories for extractable processes, babysitter plugins, and reusable procedural insights. Searches GitHub for SKILL.md files, classifies repos by archetype, and maintains structured research under docs/reference-repos/.
  • Aaudit-trail
  • AbabysitOrchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
  • Ababysit-babysitter-issuesThis skill should be used when the user asks to "babysit issues", "work on assigned issues", "check a5c-agent issues", "process babysitter issues", or wants to find and work on open GitHub issues assigned to a5c-agent in the babysitter repo.
  • Abehavior-contractBug condition/postcondition formalization as testable Behavior Contracts. Defines invariants that must be preserved across fixes.

All agent skills → · MCP servers