add-functional-spec

Installation
SKILL.md

Add Functional Spec

Always use the skill load-plain-reference to retrieve the ***plain syntax rules — but only if you haven't done so yet.

Workflow

  1. Identify the target .plain file. If ambiguous, ask the user.
  2. Read the entire file to understand existing definitions, implementation reqs, and all current functional specs (including those in requires modules).
  3. Draft the functional spec following the rules below.
  4. Analyze complexity — use the analyze-if-func-spec-too-complex skill to verify the drafted spec implies ≤ 200 LOC. If too complex, use the break-down-func-spec skill to split it, then repeat from step 3 for each resulting spec.
  5. Check for conflicts with every existing functional spec — this is critical. Run analyze-func-specs once with the new spec plus all existing specs (in the file and in any requires chain) as a single batch. The batched analyzer returns every conflicting pair in one call — do not invoke a pair-by-pair analyzer. For each conflicting pair it reports, run resolve-spec-conflict on that pair; re-run analyze-func-specs over the touched set after each resolution until the verdict is COMPATIBLE.
  6. Append the spec to the end of the ***functional specs*** section (specs are chronological; new ones go last).
  7. Read the file again to confirm correct placement and syntax.

Rules

Complexity Limit

Each functional spec must imply a maximum of 200 changed lines of code. If the requirement is too large, use the break-down-func-spec skill to split it into multiple smaller, independent specs. Do not include LOC estimates in the spec text.

Installs
38
GitHub Stars
54
First Seen
May 13, 2026
add-functional-spec — codeplain-ai/plain-forge