Skip to content

fix: add # INPUT section to 93 patterns that were missing it#2125

Open
OdinKral wants to merge 1 commit into
danielmiessler:mainfrom
AnsibleBBridge:fix/input-section-headers
Open

fix: add # INPUT section to 93 patterns that were missing it#2125
OdinKral wants to merge 1 commit into
danielmiessler:mainfrom
AnsibleBBridge:fix/input-section-headers

Conversation

@OdinKral

Copy link
Copy Markdown

Summary

93 patterns were missing a # INPUT section — the standard marker Fabric uses to delimit where user input is injected into a pattern.

Three variants were found and fixed:

Variant Count Fix
## INPUT (wrong heading level) 7 Upgraded to # INPUT
Bare INPUT: text with no heading 8 Added # INPUT header before it
No input section at all 78 Appended # INPUT\n\nINPUT:

All changes are structural only — no pattern content, instructions, or output format was altered. This is a pure normalization of the input boundary marker.

Why it matters

  • The # INPUT heading is what --readpattern and pattern tooling use to display where user content goes
  • Inconsistent markers make it harder to programmatically parse patterns (e.g. the audit script at scripts/audit-patterns.sh uses this as a health check)
  • New contributors following the pattern template expect this section to exist

Test plan

  • fabric -p analyze_bill "..." still works (pattern that had no INPUT section)
  • fabric -p translate "..." still works (pattern that had ## INPUT)
  • fabric -p coding_master "..." still works (pattern that had bare INPUT:)
  • grep -rL "^# INPUT" data/patterns/*/system.md returns empty (all patterns now have the section)

🤖 Generated with Claude Code

93 patterns had no standardized # INPUT section, making the input
boundary ambiguous. Three variants existed:

  - 7 patterns used ## INPUT (wrong heading level) → upgraded to # INPUT
  - 8 patterns had bare "INPUT:" text with no heading → added # INPUT header
  - 78 patterns had no input section at all → appended # INPUT + INPUT:

All changes are structural only — no content was altered. The
# INPUT section is the standard marker used by Fabric's CLI and
pattern tooling to delimit where user input is injected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant