tasks

Define Agent Markdown Authoring Workflow

Define the Human and Agent procedure for approved direct Markdown edits before product-level write operations exist.

Goal

Define the approved direct Markdown authoring workflow for Agents while Forma remains focused on read, inspect, check, health, and guidance rather than product-level write operations.

Sources

Context

The current stage should prioritize read workflows and disciplined Agent-authored Markdown edits. Direct Agent edits remain acceptable when explicitly approved, but they need a clearer procedure than broad product-level write operations.

This task should clarify how Agents use .forma.md, configured spaces, schema, guidelines, and Forma CLI diagnostics before and after editing repository Markdown.

The workflow must include discovery of workflow-relevant skills via cargo run -q -p forma-cli -- skills list and cargo run -q -p forma-cli -- skills get, including the built-in forma-cli-core and guideline-projected workspace skills.

The built-in forma-cli-core Markdown source is packaged from docs/agents/forma-cli-core.md. It is embedded product documentation rather than a project knowledge guideline, while workspace skills are projected only from configured guideline documents.

In Scope

  • Define the Agent workflow for approved direct Markdown edits.
  • Define when an Agent must provide a dry-run summary before editing.
  • Define how an Agent chooses the target configured space and file path.
  • Define local-only, shared-knowledge, and promotion boundaries.
  • Define required post-edit checks and review evidence.
  • Update existing guidelines or the project-local forma-cli skill if the workflow needs clearer entrypoint instructions.
  • Include skills list and skills get into the workflow to expose and apply built-in forma-cli-core and guideline-projected workspace skills.
  • Identify whether starter-kit Agent pressure tests need an additional case or wording updates.

Out of Scope

  • Implementing product-level write operations.
  • Implementing proposal, dry-run, apply, or policy runtime commands.
  • Designing WebApp write or proposal UI.
  • Designing AI Chat write behavior.
  • Replacing human review with machine-enforced policy.

Acceptance Criteria

  • The workflow starts from config inspect, workspace health, and applicable guideline discovery instead of hard-coded repository paths.
  • The workflow distinguishes single-file approved edits from multi-file edits, promotion from local-only material, task status changes, guideline/config changes, and dependency-related knowledge edits.
  • The workflow explains how to select a configured space, target path, frontmatter shape, and links before writing.
  • The workflow states which edits require a dry-run summary before file changes.
  • The workflow states required verification commands after writing, including check and workspace health when references or placement matter.
  • The workflow defines review evidence that Agents must report after edits.
  • The workflow includes skills list and skills get usage, and explicitly documents projection of the built-in forma-cli-core skill and guideline-defined workspace skills into task execution.
  • Existing product-level write-operation tasks remain deferred and are not treated as prerequisites.
  • Forma checks and workspace health pass after the workflow is recorded.

Implementation Notes

Completed on 2026-06-24.

Changes:

Validation:

  • cargo run -q -p forma-cli -- check --json
  • cargo run -q -p forma-cli -- workspace health --json
  • cargo run -q -p forma-cli -- skills get markdown-authoring