agentleFS
STiFLeR7STiFLeR7/prompt-forge/SKILL.md

prompt-forge

Skill3 starsChanged 7 months agoMITView on GitHub

Use when a developer explicitly asks for help crafting or refining an execution prompt. Not triggered by general task requests — only when they specifically ask for prompt writing assistance, not task execution.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When building prompts, read the relevant references:

    line 72

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prompt Forge

A prompt refinement skill that extracts what a developer actually means — especially when they're too deep in a session to say it clearly. It investigates the codebase, researches the ecosystem, and surfaces the perspectives that fatigue makes you forget, then produces a grounded prompt that the developer hands to their execution tool.

Built on Anthropic's official prompting best practices. Designed to work as a plugin for Claude Code and Gemini CLI, alongside GSD and Superpowers.

The Cardinal Rule

Investigate freely — but never implement. Prompt Forge is a prompt writer, not a task executor. Its only job is to produce a refined, grounded prompt. See src/core/constraints.md for full boundary definition.

Core Workflow

The workflow has two grounding passes — one before asking questions, one after.

StepModuleWhat Happens
1. Receive inputsrc/core/intent_parser.mdRead raw input, detect fatigue signals
2. First groundingsrc/core/intent_parser.mdCLAUDE.md → code analysis → web research
3. Ask questionssrc/core/intent_parser.md1-3 grounded, fatigue-friendly questions
4. Second groundingsrc/core/intent_parser.mdTargeted deep-dive from answers
5. Apply lensessrc/core/prompt_builder.md9 perspective lenses (business, QA, architecture, UX, security, performance, DX, edge cases, migration)
6. Produce outputsrc/core/prompt_builder.mdIntent breakdown + copy-paste prompt
7. Scope checksrc/core/constraints.mdVerify no implementation drift
8. Deliversrc/utils/helpers.mdPresent prompt, stay open for refinement

Module Index

Core Logic

  • src/core/intent_parser.md — Steps 1-4: input parsing, grounding, clarifying questions
  • src/core/prompt_builder.md — Steps 5-6: lens analysis, task classification, output generation
  • src/core/modes.md — 5 compilation modes (build, audit, debug, research, optimize)
  • src/core/constraints.md — The Cardinal Rule, scope boundaries, drift detection

LLM Adapters

  • src/adapters/claude.md — Claude/Anthropic formatting (XML tags, @ references)
  • src/adapters/gemini.md — Gemini/Google formatting (MUST/MUST NOT, markdown)
  • src/adapters/openai.md — OpenAI/GPT formatting (system/user split, few-shot)

Command

  • src/commands/prompt-forge.md — Slash command entrypoint and invocation guide

Helpers

  • src/utils/helpers.md — Tone, collaboration style, complexity adaptation, delivery protocol

Templates

  • prompts/templates/task-type-blueprints.md — 8 task-type prompt structures
  • prompts/templates/gsd-output-format.md — GSD-optimized output format
  • prompts/templates/superpowers-output-format.md — Superpowers-optimized output format
  • prompts/templates/context-file-template.md — Template for project context files
  • prompts/templates/anthropic-prompting-guide.md — Anthropic prompting best practices

Examples

  • prompts/examples/example-session.md — Full walkthrough: vague input → 3 output formats

Evaluation

  • evals/test_cases.md — 14 functional test cases
  • evals/adversarial_cases.md — 15 boundary and failure mode tests
  • evals/benchmark.md — Cross-model benchmark framework (8 cases)
  • evals/scoring.md — Scoring rubric (clarity, constraints, structure, grounding, leakage)

Documentation

  • docs/architecture.md — System design and directory map
  • docs/usage.md — Integration and usage guide

Reference Files

When building prompts, read the relevant references:

  • Task-type blueprints — Primary reference on every invocation
  • Anthropic prompting guide — Prompting principles: XML structuring, few-shot, chain-of-thought, grounding
  • Context file template — For generating project context files
  • GSD/Superpowers output formats — When plugins are detected

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.