PEbyFOUAD guide

PEbyFOUAD reads a system or task prompt section by section, flags what is vague, risky or missing, scores the spec, and rebuilds the prompt in a stronger format. Everything runs on your machine.

New here? The user flow shows the whole journey on one page.

Start the app

Windows: double-click start.bat. macOS, Linux or Git Bash: run

./start.sh            # default port 8765
PORT=9000 ./start.sh  # another port

The script serves the app folder on http://127.0.0.1:8765 and opens your browser. It needs Python 3. Without Python it opens app/index.html directly, which also works. Stop the server with Ctrl+C.

The flow

  1. Paste. Paste your prompt in the input field. The chips under it light up as each of the 7 sections is detected.
  2. Reference format. Not sure how to structure it? Open Reference format to see the 7-section template, then Use this format to load it and fill in the brackets.
  3. Run crawler. The crawler walks the sections in order. Each word it reads lights up; each problem pops up as a label on the word, tagged vague, claim, owner, approval, missing and so on. Speed: 1×, 2×, 4×, or Skip to report.
  4. Progression. The spec score climbs as each section passes. The panel strip shows the crawl log, words read per section, a coverage radar and counters.
  5. Report. Final score, a bar per section, a prioritized list of recommendations, and the enhanced prompt.
  6. Loop. Fill the placeholders in the enhanced prompt, then press Crawl the enhanced prompt to score it again.

The 7 sections

Headings are matched by name, in any of these forms: ## Rules, Rules:, RULES, <rules>, 05 Rules. Synonyms work too (Goal → Objective, Constraints → Rules, Acceptance criteria → Review). A prompt with no headings is split by paragraph and the sections are marked “inferred”.

#SectionWhat it holdsTemplate

Reading the crawl

  • Clusters are sections; each dot is a word. A dashed red ring is a section that is missing.
  • Labels are findings, colored by severity: red critical, orange high, yellow medium, blue low, grey info.
  • Crawl log streams what was read, flagged (flag) and missing (miss).
  • Counters end on words read, flagged and missing, and “guessed” always stays at 0. The engine never fills a gap with a guess; it turns gaps into questions.

How the score works

Each of the 7 sections starts at 100. A missing section scores 0. Each quality flag inside a section subtracts points: High 30, Medium 15, Low 5. The total is the average of the 7 sections, minus whole-prompt flags (such as “No way to ask”).

This is formula v0. It has not been calibrated against labeled prompts yet, so treat it as a guide, not a grade. Security findings do not change the score; they set the security verdict (block / review / allow).

Recommendations

One recommendation per rule that fired, in priority order:

  • P1: security findings rated High or Critical, and a missing Role, Objective or Rules section.
  • P2: Medium findings and other missing sections.
  • P3: Low and Info findings.

“+N pts” is the score the fix recovers under the v0 formula. The enhanced prompt applies what it can automatically: it marks vague words as [specify: …], adds [source?], [approver: …] and [by whom?], removes secrets and internal details, rewrites “make assumptions” into “ask, do not guess”, and adds missing sections as templates. Every [bracket] is yours to fill.

Rule reference

The rule layer runs rules. Quality rules (SPEC) score the structure; security rules (PI, JB, LK, RC) set the verdict.

RuleNameSeverityWhat it means

Limits

  • English only for now.
  • This is the rule layer: pattern matching. Reworded attacks and subtle vagueness get through. The classifier and LLM-judge layers come later.
  • Not checked yet: .
  • Policy-style system prompts (no task) lose points for a missing Objective and Start by design.

Troubleshooting

  • “Python not found”: install Python 3, or just open app/index.html in your browser.
  • Port already in use: run PORT=9001 ./start.sh, or edit the port in start.bat.
  • A section is not detected: put the heading on its own line (## Review) or use a synonym from the table above.
  • Your draft is saved in this browser so it survives a reload. Clear removes it.