Provide implementations of advanced data structures
The English summary is being prepared. Showing the original description.
YAML frontmatter parsing and manipulation for .planning/ documents. Provides read, write, update, query, and validation operations on frontmatter blocks in GSD markdown artifacts.
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
## Capabilities
### 1. Parse Frontmatter
Extract frontmatter from a markdown file into structured data:
```yaml
# Input file: .planning/phase-72/PLAN-1.md
---
status: planned
phase: 72
plan_number: 1
wave: 1
depends_on: []
files_modified:
- src/auth/oauth.ts
- src/auth/tokens.ts
- src/middleware/auth.ts
task_count: 4
created: 2026-03-02
gap_closure: false
---
Parsed result:
{
"status": "planned",
"phase": 72,
"plan_number": 1,
"wave": 1,
"depends_on": [],
"files_modified": ["src/auth/oauth.ts", "src/auth/tokens.ts", "src/middleware/auth.ts"],
"task_count": 4,
"created": "2026-03-02",
"gap_closure": false
}
Read individual fields without parsing the entire frontmatter:
get_field(.planning/phase-72/PLAN-1.md, "wave") -> 1
get_field(.planning/phase-72/PLAN-1.md, "status") -> "planned"
get_field(.planning/phase-72/PLAN-1.md, "files_modified") -> ["src/auth/oauth.ts", ...]
Update individual frontmatter fields without modifying body content:
update_field(.planning/phase-72/PLAN-1.md, "status", "executed")
update_field(.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.
Add fields to existing frontmatter:
add_field(.planning/phase-72/PLAN-1.md, "executed_at", "2026-03-02T14:30:00Z")
add_field(.planning/phase-72/PLAN-1.md, "executor_agent", "gsd-executor")
Inserts new field before the closing --- delimiter.
Remove fields from frontmatter:
remove_field(.planning/phase-72/PLAN-1.md, "gap_closure")
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.
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:
Update frontmatter across multiple files:
batch_update(
files: [".planning/phase-72/PLAN-1.md", ".planning/phase-72/PLAN-2.md"],
field: "status",
value: "executed"
)
Read to load the target file--- and second ---Read to load the fileEdit with the exact field line as old_stringGlob to find candidate files in the target directoryGrep to search for the field pattern (e.g., ^wave: 1$)Read to load the fileplan-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 executionaudit-milestone.js - Query all plans by status for completion checksresearch-phase.js - Write research frontmatter (approach_count, recommended)discuss-phase.js - Read phase metadata from roadmap sections{
"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": []
}
}
| Setting | Default | Description |
|---|---|---|
frontmatterDelimiter | --- | YAML frontmatter delimiter |
strictValidation | false | Fail on unknown fields |
autoUpdateTimestamp | true | Auto-update updated field on writes |
| 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 |
--- delimiters at the top of the file[a, b] or block - a\n- b)true/false (not yes/no)No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Provide implementations of advanced data structures
The English summary is being prepared. Showing the original description.
Fresh adversarial code review with binary PASS/FAIL verdicts, evidence citations, and anchoring bias prevention via fresh reviewer spawning.
The English summary is being prepared. Showing the original description.
WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.
The English summary is being prepared. Showing the original description.
Coordinate Crew (persistent) and Polecat (transient) agents using Gas Town's hook-based work distribution and GUPP principle.
The English summary is being prepared. Showing the original description.
Generate visual representations of algorithm execution
The English summary is being prepared. Showing the original description.
Hierarchical coordination and drift detection with frequent checkpoints, shared memory coherence validation, role specialization enforcement, and short task cycles.
The English summary is being prepared. Showing the original description.