agentsclimarketplace

Prompt builder

Skill fabioc-aloha/Alex_Skill_Mall/plugins/ai-agents/prompt-builder

Create and validate .prompt.md files that pass brain-qa on first attemptFrom its SKILL.md

Install
npx -y skills add fabioc-aloha/Alex_Skill_Mall --skill prompt-builder

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.0 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

Prompt Builder

Build .prompt.md files that pass brain-qa on first attempt — no regressions


When to Use

  • Creating a new .prompt.md file
  • Fixing a failing prompt in brain-qa
  • Adding prompts to the loop menu config
  • Reviewing prompt frontmatter for completeness

Prompt Anatomy

Every .prompt.md has two parts: YAML frontmatter and Markdown body.

Frontmatter (Required Fields)

FieldRequiredGatePurpose
descriptionYesYesWhat the prompt does (1 sentence)
applicationYesYesWhen/why to use it (distinct from description)
modeConditionalNoSet to agent for loop prompts
agentConditionalNoNamed agent for root prompts
toolsConditionalNoTool array for loop prompts

Gate fields (description + application) are mandatory — brain-qa fails without both.

brain-qa Scoring (4 points)

FlagPointsRule
desc1description: exists in frontmatter
app1application: exists in frontmatter
agent1agent: OR mode: agent exists
>20L1Body exceeds 20 lines

Pass = both gates (desc + app) AND score >= 3.


Two Archetypes

Root Prompts (.github/prompts/*.prompt.md)

Invoked directly by name. Typically route to a named agent.

---
description: "What this prompt does"
application: "When to use this prompt"
agent: the AI assistant
---

Key rules:

  • Use agent: to name the target agent (the AI assistant, Researcher, Validator, etc.)
  • Do NOT use mode: or tools: — those are for loop prompts
  • Body should be 20+ lines with clear instructions

Loop Prompts (.github/prompts/loop/*.prompt.md)

Sidebar buttons in the extension Loop tab. Loaded by loopMenu.ts.

---
mode: agent
description: "What this prompt does"
application: "When to use this prompt"
tools: ["read_file", "create_file", "run_in_terminal"]
---

Key rules:

  • Always include mode: agent
  • Always include tools: array with relevant tool names
  • Do NOT use agent: — loop prompts use mode-based routing
  • Body should be 20+ lines with phase-based instructions

Field Writing Rules

description vs application

These are distinct fields — do not duplicate content between them.

FieldAnswersExample
description"What does this do?""3-pass code review with confidence scoring"
application"When should I use this?""Review code for correctness, security, and maintainability"

Anti-pattern: Making application a rephrasing of description.

tools Array (Loop Prompts Only)

Include only tools the prompt actually needs:

ToolWhen to Include
read_fileReads existing code or docs
create_fileGenerates new files
replace_string_in_fileEdits existing files
run_in_terminalRuns commands (build, test, deploy)
grep_searchSearches codebase for patterns
semantic_searchSemantic code search
list_dirExplores directory structure
fetch_webpageWeb research
view_imageImage analysis
get_errorsReads diagnostics
codebaseVS Code codebase tool
terminalVS Code terminal tool
editFilesVS Code edit tool

Body Structure

Minimum Viable Body (20+ Lines)

# {Title}

{1-2 sentence intro describing the workflow}

## Phase 1: {Discovery/Setup}

{Steps for initial context gathering}

## Phase 2: {Execution}

{Core workflow steps}

## Phase 3: {Validation}

{How to verify the work}

## Output

{What the user should expect}

Using Variables

  • $ARGUMENTS — User's input text (root prompts)
  • ${{input}} — VS Code variable for selected text
  • Reference skills with: "Load .github/skills/{name}/SKILL.md"

Checklist Before Commit

Run mentally before saving any .prompt.md:

  • description: present and meaningful
  • application: present and distinct from description
  • Root prompt has agent: OR loop prompt has mode: agent + tools:
  • Body exceeds 20 lines
  • No duplicate of existing prompt (check .github/prompts/)
  • If loop prompt: registered in .github/config/loop-menu.json

Common Failures and Fixes

FailureCauseFix
app=0Missing application:Add field after description:
desc=0Missing description:Add field in frontmatter
agent=0No agent: or mode: agentAdd appropriate field
>20L=0Body too shortExpand with phases/instructions
Score 3 but FAILHas score but missing a gateEnsure both description AND application exist

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.